configure revision e07dc26b
12c393a42Smrg#! /bin/sh
22c393a42Smrg# Guess values for system-dependent variables and create Makefiles.
32c393a42Smrg# Generated by GNU Autoconf 2.69 for xf86-video-vboxvideo 1.0.0.
42c393a42Smrg#
52c393a42Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
62c393a42Smrg#
72c393a42Smrg#
82c393a42Smrg# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
91cc69409Smrg#
102c393a42Smrg#
111cc69409Smrg# This configure script is free software; the Free Software Foundation
121cc69409Smrg# gives unlimited permission to copy, distribute and modify it.
131cc69409Smrg## -------------------- ##
141cc69409Smrg## M4sh Initialization. ##
151cc69409Smrg## -------------------- ##
162c393a42Smrg
172c393a42Smrg# Be more Bourne compatible
182c393a42SmrgDUALCASE=1; export DUALCASE # for MKS sh
192c393a42Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
202c393a42Smrg  emulate sh
212c393a42Smrg  NULLCMD=:
222c393a42Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23a6844aabSmrg  # is contrary to our usage.  Disable this feature.
242c393a42Smrg  alias -g '${1+"$@"}'='"$@"'
252c393a42Smrg  setopt NO_GLOB_SUBST
262c393a42Smrgelse
272c393a42Smrg  case `(set -o) 2>/dev/null` in #(
282c393a42Smrg  *posix*) :
292c393a42Smrg    set -o posix ;; #(
302c393a42Smrg  *) :
312c393a42Smrg     ;;
322c393a42Smrgesac
332c393a42Smrgfi
342c393a42Smrg
352c393a42Smrg
362c393a42Smrgas_nl='
372c393a42Smrg'
382c393a42Smrgexport as_nl
392c393a42Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
402c393a42Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
412c393a42Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
422c393a42Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
432c393a42Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
442c393a42Smrg# but without wasting forks for bash or zsh.
452c393a42Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
462c393a42Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
472c393a42Smrg  as_echo='print -r --'
482c393a42Smrg  as_echo_n='print -rn --'
492c393a42Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
502c393a42Smrg  as_echo='printf %s\n'
512c393a42Smrg  as_echo_n='printf %s'
522c393a42Smrgelse
532c393a42Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
542c393a42Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
552c393a42Smrg    as_echo_n='/usr/ucb/echo -n'
562c393a42Smrg  else
572c393a42Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
582c393a42Smrg    as_echo_n_body='eval
592c393a42Smrg      arg=$1;
602c393a42Smrg      case $arg in #(
612c393a42Smrg      *"$as_nl"*)
622c393a42Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
632c393a42Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
642c393a42Smrg      esac;
652c393a42Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66a6844aabSmrg    '
672c393a42Smrg    export as_echo_n_body
68a6844aabSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
69a6844aabSmrg  fi
70a6844aabSmrg  export as_echo_body
71a6844aabSmrg  as_echo='sh -c $as_echo_body as_echo'
726fc018e4Smrgfi
731cc69409Smrg
741cc69409Smrg# The user is always right.
756fc018e4Smrgif test "${PATH_SEPARATOR+set}" != set; then
762c393a42Smrg  PATH_SEPARATOR=:
772c393a42Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78a6844aabSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79a6844aabSmrg      PATH_SEPARATOR=';'
801cc69409Smrg  }
812c393a42Smrgfi
822c393a42Smrg
832c393a42Smrg
842c393a42Smrg# IFS
852c393a42Smrg# We need space, tab and new line, in precisely that order.  Quoting is
862c393a42Smrg# there to prevent editors from complaining about space-tab.
87a6844aabSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88a6844aabSmrg# splitting by setting IFS to empty value.)
89a6844aabSmrgIFS=" ""	$as_nl"
90a6844aabSmrg
912c393a42Smrg# Find who we are.  Look in the path if we contain no directory separator.
922c393a42Smrgas_myself=
932c393a42Smrgcase $0 in #((
942c393a42Smrg  *[\\/]* ) as_myself=$0 ;;
952c393a42Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
962c393a42Smrgfor as_dir in $PATH
972c393a42Smrgdo
982c393a42Smrg  IFS=$as_save_IFS
992c393a42Smrg  test -z "$as_dir" && as_dir=.
1002c393a42Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1012c393a42Smrg  done
1022c393a42SmrgIFS=$as_save_IFS
1032c393a42Smrg
1042c393a42Smrg     ;;
105a6844aabSmrgesac
1061cc69409Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1071cc69409Smrg# in which case we are not to be found in the path.
1082c393a42Smrgif test "x$as_myself" = x; then
1092c393a42Smrg  as_myself=$0
1102c393a42Smrgfi
111a6844aabSmrgif test ! -f "$as_myself"; then
112a6844aabSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1131cc69409Smrg  exit 1
1142c393a42Smrgfi
1152c393a42Smrg
116a6844aabSmrg# Unset variables that we do not need and which cause bugs (e.g. in
1171cc69409Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1182c393a42Smrg# suppresses any "Segmentation fault" message there.  '((' could
1192c393a42Smrg# trigger a bug in pdksh 5.2.14.
1206fc018e4Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
1211cc69409Smrgdo eval test x\${$as_var+set} = xset \
1221cc69409Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1231cc69409Smrgdone
1241cc69409SmrgPS1='$ '
1251cc69409SmrgPS2='> '
1261cc69409SmrgPS4='+ '
1276fc018e4Smrg
1282c393a42Smrg# NLS nuisances.
1292c393a42SmrgLC_ALL=C
1302c393a42Smrgexport LC_ALL
1312c393a42SmrgLANGUAGE=C
1322c393a42Smrgexport LANGUAGE
1332c393a42Smrg
1342c393a42Smrg# CDPATH.
1352c393a42Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136a6844aabSmrg
137a6844aabSmrg# Use a proper internal environment variable to ensure we don't fall
138a6844aabSmrg  # into an infinite loop, continuously re-executing ourselves.
139a6844aabSmrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140a6844aabSmrg    _as_can_reexec=no; export _as_can_reexec;
141a6844aabSmrg    # We cannot yet assume a decent shell, so we have to provide a
142a6844aabSmrg# neutralization value for shells without unset; and this also
143a6844aabSmrg# works around shells that cannot unset nonexistent variables.
1442c393a42Smrg# Preserve -v and -x to the replacement shell.
1452c393a42SmrgBASH_ENV=/dev/null
1462c393a42SmrgENV=/dev/null
1472c393a42Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
1482c393a42Smrgcase $- in # ((((
1492c393a42Smrg  *v*x* | *x*v* ) as_opts=-vx ;;
1502c393a42Smrg  *v* ) as_opts=-v ;;
1512c393a42Smrg  *x* ) as_opts=-x ;;
1522c393a42Smrg  * ) as_opts= ;;
1532c393a42Smrgesac
1542c393a42Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
1552c393a42Smrg# Admittedly, this is quite paranoid, since all the known shells bail
1562c393a42Smrg# out after a failed `exec'.
1572c393a42Smrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
1582c393a42Smrgas_fn_exit 255
1592c393a42Smrg  fi
1602c393a42Smrg  # We don't want this to propagate to other subprocesses.
1612c393a42Smrg          { _as_can_reexec=; unset _as_can_reexec;}
1622c393a42Smrgif test "x$CONFIG_SHELL" = x; then
1632c393a42Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
1642c393a42Smrg  emulate sh
1652c393a42Smrg  NULLCMD=:
1662c393a42Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1672c393a42Smrg  # is contrary to our usage.  Disable this feature.
1682c393a42Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1692c393a42Smrg  setopt NO_GLOB_SUBST
1702c393a42Smrgelse
1712c393a42Smrg  case \`(set -o) 2>/dev/null\` in #(
1722c393a42Smrg  *posix*) :
1732c393a42Smrg    set -o posix ;; #(
1742c393a42Smrg  *) :
1752c393a42Smrg     ;;
1762c393a42Smrgesac
1772c393a42Smrgfi
1782c393a42Smrg"
1792c393a42Smrg  as_required="as_fn_return () { (exit \$1); }
1802c393a42Smrgas_fn_success () { as_fn_return 0; }
1812c393a42Smrgas_fn_failure () { as_fn_return 1; }
1822c393a42Smrgas_fn_ret_success () { return 0; }
1832c393a42Smrgas_fn_ret_failure () { return 1; }
1842c393a42Smrg
1852c393a42Smrgexitcode=0
1862c393a42Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1872c393a42Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188a6844aabSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189a6844aabSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190a6844aabSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191a6844aabSmrg
192a6844aabSmrgelse
193a6844aabSmrg  exitcode=1; echo positional parameters were not saved.
194ca08ab68Smrgfi
195a6844aabSmrgtest x\$exitcode = x0 || exit 1
196a6844aabSmrgtest -x / || exit 1"
197a6844aabSmrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1982c393a42Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1992c393a42Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
2002c393a42Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
2012c393a42Smrgtest \$(( 1 + 1 )) = 2 || exit 1
2022c393a42Smrg
2032c393a42Smrg  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
2042c393a42Smrg    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2052c393a42Smrg    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
2062c393a42Smrg    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
2072c393a42Smrg    PATH=/empty FPATH=/empty; export PATH FPATH
2082c393a42Smrg    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
2092c393a42Smrg      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
2102c393a42Smrg  if (eval "$as_required") 2>/dev/null; then :
2112c393a42Smrg  as_have_required=yes
2122c393a42Smrgelse
2132c393a42Smrg  as_have_required=no
2142c393a42Smrgfi
2152c393a42Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
2162c393a42Smrg
2172c393a42Smrgelse
2182c393a42Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192c393a42Smrgas_found=false
2202c393a42Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2212c393a42Smrgdo
2222c393a42Smrg  IFS=$as_save_IFS
2232c393a42Smrg  test -z "$as_dir" && as_dir=.
2242c393a42Smrg  as_found=:
2252c393a42Smrg  case $as_dir in #(
2262c393a42Smrg	 /*)
2272c393a42Smrg	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='xf86-video-vboxvideo'
593PACKAGE_TARNAME='xf86-video-vboxvideo'
594PACKAGE_VERSION='1.0.0'
595PACKAGE_STRING='xf86-video-vboxvideo 1.0.0'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597PACKAGE_URL=''
598
599ac_unique_file="Makefile.am"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640DRIVER_NAME
641PCIACCESS_LIBS
642PCIACCESS_CFLAGS
643XEXT_LIBS
644XEXT_CFLAGS
645XORG_LIBS
646XORG_CFLAGS
647moduledir
648LT_SYS_LIBRARY_PATH
649OTOOL64
650OTOOL
651LIPO
652NMEDIT
653DSYMUTIL
654MANIFEST_TOOL
655RANLIB
656ac_ct_AR
657AR
658DLLTOOL
659OBJDUMP
660LN_S
661NM
662ac_ct_DUMPBIN
663DUMPBIN
664LD
665FGREP
666LIBTOOL
667MAN_SUBSTS
668XORG_MAN_PAGE
669ADMIN_MAN_DIR
670DRIVER_MAN_DIR
671MISC_MAN_DIR
672FILE_MAN_DIR
673LIB_MAN_DIR
674APP_MAN_DIR
675ADMIN_MAN_SUFFIX
676DRIVER_MAN_SUFFIX
677MISC_MAN_SUFFIX
678FILE_MAN_SUFFIX
679LIB_MAN_SUFFIX
680APP_MAN_SUFFIX
681SED
682host_os
683host_vendor
684host_cpu
685host
686build_os
687build_vendor
688build_cpu
689build
690INSTALL_CMD
691PKG_CONFIG_LIBDIR
692PKG_CONFIG_PATH
693PKG_CONFIG
694CHANGELOG_CMD
695STRICT_CFLAGS
696CWARNFLAGS
697BASE_CFLAGS
698EGREP
699GREP
700CPP
701am__fastdepCC_FALSE
702am__fastdepCC_TRUE
703CCDEPMODE
704am__nodep
705AMDEPBACKSLASH
706AMDEP_FALSE
707AMDEP_TRUE
708am__quote
709am__include
710DEPDIR
711OBJEXT
712EXEEXT
713ac_ct_CC
714CPPFLAGS
715LDFLAGS
716CFLAGS
717CC
718AM_BACKSLASH
719AM_DEFAULT_VERBOSITY
720AM_DEFAULT_V
721AM_V
722am__untar
723am__tar
724AMTAR
725am__leading_dot
726SET_MAKE
727AWK
728mkdir_p
729MKDIR_P
730INSTALL_STRIP_PROGRAM
731STRIP
732install_sh
733MAKEINFO
734AUTOHEADER
735AUTOMAKE
736AUTOCONF
737ACLOCAL
738VERSION
739PACKAGE
740CYGPATH_W
741am__isrc
742INSTALL_DATA
743INSTALL_SCRIPT
744INSTALL_PROGRAM
745target_alias
746host_alias
747build_alias
748LIBS
749ECHO_T
750ECHO_N
751ECHO_C
752DEFS
753mandir
754localedir
755libdir
756psdir
757pdfdir
758dvidir
759htmldir
760infodir
761docdir
762oldincludedir
763includedir
764runstatedir
765localstatedir
766sharedstatedir
767sysconfdir
768datadir
769datarootdir
770libexecdir
771sbindir
772bindir
773program_transform_name
774prefix
775exec_prefix
776PACKAGE_URL
777PACKAGE_BUGREPORT
778PACKAGE_STRING
779PACKAGE_VERSION
780PACKAGE_TARNAME
781PACKAGE_NAME
782PATH_SEPARATOR
783SHELL'
784ac_subst_files=''
785ac_user_opts='
786enable_option_checking
787enable_silent_rules
788enable_dependency_tracking
789enable_selective_werror
790enable_strict_compilation
791enable_static
792enable_shared
793with_pic
794enable_fast_install
795with_aix_soname
796with_gnu_ld
797with_sysroot
798enable_libtool_lock
799with_xorg_module_dir
800'
801      ac_precious_vars='build_alias
802host_alias
803target_alias
804CC
805CFLAGS
806LDFLAGS
807LIBS
808CPPFLAGS
809CPP
810PKG_CONFIG
811PKG_CONFIG_PATH
812PKG_CONFIG_LIBDIR
813LT_SYS_LIBRARY_PATH
814XORG_CFLAGS
815XORG_LIBS
816XEXT_CFLAGS
817XEXT_LIBS
818PCIACCESS_CFLAGS
819PCIACCESS_LIBS'
820
821
822# Initialize some variables set by options.
823ac_init_help=
824ac_init_version=false
825ac_unrecognized_opts=
826ac_unrecognized_sep=
827# The variables have the same names as the options, with
828# dashes changed to underlines.
829cache_file=/dev/null
830exec_prefix=NONE
831no_create=
832no_recursion=
833prefix=NONE
834program_prefix=NONE
835program_suffix=NONE
836program_transform_name=s,x,x,
837silent=
838site=
839srcdir=
840verbose=
841x_includes=NONE
842x_libraries=NONE
843
844# Installation directory options.
845# These are left unexpanded so users can "make install exec_prefix=/foo"
846# and all the variables that are supposed to be based on exec_prefix
847# by default will actually change.
848# Use braces instead of parens because sh, perl, etc. also accept them.
849# (The list follows the same order as the GNU Coding Standards.)
850bindir='${exec_prefix}/bin'
851sbindir='${exec_prefix}/sbin'
852libexecdir='${exec_prefix}/libexec'
853datarootdir='${prefix}/share'
854datadir='${datarootdir}'
855sysconfdir='${prefix}/etc'
856sharedstatedir='${prefix}/com'
857localstatedir='${prefix}/var'
858runstatedir='${localstatedir}/run'
859includedir='${prefix}/include'
860oldincludedir='/usr/include'
861docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862infodir='${datarootdir}/info'
863htmldir='${docdir}'
864dvidir='${docdir}'
865pdfdir='${docdir}'
866psdir='${docdir}'
867libdir='${exec_prefix}/lib'
868localedir='${datarootdir}/locale'
869mandir='${datarootdir}/man'
870
871ac_prev=
872ac_dashdash=
873for ac_option
874do
875  # If the previous option needs an argument, assign it.
876  if test -n "$ac_prev"; then
877    eval $ac_prev=\$ac_option
878    ac_prev=
879    continue
880  fi
881
882  case $ac_option in
883  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884  *=)   ac_optarg= ;;
885  *)    ac_optarg=yes ;;
886  esac
887
888  # Accept the important Cygnus configure options, so we can diagnose typos.
889
890  case $ac_dashdash$ac_option in
891  --)
892    ac_dashdash=yes ;;
893
894  -bindir | --bindir | --bindi | --bind | --bin | --bi)
895    ac_prev=bindir ;;
896  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897    bindir=$ac_optarg ;;
898
899  -build | --build | --buil | --bui | --bu)
900    ac_prev=build_alias ;;
901  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902    build_alias=$ac_optarg ;;
903
904  -cache-file | --cache-file | --cache-fil | --cache-fi \
905  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906    ac_prev=cache_file ;;
907  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909    cache_file=$ac_optarg ;;
910
911  --config-cache | -C)
912    cache_file=config.cache ;;
913
914  -datadir | --datadir | --datadi | --datad)
915    ac_prev=datadir ;;
916  -datadir=* | --datadir=* | --datadi=* | --datad=*)
917    datadir=$ac_optarg ;;
918
919  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920  | --dataroo | --dataro | --datar)
921    ac_prev=datarootdir ;;
922  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924    datarootdir=$ac_optarg ;;
925
926  -disable-* | --disable-*)
927    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928    # Reject names that are not valid shell variable names.
929    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930      as_fn_error $? "invalid feature name: $ac_useropt"
931    ac_useropt_orig=$ac_useropt
932    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933    case $ac_user_opts in
934      *"
935"enable_$ac_useropt"
936"*) ;;
937      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938	 ac_unrecognized_sep=', ';;
939    esac
940    eval enable_$ac_useropt=no ;;
941
942  -docdir | --docdir | --docdi | --doc | --do)
943    ac_prev=docdir ;;
944  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945    docdir=$ac_optarg ;;
946
947  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948    ac_prev=dvidir ;;
949  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950    dvidir=$ac_optarg ;;
951
952  -enable-* | --enable-*)
953    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954    # Reject names that are not valid shell variable names.
955    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956      as_fn_error $? "invalid feature name: $ac_useropt"
957    ac_useropt_orig=$ac_useropt
958    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959    case $ac_user_opts in
960      *"
961"enable_$ac_useropt"
962"*) ;;
963      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964	 ac_unrecognized_sep=', ';;
965    esac
966    eval enable_$ac_useropt=\$ac_optarg ;;
967
968  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970  | --exec | --exe | --ex)
971    ac_prev=exec_prefix ;;
972  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974  | --exec=* | --exe=* | --ex=*)
975    exec_prefix=$ac_optarg ;;
976
977  -gas | --gas | --ga | --g)
978    # Obsolete; use --with-gas.
979    with_gas=yes ;;
980
981  -help | --help | --hel | --he | -h)
982    ac_init_help=long ;;
983  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984    ac_init_help=recursive ;;
985  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986    ac_init_help=short ;;
987
988  -host | --host | --hos | --ho)
989    ac_prev=host_alias ;;
990  -host=* | --host=* | --hos=* | --ho=*)
991    host_alias=$ac_optarg ;;
992
993  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994    ac_prev=htmldir ;;
995  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996  | --ht=*)
997    htmldir=$ac_optarg ;;
998
999  -includedir | --includedir | --includedi | --included | --include \
1000  | --includ | --inclu | --incl | --inc)
1001    ac_prev=includedir ;;
1002  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003  | --includ=* | --inclu=* | --incl=* | --inc=*)
1004    includedir=$ac_optarg ;;
1005
1006  -infodir | --infodir | --infodi | --infod | --info | --inf)
1007    ac_prev=infodir ;;
1008  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009    infodir=$ac_optarg ;;
1010
1011  -libdir | --libdir | --libdi | --libd)
1012    ac_prev=libdir ;;
1013  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014    libdir=$ac_optarg ;;
1015
1016  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017  | --libexe | --libex | --libe)
1018    ac_prev=libexecdir ;;
1019  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020  | --libexe=* | --libex=* | --libe=*)
1021    libexecdir=$ac_optarg ;;
1022
1023  -localedir | --localedir | --localedi | --localed | --locale)
1024    ac_prev=localedir ;;
1025  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026    localedir=$ac_optarg ;;
1027
1028  -localstatedir | --localstatedir | --localstatedi | --localstated \
1029  | --localstate | --localstat | --localsta | --localst | --locals)
1030    ac_prev=localstatedir ;;
1031  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033    localstatedir=$ac_optarg ;;
1034
1035  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036    ac_prev=mandir ;;
1037  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038    mandir=$ac_optarg ;;
1039
1040  -nfp | --nfp | --nf)
1041    # Obsolete; use --without-fp.
1042    with_fp=no ;;
1043
1044  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045  | --no-cr | --no-c | -n)
1046    no_create=yes ;;
1047
1048  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050    no_recursion=yes ;;
1051
1052  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054  | --oldin | --oldi | --old | --ol | --o)
1055    ac_prev=oldincludedir ;;
1056  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059    oldincludedir=$ac_optarg ;;
1060
1061  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062    ac_prev=prefix ;;
1063  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064    prefix=$ac_optarg ;;
1065
1066  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067  | --program-pre | --program-pr | --program-p)
1068    ac_prev=program_prefix ;;
1069  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071    program_prefix=$ac_optarg ;;
1072
1073  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074  | --program-suf | --program-su | --program-s)
1075    ac_prev=program_suffix ;;
1076  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078    program_suffix=$ac_optarg ;;
1079
1080  -program-transform-name | --program-transform-name \
1081  | --program-transform-nam | --program-transform-na \
1082  | --program-transform-n | --program-transform- \
1083  | --program-transform | --program-transfor \
1084  | --program-transfo | --program-transf \
1085  | --program-trans | --program-tran \
1086  | --progr-tra | --program-tr | --program-t)
1087    ac_prev=program_transform_name ;;
1088  -program-transform-name=* | --program-transform-name=* \
1089  | --program-transform-nam=* | --program-transform-na=* \
1090  | --program-transform-n=* | --program-transform-=* \
1091  | --program-transform=* | --program-transfor=* \
1092  | --program-transfo=* | --program-transf=* \
1093  | --program-trans=* | --program-tran=* \
1094  | --progr-tra=* | --program-tr=* | --program-t=*)
1095    program_transform_name=$ac_optarg ;;
1096
1097  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098    ac_prev=pdfdir ;;
1099  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100    pdfdir=$ac_optarg ;;
1101
1102  -psdir | --psdir | --psdi | --psd | --ps)
1103    ac_prev=psdir ;;
1104  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105    psdir=$ac_optarg ;;
1106
1107  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108  | -silent | --silent | --silen | --sile | --sil)
1109    silent=yes ;;
1110
1111  -runstatedir | --runstatedir | --runstatedi | --runstated \
1112  | --runstate | --runstat | --runsta | --runst | --runs \
1113  | --run | --ru | --r)
1114    ac_prev=runstatedir ;;
1115  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1116  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1117  | --run=* | --ru=* | --r=*)
1118    runstatedir=$ac_optarg ;;
1119
1120  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121    ac_prev=sbindir ;;
1122  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123  | --sbi=* | --sb=*)
1124    sbindir=$ac_optarg ;;
1125
1126  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128  | --sharedst | --shareds | --shared | --share | --shar \
1129  | --sha | --sh)
1130    ac_prev=sharedstatedir ;;
1131  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134  | --sha=* | --sh=*)
1135    sharedstatedir=$ac_optarg ;;
1136
1137  -site | --site | --sit)
1138    ac_prev=site ;;
1139  -site=* | --site=* | --sit=*)
1140    site=$ac_optarg ;;
1141
1142  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143    ac_prev=srcdir ;;
1144  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145    srcdir=$ac_optarg ;;
1146
1147  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148  | --syscon | --sysco | --sysc | --sys | --sy)
1149    ac_prev=sysconfdir ;;
1150  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152    sysconfdir=$ac_optarg ;;
1153
1154  -target | --target | --targe | --targ | --tar | --ta | --t)
1155    ac_prev=target_alias ;;
1156  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157    target_alias=$ac_optarg ;;
1158
1159  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160    verbose=yes ;;
1161
1162  -version | --version | --versio | --versi | --vers | -V)
1163    ac_init_version=: ;;
1164
1165  -with-* | --with-*)
1166    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167    # Reject names that are not valid shell variable names.
1168    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169      as_fn_error $? "invalid package name: $ac_useropt"
1170    ac_useropt_orig=$ac_useropt
1171    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172    case $ac_user_opts in
1173      *"
1174"with_$ac_useropt"
1175"*) ;;
1176      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177	 ac_unrecognized_sep=', ';;
1178    esac
1179    eval with_$ac_useropt=\$ac_optarg ;;
1180
1181  -without-* | --without-*)
1182    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183    # Reject names that are not valid shell variable names.
1184    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185      as_fn_error $? "invalid package name: $ac_useropt"
1186    ac_useropt_orig=$ac_useropt
1187    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188    case $ac_user_opts in
1189      *"
1190"with_$ac_useropt"
1191"*) ;;
1192      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193	 ac_unrecognized_sep=', ';;
1194    esac
1195    eval with_$ac_useropt=no ;;
1196
1197  --x)
1198    # Obsolete; use --with-x.
1199    with_x=yes ;;
1200
1201  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202  | --x-incl | --x-inc | --x-in | --x-i)
1203    ac_prev=x_includes ;;
1204  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206    x_includes=$ac_optarg ;;
1207
1208  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210    ac_prev=x_libraries ;;
1211  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213    x_libraries=$ac_optarg ;;
1214
1215  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1216Try \`$0 --help' for more information"
1217    ;;
1218
1219  *=*)
1220    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221    # Reject names that are not valid shell variable names.
1222    case $ac_envvar in #(
1223      '' | [0-9]* | *[!_$as_cr_alnum]* )
1224      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225    esac
1226    eval $ac_envvar=\$ac_optarg
1227    export $ac_envvar ;;
1228
1229  *)
1230    # FIXME: should be removed in autoconf 3.0.
1231    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235    ;;
1236
1237  esac
1238done
1239
1240if test -n "$ac_prev"; then
1241  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242  as_fn_error $? "missing argument to $ac_option"
1243fi
1244
1245if test -n "$ac_unrecognized_opts"; then
1246  case $enable_option_checking in
1247    no) ;;
1248    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1249    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250  esac
1251fi
1252
1253# Check all directory arguments for consistency.
1254for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255		datadir sysconfdir sharedstatedir localstatedir includedir \
1256		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257		libdir localedir mandir runstatedir
1258do
1259  eval ac_val=\$$ac_var
1260  # Remove trailing slashes.
1261  case $ac_val in
1262    */ )
1263      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264      eval $ac_var=\$ac_val;;
1265  esac
1266  # Be sure to have absolute directory names.
1267  case $ac_val in
1268    [\\/$]* | ?:[\\/]* )  continue;;
1269    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270  esac
1271  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1272done
1273
1274# There might be people who depend on the old broken behavior: `$host'
1275# used to hold the argument of --host etc.
1276# FIXME: To remove some day.
1277build=$build_alias
1278host=$host_alias
1279target=$target_alias
1280
1281# FIXME: To remove some day.
1282if test "x$host_alias" != x; then
1283  if test "x$build_alias" = x; then
1284    cross_compiling=maybe
1285  elif test "x$build_alias" != "x$host_alias"; then
1286    cross_compiling=yes
1287  fi
1288fi
1289
1290ac_tool_prefix=
1291test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293test "$silent" = yes && exec 6>/dev/null
1294
1295
1296ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297ac_ls_di=`ls -di .` &&
1298ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299  as_fn_error $? "working directory cannot be determined"
1300test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301  as_fn_error $? "pwd does not report name of working directory"
1302
1303
1304# Find the source files, if location was not specified.
1305if test -z "$srcdir"; then
1306  ac_srcdir_defaulted=yes
1307  # Try the directory containing this script, then the parent directory.
1308  ac_confdir=`$as_dirname -- "$as_myself" ||
1309$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310	 X"$as_myself" : 'X\(//\)[^/]' \| \
1311	 X"$as_myself" : 'X\(//\)$' \| \
1312	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313$as_echo X"$as_myself" |
1314    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315	    s//\1/
1316	    q
1317	  }
1318	  /^X\(\/\/\)[^/].*/{
1319	    s//\1/
1320	    q
1321	  }
1322	  /^X\(\/\/\)$/{
1323	    s//\1/
1324	    q
1325	  }
1326	  /^X\(\/\).*/{
1327	    s//\1/
1328	    q
1329	  }
1330	  s/.*/./; q'`
1331  srcdir=$ac_confdir
1332  if test ! -r "$srcdir/$ac_unique_file"; then
1333    srcdir=..
1334  fi
1335else
1336  ac_srcdir_defaulted=no
1337fi
1338if test ! -r "$srcdir/$ac_unique_file"; then
1339  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341fi
1342ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343ac_abs_confdir=`(
1344	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345	pwd)`
1346# When building in place, set srcdir=.
1347if test "$ac_abs_confdir" = "$ac_pwd"; then
1348  srcdir=.
1349fi
1350# Remove unnecessary trailing slashes from srcdir.
1351# Double slashes in file names in object file debugging info
1352# mess up M-x gdb in Emacs.
1353case $srcdir in
1354*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355esac
1356for ac_var in $ac_precious_vars; do
1357  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358  eval ac_env_${ac_var}_value=\$${ac_var}
1359  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361done
1362
1363#
1364# Report the --help message.
1365#
1366if test "$ac_init_help" = "long"; then
1367  # Omit some internal or obsolete options to make the list less imposing.
1368  # This message is too long to be a string in the A/UX 3.1 sh.
1369  cat <<_ACEOF
1370\`configure' configures xf86-video-vboxvideo 1.0.0 to adapt to many kinds of systems.
1371
1372Usage: $0 [OPTION]... [VAR=VALUE]...
1373
1374To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375VAR=VALUE.  See below for descriptions of some of the useful variables.
1376
1377Defaults for the options are specified in brackets.
1378
1379Configuration:
1380  -h, --help              display this help and exit
1381      --help=short        display options specific to this package
1382      --help=recursive    display the short help of all the included packages
1383  -V, --version           display version information and exit
1384  -q, --quiet, --silent   do not print \`checking ...' messages
1385      --cache-file=FILE   cache test results in FILE [disabled]
1386  -C, --config-cache      alias for \`--cache-file=config.cache'
1387  -n, --no-create         do not create output files
1388      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1389
1390Installation directories:
1391  --prefix=PREFIX         install architecture-independent files in PREFIX
1392                          [$ac_default_prefix]
1393  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1394                          [PREFIX]
1395
1396By default, \`make install' will install all the files in
1397\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1398an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399for instance \`--prefix=\$HOME'.
1400
1401For better control, use the options below.
1402
1403Fine tuning of the installation directories:
1404  --bindir=DIR            user executables [EPREFIX/bin]
1405  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1406  --libexecdir=DIR        program executables [EPREFIX/libexec]
1407  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1408  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1409  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1410  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1411  --libdir=DIR            object code libraries [EPREFIX/lib]
1412  --includedir=DIR        C header files [PREFIX/include]
1413  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1414  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1415  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1416  --infodir=DIR           info documentation [DATAROOTDIR/info]
1417  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1418  --mandir=DIR            man documentation [DATAROOTDIR/man]
1419  --docdir=DIR            documentation root
1420                          [DATAROOTDIR/doc/xf86-video-vboxvideo]
1421  --htmldir=DIR           html documentation [DOCDIR]
1422  --dvidir=DIR            dvi documentation [DOCDIR]
1423  --pdfdir=DIR            pdf documentation [DOCDIR]
1424  --psdir=DIR             ps documentation [DOCDIR]
1425_ACEOF
1426
1427  cat <<\_ACEOF
1428
1429Program names:
1430  --program-prefix=PREFIX            prepend PREFIX to installed program names
1431  --program-suffix=SUFFIX            append SUFFIX to installed program names
1432  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1433
1434System types:
1435  --build=BUILD     configure for building on BUILD [guessed]
1436  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1437_ACEOF
1438fi
1439
1440if test -n "$ac_init_help"; then
1441  case $ac_init_help in
1442     short | recursive ) echo "Configuration of xf86-video-vboxvideo 1.0.0:";;
1443   esac
1444  cat <<\_ACEOF
1445
1446Optional Features:
1447  --disable-option-checking  ignore unrecognized --enable/--with options
1448  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1449  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1450  --enable-silent-rules   less verbose build output (undo: "make V=1")
1451  --disable-silent-rules  verbose build output (undo: "make V=0")
1452  --enable-dependency-tracking
1453                          do not reject slow dependency extractors
1454  --disable-dependency-tracking
1455                          speeds up one-time build
1456  --disable-selective-werror
1457                          Turn off selective compiler errors. (default:
1458                          enabled)
1459  --enable-strict-compilation
1460                          Enable all warnings from compiler and make them
1461                          errors (default: disabled)
1462  --enable-static[=PKGS]  build static libraries [default=no]
1463  --enable-shared[=PKGS]  build shared libraries [default=yes]
1464  --enable-fast-install[=PKGS]
1465                          optimize for fast installation [default=yes]
1466  --disable-libtool-lock  avoid locking (might break parallel builds)
1467
1468Optional Packages:
1469  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1470  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1471  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1472                          both]
1473  --with-aix-soname=aix|svr4|both
1474                          shared library versioning (aka "SONAME") variant to
1475                          provide on AIX, [default=aix].
1476  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1477  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1478                          compiler's sysroot if not specified).
1479  --with-xorg-module-dir=DIR
1480
1481Some influential environment variables:
1482  CC          C compiler command
1483  CFLAGS      C compiler flags
1484  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1485              nonstandard directory <lib dir>
1486  LIBS        libraries to pass to the linker, e.g. -l<library>
1487  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1488              you have headers in a nonstandard directory <include dir>
1489  CPP         C preprocessor
1490  PKG_CONFIG  path to pkg-config utility
1491  PKG_CONFIG_PATH
1492              directories to add to pkg-config's search path
1493  PKG_CONFIG_LIBDIR
1494              path overriding pkg-config's built-in search path
1495  LT_SYS_LIBRARY_PATH
1496              User-defined run-time library search path.
1497  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1498  XORG_LIBS   linker flags for XORG, overriding pkg-config
1499  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1500  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1501  PCIACCESS_CFLAGS
1502              C compiler flags for PCIACCESS, overriding pkg-config
1503  PCIACCESS_LIBS
1504              linker flags for PCIACCESS, overriding pkg-config
1505
1506Use these variables to override the choices made by `configure' or to help
1507it to find libraries and programs with nonstandard names/locations.
1508
1509Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1510_ACEOF
1511ac_status=$?
1512fi
1513
1514if test "$ac_init_help" = "recursive"; then
1515  # If there are subdirs, report their specific --help.
1516  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517    test -d "$ac_dir" ||
1518      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1519      continue
1520    ac_builddir=.
1521
1522case "$ac_dir" in
1523.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524*)
1525  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1526  # A ".." for each directory in $ac_dir_suffix.
1527  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1528  case $ac_top_builddir_sub in
1529  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1531  esac ;;
1532esac
1533ac_abs_top_builddir=$ac_pwd
1534ac_abs_builddir=$ac_pwd$ac_dir_suffix
1535# for backward compatibility:
1536ac_top_builddir=$ac_top_build_prefix
1537
1538case $srcdir in
1539  .)  # We are building in place.
1540    ac_srcdir=.
1541    ac_top_srcdir=$ac_top_builddir_sub
1542    ac_abs_top_srcdir=$ac_pwd ;;
1543  [\\/]* | ?:[\\/]* )  # Absolute name.
1544    ac_srcdir=$srcdir$ac_dir_suffix;
1545    ac_top_srcdir=$srcdir
1546    ac_abs_top_srcdir=$srcdir ;;
1547  *) # Relative name.
1548    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1549    ac_top_srcdir=$ac_top_build_prefix$srcdir
1550    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1551esac
1552ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553
1554    cd "$ac_dir" || { ac_status=$?; continue; }
1555    # Check for guested configure.
1556    if test -f "$ac_srcdir/configure.gnu"; then
1557      echo &&
1558      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1559    elif test -f "$ac_srcdir/configure"; then
1560      echo &&
1561      $SHELL "$ac_srcdir/configure" --help=recursive
1562    else
1563      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1564    fi || ac_status=$?
1565    cd "$ac_pwd" || { ac_status=$?; break; }
1566  done
1567fi
1568
1569test -n "$ac_init_help" && exit $ac_status
1570if $ac_init_version; then
1571  cat <<\_ACEOF
1572xf86-video-vboxvideo configure 1.0.0
1573generated by GNU Autoconf 2.69
1574
1575Copyright (C) 2012 Free Software Foundation, Inc.
1576This configure script is free software; the Free Software Foundation
1577gives unlimited permission to copy, distribute and modify it.
1578_ACEOF
1579  exit
1580fi
1581
1582## ------------------------ ##
1583## Autoconf initialization. ##
1584## ------------------------ ##
1585
1586# ac_fn_c_try_compile LINENO
1587# --------------------------
1588# Try to compile conftest.$ac_ext, and return whether this succeeded.
1589ac_fn_c_try_compile ()
1590{
1591  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592  rm -f conftest.$ac_objext
1593  if { { ac_try="$ac_compile"
1594case "(($ac_try" in
1595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596  *) ac_try_echo=$ac_try;;
1597esac
1598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599$as_echo "$ac_try_echo"; } >&5
1600  (eval "$ac_compile") 2>conftest.err
1601  ac_status=$?
1602  if test -s conftest.err; then
1603    grep -v '^ *+' conftest.err >conftest.er1
1604    cat conftest.er1 >&5
1605    mv -f conftest.er1 conftest.err
1606  fi
1607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608  test $ac_status = 0; } && {
1609	 test -z "$ac_c_werror_flag" ||
1610	 test ! -s conftest.err
1611       } && test -s conftest.$ac_objext; then :
1612  ac_retval=0
1613else
1614  $as_echo "$as_me: failed program was:" >&5
1615sed 's/^/| /' conftest.$ac_ext >&5
1616
1617	ac_retval=1
1618fi
1619  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620  as_fn_set_status $ac_retval
1621
1622} # ac_fn_c_try_compile
1623
1624# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1625# ---------------------------------------------
1626# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1627# accordingly.
1628ac_fn_c_check_decl ()
1629{
1630  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631  as_decl_name=`echo $2|sed 's/ *(.*//'`
1632  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1633  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1634$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1635if eval \${$3+:} false; then :
1636  $as_echo_n "(cached) " >&6
1637else
1638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639/* end confdefs.h.  */
1640$4
1641int
1642main ()
1643{
1644#ifndef $as_decl_name
1645#ifdef __cplusplus
1646  (void) $as_decl_use;
1647#else
1648  (void) $as_decl_name;
1649#endif
1650#endif
1651
1652  ;
1653  return 0;
1654}
1655_ACEOF
1656if ac_fn_c_try_compile "$LINENO"; then :
1657  eval "$3=yes"
1658else
1659  eval "$3=no"
1660fi
1661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1662fi
1663eval ac_res=\$$3
1664	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665$as_echo "$ac_res" >&6; }
1666  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667
1668} # ac_fn_c_check_decl
1669
1670# ac_fn_c_try_cpp LINENO
1671# ----------------------
1672# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1673ac_fn_c_try_cpp ()
1674{
1675  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676  if { { ac_try="$ac_cpp conftest.$ac_ext"
1677case "(($ac_try" in
1678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679  *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1684  ac_status=$?
1685  if test -s conftest.err; then
1686    grep -v '^ *+' conftest.err >conftest.er1
1687    cat conftest.er1 >&5
1688    mv -f conftest.er1 conftest.err
1689  fi
1690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691  test $ac_status = 0; } > conftest.i && {
1692	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1693	 test ! -s conftest.err
1694       }; then :
1695  ac_retval=0
1696else
1697  $as_echo "$as_me: failed program was:" >&5
1698sed 's/^/| /' conftest.$ac_ext >&5
1699
1700    ac_retval=1
1701fi
1702  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703  as_fn_set_status $ac_retval
1704
1705} # ac_fn_c_try_cpp
1706
1707# ac_fn_c_try_run LINENO
1708# ----------------------
1709# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1710# that executables *can* be run.
1711ac_fn_c_try_run ()
1712{
1713  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714  if { { ac_try="$ac_link"
1715case "(($ac_try" in
1716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717  *) ac_try_echo=$ac_try;;
1718esac
1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720$as_echo "$ac_try_echo"; } >&5
1721  (eval "$ac_link") 2>&5
1722  ac_status=$?
1723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1725  { { case "(($ac_try" in
1726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727  *) ac_try_echo=$ac_try;;
1728esac
1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730$as_echo "$ac_try_echo"; } >&5
1731  (eval "$ac_try") 2>&5
1732  ac_status=$?
1733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734  test $ac_status = 0; }; }; then :
1735  ac_retval=0
1736else
1737  $as_echo "$as_me: program exited with status $ac_status" >&5
1738       $as_echo "$as_me: failed program was:" >&5
1739sed 's/^/| /' conftest.$ac_ext >&5
1740
1741       ac_retval=$ac_status
1742fi
1743  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745  as_fn_set_status $ac_retval
1746
1747} # ac_fn_c_try_run
1748
1749# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1750# -------------------------------------------------------
1751# Tests whether HEADER exists and can be compiled using the include files in
1752# INCLUDES, setting the cache variable VAR accordingly.
1753ac_fn_c_check_header_compile ()
1754{
1755  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757$as_echo_n "checking for $2... " >&6; }
1758if eval \${$3+:} false; then :
1759  $as_echo_n "(cached) " >&6
1760else
1761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762/* end confdefs.h.  */
1763$4
1764#include <$2>
1765_ACEOF
1766if ac_fn_c_try_compile "$LINENO"; then :
1767  eval "$3=yes"
1768else
1769  eval "$3=no"
1770fi
1771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772fi
1773eval ac_res=\$$3
1774	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775$as_echo "$ac_res" >&6; }
1776  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777
1778} # ac_fn_c_check_header_compile
1779
1780# ac_fn_c_try_link LINENO
1781# -----------------------
1782# Try to link conftest.$ac_ext, and return whether this succeeded.
1783ac_fn_c_try_link ()
1784{
1785  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786  rm -f conftest.$ac_objext conftest$ac_exeext
1787  if { { ac_try="$ac_link"
1788case "(($ac_try" in
1789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790  *) ac_try_echo=$ac_try;;
1791esac
1792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793$as_echo "$ac_try_echo"; } >&5
1794  (eval "$ac_link") 2>conftest.err
1795  ac_status=$?
1796  if test -s conftest.err; then
1797    grep -v '^ *+' conftest.err >conftest.er1
1798    cat conftest.er1 >&5
1799    mv -f conftest.er1 conftest.err
1800  fi
1801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802  test $ac_status = 0; } && {
1803	 test -z "$ac_c_werror_flag" ||
1804	 test ! -s conftest.err
1805       } && test -s conftest$ac_exeext && {
1806	 test "$cross_compiling" = yes ||
1807	 test -x conftest$ac_exeext
1808       }; then :
1809  ac_retval=0
1810else
1811  $as_echo "$as_me: failed program was:" >&5
1812sed 's/^/| /' conftest.$ac_ext >&5
1813
1814	ac_retval=1
1815fi
1816  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818  # interfere with the next link command; also delete a directory that is
1819  # left behind by Apple's compiler.  We do this before executing the actions.
1820  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822  as_fn_set_status $ac_retval
1823
1824} # ac_fn_c_try_link
1825
1826# ac_fn_c_check_func LINENO FUNC VAR
1827# ----------------------------------
1828# Tests whether FUNC exists, setting the cache variable VAR accordingly
1829ac_fn_c_check_func ()
1830{
1831  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833$as_echo_n "checking for $2... " >&6; }
1834if eval \${$3+:} false; then :
1835  $as_echo_n "(cached) " >&6
1836else
1837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838/* end confdefs.h.  */
1839/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1841#define $2 innocuous_$2
1842
1843/* System header to define __stub macros and hopefully few prototypes,
1844    which can conflict with char $2 (); below.
1845    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846    <limits.h> exists even on freestanding compilers.  */
1847
1848#ifdef __STDC__
1849# include <limits.h>
1850#else
1851# include <assert.h>
1852#endif
1853
1854#undef $2
1855
1856/* Override any GCC internal prototype to avoid an error.
1857   Use char because int might match the return type of a GCC
1858   builtin and then its argument prototype would still apply.  */
1859#ifdef __cplusplus
1860extern "C"
1861#endif
1862char $2 ();
1863/* The GNU C library defines this for functions which it implements
1864    to always fail with ENOSYS.  Some functions are actually named
1865    something starting with __ and the normal name is an alias.  */
1866#if defined __stub_$2 || defined __stub___$2
1867choke me
1868#endif
1869
1870int
1871main ()
1872{
1873return $2 ();
1874  ;
1875  return 0;
1876}
1877_ACEOF
1878if ac_fn_c_try_link "$LINENO"; then :
1879  eval "$3=yes"
1880else
1881  eval "$3=no"
1882fi
1883rm -f core conftest.err conftest.$ac_objext \
1884    conftest$ac_exeext conftest.$ac_ext
1885fi
1886eval ac_res=\$$3
1887	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888$as_echo "$ac_res" >&6; }
1889  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891} # ac_fn_c_check_func
1892cat >config.log <<_ACEOF
1893This file contains any messages produced by compilers while
1894running configure, to aid debugging if configure makes a mistake.
1895
1896It was created by xf86-video-vboxvideo $as_me 1.0.0, which was
1897generated by GNU Autoconf 2.69.  Invocation command line was
1898
1899  $ $0 $@
1900
1901_ACEOF
1902exec 5>>config.log
1903{
1904cat <<_ASUNAME
1905## --------- ##
1906## Platform. ##
1907## --------- ##
1908
1909hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1910uname -m = `(uname -m) 2>/dev/null || echo unknown`
1911uname -r = `(uname -r) 2>/dev/null || echo unknown`
1912uname -s = `(uname -s) 2>/dev/null || echo unknown`
1913uname -v = `(uname -v) 2>/dev/null || echo unknown`
1914
1915/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1916/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1917
1918/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1919/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1920/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1921/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1922/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1923/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1924/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1925
1926_ASUNAME
1927
1928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929for as_dir in $PATH
1930do
1931  IFS=$as_save_IFS
1932  test -z "$as_dir" && as_dir=.
1933    $as_echo "PATH: $as_dir"
1934  done
1935IFS=$as_save_IFS
1936
1937} >&5
1938
1939cat >&5 <<_ACEOF
1940
1941
1942## ----------- ##
1943## Core tests. ##
1944## ----------- ##
1945
1946_ACEOF
1947
1948
1949# Keep a trace of the command line.
1950# Strip out --no-create and --no-recursion so they do not pile up.
1951# Strip out --silent because we don't want to record it for future runs.
1952# Also quote any args containing shell meta-characters.
1953# Make two passes to allow for proper duplicate-argument suppression.
1954ac_configure_args=
1955ac_configure_args0=
1956ac_configure_args1=
1957ac_must_keep_next=false
1958for ac_pass in 1 2
1959do
1960  for ac_arg
1961  do
1962    case $ac_arg in
1963    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1964    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1965    | -silent | --silent | --silen | --sile | --sil)
1966      continue ;;
1967    *\'*)
1968      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1969    esac
1970    case $ac_pass in
1971    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1972    2)
1973      as_fn_append ac_configure_args1 " '$ac_arg'"
1974      if test $ac_must_keep_next = true; then
1975	ac_must_keep_next=false # Got value, back to normal.
1976      else
1977	case $ac_arg in
1978	  *=* | --config-cache | -C | -disable-* | --disable-* \
1979	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1980	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1981	  | -with-* | --with-* | -without-* | --without-* | --x)
1982	    case "$ac_configure_args0 " in
1983	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1984	    esac
1985	    ;;
1986	  -* ) ac_must_keep_next=true ;;
1987	esac
1988      fi
1989      as_fn_append ac_configure_args " '$ac_arg'"
1990      ;;
1991    esac
1992  done
1993done
1994{ ac_configure_args0=; unset ac_configure_args0;}
1995{ ac_configure_args1=; unset ac_configure_args1;}
1996
1997# When interrupted or exit'd, cleanup temporary files, and complete
1998# config.log.  We remove comments because anyway the quotes in there
1999# would cause problems or look ugly.
2000# WARNING: Use '\'' to represent an apostrophe within the trap.
2001# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2002trap 'exit_status=$?
2003  # Save into config.log some information that might help in debugging.
2004  {
2005    echo
2006
2007    $as_echo "## ---------------- ##
2008## Cache variables. ##
2009## ---------------- ##"
2010    echo
2011    # The following way of writing the cache mishandles newlines in values,
2012(
2013  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2014    eval ac_val=\$$ac_var
2015    case $ac_val in #(
2016    *${as_nl}*)
2017      case $ac_var in #(
2018      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2019$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2020      esac
2021      case $ac_var in #(
2022      _ | IFS | as_nl) ;; #(
2023      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2024      *) { eval $ac_var=; unset $ac_var;} ;;
2025      esac ;;
2026    esac
2027  done
2028  (set) 2>&1 |
2029    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2030    *${as_nl}ac_space=\ *)
2031      sed -n \
2032	"s/'\''/'\''\\\\'\'''\''/g;
2033	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2034      ;; #(
2035    *)
2036      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2037      ;;
2038    esac |
2039    sort
2040)
2041    echo
2042
2043    $as_echo "## ----------------- ##
2044## Output variables. ##
2045## ----------------- ##"
2046    echo
2047    for ac_var in $ac_subst_vars
2048    do
2049      eval ac_val=\$$ac_var
2050      case $ac_val in
2051      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052      esac
2053      $as_echo "$ac_var='\''$ac_val'\''"
2054    done | sort
2055    echo
2056
2057    if test -n "$ac_subst_files"; then
2058      $as_echo "## ------------------- ##
2059## File substitutions. ##
2060## ------------------- ##"
2061      echo
2062      for ac_var in $ac_subst_files
2063      do
2064	eval ac_val=\$$ac_var
2065	case $ac_val in
2066	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2067	esac
2068	$as_echo "$ac_var='\''$ac_val'\''"
2069      done | sort
2070      echo
2071    fi
2072
2073    if test -s confdefs.h; then
2074      $as_echo "## ----------- ##
2075## confdefs.h. ##
2076## ----------- ##"
2077      echo
2078      cat confdefs.h
2079      echo
2080    fi
2081    test "$ac_signal" != 0 &&
2082      $as_echo "$as_me: caught signal $ac_signal"
2083    $as_echo "$as_me: exit $exit_status"
2084  } >&5
2085  rm -f core *.core core.conftest.* &&
2086    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2087    exit $exit_status
2088' 0
2089for ac_signal in 1 2 13 15; do
2090  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2091done
2092ac_signal=0
2093
2094# confdefs.h avoids OS command line length limits that DEFS can exceed.
2095rm -f -r conftest* confdefs.h
2096
2097$as_echo "/* confdefs.h */" > confdefs.h
2098
2099# Predefined preprocessor variables.
2100
2101cat >>confdefs.h <<_ACEOF
2102#define PACKAGE_NAME "$PACKAGE_NAME"
2103_ACEOF
2104
2105cat >>confdefs.h <<_ACEOF
2106#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2107_ACEOF
2108
2109cat >>confdefs.h <<_ACEOF
2110#define PACKAGE_VERSION "$PACKAGE_VERSION"
2111_ACEOF
2112
2113cat >>confdefs.h <<_ACEOF
2114#define PACKAGE_STRING "$PACKAGE_STRING"
2115_ACEOF
2116
2117cat >>confdefs.h <<_ACEOF
2118#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2119_ACEOF
2120
2121cat >>confdefs.h <<_ACEOF
2122#define PACKAGE_URL "$PACKAGE_URL"
2123_ACEOF
2124
2125
2126# Let the site file select an alternate cache file if it wants to.
2127# Prefer an explicitly selected file to automatically selected ones.
2128ac_site_file1=NONE
2129ac_site_file2=NONE
2130if test -n "$CONFIG_SITE"; then
2131  # We do not want a PATH search for config.site.
2132  case $CONFIG_SITE in #((
2133    -*)  ac_site_file1=./$CONFIG_SITE;;
2134    */*) ac_site_file1=$CONFIG_SITE;;
2135    *)   ac_site_file1=./$CONFIG_SITE;;
2136  esac
2137elif test "x$prefix" != xNONE; then
2138  ac_site_file1=$prefix/share/config.site
2139  ac_site_file2=$prefix/etc/config.site
2140else
2141  ac_site_file1=$ac_default_prefix/share/config.site
2142  ac_site_file2=$ac_default_prefix/etc/config.site
2143fi
2144for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2145do
2146  test "x$ac_site_file" = xNONE && continue
2147  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2148    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2149$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2150    sed 's/^/| /' "$ac_site_file" >&5
2151    . "$ac_site_file" \
2152      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2154as_fn_error $? "failed to load site script $ac_site_file
2155See \`config.log' for more details" "$LINENO" 5; }
2156  fi
2157done
2158
2159if test -r "$cache_file"; then
2160  # Some versions of bash will fail to source /dev/null (special files
2161  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2162  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2163    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2164$as_echo "$as_me: loading cache $cache_file" >&6;}
2165    case $cache_file in
2166      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2167      *)                      . "./$cache_file";;
2168    esac
2169  fi
2170else
2171  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2172$as_echo "$as_me: creating cache $cache_file" >&6;}
2173  >$cache_file
2174fi
2175
2176# Check that the precious variables saved in the cache have kept the same
2177# value.
2178ac_cache_corrupted=false
2179for ac_var in $ac_precious_vars; do
2180  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2181  eval ac_new_set=\$ac_env_${ac_var}_set
2182  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2183  eval ac_new_val=\$ac_env_${ac_var}_value
2184  case $ac_old_set,$ac_new_set in
2185    set,)
2186      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2187$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2188      ac_cache_corrupted=: ;;
2189    ,set)
2190      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2191$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2192      ac_cache_corrupted=: ;;
2193    ,);;
2194    *)
2195      if test "x$ac_old_val" != "x$ac_new_val"; then
2196	# differences in whitespace do not lead to failure.
2197	ac_old_val_w=`echo x $ac_old_val`
2198	ac_new_val_w=`echo x $ac_new_val`
2199	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2200	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2201$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2202	  ac_cache_corrupted=:
2203	else
2204	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2205$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2206	  eval $ac_var=\$ac_old_val
2207	fi
2208	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2209$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2210	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2211$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2212      fi;;
2213  esac
2214  # Pass precious variables to config.status.
2215  if test "$ac_new_set" = set; then
2216    case $ac_new_val in
2217    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2218    *) ac_arg=$ac_var=$ac_new_val ;;
2219    esac
2220    case " $ac_configure_args " in
2221      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2222      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2223    esac
2224  fi
2225done
2226if $ac_cache_corrupted; then
2227  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2229  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2230$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2231  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2232fi
2233## -------------------- ##
2234## Main body of script. ##
2235## -------------------- ##
2236
2237ac_ext=c
2238ac_cpp='$CPP $CPPFLAGS'
2239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2241ac_compiler_gnu=$ac_cv_c_compiler_gnu
2242
2243
2244
2245ac_config_headers="$ac_config_headers config.h"
2246
2247ac_aux_dir=
2248for ac_dir in . "$srcdir"/.; do
2249  if test -f "$ac_dir/install-sh"; then
2250    ac_aux_dir=$ac_dir
2251    ac_install_sh="$ac_aux_dir/install-sh -c"
2252    break
2253  elif test -f "$ac_dir/install.sh"; then
2254    ac_aux_dir=$ac_dir
2255    ac_install_sh="$ac_aux_dir/install.sh -c"
2256    break
2257  elif test -f "$ac_dir/shtool"; then
2258    ac_aux_dir=$ac_dir
2259    ac_install_sh="$ac_aux_dir/shtool install -c"
2260    break
2261  fi
2262done
2263if test -z "$ac_aux_dir"; then
2264  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2265fi
2266
2267# These three variables are undocumented and unsupported,
2268# and are intended to be withdrawn in a future Autoconf release.
2269# They can cause serious problems if a builder's source tree is in a directory
2270# whose full name contains unusual characters.
2271ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2272ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2273ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2274
2275
2276
2277# Initialize Automake
2278am__api_version='1.15'
2279
2280# Find a good install program.  We prefer a C program (faster),
2281# so one script is as good as another.  But avoid the broken or
2282# incompatible versions:
2283# SysV /etc/install, /usr/sbin/install
2284# SunOS /usr/etc/install
2285# IRIX /sbin/install
2286# AIX /bin/install
2287# AmigaOS /C/install, which installs bootblocks on floppy discs
2288# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2289# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2290# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2291# OS/2's system install, which has a completely different semantic
2292# ./install, which can be erroneously created by make from ./install.sh.
2293# Reject install programs that cannot install multiple files.
2294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2295$as_echo_n "checking for a BSD-compatible install... " >&6; }
2296if test -z "$INSTALL"; then
2297if ${ac_cv_path_install+:} false; then :
2298  $as_echo_n "(cached) " >&6
2299else
2300  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301for as_dir in $PATH
2302do
2303  IFS=$as_save_IFS
2304  test -z "$as_dir" && as_dir=.
2305    # Account for people who put trailing slashes in PATH elements.
2306case $as_dir/ in #((
2307  ./ | .// | /[cC]/* | \
2308  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2309  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2310  /usr/ucb/* ) ;;
2311  *)
2312    # OSF1 and SCO ODT 3.0 have their own names for install.
2313    # Don't use installbsd from OSF since it installs stuff as root
2314    # by default.
2315    for ac_prog in ginstall scoinst install; do
2316      for ac_exec_ext in '' $ac_executable_extensions; do
2317	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2318	  if test $ac_prog = install &&
2319	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2320	    # AIX install.  It has an incompatible calling convention.
2321	    :
2322	  elif test $ac_prog = install &&
2323	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2324	    # program-specific install script used by HP pwplus--don't use.
2325	    :
2326	  else
2327	    rm -rf conftest.one conftest.two conftest.dir
2328	    echo one > conftest.one
2329	    echo two > conftest.two
2330	    mkdir conftest.dir
2331	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2332	      test -s conftest.one && test -s conftest.two &&
2333	      test -s conftest.dir/conftest.one &&
2334	      test -s conftest.dir/conftest.two
2335	    then
2336	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2337	      break 3
2338	    fi
2339	  fi
2340	fi
2341      done
2342    done
2343    ;;
2344esac
2345
2346  done
2347IFS=$as_save_IFS
2348
2349rm -rf conftest.one conftest.two conftest.dir
2350
2351fi
2352  if test "${ac_cv_path_install+set}" = set; then
2353    INSTALL=$ac_cv_path_install
2354  else
2355    # As a last resort, use the slow shell script.  Don't cache a
2356    # value for INSTALL within a source directory, because that will
2357    # break other packages using the cache if that directory is
2358    # removed, or if the value is a relative name.
2359    INSTALL=$ac_install_sh
2360  fi
2361fi
2362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2363$as_echo "$INSTALL" >&6; }
2364
2365# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2366# It thinks the first close brace ends the variable substitution.
2367test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2368
2369test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2370
2371test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2372
2373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2374$as_echo_n "checking whether build environment is sane... " >&6; }
2375# Reject unsafe characters in $srcdir or the absolute working directory
2376# name.  Accept space and tab only in the latter.
2377am_lf='
2378'
2379case `pwd` in
2380  *[\\\"\#\$\&\'\`$am_lf]*)
2381    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2382esac
2383case $srcdir in
2384  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2385    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2386esac
2387
2388# Do 'set' in a subshell so we don't clobber the current shell's
2389# arguments.  Must try -L first in case configure is actually a
2390# symlink; some systems play weird games with the mod time of symlinks
2391# (eg FreeBSD returns the mod time of the symlink's containing
2392# directory).
2393if (
2394   am_has_slept=no
2395   for am_try in 1 2; do
2396     echo "timestamp, slept: $am_has_slept" > conftest.file
2397     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2398     if test "$*" = "X"; then
2399	# -L didn't work.
2400	set X `ls -t "$srcdir/configure" conftest.file`
2401     fi
2402     if test "$*" != "X $srcdir/configure conftest.file" \
2403	&& test "$*" != "X conftest.file $srcdir/configure"; then
2404
2405	# If neither matched, then we have a broken ls.  This can happen
2406	# if, for instance, CONFIG_SHELL is bash and it inherits a
2407	# broken ls alias from the environment.  This has actually
2408	# happened.  Such a system could not be considered "sane".
2409	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2410  alias in your environment" "$LINENO" 5
2411     fi
2412     if test "$2" = conftest.file || test $am_try -eq 2; then
2413       break
2414     fi
2415     # Just in case.
2416     sleep 1
2417     am_has_slept=yes
2418   done
2419   test "$2" = conftest.file
2420   )
2421then
2422   # Ok.
2423   :
2424else
2425   as_fn_error $? "newly created file is older than distributed files!
2426Check your system clock" "$LINENO" 5
2427fi
2428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2429$as_echo "yes" >&6; }
2430# If we didn't sleep, we still need to ensure time stamps of config.status and
2431# generated files are strictly newer.
2432am_sleep_pid=
2433if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2434  ( sleep 1 ) &
2435  am_sleep_pid=$!
2436fi
2437
2438rm -f conftest.file
2439
2440test "$program_prefix" != NONE &&
2441  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2442# Use a double $ so make ignores it.
2443test "$program_suffix" != NONE &&
2444  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2445# Double any \ or $.
2446# By default was `s,x,x', remove it if useless.
2447ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2448program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2449
2450# Expand $ac_aux_dir to an absolute path.
2451am_aux_dir=`cd "$ac_aux_dir" && pwd`
2452
2453if test x"${MISSING+set}" != xset; then
2454  case $am_aux_dir in
2455  *\ * | *\	*)
2456    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2457  *)
2458    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2459  esac
2460fi
2461# Use eval to expand $SHELL
2462if eval "$MISSING --is-lightweight"; then
2463  am_missing_run="$MISSING "
2464else
2465  am_missing_run=
2466  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2467$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2468fi
2469
2470if test x"${install_sh+set}" != xset; then
2471  case $am_aux_dir in
2472  *\ * | *\	*)
2473    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2474  *)
2475    install_sh="\${SHELL} $am_aux_dir/install-sh"
2476  esac
2477fi
2478
2479# Installed binaries are usually stripped using 'strip' when the user
2480# run "make install-strip".  However 'strip' might not be the right
2481# tool to use in cross-compilation environments, therefore Automake
2482# will honor the 'STRIP' environment variable to overrule this program.
2483if test "$cross_compiling" != no; then
2484  if test -n "$ac_tool_prefix"; then
2485  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2486set dummy ${ac_tool_prefix}strip; ac_word=$2
2487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2488$as_echo_n "checking for $ac_word... " >&6; }
2489if ${ac_cv_prog_STRIP+:} false; then :
2490  $as_echo_n "(cached) " >&6
2491else
2492  if test -n "$STRIP"; then
2493  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2494else
2495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496for as_dir in $PATH
2497do
2498  IFS=$as_save_IFS
2499  test -z "$as_dir" && as_dir=.
2500    for ac_exec_ext in '' $ac_executable_extensions; do
2501  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2502    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2503    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2504    break 2
2505  fi
2506done
2507  done
2508IFS=$as_save_IFS
2509
2510fi
2511fi
2512STRIP=$ac_cv_prog_STRIP
2513if test -n "$STRIP"; then
2514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2515$as_echo "$STRIP" >&6; }
2516else
2517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2518$as_echo "no" >&6; }
2519fi
2520
2521
2522fi
2523if test -z "$ac_cv_prog_STRIP"; then
2524  ac_ct_STRIP=$STRIP
2525  # Extract the first word of "strip", so it can be a program name with args.
2526set dummy strip; ac_word=$2
2527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2528$as_echo_n "checking for $ac_word... " >&6; }
2529if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2530  $as_echo_n "(cached) " >&6
2531else
2532  if test -n "$ac_ct_STRIP"; then
2533  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2534else
2535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536for as_dir in $PATH
2537do
2538  IFS=$as_save_IFS
2539  test -z "$as_dir" && as_dir=.
2540    for ac_exec_ext in '' $ac_executable_extensions; do
2541  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2542    ac_cv_prog_ac_ct_STRIP="strip"
2543    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2544    break 2
2545  fi
2546done
2547  done
2548IFS=$as_save_IFS
2549
2550fi
2551fi
2552ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2553if test -n "$ac_ct_STRIP"; then
2554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2555$as_echo "$ac_ct_STRIP" >&6; }
2556else
2557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2558$as_echo "no" >&6; }
2559fi
2560
2561  if test "x$ac_ct_STRIP" = x; then
2562    STRIP=":"
2563  else
2564    case $cross_compiling:$ac_tool_warned in
2565yes:)
2566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2568ac_tool_warned=yes ;;
2569esac
2570    STRIP=$ac_ct_STRIP
2571  fi
2572else
2573  STRIP="$ac_cv_prog_STRIP"
2574fi
2575
2576fi
2577INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2578
2579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2580$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2581if test -z "$MKDIR_P"; then
2582  if ${ac_cv_path_mkdir+:} false; then :
2583  $as_echo_n "(cached) " >&6
2584else
2585  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2587do
2588  IFS=$as_save_IFS
2589  test -z "$as_dir" && as_dir=.
2590    for ac_prog in mkdir gmkdir; do
2591	 for ac_exec_ext in '' $ac_executable_extensions; do
2592	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2593	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2594	     'mkdir (GNU coreutils) '* | \
2595	     'mkdir (coreutils) '* | \
2596	     'mkdir (fileutils) '4.1*)
2597	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2598	       break 3;;
2599	   esac
2600	 done
2601       done
2602  done
2603IFS=$as_save_IFS
2604
2605fi
2606
2607  test -d ./--version && rmdir ./--version
2608  if test "${ac_cv_path_mkdir+set}" = set; then
2609    MKDIR_P="$ac_cv_path_mkdir -p"
2610  else
2611    # As a last resort, use the slow shell script.  Don't cache a
2612    # value for MKDIR_P within a source directory, because that will
2613    # break other packages using the cache if that directory is
2614    # removed, or if the value is a relative name.
2615    MKDIR_P="$ac_install_sh -d"
2616  fi
2617fi
2618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2619$as_echo "$MKDIR_P" >&6; }
2620
2621for ac_prog in gawk mawk nawk awk
2622do
2623  # Extract the first word of "$ac_prog", so it can be a program name with args.
2624set dummy $ac_prog; ac_word=$2
2625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626$as_echo_n "checking for $ac_word... " >&6; }
2627if ${ac_cv_prog_AWK+:} false; then :
2628  $as_echo_n "(cached) " >&6
2629else
2630  if test -n "$AWK"; then
2631  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2632else
2633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634for as_dir in $PATH
2635do
2636  IFS=$as_save_IFS
2637  test -z "$as_dir" && as_dir=.
2638    for ac_exec_ext in '' $ac_executable_extensions; do
2639  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2640    ac_cv_prog_AWK="$ac_prog"
2641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642    break 2
2643  fi
2644done
2645  done
2646IFS=$as_save_IFS
2647
2648fi
2649fi
2650AWK=$ac_cv_prog_AWK
2651if test -n "$AWK"; then
2652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2653$as_echo "$AWK" >&6; }
2654else
2655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656$as_echo "no" >&6; }
2657fi
2658
2659
2660  test -n "$AWK" && break
2661done
2662
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2664$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2665set x ${MAKE-make}
2666ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2667if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2668  $as_echo_n "(cached) " >&6
2669else
2670  cat >conftest.make <<\_ACEOF
2671SHELL = /bin/sh
2672all:
2673	@echo '@@@%%%=$(MAKE)=@@@%%%'
2674_ACEOF
2675# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2676case `${MAKE-make} -f conftest.make 2>/dev/null` in
2677  *@@@%%%=?*=@@@%%%*)
2678    eval ac_cv_prog_make_${ac_make}_set=yes;;
2679  *)
2680    eval ac_cv_prog_make_${ac_make}_set=no;;
2681esac
2682rm -f conftest.make
2683fi
2684if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2686$as_echo "yes" >&6; }
2687  SET_MAKE=
2688else
2689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690$as_echo "no" >&6; }
2691  SET_MAKE="MAKE=${MAKE-make}"
2692fi
2693
2694rm -rf .tst 2>/dev/null
2695mkdir .tst 2>/dev/null
2696if test -d .tst; then
2697  am__leading_dot=.
2698else
2699  am__leading_dot=_
2700fi
2701rmdir .tst 2>/dev/null
2702
2703# Check whether --enable-silent-rules was given.
2704if test "${enable_silent_rules+set}" = set; then :
2705  enableval=$enable_silent_rules;
2706fi
2707
2708case $enable_silent_rules in # (((
2709  yes) AM_DEFAULT_VERBOSITY=0;;
2710   no) AM_DEFAULT_VERBOSITY=1;;
2711    *) AM_DEFAULT_VERBOSITY=1;;
2712esac
2713am_make=${MAKE-make}
2714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2715$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2716if ${am_cv_make_support_nested_variables+:} false; then :
2717  $as_echo_n "(cached) " >&6
2718else
2719  if $as_echo 'TRUE=$(BAR$(V))
2720BAR0=false
2721BAR1=true
2722V=1
2723am__doit:
2724	@$(TRUE)
2725.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2726  am_cv_make_support_nested_variables=yes
2727else
2728  am_cv_make_support_nested_variables=no
2729fi
2730fi
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2732$as_echo "$am_cv_make_support_nested_variables" >&6; }
2733if test $am_cv_make_support_nested_variables = yes; then
2734    AM_V='$(V)'
2735  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2736else
2737  AM_V=$AM_DEFAULT_VERBOSITY
2738  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2739fi
2740AM_BACKSLASH='\'
2741
2742if test "`cd $srcdir && pwd`" != "`pwd`"; then
2743  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2744  # is not polluted with repeated "-I."
2745  am__isrc=' -I$(srcdir)'
2746  # test to see if srcdir already configured
2747  if test -f $srcdir/config.status; then
2748    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2749  fi
2750fi
2751
2752# test whether we have cygpath
2753if test -z "$CYGPATH_W"; then
2754  if (cygpath --version) >/dev/null 2>/dev/null; then
2755    CYGPATH_W='cygpath -w'
2756  else
2757    CYGPATH_W=echo
2758  fi
2759fi
2760
2761
2762# Define the identity of the package.
2763 PACKAGE='xf86-video-vboxvideo'
2764 VERSION='1.0.0'
2765
2766
2767cat >>confdefs.h <<_ACEOF
2768#define PACKAGE "$PACKAGE"
2769_ACEOF
2770
2771
2772cat >>confdefs.h <<_ACEOF
2773#define VERSION "$VERSION"
2774_ACEOF
2775
2776# Some tools Automake needs.
2777
2778ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2779
2780
2781AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2782
2783
2784AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2785
2786
2787AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2788
2789
2790MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2791
2792# For better backward compatibility.  To be removed once Automake 1.9.x
2793# dies out for good.  For more background, see:
2794# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2795# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2796mkdir_p='$(MKDIR_P)'
2797
2798# We need awk for the "check" target (and possibly the TAP driver).  The
2799# system "awk" is bad on some platforms.
2800# Always define AMTAR for backward compatibility.  Yes, it's still used
2801# in the wild :-(  We should find a proper way to deprecate it ...
2802AMTAR='$${TAR-tar}'
2803
2804
2805# We'll loop over all known methods to create a tar archive until one works.
2806_am_tools='gnutar  pax cpio none'
2807
2808am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2809
2810
2811
2812
2813
2814
2815# POSIX will say in a future version that running "rm -f" with no argument
2816# is OK; and we want to be able to make that assumption in our Makefile
2817# recipes.  So use an aggressive probe to check that the usage we want is
2818# actually supported "in the wild" to an acceptable degree.
2819# See automake bug#10828.
2820# To make any issue more visible, cause the running configure to be aborted
2821# by default if the 'rm' program in use doesn't match our expectations; the
2822# user can still override this though.
2823if rm -f && rm -fr && rm -rf; then : OK; else
2824  cat >&2 <<'END'
2825Oops!
2826
2827Your 'rm' program seems unable to run without file operands specified
2828on the command line, even when the '-f' option is present.  This is contrary
2829to the behaviour of most rm programs out there, and not conforming with
2830the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2831
2832Please tell bug-automake@gnu.org about your system, including the value
2833of your $PATH and any error possibly output before this message.  This
2834can help us improve future automake versions.
2835
2836END
2837  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2838    echo 'Configuration will proceed anyway, since you have set the' >&2
2839    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2840    echo >&2
2841  else
2842    cat >&2 <<'END'
2843Aborting the configuration process, to ensure you take notice of the issue.
2844
2845You can download and install GNU coreutils to get an 'rm' implementation
2846that behaves properly: <http://www.gnu.org/software/coreutils/>.
2847
2848If you want to complete the configuration process using your problematic
2849'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2850to "yes", and re-run configure.
2851
2852END
2853    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2854  fi
2855fi
2856
2857
2858# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870DEPDIR="${am__leading_dot}deps"
2871
2872ac_config_commands="$ac_config_commands depfiles"
2873
2874
2875am_make=${MAKE-make}
2876cat > confinc << 'END'
2877am__doit:
2878	@echo this is the am__doit target
2879.PHONY: am__doit
2880END
2881# If we don't find an include directive, just comment out the code.
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2883$as_echo_n "checking for style of include used by $am_make... " >&6; }
2884am__include="#"
2885am__quote=
2886_am_result=none
2887# First try GNU make style include.
2888echo "include confinc" > confmf
2889# Ignore all kinds of additional output from 'make'.
2890case `$am_make -s -f confmf 2> /dev/null` in #(
2891*the\ am__doit\ target*)
2892  am__include=include
2893  am__quote=
2894  _am_result=GNU
2895  ;;
2896esac
2897# Now try BSD make style include.
2898if test "$am__include" = "#"; then
2899   echo '.include "confinc"' > confmf
2900   case `$am_make -s -f confmf 2> /dev/null` in #(
2901   *the\ am__doit\ target*)
2902     am__include=.include
2903     am__quote="\""
2904     _am_result=BSD
2905     ;;
2906   esac
2907fi
2908
2909
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2911$as_echo "$_am_result" >&6; }
2912rm -f confinc confmf
2913
2914# Check whether --enable-dependency-tracking was given.
2915if test "${enable_dependency_tracking+set}" = set; then :
2916  enableval=$enable_dependency_tracking;
2917fi
2918
2919if test "x$enable_dependency_tracking" != xno; then
2920  am_depcomp="$ac_aux_dir/depcomp"
2921  AMDEPBACKSLASH='\'
2922  am__nodep='_no'
2923fi
2924 if test "x$enable_dependency_tracking" != xno; then
2925  AMDEP_TRUE=
2926  AMDEP_FALSE='#'
2927else
2928  AMDEP_TRUE='#'
2929  AMDEP_FALSE=
2930fi
2931
2932
2933ac_ext=c
2934ac_cpp='$CPP $CPPFLAGS'
2935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938if test -n "$ac_tool_prefix"; then
2939  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2940set dummy ${ac_tool_prefix}gcc; ac_word=$2
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942$as_echo_n "checking for $ac_word... " >&6; }
2943if ${ac_cv_prog_CC+:} false; then :
2944  $as_echo_n "(cached) " >&6
2945else
2946  if test -n "$CC"; then
2947  ac_cv_prog_CC="$CC" # Let the user override the test.
2948else
2949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950for as_dir in $PATH
2951do
2952  IFS=$as_save_IFS
2953  test -z "$as_dir" && as_dir=.
2954    for ac_exec_ext in '' $ac_executable_extensions; do
2955  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2956    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958    break 2
2959  fi
2960done
2961  done
2962IFS=$as_save_IFS
2963
2964fi
2965fi
2966CC=$ac_cv_prog_CC
2967if test -n "$CC"; then
2968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2969$as_echo "$CC" >&6; }
2970else
2971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972$as_echo "no" >&6; }
2973fi
2974
2975
2976fi
2977if test -z "$ac_cv_prog_CC"; then
2978  ac_ct_CC=$CC
2979  # Extract the first word of "gcc", so it can be a program name with args.
2980set dummy gcc; ac_word=$2
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982$as_echo_n "checking for $ac_word... " >&6; }
2983if ${ac_cv_prog_ac_ct_CC+:} false; then :
2984  $as_echo_n "(cached) " >&6
2985else
2986  if test -n "$ac_ct_CC"; then
2987  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2988else
2989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990for as_dir in $PATH
2991do
2992  IFS=$as_save_IFS
2993  test -z "$as_dir" && as_dir=.
2994    for ac_exec_ext in '' $ac_executable_extensions; do
2995  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996    ac_cv_prog_ac_ct_CC="gcc"
2997    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998    break 2
2999  fi
3000done
3001  done
3002IFS=$as_save_IFS
3003
3004fi
3005fi
3006ac_ct_CC=$ac_cv_prog_ac_ct_CC
3007if test -n "$ac_ct_CC"; then
3008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3009$as_echo "$ac_ct_CC" >&6; }
3010else
3011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012$as_echo "no" >&6; }
3013fi
3014
3015  if test "x$ac_ct_CC" = x; then
3016    CC=""
3017  else
3018    case $cross_compiling:$ac_tool_warned in
3019yes:)
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3022ac_tool_warned=yes ;;
3023esac
3024    CC=$ac_ct_CC
3025  fi
3026else
3027  CC="$ac_cv_prog_CC"
3028fi
3029
3030if test -z "$CC"; then
3031          if test -n "$ac_tool_prefix"; then
3032    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3033set dummy ${ac_tool_prefix}cc; ac_word=$2
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035$as_echo_n "checking for $ac_word... " >&6; }
3036if ${ac_cv_prog_CC+:} false; then :
3037  $as_echo_n "(cached) " >&6
3038else
3039  if test -n "$CC"; then
3040  ac_cv_prog_CC="$CC" # Let the user override the test.
3041else
3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045  IFS=$as_save_IFS
3046  test -z "$as_dir" && as_dir=.
3047    for ac_exec_ext in '' $ac_executable_extensions; do
3048  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049    ac_cv_prog_CC="${ac_tool_prefix}cc"
3050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051    break 2
3052  fi
3053done
3054  done
3055IFS=$as_save_IFS
3056
3057fi
3058fi
3059CC=$ac_cv_prog_CC
3060if test -n "$CC"; then
3061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3062$as_echo "$CC" >&6; }
3063else
3064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065$as_echo "no" >&6; }
3066fi
3067
3068
3069  fi
3070fi
3071if test -z "$CC"; then
3072  # Extract the first word of "cc", so it can be a program name with args.
3073set dummy cc; ac_word=$2
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075$as_echo_n "checking for $ac_word... " >&6; }
3076if ${ac_cv_prog_CC+:} false; then :
3077  $as_echo_n "(cached) " >&6
3078else
3079  if test -n "$CC"; then
3080  ac_cv_prog_CC="$CC" # Let the user override the test.
3081else
3082  ac_prog_rejected=no
3083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084for as_dir in $PATH
3085do
3086  IFS=$as_save_IFS
3087  test -z "$as_dir" && as_dir=.
3088    for ac_exec_ext in '' $ac_executable_extensions; do
3089  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3090    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3091       ac_prog_rejected=yes
3092       continue
3093     fi
3094    ac_cv_prog_CC="cc"
3095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096    break 2
3097  fi
3098done
3099  done
3100IFS=$as_save_IFS
3101
3102if test $ac_prog_rejected = yes; then
3103  # We found a bogon in the path, so make sure we never use it.
3104  set dummy $ac_cv_prog_CC
3105  shift
3106  if test $# != 0; then
3107    # We chose a different compiler from the bogus one.
3108    # However, it has the same basename, so the bogon will be chosen
3109    # first if we set CC to just the basename; use the full file name.
3110    shift
3111    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3112  fi
3113fi
3114fi
3115fi
3116CC=$ac_cv_prog_CC
3117if test -n "$CC"; then
3118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3119$as_echo "$CC" >&6; }
3120else
3121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122$as_echo "no" >&6; }
3123fi
3124
3125
3126fi
3127if test -z "$CC"; then
3128  if test -n "$ac_tool_prefix"; then
3129  for ac_prog in cl.exe
3130  do
3131    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3132set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134$as_echo_n "checking for $ac_word... " >&6; }
3135if ${ac_cv_prog_CC+:} false; then :
3136  $as_echo_n "(cached) " >&6
3137else
3138  if test -n "$CC"; then
3139  ac_cv_prog_CC="$CC" # Let the user override the test.
3140else
3141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142for as_dir in $PATH
3143do
3144  IFS=$as_save_IFS
3145  test -z "$as_dir" && as_dir=.
3146    for ac_exec_ext in '' $ac_executable_extensions; do
3147  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150    break 2
3151  fi
3152done
3153  done
3154IFS=$as_save_IFS
3155
3156fi
3157fi
3158CC=$ac_cv_prog_CC
3159if test -n "$CC"; then
3160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3161$as_echo "$CC" >&6; }
3162else
3163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164$as_echo "no" >&6; }
3165fi
3166
3167
3168    test -n "$CC" && break
3169  done
3170fi
3171if test -z "$CC"; then
3172  ac_ct_CC=$CC
3173  for ac_prog in cl.exe
3174do
3175  # Extract the first word of "$ac_prog", so it can be a program name with args.
3176set dummy $ac_prog; ac_word=$2
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178$as_echo_n "checking for $ac_word... " >&6; }
3179if ${ac_cv_prog_ac_ct_CC+:} false; then :
3180  $as_echo_n "(cached) " >&6
3181else
3182  if test -n "$ac_ct_CC"; then
3183  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3184else
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188  IFS=$as_save_IFS
3189  test -z "$as_dir" && as_dir=.
3190    for ac_exec_ext in '' $ac_executable_extensions; do
3191  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192    ac_cv_prog_ac_ct_CC="$ac_prog"
3193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194    break 2
3195  fi
3196done
3197  done
3198IFS=$as_save_IFS
3199
3200fi
3201fi
3202ac_ct_CC=$ac_cv_prog_ac_ct_CC
3203if test -n "$ac_ct_CC"; then
3204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3205$as_echo "$ac_ct_CC" >&6; }
3206else
3207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208$as_echo "no" >&6; }
3209fi
3210
3211
3212  test -n "$ac_ct_CC" && break
3213done
3214
3215  if test "x$ac_ct_CC" = x; then
3216    CC=""
3217  else
3218    case $cross_compiling:$ac_tool_warned in
3219yes:)
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3222ac_tool_warned=yes ;;
3223esac
3224    CC=$ac_ct_CC
3225  fi
3226fi
3227
3228fi
3229
3230
3231test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233as_fn_error $? "no acceptable C compiler found in \$PATH
3234See \`config.log' for more details" "$LINENO" 5; }
3235
3236# Provide some information about the compiler.
3237$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3238set X $ac_compile
3239ac_compiler=$2
3240for ac_option in --version -v -V -qversion; do
3241  { { ac_try="$ac_compiler $ac_option >&5"
3242case "(($ac_try" in
3243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244  *) ac_try_echo=$ac_try;;
3245esac
3246eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247$as_echo "$ac_try_echo"; } >&5
3248  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3249  ac_status=$?
3250  if test -s conftest.err; then
3251    sed '10a\
3252... rest of stderr output deleted ...
3253         10q' conftest.err >conftest.er1
3254    cat conftest.er1 >&5
3255  fi
3256  rm -f conftest.er1 conftest.err
3257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258  test $ac_status = 0; }
3259done
3260
3261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262/* end confdefs.h.  */
3263
3264int
3265main ()
3266{
3267
3268  ;
3269  return 0;
3270}
3271_ACEOF
3272ac_clean_files_save=$ac_clean_files
3273ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3274# Try to create an executable without -o first, disregard a.out.
3275# It will help us diagnose broken compilers, and finding out an intuition
3276# of exeext.
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3278$as_echo_n "checking whether the C compiler works... " >&6; }
3279ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3280
3281# The possible output files:
3282ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3283
3284ac_rmfiles=
3285for ac_file in $ac_files
3286do
3287  case $ac_file in
3288    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3289    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3290  esac
3291done
3292rm -f $ac_rmfiles
3293
3294if { { ac_try="$ac_link_default"
3295case "(($ac_try" in
3296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297  *) ac_try_echo=$ac_try;;
3298esac
3299eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300$as_echo "$ac_try_echo"; } >&5
3301  (eval "$ac_link_default") 2>&5
3302  ac_status=$?
3303  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304  test $ac_status = 0; }; then :
3305  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3306# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3307# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3308# so that the user can short-circuit this test for compilers unknown to
3309# Autoconf.
3310for ac_file in $ac_files ''
3311do
3312  test -f "$ac_file" || continue
3313  case $ac_file in
3314    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3315	;;
3316    [ab].out )
3317	# We found the default executable, but exeext='' is most
3318	# certainly right.
3319	break;;
3320    *.* )
3321	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3322	then :; else
3323	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3324	fi
3325	# We set ac_cv_exeext here because the later test for it is not
3326	# safe: cross compilers may not add the suffix if given an `-o'
3327	# argument, so we may need to know it at that point already.
3328	# Even if this section looks crufty: it has the advantage of
3329	# actually working.
3330	break;;
3331    * )
3332	break;;
3333  esac
3334done
3335test "$ac_cv_exeext" = no && ac_cv_exeext=
3336
3337else
3338  ac_file=''
3339fi
3340if test -z "$ac_file"; then :
3341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342$as_echo "no" >&6; }
3343$as_echo "$as_me: failed program was:" >&5
3344sed 's/^/| /' conftest.$ac_ext >&5
3345
3346{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348as_fn_error 77 "C compiler cannot create executables
3349See \`config.log' for more details" "$LINENO" 5; }
3350else
3351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3352$as_echo "yes" >&6; }
3353fi
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3355$as_echo_n "checking for C compiler default output file name... " >&6; }
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3357$as_echo "$ac_file" >&6; }
3358ac_exeext=$ac_cv_exeext
3359
3360rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3361ac_clean_files=$ac_clean_files_save
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3363$as_echo_n "checking for suffix of executables... " >&6; }
3364if { { ac_try="$ac_link"
3365case "(($ac_try" in
3366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367  *) ac_try_echo=$ac_try;;
3368esac
3369eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370$as_echo "$ac_try_echo"; } >&5
3371  (eval "$ac_link") 2>&5
3372  ac_status=$?
3373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374  test $ac_status = 0; }; then :
3375  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3376# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3377# work properly (i.e., refer to `conftest.exe'), while it won't with
3378# `rm'.
3379for ac_file in conftest.exe conftest 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 | *.o | *.obj ) ;;
3383    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3384	  break;;
3385    * ) break;;
3386  esac
3387done
3388else
3389  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3392See \`config.log' for more details" "$LINENO" 5; }
3393fi
3394rm -f conftest conftest$ac_cv_exeext
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3396$as_echo "$ac_cv_exeext" >&6; }
3397
3398rm -f conftest.$ac_ext
3399EXEEXT=$ac_cv_exeext
3400ac_exeext=$EXEEXT
3401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402/* end confdefs.h.  */
3403#include <stdio.h>
3404int
3405main ()
3406{
3407FILE *f = fopen ("conftest.out", "w");
3408 return ferror (f) || fclose (f) != 0;
3409
3410  ;
3411  return 0;
3412}
3413_ACEOF
3414ac_clean_files="$ac_clean_files conftest.out"
3415# Check that the compiler produces executables we can run.  If not, either
3416# the compiler is broken, or we cross compile.
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3418$as_echo_n "checking whether we are cross compiling... " >&6; }
3419if test "$cross_compiling" != yes; then
3420  { { ac_try="$ac_link"
3421case "(($ac_try" in
3422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423  *) ac_try_echo=$ac_try;;
3424esac
3425eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426$as_echo "$ac_try_echo"; } >&5
3427  (eval "$ac_link") 2>&5
3428  ac_status=$?
3429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430  test $ac_status = 0; }
3431  if { ac_try='./conftest$ac_cv_exeext'
3432  { { case "(($ac_try" in
3433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434  *) ac_try_echo=$ac_try;;
3435esac
3436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3437$as_echo "$ac_try_echo"; } >&5
3438  (eval "$ac_try") 2>&5
3439  ac_status=$?
3440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3441  test $ac_status = 0; }; }; then
3442    cross_compiling=no
3443  else
3444    if test "$cross_compiling" = maybe; then
3445	cross_compiling=yes
3446    else
3447	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3449as_fn_error $? "cannot run C compiled programs.
3450If you meant to cross compile, use \`--host'.
3451See \`config.log' for more details" "$LINENO" 5; }
3452    fi
3453  fi
3454fi
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3456$as_echo "$cross_compiling" >&6; }
3457
3458rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3459ac_clean_files=$ac_clean_files_save
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3461$as_echo_n "checking for suffix of object files... " >&6; }
3462if ${ac_cv_objext+:} false; then :
3463  $as_echo_n "(cached) " >&6
3464else
3465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466/* end confdefs.h.  */
3467
3468int
3469main ()
3470{
3471
3472  ;
3473  return 0;
3474}
3475_ACEOF
3476rm -f conftest.o conftest.obj
3477if { { ac_try="$ac_compile"
3478case "(($ac_try" in
3479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480  *) ac_try_echo=$ac_try;;
3481esac
3482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483$as_echo "$ac_try_echo"; } >&5
3484  (eval "$ac_compile") 2>&5
3485  ac_status=$?
3486  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3487  test $ac_status = 0; }; then :
3488  for ac_file in conftest.o conftest.obj conftest.*; do
3489  test -f "$ac_file" || continue;
3490  case $ac_file in
3491    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3492    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3493       break;;
3494  esac
3495done
3496else
3497  $as_echo "$as_me: failed program was:" >&5
3498sed 's/^/| /' conftest.$ac_ext >&5
3499
3500{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502as_fn_error $? "cannot compute suffix of object files: cannot compile
3503See \`config.log' for more details" "$LINENO" 5; }
3504fi
3505rm -f conftest.$ac_cv_objext conftest.$ac_ext
3506fi
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3508$as_echo "$ac_cv_objext" >&6; }
3509OBJEXT=$ac_cv_objext
3510ac_objext=$OBJEXT
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3512$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3513if ${ac_cv_c_compiler_gnu+:} false; then :
3514  $as_echo_n "(cached) " >&6
3515else
3516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517/* end confdefs.h.  */
3518
3519int
3520main ()
3521{
3522#ifndef __GNUC__
3523       choke me
3524#endif
3525
3526  ;
3527  return 0;
3528}
3529_ACEOF
3530if ac_fn_c_try_compile "$LINENO"; then :
3531  ac_compiler_gnu=yes
3532else
3533  ac_compiler_gnu=no
3534fi
3535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536ac_cv_c_compiler_gnu=$ac_compiler_gnu
3537
3538fi
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3540$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3541if test $ac_compiler_gnu = yes; then
3542  GCC=yes
3543else
3544  GCC=
3545fi
3546ac_test_CFLAGS=${CFLAGS+set}
3547ac_save_CFLAGS=$CFLAGS
3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3549$as_echo_n "checking whether $CC accepts -g... " >&6; }
3550if ${ac_cv_prog_cc_g+:} false; then :
3551  $as_echo_n "(cached) " >&6
3552else
3553  ac_save_c_werror_flag=$ac_c_werror_flag
3554   ac_c_werror_flag=yes
3555   ac_cv_prog_cc_g=no
3556   CFLAGS="-g"
3557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558/* end confdefs.h.  */
3559
3560int
3561main ()
3562{
3563
3564  ;
3565  return 0;
3566}
3567_ACEOF
3568if ac_fn_c_try_compile "$LINENO"; then :
3569  ac_cv_prog_cc_g=yes
3570else
3571  CFLAGS=""
3572      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573/* end confdefs.h.  */
3574
3575int
3576main ()
3577{
3578
3579  ;
3580  return 0;
3581}
3582_ACEOF
3583if ac_fn_c_try_compile "$LINENO"; then :
3584
3585else
3586  ac_c_werror_flag=$ac_save_c_werror_flag
3587	 CFLAGS="-g"
3588	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589/* end confdefs.h.  */
3590
3591int
3592main ()
3593{
3594
3595  ;
3596  return 0;
3597}
3598_ACEOF
3599if ac_fn_c_try_compile "$LINENO"; then :
3600  ac_cv_prog_cc_g=yes
3601fi
3602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603fi
3604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605fi
3606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607   ac_c_werror_flag=$ac_save_c_werror_flag
3608fi
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3610$as_echo "$ac_cv_prog_cc_g" >&6; }
3611if test "$ac_test_CFLAGS" = set; then
3612  CFLAGS=$ac_save_CFLAGS
3613elif test $ac_cv_prog_cc_g = yes; then
3614  if test "$GCC" = yes; then
3615    CFLAGS="-g -O2"
3616  else
3617    CFLAGS="-g"
3618  fi
3619else
3620  if test "$GCC" = yes; then
3621    CFLAGS="-O2"
3622  else
3623    CFLAGS=
3624  fi
3625fi
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3627$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3628if ${ac_cv_prog_cc_c89+:} false; then :
3629  $as_echo_n "(cached) " >&6
3630else
3631  ac_cv_prog_cc_c89=no
3632ac_save_CC=$CC
3633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634/* end confdefs.h.  */
3635#include <stdarg.h>
3636#include <stdio.h>
3637struct stat;
3638/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3639struct buf { int x; };
3640FILE * (*rcsopen) (struct buf *, struct stat *, int);
3641static char *e (p, i)
3642     char **p;
3643     int i;
3644{
3645  return p[i];
3646}
3647static char *f (char * (*g) (char **, int), char **p, ...)
3648{
3649  char *s;
3650  va_list v;
3651  va_start (v,p);
3652  s = g (p, va_arg (v,int));
3653  va_end (v);
3654  return s;
3655}
3656
3657/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3658   function prototypes and stuff, but not '\xHH' hex character constants.
3659   These don't provoke an error unfortunately, instead are silently treated
3660   as 'x'.  The following induces an error, until -std is added to get
3661   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3662   array size at least.  It's necessary to write '\x00'==0 to get something
3663   that's true only with -std.  */
3664int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3665
3666/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3667   inside strings and character constants.  */
3668#define FOO(x) 'x'
3669int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3670
3671int test (int i, double x);
3672struct s1 {int (*f) (int a);};
3673struct s2 {int (*f) (double a);};
3674int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3675int argc;
3676char **argv;
3677int
3678main ()
3679{
3680return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3681  ;
3682  return 0;
3683}
3684_ACEOF
3685for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3686	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3687do
3688  CC="$ac_save_CC $ac_arg"
3689  if ac_fn_c_try_compile "$LINENO"; then :
3690  ac_cv_prog_cc_c89=$ac_arg
3691fi
3692rm -f core conftest.err conftest.$ac_objext
3693  test "x$ac_cv_prog_cc_c89" != "xno" && break
3694done
3695rm -f conftest.$ac_ext
3696CC=$ac_save_CC
3697
3698fi
3699# AC_CACHE_VAL
3700case "x$ac_cv_prog_cc_c89" in
3701  x)
3702    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3703$as_echo "none needed" >&6; } ;;
3704  xno)
3705    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3706$as_echo "unsupported" >&6; } ;;
3707  *)
3708    CC="$CC $ac_cv_prog_cc_c89"
3709    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3710$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3711esac
3712if test "x$ac_cv_prog_cc_c89" != xno; then :
3713
3714fi
3715
3716ac_ext=c
3717ac_cpp='$CPP $CPPFLAGS'
3718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721
3722ac_ext=c
3723ac_cpp='$CPP $CPPFLAGS'
3724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726ac_compiler_gnu=$ac_cv_c_compiler_gnu
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3728$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3729if ${am_cv_prog_cc_c_o+:} false; then :
3730  $as_echo_n "(cached) " >&6
3731else
3732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733/* end confdefs.h.  */
3734
3735int
3736main ()
3737{
3738
3739  ;
3740  return 0;
3741}
3742_ACEOF
3743  # Make sure it works both with $CC and with simple cc.
3744  # Following AC_PROG_CC_C_O, we do the test twice because some
3745  # compilers refuse to overwrite an existing .o file with -o,
3746  # though they will create one.
3747  am_cv_prog_cc_c_o=yes
3748  for am_i in 1 2; do
3749    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3750   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3751   ac_status=$?
3752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753   (exit $ac_status); } \
3754         && test -f conftest2.$ac_objext; then
3755      : OK
3756    else
3757      am_cv_prog_cc_c_o=no
3758      break
3759    fi
3760  done
3761  rm -f core conftest*
3762  unset am_i
3763fi
3764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3765$as_echo "$am_cv_prog_cc_c_o" >&6; }
3766if test "$am_cv_prog_cc_c_o" != yes; then
3767   # Losing compiler, so override with the script.
3768   # FIXME: It is wrong to rewrite CC.
3769   # But if we don't then we get into trouble of one sort or another.
3770   # A longer-term fix would be to have automake use am__CC in this case,
3771   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3772   CC="$am_aux_dir/compile $CC"
3773fi
3774ac_ext=c
3775ac_cpp='$CPP $CPPFLAGS'
3776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778ac_compiler_gnu=$ac_cv_c_compiler_gnu
3779
3780
3781depcc="$CC"   am_compiler_list=
3782
3783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3784$as_echo_n "checking dependency style of $depcc... " >&6; }
3785if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3786  $as_echo_n "(cached) " >&6
3787else
3788  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3789  # We make a subdir and do the tests there.  Otherwise we can end up
3790  # making bogus files that we don't know about and never remove.  For
3791  # instance it was reported that on HP-UX the gcc test will end up
3792  # making a dummy file named 'D' -- because '-MD' means "put the output
3793  # in D".
3794  rm -rf conftest.dir
3795  mkdir conftest.dir
3796  # Copy depcomp to subdir because otherwise we won't find it if we're
3797  # using a relative directory.
3798  cp "$am_depcomp" conftest.dir
3799  cd conftest.dir
3800  # We will build objects and dependencies in a subdirectory because
3801  # it helps to detect inapplicable dependency modes.  For instance
3802  # both Tru64's cc and ICC support -MD to output dependencies as a
3803  # side effect of compilation, but ICC will put the dependencies in
3804  # the current directory while Tru64 will put them in the object
3805  # directory.
3806  mkdir sub
3807
3808  am_cv_CC_dependencies_compiler_type=none
3809  if test "$am_compiler_list" = ""; then
3810     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3811  fi
3812  am__universal=false
3813  case " $depcc " in #(
3814     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3815     esac
3816
3817  for depmode in $am_compiler_list; do
3818    # Setup a source with many dependencies, because some compilers
3819    # like to wrap large dependency lists on column 80 (with \), and
3820    # we should not choose a depcomp mode which is confused by this.
3821    #
3822    # We need to recreate these files for each test, as the compiler may
3823    # overwrite some of them when testing with obscure command lines.
3824    # This happens at least with the AIX C compiler.
3825    : > sub/conftest.c
3826    for i in 1 2 3 4 5 6; do
3827      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3828      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3829      # Solaris 10 /bin/sh.
3830      echo '/* dummy */' > sub/conftst$i.h
3831    done
3832    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3833
3834    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3835    # mode.  It turns out that the SunPro C++ compiler does not properly
3836    # handle '-M -o', and we need to detect this.  Also, some Intel
3837    # versions had trouble with output in subdirs.
3838    am__obj=sub/conftest.${OBJEXT-o}
3839    am__minus_obj="-o $am__obj"
3840    case $depmode in
3841    gcc)
3842      # This depmode causes a compiler race in universal mode.
3843      test "$am__universal" = false || continue
3844      ;;
3845    nosideeffect)
3846      # After this tag, mechanisms are not by side-effect, so they'll
3847      # only be used when explicitly requested.
3848      if test "x$enable_dependency_tracking" = xyes; then
3849	continue
3850      else
3851	break
3852      fi
3853      ;;
3854    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3855      # This compiler won't grok '-c -o', but also, the minuso test has
3856      # not run yet.  These depmodes are late enough in the game, and
3857      # so weak that their functioning should not be impacted.
3858      am__obj=conftest.${OBJEXT-o}
3859      am__minus_obj=
3860      ;;
3861    none) break ;;
3862    esac
3863    if depmode=$depmode \
3864       source=sub/conftest.c object=$am__obj \
3865       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3866       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3867         >/dev/null 2>conftest.err &&
3868       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3869       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3870       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3871       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3872      # icc doesn't choke on unknown options, it will just issue warnings
3873      # or remarks (even with -Werror).  So we grep stderr for any message
3874      # that says an option was ignored or not supported.
3875      # When given -MP, icc 7.0 and 7.1 complain thusly:
3876      #   icc: Command line warning: ignoring option '-M'; no argument required
3877      # The diagnosis changed in icc 8.0:
3878      #   icc: Command line remark: option '-MP' not supported
3879      if (grep 'ignoring option' conftest.err ||
3880          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3881        am_cv_CC_dependencies_compiler_type=$depmode
3882        break
3883      fi
3884    fi
3885  done
3886
3887  cd ..
3888  rm -rf conftest.dir
3889else
3890  am_cv_CC_dependencies_compiler_type=none
3891fi
3892
3893fi
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3895$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3896CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3897
3898 if
3899  test "x$enable_dependency_tracking" != xno \
3900  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3901  am__fastdepCC_TRUE=
3902  am__fastdepCC_FALSE='#'
3903else
3904  am__fastdepCC_TRUE='#'
3905  am__fastdepCC_FALSE=
3906fi
3907
3908
3909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3910$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3911if ${ac_cv_prog_cc_c99+:} false; then :
3912  $as_echo_n "(cached) " >&6
3913else
3914  ac_cv_prog_cc_c99=no
3915ac_save_CC=$CC
3916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917/* end confdefs.h.  */
3918#include <stdarg.h>
3919#include <stdbool.h>
3920#include <stdlib.h>
3921#include <wchar.h>
3922#include <stdio.h>
3923
3924// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3925#define debug(...) fprintf (stderr, __VA_ARGS__)
3926#define showlist(...) puts (#__VA_ARGS__)
3927#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3928static void
3929test_varargs_macros (void)
3930{
3931  int x = 1234;
3932  int y = 5678;
3933  debug ("Flag");
3934  debug ("X = %d\n", x);
3935  showlist (The first, second, and third items.);
3936  report (x>y, "x is %d but y is %d", x, y);
3937}
3938
3939// Check long long types.
3940#define BIG64 18446744073709551615ull
3941#define BIG32 4294967295ul
3942#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3943#if !BIG_OK
3944  your preprocessor is broken;
3945#endif
3946#if BIG_OK
3947#else
3948  your preprocessor is broken;
3949#endif
3950static long long int bignum = -9223372036854775807LL;
3951static unsigned long long int ubignum = BIG64;
3952
3953struct incomplete_array
3954{
3955  int datasize;
3956  double data[];
3957};
3958
3959struct named_init {
3960  int number;
3961  const wchar_t *name;
3962  double average;
3963};
3964
3965typedef const char *ccp;
3966
3967static inline int
3968test_restrict (ccp restrict text)
3969{
3970  // See if C++-style comments work.
3971  // Iterate through items via the restricted pointer.
3972  // Also check for declarations in for loops.
3973  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3974    continue;
3975  return 0;
3976}
3977
3978// Check varargs and va_copy.
3979static void
3980test_varargs (const char *format, ...)
3981{
3982  va_list args;
3983  va_start (args, format);
3984  va_list args_copy;
3985  va_copy (args_copy, args);
3986
3987  const char *str;
3988  int number;
3989  float fnumber;
3990
3991  while (*format)
3992    {
3993      switch (*format++)
3994	{
3995	case 's': // string
3996	  str = va_arg (args_copy, const char *);
3997	  break;
3998	case 'd': // int
3999	  number = va_arg (args_copy, int);
4000	  break;
4001	case 'f': // float
4002	  fnumber = va_arg (args_copy, double);
4003	  break;
4004	default:
4005	  break;
4006	}
4007    }
4008  va_end (args_copy);
4009  va_end (args);
4010}
4011
4012int
4013main ()
4014{
4015
4016  // Check bool.
4017  _Bool success = false;
4018
4019  // Check restrict.
4020  if (test_restrict ("String literal") == 0)
4021    success = true;
4022  char *restrict newvar = "Another string";
4023
4024  // Check varargs.
4025  test_varargs ("s, d' f .", "string", 65, 34.234);
4026  test_varargs_macros ();
4027
4028  // Check flexible array members.
4029  struct incomplete_array *ia =
4030    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4031  ia->datasize = 10;
4032  for (int i = 0; i < ia->datasize; ++i)
4033    ia->data[i] = i * 1.234;
4034
4035  // Check named initializers.
4036  struct named_init ni = {
4037    .number = 34,
4038    .name = L"Test wide string",
4039    .average = 543.34343,
4040  };
4041
4042  ni.number = 58;
4043
4044  int dynamic_array[ni.number];
4045  dynamic_array[ni.number - 1] = 543;
4046
4047  // work around unused variable warnings
4048  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4049	  || dynamic_array[ni.number - 1] != 543);
4050
4051  ;
4052  return 0;
4053}
4054_ACEOF
4055for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4056do
4057  CC="$ac_save_CC $ac_arg"
4058  if ac_fn_c_try_compile "$LINENO"; then :
4059  ac_cv_prog_cc_c99=$ac_arg
4060fi
4061rm -f core conftest.err conftest.$ac_objext
4062  test "x$ac_cv_prog_cc_c99" != "xno" && break
4063done
4064rm -f conftest.$ac_ext
4065CC=$ac_save_CC
4066
4067fi
4068# AC_CACHE_VAL
4069case "x$ac_cv_prog_cc_c99" in
4070  x)
4071    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4072$as_echo "none needed" >&6; } ;;
4073  xno)
4074    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4075$as_echo "unsupported" >&6; } ;;
4076  *)
4077    CC="$CC $ac_cv_prog_cc_c99"
4078    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4079$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4080esac
4081if test "x$ac_cv_prog_cc_c99" != xno; then :
4082
4083fi
4084
4085
4086
4087ac_ext=c
4088ac_cpp='$CPP $CPPFLAGS'
4089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091ac_compiler_gnu=$ac_cv_c_compiler_gnu
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4093$as_echo_n "checking how to run the C preprocessor... " >&6; }
4094# On Suns, sometimes $CPP names a directory.
4095if test -n "$CPP" && test -d "$CPP"; then
4096  CPP=
4097fi
4098if test -z "$CPP"; then
4099  if ${ac_cv_prog_CPP+:} false; then :
4100  $as_echo_n "(cached) " >&6
4101else
4102      # Double quotes because CPP needs to be expanded
4103    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4104    do
4105      ac_preproc_ok=false
4106for ac_c_preproc_warn_flag in '' yes
4107do
4108  # Use a header file that comes with gcc, so configuring glibc
4109  # with a fresh cross-compiler works.
4110  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4111  # <limits.h> exists even on freestanding compilers.
4112  # On the NeXT, cc -E runs the code through the compiler's parser,
4113  # not just through cpp. "Syntax error" is here to catch this case.
4114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115/* end confdefs.h.  */
4116#ifdef __STDC__
4117# include <limits.h>
4118#else
4119# include <assert.h>
4120#endif
4121		     Syntax error
4122_ACEOF
4123if ac_fn_c_try_cpp "$LINENO"; then :
4124
4125else
4126  # Broken: fails on valid input.
4127continue
4128fi
4129rm -f conftest.err conftest.i conftest.$ac_ext
4130
4131  # OK, works on sane cases.  Now check whether nonexistent headers
4132  # can be detected and how.
4133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134/* end confdefs.h.  */
4135#include <ac_nonexistent.h>
4136_ACEOF
4137if ac_fn_c_try_cpp "$LINENO"; then :
4138  # Broken: success on invalid input.
4139continue
4140else
4141  # Passes both tests.
4142ac_preproc_ok=:
4143break
4144fi
4145rm -f conftest.err conftest.i conftest.$ac_ext
4146
4147done
4148# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4149rm -f conftest.i conftest.err conftest.$ac_ext
4150if $ac_preproc_ok; then :
4151  break
4152fi
4153
4154    done
4155    ac_cv_prog_CPP=$CPP
4156
4157fi
4158  CPP=$ac_cv_prog_CPP
4159else
4160  ac_cv_prog_CPP=$CPP
4161fi
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4163$as_echo "$CPP" >&6; }
4164ac_preproc_ok=false
4165for ac_c_preproc_warn_flag in '' yes
4166do
4167  # Use a header file that comes with gcc, so configuring glibc
4168  # with a fresh cross-compiler works.
4169  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4170  # <limits.h> exists even on freestanding compilers.
4171  # On the NeXT, cc -E runs the code through the compiler's parser,
4172  # not just through cpp. "Syntax error" is here to catch this case.
4173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174/* end confdefs.h.  */
4175#ifdef __STDC__
4176# include <limits.h>
4177#else
4178# include <assert.h>
4179#endif
4180		     Syntax error
4181_ACEOF
4182if ac_fn_c_try_cpp "$LINENO"; then :
4183
4184else
4185  # Broken: fails on valid input.
4186continue
4187fi
4188rm -f conftest.err conftest.i conftest.$ac_ext
4189
4190  # OK, works on sane cases.  Now check whether nonexistent headers
4191  # can be detected and how.
4192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193/* end confdefs.h.  */
4194#include <ac_nonexistent.h>
4195_ACEOF
4196if ac_fn_c_try_cpp "$LINENO"; then :
4197  # Broken: success on invalid input.
4198continue
4199else
4200  # Passes both tests.
4201ac_preproc_ok=:
4202break
4203fi
4204rm -f conftest.err conftest.i conftest.$ac_ext
4205
4206done
4207# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4208rm -f conftest.i conftest.err conftest.$ac_ext
4209if $ac_preproc_ok; then :
4210
4211else
4212  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4214as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4215See \`config.log' for more details" "$LINENO" 5; }
4216fi
4217
4218ac_ext=c
4219ac_cpp='$CPP $CPPFLAGS'
4220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222ac_compiler_gnu=$ac_cv_c_compiler_gnu
4223
4224
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4226$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4227if ${ac_cv_path_GREP+:} false; then :
4228  $as_echo_n "(cached) " >&6
4229else
4230  if test -z "$GREP"; then
4231  ac_path_GREP_found=false
4232  # Loop through the user's path and test for each of PROGNAME-LIST
4233  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4235do
4236  IFS=$as_save_IFS
4237  test -z "$as_dir" && as_dir=.
4238    for ac_prog in grep ggrep; do
4239    for ac_exec_ext in '' $ac_executable_extensions; do
4240      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4241      as_fn_executable_p "$ac_path_GREP" || continue
4242# Check for GNU ac_path_GREP and select it if it is found.
4243  # Check for GNU $ac_path_GREP
4244case `"$ac_path_GREP" --version 2>&1` in
4245*GNU*)
4246  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4247*)
4248  ac_count=0
4249  $as_echo_n 0123456789 >"conftest.in"
4250  while :
4251  do
4252    cat "conftest.in" "conftest.in" >"conftest.tmp"
4253    mv "conftest.tmp" "conftest.in"
4254    cp "conftest.in" "conftest.nl"
4255    $as_echo 'GREP' >> "conftest.nl"
4256    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4257    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4258    as_fn_arith $ac_count + 1 && ac_count=$as_val
4259    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4260      # Best one so far, save it but keep looking for a better one
4261      ac_cv_path_GREP="$ac_path_GREP"
4262      ac_path_GREP_max=$ac_count
4263    fi
4264    # 10*(2^10) chars as input seems more than enough
4265    test $ac_count -gt 10 && break
4266  done
4267  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4268esac
4269
4270      $ac_path_GREP_found && break 3
4271    done
4272  done
4273  done
4274IFS=$as_save_IFS
4275  if test -z "$ac_cv_path_GREP"; then
4276    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4277  fi
4278else
4279  ac_cv_path_GREP=$GREP
4280fi
4281
4282fi
4283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4284$as_echo "$ac_cv_path_GREP" >&6; }
4285 GREP="$ac_cv_path_GREP"
4286
4287
4288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4289$as_echo_n "checking for egrep... " >&6; }
4290if ${ac_cv_path_EGREP+:} false; then :
4291  $as_echo_n "(cached) " >&6
4292else
4293  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4294   then ac_cv_path_EGREP="$GREP -E"
4295   else
4296     if test -z "$EGREP"; then
4297  ac_path_EGREP_found=false
4298  # Loop through the user's path and test for each of PROGNAME-LIST
4299  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4301do
4302  IFS=$as_save_IFS
4303  test -z "$as_dir" && as_dir=.
4304    for ac_prog in egrep; do
4305    for ac_exec_ext in '' $ac_executable_extensions; do
4306      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4307      as_fn_executable_p "$ac_path_EGREP" || continue
4308# Check for GNU ac_path_EGREP and select it if it is found.
4309  # Check for GNU $ac_path_EGREP
4310case `"$ac_path_EGREP" --version 2>&1` in
4311*GNU*)
4312  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4313*)
4314  ac_count=0
4315  $as_echo_n 0123456789 >"conftest.in"
4316  while :
4317  do
4318    cat "conftest.in" "conftest.in" >"conftest.tmp"
4319    mv "conftest.tmp" "conftest.in"
4320    cp "conftest.in" "conftest.nl"
4321    $as_echo 'EGREP' >> "conftest.nl"
4322    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4323    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4324    as_fn_arith $ac_count + 1 && ac_count=$as_val
4325    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4326      # Best one so far, save it but keep looking for a better one
4327      ac_cv_path_EGREP="$ac_path_EGREP"
4328      ac_path_EGREP_max=$ac_count
4329    fi
4330    # 10*(2^10) chars as input seems more than enough
4331    test $ac_count -gt 10 && break
4332  done
4333  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4334esac
4335
4336      $ac_path_EGREP_found && break 3
4337    done
4338  done
4339  done
4340IFS=$as_save_IFS
4341  if test -z "$ac_cv_path_EGREP"; then
4342    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4343  fi
4344else
4345  ac_cv_path_EGREP=$EGREP
4346fi
4347
4348   fi
4349fi
4350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4351$as_echo "$ac_cv_path_EGREP" >&6; }
4352 EGREP="$ac_cv_path_EGREP"
4353
4354
4355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4356$as_echo_n "checking for ANSI C header files... " >&6; }
4357if ${ac_cv_header_stdc+:} false; then :
4358  $as_echo_n "(cached) " >&6
4359else
4360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361/* end confdefs.h.  */
4362#include <stdlib.h>
4363#include <stdarg.h>
4364#include <string.h>
4365#include <float.h>
4366
4367int
4368main ()
4369{
4370
4371  ;
4372  return 0;
4373}
4374_ACEOF
4375if ac_fn_c_try_compile "$LINENO"; then :
4376  ac_cv_header_stdc=yes
4377else
4378  ac_cv_header_stdc=no
4379fi
4380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381
4382if test $ac_cv_header_stdc = yes; then
4383  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385/* end confdefs.h.  */
4386#include <string.h>
4387
4388_ACEOF
4389if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4390  $EGREP "memchr" >/dev/null 2>&1; then :
4391
4392else
4393  ac_cv_header_stdc=no
4394fi
4395rm -f conftest*
4396
4397fi
4398
4399if test $ac_cv_header_stdc = yes; then
4400  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402/* end confdefs.h.  */
4403#include <stdlib.h>
4404
4405_ACEOF
4406if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4407  $EGREP "free" >/dev/null 2>&1; then :
4408
4409else
4410  ac_cv_header_stdc=no
4411fi
4412rm -f conftest*
4413
4414fi
4415
4416if test $ac_cv_header_stdc = yes; then
4417  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4418  if test "$cross_compiling" = yes; then :
4419  :
4420else
4421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422/* end confdefs.h.  */
4423#include <ctype.h>
4424#include <stdlib.h>
4425#if ((' ' & 0x0FF) == 0x020)
4426# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4427# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4428#else
4429# define ISLOWER(c) \
4430		   (('a' <= (c) && (c) <= 'i') \
4431		     || ('j' <= (c) && (c) <= 'r') \
4432		     || ('s' <= (c) && (c) <= 'z'))
4433# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4434#endif
4435
4436#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4437int
4438main ()
4439{
4440  int i;
4441  for (i = 0; i < 256; i++)
4442    if (XOR (islower (i), ISLOWER (i))
4443	|| toupper (i) != TOUPPER (i))
4444      return 2;
4445  return 0;
4446}
4447_ACEOF
4448if ac_fn_c_try_run "$LINENO"; then :
4449
4450else
4451  ac_cv_header_stdc=no
4452fi
4453rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4454  conftest.$ac_objext conftest.beam conftest.$ac_ext
4455fi
4456
4457fi
4458fi
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4460$as_echo "$ac_cv_header_stdc" >&6; }
4461if test $ac_cv_header_stdc = yes; then
4462
4463$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4464
4465fi
4466
4467# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4468for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4469		  inttypes.h stdint.h unistd.h
4470do :
4471  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4472ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4473"
4474if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4475  cat >>confdefs.h <<_ACEOF
4476#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4477_ACEOF
4478
4479fi
4480
4481done
4482
4483
4484
4485
4486
4487
4488ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4489if test "x$ac_cv_have_decl___clang__" = xyes; then :
4490  CLANGCC="yes"
4491else
4492  CLANGCC="no"
4493fi
4494
4495ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4496if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4497  INTELCC="yes"
4498else
4499  INTELCC="no"
4500fi
4501
4502ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4503if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4504  SUNCC="yes"
4505else
4506  SUNCC="no"
4507fi
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4518	if test -n "$ac_tool_prefix"; then
4519  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4520set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4522$as_echo_n "checking for $ac_word... " >&6; }
4523if ${ac_cv_path_PKG_CONFIG+:} false; then :
4524  $as_echo_n "(cached) " >&6
4525else
4526  case $PKG_CONFIG in
4527  [\\/]* | ?:[\\/]*)
4528  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4529  ;;
4530  *)
4531  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532for as_dir in $PATH
4533do
4534  IFS=$as_save_IFS
4535  test -z "$as_dir" && as_dir=.
4536    for ac_exec_ext in '' $ac_executable_extensions; do
4537  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4538    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4540    break 2
4541  fi
4542done
4543  done
4544IFS=$as_save_IFS
4545
4546  ;;
4547esac
4548fi
4549PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4550if test -n "$PKG_CONFIG"; then
4551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4552$as_echo "$PKG_CONFIG" >&6; }
4553else
4554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555$as_echo "no" >&6; }
4556fi
4557
4558
4559fi
4560if test -z "$ac_cv_path_PKG_CONFIG"; then
4561  ac_pt_PKG_CONFIG=$PKG_CONFIG
4562  # Extract the first word of "pkg-config", so it can be a program name with args.
4563set dummy pkg-config; ac_word=$2
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4565$as_echo_n "checking for $ac_word... " >&6; }
4566if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4567  $as_echo_n "(cached) " >&6
4568else
4569  case $ac_pt_PKG_CONFIG in
4570  [\\/]* | ?:[\\/]*)
4571  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4572  ;;
4573  *)
4574  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575for as_dir in $PATH
4576do
4577  IFS=$as_save_IFS
4578  test -z "$as_dir" && as_dir=.
4579    for ac_exec_ext in '' $ac_executable_extensions; do
4580  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4581    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4582    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4583    break 2
4584  fi
4585done
4586  done
4587IFS=$as_save_IFS
4588
4589  ;;
4590esac
4591fi
4592ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4593if test -n "$ac_pt_PKG_CONFIG"; then
4594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4595$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4596else
4597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598$as_echo "no" >&6; }
4599fi
4600
4601  if test "x$ac_pt_PKG_CONFIG" = x; then
4602    PKG_CONFIG=""
4603  else
4604    case $cross_compiling:$ac_tool_warned in
4605yes:)
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4608ac_tool_warned=yes ;;
4609esac
4610    PKG_CONFIG=$ac_pt_PKG_CONFIG
4611  fi
4612else
4613  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4614fi
4615
4616fi
4617if test -n "$PKG_CONFIG"; then
4618	_pkg_min_version=0.9.0
4619	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4620$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4621	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4622		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4623$as_echo "yes" >&6; }
4624	else
4625		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626$as_echo "no" >&6; }
4627		PKG_CONFIG=""
4628	fi
4629fi
4630# Make sure we can run config.sub.
4631$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4632  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4633
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4635$as_echo_n "checking build system type... " >&6; }
4636if ${ac_cv_build+:} false; then :
4637  $as_echo_n "(cached) " >&6
4638else
4639  ac_build_alias=$build_alias
4640test "x$ac_build_alias" = x &&
4641  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4642test "x$ac_build_alias" = x &&
4643  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4644ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4645  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4646
4647fi
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4649$as_echo "$ac_cv_build" >&6; }
4650case $ac_cv_build in
4651*-*-*) ;;
4652*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4653esac
4654build=$ac_cv_build
4655ac_save_IFS=$IFS; IFS='-'
4656set x $ac_cv_build
4657shift
4658build_cpu=$1
4659build_vendor=$2
4660shift; shift
4661# Remember, the first character of IFS is used to create $*,
4662# except with old shells:
4663build_os=$*
4664IFS=$ac_save_IFS
4665case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4666
4667
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4669$as_echo_n "checking host system type... " >&6; }
4670if ${ac_cv_host+:} false; then :
4671  $as_echo_n "(cached) " >&6
4672else
4673  if test "x$host_alias" = x; then
4674  ac_cv_host=$ac_cv_build
4675else
4676  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4677    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4678fi
4679
4680fi
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4682$as_echo "$ac_cv_host" >&6; }
4683case $ac_cv_host in
4684*-*-*) ;;
4685*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4686esac
4687host=$ac_cv_host
4688ac_save_IFS=$IFS; IFS='-'
4689set x $ac_cv_host
4690shift
4691host_cpu=$1
4692host_vendor=$2
4693shift; shift
4694# Remember, the first character of IFS is used to create $*,
4695# except with old shells:
4696host_os=$*
4697IFS=$ac_save_IFS
4698case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4699
4700
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4702$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4703if ${ac_cv_path_SED+:} false; then :
4704  $as_echo_n "(cached) " >&6
4705else
4706            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4707     for ac_i in 1 2 3 4 5 6 7; do
4708       ac_script="$ac_script$as_nl$ac_script"
4709     done
4710     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4711     { ac_script=; unset ac_script;}
4712     if test -z "$SED"; then
4713  ac_path_SED_found=false
4714  # Loop through the user's path and test for each of PROGNAME-LIST
4715  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716for as_dir in $PATH
4717do
4718  IFS=$as_save_IFS
4719  test -z "$as_dir" && as_dir=.
4720    for ac_prog in sed gsed; do
4721    for ac_exec_ext in '' $ac_executable_extensions; do
4722      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4723      as_fn_executable_p "$ac_path_SED" || continue
4724# Check for GNU ac_path_SED and select it if it is found.
4725  # Check for GNU $ac_path_SED
4726case `"$ac_path_SED" --version 2>&1` in
4727*GNU*)
4728  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4729*)
4730  ac_count=0
4731  $as_echo_n 0123456789 >"conftest.in"
4732  while :
4733  do
4734    cat "conftest.in" "conftest.in" >"conftest.tmp"
4735    mv "conftest.tmp" "conftest.in"
4736    cp "conftest.in" "conftest.nl"
4737    $as_echo '' >> "conftest.nl"
4738    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4739    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4740    as_fn_arith $ac_count + 1 && ac_count=$as_val
4741    if test $ac_count -gt ${ac_path_SED_max-0}; then
4742      # Best one so far, save it but keep looking for a better one
4743      ac_cv_path_SED="$ac_path_SED"
4744      ac_path_SED_max=$ac_count
4745    fi
4746    # 10*(2^10) chars as input seems more than enough
4747    test $ac_count -gt 10 && break
4748  done
4749  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4750esac
4751
4752      $ac_path_SED_found && break 3
4753    done
4754  done
4755  done
4756IFS=$as_save_IFS
4757  if test -z "$ac_cv_path_SED"; then
4758    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4759  fi
4760else
4761  ac_cv_path_SED=$SED
4762fi
4763
4764fi
4765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4766$as_echo "$ac_cv_path_SED" >&6; }
4767 SED="$ac_cv_path_SED"
4768  rm -f conftest.sed
4769
4770
4771
4772
4773
4774
4775# Check whether --enable-selective-werror was given.
4776if test "${enable_selective_werror+set}" = set; then :
4777  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4778else
4779  SELECTIVE_WERROR=yes
4780fi
4781
4782
4783
4784
4785
4786# -v is too short to test reliably with XORG_TESTSET_CFLAG
4787if test "x$SUNCC" = "xyes"; then
4788    BASE_CFLAGS="-v"
4789else
4790    BASE_CFLAGS=""
4791fi
4792
4793# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807xorg_testset_save_CFLAGS="$CFLAGS"
4808
4809if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4810	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4811	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4812$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4813if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4814  $as_echo_n "(cached) " >&6
4815else
4816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817/* end confdefs.h.  */
4818int i;
4819_ACEOF
4820if ac_fn_c_try_compile "$LINENO"; then :
4821  xorg_cv_cc_flag_unknown_warning_option=yes
4822else
4823  xorg_cv_cc_flag_unknown_warning_option=no
4824fi
4825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4826fi
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4828$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4829	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4830	CFLAGS="$xorg_testset_save_CFLAGS"
4831fi
4832
4833if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4834	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4835		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4836	fi
4837	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4838	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4839$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4840if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4841  $as_echo_n "(cached) " >&6
4842else
4843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844/* end confdefs.h.  */
4845int i;
4846_ACEOF
4847if ac_fn_c_try_compile "$LINENO"; then :
4848  xorg_cv_cc_flag_unused_command_line_argument=yes
4849else
4850  xorg_cv_cc_flag_unused_command_line_argument=no
4851fi
4852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4853fi
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4855$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4856	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4857	CFLAGS="$xorg_testset_save_CFLAGS"
4858fi
4859
4860found="no"
4861
4862	if test $found = "no" ; then
4863		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4864			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4865		fi
4866
4867		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4868			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4869		fi
4870
4871		CFLAGS="$CFLAGS -Wall"
4872
4873		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4874$as_echo_n "checking if $CC supports -Wall... " >&6; }
4875		cacheid=xorg_cv_cc_flag__Wall
4876		if eval \${$cacheid+:} false; then :
4877  $as_echo_n "(cached) " >&6
4878else
4879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880/* end confdefs.h.  */
4881int i;
4882int
4883main ()
4884{
4885
4886  ;
4887  return 0;
4888}
4889_ACEOF
4890if ac_fn_c_try_link "$LINENO"; then :
4891  eval $cacheid=yes
4892else
4893  eval $cacheid=no
4894fi
4895rm -f core conftest.err conftest.$ac_objext \
4896    conftest$ac_exeext conftest.$ac_ext
4897fi
4898
4899
4900		CFLAGS="$xorg_testset_save_CFLAGS"
4901
4902		eval supported=\$$cacheid
4903		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4904$as_echo "$supported" >&6; }
4905		if test "$supported" = "yes" ; then
4906			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4907			found="yes"
4908		fi
4909	fi
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925xorg_testset_save_CFLAGS="$CFLAGS"
4926
4927if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4928	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4929	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4930$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4931if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4932  $as_echo_n "(cached) " >&6
4933else
4934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935/* end confdefs.h.  */
4936int i;
4937_ACEOF
4938if ac_fn_c_try_compile "$LINENO"; then :
4939  xorg_cv_cc_flag_unknown_warning_option=yes
4940else
4941  xorg_cv_cc_flag_unknown_warning_option=no
4942fi
4943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4944fi
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4946$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4947	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4948	CFLAGS="$xorg_testset_save_CFLAGS"
4949fi
4950
4951if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4952	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4953		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4954	fi
4955	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4956	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4957$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4958if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4959  $as_echo_n "(cached) " >&6
4960else
4961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962/* end confdefs.h.  */
4963int i;
4964_ACEOF
4965if ac_fn_c_try_compile "$LINENO"; then :
4966  xorg_cv_cc_flag_unused_command_line_argument=yes
4967else
4968  xorg_cv_cc_flag_unused_command_line_argument=no
4969fi
4970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971fi
4972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4973$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4974	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4975	CFLAGS="$xorg_testset_save_CFLAGS"
4976fi
4977
4978found="no"
4979
4980	if test $found = "no" ; then
4981		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4982			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4983		fi
4984
4985		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4986			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4987		fi
4988
4989		CFLAGS="$CFLAGS -Wpointer-arith"
4990
4991		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4992$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4993		cacheid=xorg_cv_cc_flag__Wpointer_arith
4994		if eval \${$cacheid+:} false; then :
4995  $as_echo_n "(cached) " >&6
4996else
4997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998/* end confdefs.h.  */
4999int i;
5000int
5001main ()
5002{
5003
5004  ;
5005  return 0;
5006}
5007_ACEOF
5008if ac_fn_c_try_link "$LINENO"; then :
5009  eval $cacheid=yes
5010else
5011  eval $cacheid=no
5012fi
5013rm -f core conftest.err conftest.$ac_objext \
5014    conftest$ac_exeext conftest.$ac_ext
5015fi
5016
5017
5018		CFLAGS="$xorg_testset_save_CFLAGS"
5019
5020		eval supported=\$$cacheid
5021		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5022$as_echo "$supported" >&6; }
5023		if test "$supported" = "yes" ; then
5024			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5025			found="yes"
5026		fi
5027	fi
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043xorg_testset_save_CFLAGS="$CFLAGS"
5044
5045if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5046	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5047	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5048$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5049if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5050  $as_echo_n "(cached) " >&6
5051else
5052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053/* end confdefs.h.  */
5054int i;
5055_ACEOF
5056if ac_fn_c_try_compile "$LINENO"; then :
5057  xorg_cv_cc_flag_unknown_warning_option=yes
5058else
5059  xorg_cv_cc_flag_unknown_warning_option=no
5060fi
5061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062fi
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5064$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5065	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5066	CFLAGS="$xorg_testset_save_CFLAGS"
5067fi
5068
5069if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5070	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5071		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5072	fi
5073	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5074	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5075$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5076if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5077  $as_echo_n "(cached) " >&6
5078else
5079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080/* end confdefs.h.  */
5081int i;
5082_ACEOF
5083if ac_fn_c_try_compile "$LINENO"; then :
5084  xorg_cv_cc_flag_unused_command_line_argument=yes
5085else
5086  xorg_cv_cc_flag_unused_command_line_argument=no
5087fi
5088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5089fi
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5091$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5092	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5093	CFLAGS="$xorg_testset_save_CFLAGS"
5094fi
5095
5096found="no"
5097
5098	if test $found = "no" ; then
5099		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5100			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5101		fi
5102
5103		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5104			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5105		fi
5106
5107		CFLAGS="$CFLAGS -Wmissing-declarations"
5108
5109		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5110$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5111		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5112		if eval \${$cacheid+:} false; then :
5113  $as_echo_n "(cached) " >&6
5114else
5115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116/* end confdefs.h.  */
5117int i;
5118int
5119main ()
5120{
5121
5122  ;
5123  return 0;
5124}
5125_ACEOF
5126if ac_fn_c_try_link "$LINENO"; then :
5127  eval $cacheid=yes
5128else
5129  eval $cacheid=no
5130fi
5131rm -f core conftest.err conftest.$ac_objext \
5132    conftest$ac_exeext conftest.$ac_ext
5133fi
5134
5135
5136		CFLAGS="$xorg_testset_save_CFLAGS"
5137
5138		eval supported=\$$cacheid
5139		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5140$as_echo "$supported" >&6; }
5141		if test "$supported" = "yes" ; then
5142			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5143			found="yes"
5144		fi
5145	fi
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161xorg_testset_save_CFLAGS="$CFLAGS"
5162
5163if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5164	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5165	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5166$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5167if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5168  $as_echo_n "(cached) " >&6
5169else
5170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171/* end confdefs.h.  */
5172int i;
5173_ACEOF
5174if ac_fn_c_try_compile "$LINENO"; then :
5175  xorg_cv_cc_flag_unknown_warning_option=yes
5176else
5177  xorg_cv_cc_flag_unknown_warning_option=no
5178fi
5179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5180fi
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5182$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5183	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5184	CFLAGS="$xorg_testset_save_CFLAGS"
5185fi
5186
5187if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5188	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5189		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5190	fi
5191	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5192	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5193$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5194if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5195  $as_echo_n "(cached) " >&6
5196else
5197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198/* end confdefs.h.  */
5199int i;
5200_ACEOF
5201if ac_fn_c_try_compile "$LINENO"; then :
5202  xorg_cv_cc_flag_unused_command_line_argument=yes
5203else
5204  xorg_cv_cc_flag_unused_command_line_argument=no
5205fi
5206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5207fi
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5209$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5210	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5211	CFLAGS="$xorg_testset_save_CFLAGS"
5212fi
5213
5214found="no"
5215
5216	if test $found = "no" ; then
5217		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5218			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5219		fi
5220
5221		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5222			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5223		fi
5224
5225		CFLAGS="$CFLAGS -Wformat=2"
5226
5227		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5228$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5229		cacheid=xorg_cv_cc_flag__Wformat_2
5230		if eval \${$cacheid+:} false; then :
5231  $as_echo_n "(cached) " >&6
5232else
5233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234/* end confdefs.h.  */
5235int i;
5236int
5237main ()
5238{
5239
5240  ;
5241  return 0;
5242}
5243_ACEOF
5244if ac_fn_c_try_link "$LINENO"; then :
5245  eval $cacheid=yes
5246else
5247  eval $cacheid=no
5248fi
5249rm -f core conftest.err conftest.$ac_objext \
5250    conftest$ac_exeext conftest.$ac_ext
5251fi
5252
5253
5254		CFLAGS="$xorg_testset_save_CFLAGS"
5255
5256		eval supported=\$$cacheid
5257		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5258$as_echo "$supported" >&6; }
5259		if test "$supported" = "yes" ; then
5260			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5261			found="yes"
5262		fi
5263	fi
5264
5265	if test $found = "no" ; then
5266		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5267			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5268		fi
5269
5270		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5271			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5272		fi
5273
5274		CFLAGS="$CFLAGS -Wformat"
5275
5276		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5277$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5278		cacheid=xorg_cv_cc_flag__Wformat
5279		if eval \${$cacheid+:} false; then :
5280  $as_echo_n "(cached) " >&6
5281else
5282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283/* end confdefs.h.  */
5284int i;
5285int
5286main ()
5287{
5288
5289  ;
5290  return 0;
5291}
5292_ACEOF
5293if ac_fn_c_try_link "$LINENO"; then :
5294  eval $cacheid=yes
5295else
5296  eval $cacheid=no
5297fi
5298rm -f core conftest.err conftest.$ac_objext \
5299    conftest$ac_exeext conftest.$ac_ext
5300fi
5301
5302
5303		CFLAGS="$xorg_testset_save_CFLAGS"
5304
5305		eval supported=\$$cacheid
5306		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5307$as_echo "$supported" >&6; }
5308		if test "$supported" = "yes" ; then
5309			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5310			found="yes"
5311		fi
5312	fi
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330xorg_testset_save_CFLAGS="$CFLAGS"
5331
5332if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5333	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5334	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5335$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5336if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5337  $as_echo_n "(cached) " >&6
5338else
5339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340/* end confdefs.h.  */
5341int i;
5342_ACEOF
5343if ac_fn_c_try_compile "$LINENO"; then :
5344  xorg_cv_cc_flag_unknown_warning_option=yes
5345else
5346  xorg_cv_cc_flag_unknown_warning_option=no
5347fi
5348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5349fi
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5351$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5352	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5353	CFLAGS="$xorg_testset_save_CFLAGS"
5354fi
5355
5356if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5357	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5358		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5359	fi
5360	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5361	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5362$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5363if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5364  $as_echo_n "(cached) " >&6
5365else
5366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367/* end confdefs.h.  */
5368int i;
5369_ACEOF
5370if ac_fn_c_try_compile "$LINENO"; then :
5371  xorg_cv_cc_flag_unused_command_line_argument=yes
5372else
5373  xorg_cv_cc_flag_unused_command_line_argument=no
5374fi
5375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5376fi
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5378$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5379	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5380	CFLAGS="$xorg_testset_save_CFLAGS"
5381fi
5382
5383found="no"
5384
5385	if test $found = "no" ; then
5386		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5387			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5388		fi
5389
5390		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5391			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5392		fi
5393
5394		CFLAGS="$CFLAGS -Wstrict-prototypes"
5395
5396		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5397$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5398		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5399		if eval \${$cacheid+:} false; then :
5400  $as_echo_n "(cached) " >&6
5401else
5402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403/* end confdefs.h.  */
5404int i;
5405int
5406main ()
5407{
5408
5409  ;
5410  return 0;
5411}
5412_ACEOF
5413if ac_fn_c_try_link "$LINENO"; then :
5414  eval $cacheid=yes
5415else
5416  eval $cacheid=no
5417fi
5418rm -f core conftest.err conftest.$ac_objext \
5419    conftest$ac_exeext conftest.$ac_ext
5420fi
5421
5422
5423		CFLAGS="$xorg_testset_save_CFLAGS"
5424
5425		eval supported=\$$cacheid
5426		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5427$as_echo "$supported" >&6; }
5428		if test "$supported" = "yes" ; then
5429			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5430			found="yes"
5431		fi
5432	fi
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448xorg_testset_save_CFLAGS="$CFLAGS"
5449
5450if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5451	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5452	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5453$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5454if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5455  $as_echo_n "(cached) " >&6
5456else
5457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458/* end confdefs.h.  */
5459int i;
5460_ACEOF
5461if ac_fn_c_try_compile "$LINENO"; then :
5462  xorg_cv_cc_flag_unknown_warning_option=yes
5463else
5464  xorg_cv_cc_flag_unknown_warning_option=no
5465fi
5466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467fi
5468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5469$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5470	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5471	CFLAGS="$xorg_testset_save_CFLAGS"
5472fi
5473
5474if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5475	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5476		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5477	fi
5478	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5479	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5480$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5481if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5482  $as_echo_n "(cached) " >&6
5483else
5484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485/* end confdefs.h.  */
5486int i;
5487_ACEOF
5488if ac_fn_c_try_compile "$LINENO"; then :
5489  xorg_cv_cc_flag_unused_command_line_argument=yes
5490else
5491  xorg_cv_cc_flag_unused_command_line_argument=no
5492fi
5493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494fi
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5496$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5497	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5498	CFLAGS="$xorg_testset_save_CFLAGS"
5499fi
5500
5501found="no"
5502
5503	if test $found = "no" ; then
5504		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5505			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5506		fi
5507
5508		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5509			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5510		fi
5511
5512		CFLAGS="$CFLAGS -Wmissing-prototypes"
5513
5514		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5515$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5516		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5517		if eval \${$cacheid+:} false; then :
5518  $as_echo_n "(cached) " >&6
5519else
5520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521/* end confdefs.h.  */
5522int i;
5523int
5524main ()
5525{
5526
5527  ;
5528  return 0;
5529}
5530_ACEOF
5531if ac_fn_c_try_link "$LINENO"; then :
5532  eval $cacheid=yes
5533else
5534  eval $cacheid=no
5535fi
5536rm -f core conftest.err conftest.$ac_objext \
5537    conftest$ac_exeext conftest.$ac_ext
5538fi
5539
5540
5541		CFLAGS="$xorg_testset_save_CFLAGS"
5542
5543		eval supported=\$$cacheid
5544		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5545$as_echo "$supported" >&6; }
5546		if test "$supported" = "yes" ; then
5547			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5548			found="yes"
5549		fi
5550	fi
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566xorg_testset_save_CFLAGS="$CFLAGS"
5567
5568if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5569	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5570	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5571$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5572if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5573  $as_echo_n "(cached) " >&6
5574else
5575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576/* end confdefs.h.  */
5577int i;
5578_ACEOF
5579if ac_fn_c_try_compile "$LINENO"; then :
5580  xorg_cv_cc_flag_unknown_warning_option=yes
5581else
5582  xorg_cv_cc_flag_unknown_warning_option=no
5583fi
5584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585fi
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5587$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5588	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5589	CFLAGS="$xorg_testset_save_CFLAGS"
5590fi
5591
5592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5593	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5594		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5595	fi
5596	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5597	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5598$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5599if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5600  $as_echo_n "(cached) " >&6
5601else
5602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603/* end confdefs.h.  */
5604int i;
5605_ACEOF
5606if ac_fn_c_try_compile "$LINENO"; then :
5607  xorg_cv_cc_flag_unused_command_line_argument=yes
5608else
5609  xorg_cv_cc_flag_unused_command_line_argument=no
5610fi
5611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612fi
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5614$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5615	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5616	CFLAGS="$xorg_testset_save_CFLAGS"
5617fi
5618
5619found="no"
5620
5621	if test $found = "no" ; then
5622		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5623			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5624		fi
5625
5626		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5627			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5628		fi
5629
5630		CFLAGS="$CFLAGS -Wnested-externs"
5631
5632		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5633$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5634		cacheid=xorg_cv_cc_flag__Wnested_externs
5635		if eval \${$cacheid+:} false; then :
5636  $as_echo_n "(cached) " >&6
5637else
5638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639/* end confdefs.h.  */
5640int i;
5641int
5642main ()
5643{
5644
5645  ;
5646  return 0;
5647}
5648_ACEOF
5649if ac_fn_c_try_link "$LINENO"; then :
5650  eval $cacheid=yes
5651else
5652  eval $cacheid=no
5653fi
5654rm -f core conftest.err conftest.$ac_objext \
5655    conftest$ac_exeext conftest.$ac_ext
5656fi
5657
5658
5659		CFLAGS="$xorg_testset_save_CFLAGS"
5660
5661		eval supported=\$$cacheid
5662		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5663$as_echo "$supported" >&6; }
5664		if test "$supported" = "yes" ; then
5665			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5666			found="yes"
5667		fi
5668	fi
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684xorg_testset_save_CFLAGS="$CFLAGS"
5685
5686if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5687	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5688	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5689$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5690if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5691  $as_echo_n "(cached) " >&6
5692else
5693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694/* end confdefs.h.  */
5695int i;
5696_ACEOF
5697if ac_fn_c_try_compile "$LINENO"; then :
5698  xorg_cv_cc_flag_unknown_warning_option=yes
5699else
5700  xorg_cv_cc_flag_unknown_warning_option=no
5701fi
5702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703fi
5704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5705$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5706	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5707	CFLAGS="$xorg_testset_save_CFLAGS"
5708fi
5709
5710if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5711	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5712		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5713	fi
5714	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5715	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5716$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5717if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5718  $as_echo_n "(cached) " >&6
5719else
5720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721/* end confdefs.h.  */
5722int i;
5723_ACEOF
5724if ac_fn_c_try_compile "$LINENO"; then :
5725  xorg_cv_cc_flag_unused_command_line_argument=yes
5726else
5727  xorg_cv_cc_flag_unused_command_line_argument=no
5728fi
5729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5730fi
5731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5732$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5733	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5734	CFLAGS="$xorg_testset_save_CFLAGS"
5735fi
5736
5737found="no"
5738
5739	if test $found = "no" ; then
5740		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5741			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5742		fi
5743
5744		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5745			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5746		fi
5747
5748		CFLAGS="$CFLAGS -Wbad-function-cast"
5749
5750		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5751$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5752		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5753		if eval \${$cacheid+:} false; then :
5754  $as_echo_n "(cached) " >&6
5755else
5756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757/* end confdefs.h.  */
5758int i;
5759int
5760main ()
5761{
5762
5763  ;
5764  return 0;
5765}
5766_ACEOF
5767if ac_fn_c_try_link "$LINENO"; then :
5768  eval $cacheid=yes
5769else
5770  eval $cacheid=no
5771fi
5772rm -f core conftest.err conftest.$ac_objext \
5773    conftest$ac_exeext conftest.$ac_ext
5774fi
5775
5776
5777		CFLAGS="$xorg_testset_save_CFLAGS"
5778
5779		eval supported=\$$cacheid
5780		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5781$as_echo "$supported" >&6; }
5782		if test "$supported" = "yes" ; then
5783			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5784			found="yes"
5785		fi
5786	fi
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802xorg_testset_save_CFLAGS="$CFLAGS"
5803
5804if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5805	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5806	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5807$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5808if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5809  $as_echo_n "(cached) " >&6
5810else
5811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812/* end confdefs.h.  */
5813int i;
5814_ACEOF
5815if ac_fn_c_try_compile "$LINENO"; then :
5816  xorg_cv_cc_flag_unknown_warning_option=yes
5817else
5818  xorg_cv_cc_flag_unknown_warning_option=no
5819fi
5820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821fi
5822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5823$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5824	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5825	CFLAGS="$xorg_testset_save_CFLAGS"
5826fi
5827
5828if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5829	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5830		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5831	fi
5832	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5833	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5834$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5835if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5836  $as_echo_n "(cached) " >&6
5837else
5838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839/* end confdefs.h.  */
5840int i;
5841_ACEOF
5842if ac_fn_c_try_compile "$LINENO"; then :
5843  xorg_cv_cc_flag_unused_command_line_argument=yes
5844else
5845  xorg_cv_cc_flag_unused_command_line_argument=no
5846fi
5847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5848fi
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5850$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5851	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5852	CFLAGS="$xorg_testset_save_CFLAGS"
5853fi
5854
5855found="no"
5856
5857	if test $found = "no" ; then
5858		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5859			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5860		fi
5861
5862		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5863			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5864		fi
5865
5866		CFLAGS="$CFLAGS -Wold-style-definition"
5867
5868		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5869$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5870		cacheid=xorg_cv_cc_flag__Wold_style_definition
5871		if eval \${$cacheid+:} false; then :
5872  $as_echo_n "(cached) " >&6
5873else
5874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875/* end confdefs.h.  */
5876int i;
5877int
5878main ()
5879{
5880
5881  ;
5882  return 0;
5883}
5884_ACEOF
5885if ac_fn_c_try_link "$LINENO"; then :
5886  eval $cacheid=yes
5887else
5888  eval $cacheid=no
5889fi
5890rm -f core conftest.err conftest.$ac_objext \
5891    conftest$ac_exeext conftest.$ac_ext
5892fi
5893
5894
5895		CFLAGS="$xorg_testset_save_CFLAGS"
5896
5897		eval supported=\$$cacheid
5898		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5899$as_echo "$supported" >&6; }
5900		if test "$supported" = "yes" ; then
5901			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5902			found="yes"
5903		fi
5904	fi
5905
5906	if test $found = "no" ; then
5907		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5908			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5909		fi
5910
5911		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5912			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5913		fi
5914
5915		CFLAGS="$CFLAGS -fd"
5916
5917		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5918$as_echo_n "checking if $CC supports -fd... " >&6; }
5919		cacheid=xorg_cv_cc_flag__fd
5920		if eval \${$cacheid+:} false; then :
5921  $as_echo_n "(cached) " >&6
5922else
5923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924/* end confdefs.h.  */
5925int i;
5926int
5927main ()
5928{
5929
5930  ;
5931  return 0;
5932}
5933_ACEOF
5934if ac_fn_c_try_link "$LINENO"; then :
5935  eval $cacheid=yes
5936else
5937  eval $cacheid=no
5938fi
5939rm -f core conftest.err conftest.$ac_objext \
5940    conftest$ac_exeext conftest.$ac_ext
5941fi
5942
5943
5944		CFLAGS="$xorg_testset_save_CFLAGS"
5945
5946		eval supported=\$$cacheid
5947		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5948$as_echo "$supported" >&6; }
5949		if test "$supported" = "yes" ; then
5950			BASE_CFLAGS="$BASE_CFLAGS -fd"
5951			found="yes"
5952		fi
5953	fi
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969xorg_testset_save_CFLAGS="$CFLAGS"
5970
5971if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5972	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5973	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5974$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5975if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5976  $as_echo_n "(cached) " >&6
5977else
5978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979/* end confdefs.h.  */
5980int i;
5981_ACEOF
5982if ac_fn_c_try_compile "$LINENO"; then :
5983  xorg_cv_cc_flag_unknown_warning_option=yes
5984else
5985  xorg_cv_cc_flag_unknown_warning_option=no
5986fi
5987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5988fi
5989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5990$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5991	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5992	CFLAGS="$xorg_testset_save_CFLAGS"
5993fi
5994
5995if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5996	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5997		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5998	fi
5999	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6000	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6001$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6002if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6003  $as_echo_n "(cached) " >&6
6004else
6005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006/* end confdefs.h.  */
6007int i;
6008_ACEOF
6009if ac_fn_c_try_compile "$LINENO"; then :
6010  xorg_cv_cc_flag_unused_command_line_argument=yes
6011else
6012  xorg_cv_cc_flag_unused_command_line_argument=no
6013fi
6014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015fi
6016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6017$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6018	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6019	CFLAGS="$xorg_testset_save_CFLAGS"
6020fi
6021
6022found="no"
6023
6024	if test $found = "no" ; then
6025		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6026			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6027		fi
6028
6029		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6030			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6031		fi
6032
6033		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6034
6035		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6036$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6037		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6038		if eval \${$cacheid+:} false; then :
6039  $as_echo_n "(cached) " >&6
6040else
6041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042/* end confdefs.h.  */
6043int i;
6044int
6045main ()
6046{
6047
6048  ;
6049  return 0;
6050}
6051_ACEOF
6052if ac_fn_c_try_link "$LINENO"; then :
6053  eval $cacheid=yes
6054else
6055  eval $cacheid=no
6056fi
6057rm -f core conftest.err conftest.$ac_objext \
6058    conftest$ac_exeext conftest.$ac_ext
6059fi
6060
6061
6062		CFLAGS="$xorg_testset_save_CFLAGS"
6063
6064		eval supported=\$$cacheid
6065		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6066$as_echo "$supported" >&6; }
6067		if test "$supported" = "yes" ; then
6068			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6069			found="yes"
6070		fi
6071	fi
6072
6073
6074
6075
6076
6077# This chunk adds additional warnings that could catch undesired effects.
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091xorg_testset_save_CFLAGS="$CFLAGS"
6092
6093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6094	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6095	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6096$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6097if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6098  $as_echo_n "(cached) " >&6
6099else
6100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101/* end confdefs.h.  */
6102int i;
6103_ACEOF
6104if ac_fn_c_try_compile "$LINENO"; then :
6105  xorg_cv_cc_flag_unknown_warning_option=yes
6106else
6107  xorg_cv_cc_flag_unknown_warning_option=no
6108fi
6109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6110fi
6111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6112$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6113	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6114	CFLAGS="$xorg_testset_save_CFLAGS"
6115fi
6116
6117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6118	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6119		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6120	fi
6121	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6122	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6123$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6124if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6125  $as_echo_n "(cached) " >&6
6126else
6127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128/* end confdefs.h.  */
6129int i;
6130_ACEOF
6131if ac_fn_c_try_compile "$LINENO"; then :
6132  xorg_cv_cc_flag_unused_command_line_argument=yes
6133else
6134  xorg_cv_cc_flag_unused_command_line_argument=no
6135fi
6136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6137fi
6138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6139$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6140	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6141	CFLAGS="$xorg_testset_save_CFLAGS"
6142fi
6143
6144found="no"
6145
6146	if test $found = "no" ; then
6147		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6148			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6149		fi
6150
6151		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6152			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6153		fi
6154
6155		CFLAGS="$CFLAGS -Wunused"
6156
6157		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6158$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6159		cacheid=xorg_cv_cc_flag__Wunused
6160		if eval \${$cacheid+:} false; then :
6161  $as_echo_n "(cached) " >&6
6162else
6163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164/* end confdefs.h.  */
6165int i;
6166int
6167main ()
6168{
6169
6170  ;
6171  return 0;
6172}
6173_ACEOF
6174if ac_fn_c_try_link "$LINENO"; then :
6175  eval $cacheid=yes
6176else
6177  eval $cacheid=no
6178fi
6179rm -f core conftest.err conftest.$ac_objext \
6180    conftest$ac_exeext conftest.$ac_ext
6181fi
6182
6183
6184		CFLAGS="$xorg_testset_save_CFLAGS"
6185
6186		eval supported=\$$cacheid
6187		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6188$as_echo "$supported" >&6; }
6189		if test "$supported" = "yes" ; then
6190			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6191			found="yes"
6192		fi
6193	fi
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209xorg_testset_save_CFLAGS="$CFLAGS"
6210
6211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6212	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6213	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6214$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6215if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6216  $as_echo_n "(cached) " >&6
6217else
6218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219/* end confdefs.h.  */
6220int i;
6221_ACEOF
6222if ac_fn_c_try_compile "$LINENO"; then :
6223  xorg_cv_cc_flag_unknown_warning_option=yes
6224else
6225  xorg_cv_cc_flag_unknown_warning_option=no
6226fi
6227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228fi
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6230$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6231	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6232	CFLAGS="$xorg_testset_save_CFLAGS"
6233fi
6234
6235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6236	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6237		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6238	fi
6239	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6240	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6241$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6242if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6243  $as_echo_n "(cached) " >&6
6244else
6245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246/* end confdefs.h.  */
6247int i;
6248_ACEOF
6249if ac_fn_c_try_compile "$LINENO"; then :
6250  xorg_cv_cc_flag_unused_command_line_argument=yes
6251else
6252  xorg_cv_cc_flag_unused_command_line_argument=no
6253fi
6254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255fi
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6257$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6258	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6259	CFLAGS="$xorg_testset_save_CFLAGS"
6260fi
6261
6262found="no"
6263
6264	if test $found = "no" ; then
6265		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6266			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6267		fi
6268
6269		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6270			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6271		fi
6272
6273		CFLAGS="$CFLAGS -Wuninitialized"
6274
6275		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6276$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6277		cacheid=xorg_cv_cc_flag__Wuninitialized
6278		if eval \${$cacheid+:} false; then :
6279  $as_echo_n "(cached) " >&6
6280else
6281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282/* end confdefs.h.  */
6283int i;
6284int
6285main ()
6286{
6287
6288  ;
6289  return 0;
6290}
6291_ACEOF
6292if ac_fn_c_try_link "$LINENO"; then :
6293  eval $cacheid=yes
6294else
6295  eval $cacheid=no
6296fi
6297rm -f core conftest.err conftest.$ac_objext \
6298    conftest$ac_exeext conftest.$ac_ext
6299fi
6300
6301
6302		CFLAGS="$xorg_testset_save_CFLAGS"
6303
6304		eval supported=\$$cacheid
6305		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6306$as_echo "$supported" >&6; }
6307		if test "$supported" = "yes" ; then
6308			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6309			found="yes"
6310		fi
6311	fi
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327xorg_testset_save_CFLAGS="$CFLAGS"
6328
6329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6330	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6331	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6332$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6333if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6334  $as_echo_n "(cached) " >&6
6335else
6336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337/* end confdefs.h.  */
6338int i;
6339_ACEOF
6340if ac_fn_c_try_compile "$LINENO"; then :
6341  xorg_cv_cc_flag_unknown_warning_option=yes
6342else
6343  xorg_cv_cc_flag_unknown_warning_option=no
6344fi
6345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6346fi
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6348$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6349	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6350	CFLAGS="$xorg_testset_save_CFLAGS"
6351fi
6352
6353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6354	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6355		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6356	fi
6357	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6358	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6359$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6360if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6361  $as_echo_n "(cached) " >&6
6362else
6363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364/* end confdefs.h.  */
6365int i;
6366_ACEOF
6367if ac_fn_c_try_compile "$LINENO"; then :
6368  xorg_cv_cc_flag_unused_command_line_argument=yes
6369else
6370  xorg_cv_cc_flag_unused_command_line_argument=no
6371fi
6372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6373fi
6374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6375$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6376	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6377	CFLAGS="$xorg_testset_save_CFLAGS"
6378fi
6379
6380found="no"
6381
6382	if test $found = "no" ; then
6383		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6384			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6385		fi
6386
6387		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6388			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6389		fi
6390
6391		CFLAGS="$CFLAGS -Wshadow"
6392
6393		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6394$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6395		cacheid=xorg_cv_cc_flag__Wshadow
6396		if eval \${$cacheid+:} false; then :
6397  $as_echo_n "(cached) " >&6
6398else
6399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400/* end confdefs.h.  */
6401int i;
6402int
6403main ()
6404{
6405
6406  ;
6407  return 0;
6408}
6409_ACEOF
6410if ac_fn_c_try_link "$LINENO"; then :
6411  eval $cacheid=yes
6412else
6413  eval $cacheid=no
6414fi
6415rm -f core conftest.err conftest.$ac_objext \
6416    conftest$ac_exeext conftest.$ac_ext
6417fi
6418
6419
6420		CFLAGS="$xorg_testset_save_CFLAGS"
6421
6422		eval supported=\$$cacheid
6423		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6424$as_echo "$supported" >&6; }
6425		if test "$supported" = "yes" ; then
6426			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6427			found="yes"
6428		fi
6429	fi
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445xorg_testset_save_CFLAGS="$CFLAGS"
6446
6447if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6448	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6449	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6450$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6451if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6452  $as_echo_n "(cached) " >&6
6453else
6454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455/* end confdefs.h.  */
6456int i;
6457_ACEOF
6458if ac_fn_c_try_compile "$LINENO"; then :
6459  xorg_cv_cc_flag_unknown_warning_option=yes
6460else
6461  xorg_cv_cc_flag_unknown_warning_option=no
6462fi
6463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6464fi
6465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6466$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6467	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6468	CFLAGS="$xorg_testset_save_CFLAGS"
6469fi
6470
6471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6472	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6473		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6474	fi
6475	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6476	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6477$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6478if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6479  $as_echo_n "(cached) " >&6
6480else
6481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482/* end confdefs.h.  */
6483int i;
6484_ACEOF
6485if ac_fn_c_try_compile "$LINENO"; then :
6486  xorg_cv_cc_flag_unused_command_line_argument=yes
6487else
6488  xorg_cv_cc_flag_unused_command_line_argument=no
6489fi
6490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6491fi
6492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6493$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6494	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6495	CFLAGS="$xorg_testset_save_CFLAGS"
6496fi
6497
6498found="no"
6499
6500	if test $found = "no" ; then
6501		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6502			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6503		fi
6504
6505		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6506			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6507		fi
6508
6509		CFLAGS="$CFLAGS -Wmissing-noreturn"
6510
6511		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6512$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6513		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6514		if eval \${$cacheid+:} false; then :
6515  $as_echo_n "(cached) " >&6
6516else
6517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518/* end confdefs.h.  */
6519int i;
6520int
6521main ()
6522{
6523
6524  ;
6525  return 0;
6526}
6527_ACEOF
6528if ac_fn_c_try_link "$LINENO"; then :
6529  eval $cacheid=yes
6530else
6531  eval $cacheid=no
6532fi
6533rm -f core conftest.err conftest.$ac_objext \
6534    conftest$ac_exeext conftest.$ac_ext
6535fi
6536
6537
6538		CFLAGS="$xorg_testset_save_CFLAGS"
6539
6540		eval supported=\$$cacheid
6541		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6542$as_echo "$supported" >&6; }
6543		if test "$supported" = "yes" ; then
6544			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6545			found="yes"
6546		fi
6547	fi
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563xorg_testset_save_CFLAGS="$CFLAGS"
6564
6565if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6566	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6567	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6568$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6569if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6570  $as_echo_n "(cached) " >&6
6571else
6572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573/* end confdefs.h.  */
6574int i;
6575_ACEOF
6576if ac_fn_c_try_compile "$LINENO"; then :
6577  xorg_cv_cc_flag_unknown_warning_option=yes
6578else
6579  xorg_cv_cc_flag_unknown_warning_option=no
6580fi
6581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582fi
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6584$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6585	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6586	CFLAGS="$xorg_testset_save_CFLAGS"
6587fi
6588
6589if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6590	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6591		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6592	fi
6593	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6594	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6595$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6596if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6597  $as_echo_n "(cached) " >&6
6598else
6599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600/* end confdefs.h.  */
6601int i;
6602_ACEOF
6603if ac_fn_c_try_compile "$LINENO"; then :
6604  xorg_cv_cc_flag_unused_command_line_argument=yes
6605else
6606  xorg_cv_cc_flag_unused_command_line_argument=no
6607fi
6608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609fi
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6611$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6612	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6613	CFLAGS="$xorg_testset_save_CFLAGS"
6614fi
6615
6616found="no"
6617
6618	if test $found = "no" ; then
6619		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6620			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6621		fi
6622
6623		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6624			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6625		fi
6626
6627		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6628
6629		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6630$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6631		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6632		if eval \${$cacheid+:} false; then :
6633  $as_echo_n "(cached) " >&6
6634else
6635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636/* end confdefs.h.  */
6637int i;
6638int
6639main ()
6640{
6641
6642  ;
6643  return 0;
6644}
6645_ACEOF
6646if ac_fn_c_try_link "$LINENO"; then :
6647  eval $cacheid=yes
6648else
6649  eval $cacheid=no
6650fi
6651rm -f core conftest.err conftest.$ac_objext \
6652    conftest$ac_exeext conftest.$ac_ext
6653fi
6654
6655
6656		CFLAGS="$xorg_testset_save_CFLAGS"
6657
6658		eval supported=\$$cacheid
6659		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6660$as_echo "$supported" >&6; }
6661		if test "$supported" = "yes" ; then
6662			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6663			found="yes"
6664		fi
6665	fi
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681xorg_testset_save_CFLAGS="$CFLAGS"
6682
6683if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6684	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6685	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6686$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6687if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6688  $as_echo_n "(cached) " >&6
6689else
6690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691/* end confdefs.h.  */
6692int i;
6693_ACEOF
6694if ac_fn_c_try_compile "$LINENO"; then :
6695  xorg_cv_cc_flag_unknown_warning_option=yes
6696else
6697  xorg_cv_cc_flag_unknown_warning_option=no
6698fi
6699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700fi
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6702$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6703	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6704	CFLAGS="$xorg_testset_save_CFLAGS"
6705fi
6706
6707if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6708	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6709		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6710	fi
6711	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6712	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6713$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6714if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6715  $as_echo_n "(cached) " >&6
6716else
6717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718/* end confdefs.h.  */
6719int i;
6720_ACEOF
6721if ac_fn_c_try_compile "$LINENO"; then :
6722  xorg_cv_cc_flag_unused_command_line_argument=yes
6723else
6724  xorg_cv_cc_flag_unused_command_line_argument=no
6725fi
6726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6727fi
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6729$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6730	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6731	CFLAGS="$xorg_testset_save_CFLAGS"
6732fi
6733
6734found="no"
6735
6736	if test $found = "no" ; then
6737		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6738			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6739		fi
6740
6741		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6742			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6743		fi
6744
6745		CFLAGS="$CFLAGS -Wredundant-decls"
6746
6747		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6748$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6749		cacheid=xorg_cv_cc_flag__Wredundant_decls
6750		if eval \${$cacheid+:} false; then :
6751  $as_echo_n "(cached) " >&6
6752else
6753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754/* end confdefs.h.  */
6755int i;
6756int
6757main ()
6758{
6759
6760  ;
6761  return 0;
6762}
6763_ACEOF
6764if ac_fn_c_try_link "$LINENO"; then :
6765  eval $cacheid=yes
6766else
6767  eval $cacheid=no
6768fi
6769rm -f core conftest.err conftest.$ac_objext \
6770    conftest$ac_exeext conftest.$ac_ext
6771fi
6772
6773
6774		CFLAGS="$xorg_testset_save_CFLAGS"
6775
6776		eval supported=\$$cacheid
6777		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6778$as_echo "$supported" >&6; }
6779		if test "$supported" = "yes" ; then
6780			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6781			found="yes"
6782		fi
6783	fi
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799xorg_testset_save_CFLAGS="$CFLAGS"
6800
6801if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6802	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6803	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6804$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6805if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6806  $as_echo_n "(cached) " >&6
6807else
6808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809/* end confdefs.h.  */
6810int i;
6811_ACEOF
6812if ac_fn_c_try_compile "$LINENO"; then :
6813  xorg_cv_cc_flag_unknown_warning_option=yes
6814else
6815  xorg_cv_cc_flag_unknown_warning_option=no
6816fi
6817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818fi
6819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6820$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6821	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6822	CFLAGS="$xorg_testset_save_CFLAGS"
6823fi
6824
6825if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6826	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6827		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6828	fi
6829	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6830	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6831$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6832if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6833  $as_echo_n "(cached) " >&6
6834else
6835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836/* end confdefs.h.  */
6837int i;
6838_ACEOF
6839if ac_fn_c_try_compile "$LINENO"; then :
6840  xorg_cv_cc_flag_unused_command_line_argument=yes
6841else
6842  xorg_cv_cc_flag_unused_command_line_argument=no
6843fi
6844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6845fi
6846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6847$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6848	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6849	CFLAGS="$xorg_testset_save_CFLAGS"
6850fi
6851
6852found="no"
6853
6854	if test $found = "no" ; then
6855		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6856			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6857		fi
6858
6859		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6860			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6861		fi
6862
6863		CFLAGS="$CFLAGS -Wlogical-op"
6864
6865		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6866$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6867		cacheid=xorg_cv_cc_flag__Wlogical_op
6868		if eval \${$cacheid+:} false; then :
6869  $as_echo_n "(cached) " >&6
6870else
6871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872/* end confdefs.h.  */
6873int i;
6874int
6875main ()
6876{
6877
6878  ;
6879  return 0;
6880}
6881_ACEOF
6882if ac_fn_c_try_link "$LINENO"; then :
6883  eval $cacheid=yes
6884else
6885  eval $cacheid=no
6886fi
6887rm -f core conftest.err conftest.$ac_objext \
6888    conftest$ac_exeext conftest.$ac_ext
6889fi
6890
6891
6892		CFLAGS="$xorg_testset_save_CFLAGS"
6893
6894		eval supported=\$$cacheid
6895		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6896$as_echo "$supported" >&6; }
6897		if test "$supported" = "yes" ; then
6898			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6899			found="yes"
6900		fi
6901	fi
6902
6903
6904
6905# These are currently disabled because they are noisy.  They will be enabled
6906# in the future once the codebase is sufficiently modernized to silence
6907# them.  For now, I don't want them to drown out the other warnings.
6908# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6909# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6910# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6911
6912# Turn some warnings into errors, so we don't accidently get successful builds
6913# when there are problems that should be fixed.
6914
6915if test "x$SELECTIVE_WERROR" = "xyes" ; then
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929xorg_testset_save_CFLAGS="$CFLAGS"
6930
6931if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6932	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6933	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6934$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6935if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6936  $as_echo_n "(cached) " >&6
6937else
6938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939/* end confdefs.h.  */
6940int i;
6941_ACEOF
6942if ac_fn_c_try_compile "$LINENO"; then :
6943  xorg_cv_cc_flag_unknown_warning_option=yes
6944else
6945  xorg_cv_cc_flag_unknown_warning_option=no
6946fi
6947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6948fi
6949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6950$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6951	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6952	CFLAGS="$xorg_testset_save_CFLAGS"
6953fi
6954
6955if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6956	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6957		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6958	fi
6959	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6960	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6961$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6962if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6963  $as_echo_n "(cached) " >&6
6964else
6965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966/* end confdefs.h.  */
6967int i;
6968_ACEOF
6969if ac_fn_c_try_compile "$LINENO"; then :
6970  xorg_cv_cc_flag_unused_command_line_argument=yes
6971else
6972  xorg_cv_cc_flag_unused_command_line_argument=no
6973fi
6974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975fi
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6977$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6978	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6979	CFLAGS="$xorg_testset_save_CFLAGS"
6980fi
6981
6982found="no"
6983
6984	if test $found = "no" ; then
6985		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6986			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6987		fi
6988
6989		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6990			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6991		fi
6992
6993		CFLAGS="$CFLAGS -Werror=implicit"
6994
6995		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6996$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6997		cacheid=xorg_cv_cc_flag__Werror_implicit
6998		if eval \${$cacheid+:} false; then :
6999  $as_echo_n "(cached) " >&6
7000else
7001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002/* end confdefs.h.  */
7003int i;
7004int
7005main ()
7006{
7007
7008  ;
7009  return 0;
7010}
7011_ACEOF
7012if ac_fn_c_try_link "$LINENO"; then :
7013  eval $cacheid=yes
7014else
7015  eval $cacheid=no
7016fi
7017rm -f core conftest.err conftest.$ac_objext \
7018    conftest$ac_exeext conftest.$ac_ext
7019fi
7020
7021
7022		CFLAGS="$xorg_testset_save_CFLAGS"
7023
7024		eval supported=\$$cacheid
7025		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7026$as_echo "$supported" >&6; }
7027		if test "$supported" = "yes" ; then
7028			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7029			found="yes"
7030		fi
7031	fi
7032
7033	if test $found = "no" ; then
7034		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7035			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7036		fi
7037
7038		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7039			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7040		fi
7041
7042		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7043
7044		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7045$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7046		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7047		if eval \${$cacheid+:} false; then :
7048  $as_echo_n "(cached) " >&6
7049else
7050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051/* end confdefs.h.  */
7052int i;
7053int
7054main ()
7055{
7056
7057  ;
7058  return 0;
7059}
7060_ACEOF
7061if ac_fn_c_try_link "$LINENO"; then :
7062  eval $cacheid=yes
7063else
7064  eval $cacheid=no
7065fi
7066rm -f core conftest.err conftest.$ac_objext \
7067    conftest$ac_exeext conftest.$ac_ext
7068fi
7069
7070
7071		CFLAGS="$xorg_testset_save_CFLAGS"
7072
7073		eval supported=\$$cacheid
7074		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7075$as_echo "$supported" >&6; }
7076		if test "$supported" = "yes" ; then
7077			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7078			found="yes"
7079		fi
7080	fi
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096xorg_testset_save_CFLAGS="$CFLAGS"
7097
7098if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7099	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7100	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7101$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7102if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7103  $as_echo_n "(cached) " >&6
7104else
7105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106/* end confdefs.h.  */
7107int i;
7108_ACEOF
7109if ac_fn_c_try_compile "$LINENO"; then :
7110  xorg_cv_cc_flag_unknown_warning_option=yes
7111else
7112  xorg_cv_cc_flag_unknown_warning_option=no
7113fi
7114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115fi
7116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7117$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7118	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7119	CFLAGS="$xorg_testset_save_CFLAGS"
7120fi
7121
7122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7123	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7124		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7125	fi
7126	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7127	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7128$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7129if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7130  $as_echo_n "(cached) " >&6
7131else
7132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133/* end confdefs.h.  */
7134int i;
7135_ACEOF
7136if ac_fn_c_try_compile "$LINENO"; then :
7137  xorg_cv_cc_flag_unused_command_line_argument=yes
7138else
7139  xorg_cv_cc_flag_unused_command_line_argument=no
7140fi
7141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142fi
7143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7144$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7145	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7146	CFLAGS="$xorg_testset_save_CFLAGS"
7147fi
7148
7149found="no"
7150
7151	if test $found = "no" ; then
7152		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7153			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7154		fi
7155
7156		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7157			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7158		fi
7159
7160		CFLAGS="$CFLAGS -Werror=nonnull"
7161
7162		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7163$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7164		cacheid=xorg_cv_cc_flag__Werror_nonnull
7165		if eval \${$cacheid+:} false; then :
7166  $as_echo_n "(cached) " >&6
7167else
7168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169/* end confdefs.h.  */
7170int i;
7171int
7172main ()
7173{
7174
7175  ;
7176  return 0;
7177}
7178_ACEOF
7179if ac_fn_c_try_link "$LINENO"; then :
7180  eval $cacheid=yes
7181else
7182  eval $cacheid=no
7183fi
7184rm -f core conftest.err conftest.$ac_objext \
7185    conftest$ac_exeext conftest.$ac_ext
7186fi
7187
7188
7189		CFLAGS="$xorg_testset_save_CFLAGS"
7190
7191		eval supported=\$$cacheid
7192		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7193$as_echo "$supported" >&6; }
7194		if test "$supported" = "yes" ; then
7195			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7196			found="yes"
7197		fi
7198	fi
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214xorg_testset_save_CFLAGS="$CFLAGS"
7215
7216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7217	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7218	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7219$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7220if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7221  $as_echo_n "(cached) " >&6
7222else
7223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224/* end confdefs.h.  */
7225int i;
7226_ACEOF
7227if ac_fn_c_try_compile "$LINENO"; then :
7228  xorg_cv_cc_flag_unknown_warning_option=yes
7229else
7230  xorg_cv_cc_flag_unknown_warning_option=no
7231fi
7232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7233fi
7234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7235$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7236	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7237	CFLAGS="$xorg_testset_save_CFLAGS"
7238fi
7239
7240if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7241	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7242		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7243	fi
7244	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7245	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7246$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7247if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7248  $as_echo_n "(cached) " >&6
7249else
7250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251/* end confdefs.h.  */
7252int i;
7253_ACEOF
7254if ac_fn_c_try_compile "$LINENO"; then :
7255  xorg_cv_cc_flag_unused_command_line_argument=yes
7256else
7257  xorg_cv_cc_flag_unused_command_line_argument=no
7258fi
7259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7260fi
7261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7262$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7263	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7264	CFLAGS="$xorg_testset_save_CFLAGS"
7265fi
7266
7267found="no"
7268
7269	if test $found = "no" ; then
7270		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7271			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7272		fi
7273
7274		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7275			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7276		fi
7277
7278		CFLAGS="$CFLAGS -Werror=init-self"
7279
7280		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7281$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7282		cacheid=xorg_cv_cc_flag__Werror_init_self
7283		if eval \${$cacheid+:} false; then :
7284  $as_echo_n "(cached) " >&6
7285else
7286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287/* end confdefs.h.  */
7288int i;
7289int
7290main ()
7291{
7292
7293  ;
7294  return 0;
7295}
7296_ACEOF
7297if ac_fn_c_try_link "$LINENO"; then :
7298  eval $cacheid=yes
7299else
7300  eval $cacheid=no
7301fi
7302rm -f core conftest.err conftest.$ac_objext \
7303    conftest$ac_exeext conftest.$ac_ext
7304fi
7305
7306
7307		CFLAGS="$xorg_testset_save_CFLAGS"
7308
7309		eval supported=\$$cacheid
7310		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7311$as_echo "$supported" >&6; }
7312		if test "$supported" = "yes" ; then
7313			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7314			found="yes"
7315		fi
7316	fi
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332xorg_testset_save_CFLAGS="$CFLAGS"
7333
7334if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7335	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7336	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7337$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7338if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7339  $as_echo_n "(cached) " >&6
7340else
7341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342/* end confdefs.h.  */
7343int i;
7344_ACEOF
7345if ac_fn_c_try_compile "$LINENO"; then :
7346  xorg_cv_cc_flag_unknown_warning_option=yes
7347else
7348  xorg_cv_cc_flag_unknown_warning_option=no
7349fi
7350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7351fi
7352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7353$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7354	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7355	CFLAGS="$xorg_testset_save_CFLAGS"
7356fi
7357
7358if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7359	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7360		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7361	fi
7362	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7363	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7364$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7365if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7366  $as_echo_n "(cached) " >&6
7367else
7368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369/* end confdefs.h.  */
7370int i;
7371_ACEOF
7372if ac_fn_c_try_compile "$LINENO"; then :
7373  xorg_cv_cc_flag_unused_command_line_argument=yes
7374else
7375  xorg_cv_cc_flag_unused_command_line_argument=no
7376fi
7377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378fi
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7380$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7381	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7382	CFLAGS="$xorg_testset_save_CFLAGS"
7383fi
7384
7385found="no"
7386
7387	if test $found = "no" ; then
7388		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7389			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7390		fi
7391
7392		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7393			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7394		fi
7395
7396		CFLAGS="$CFLAGS -Werror=main"
7397
7398		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7399$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7400		cacheid=xorg_cv_cc_flag__Werror_main
7401		if eval \${$cacheid+:} false; then :
7402  $as_echo_n "(cached) " >&6
7403else
7404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405/* end confdefs.h.  */
7406int i;
7407int
7408main ()
7409{
7410
7411  ;
7412  return 0;
7413}
7414_ACEOF
7415if ac_fn_c_try_link "$LINENO"; then :
7416  eval $cacheid=yes
7417else
7418  eval $cacheid=no
7419fi
7420rm -f core conftest.err conftest.$ac_objext \
7421    conftest$ac_exeext conftest.$ac_ext
7422fi
7423
7424
7425		CFLAGS="$xorg_testset_save_CFLAGS"
7426
7427		eval supported=\$$cacheid
7428		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7429$as_echo "$supported" >&6; }
7430		if test "$supported" = "yes" ; then
7431			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7432			found="yes"
7433		fi
7434	fi
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450xorg_testset_save_CFLAGS="$CFLAGS"
7451
7452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7453	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7454	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7455$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7456if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7457  $as_echo_n "(cached) " >&6
7458else
7459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460/* end confdefs.h.  */
7461int i;
7462_ACEOF
7463if ac_fn_c_try_compile "$LINENO"; then :
7464  xorg_cv_cc_flag_unknown_warning_option=yes
7465else
7466  xorg_cv_cc_flag_unknown_warning_option=no
7467fi
7468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469fi
7470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7471$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7472	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7473	CFLAGS="$xorg_testset_save_CFLAGS"
7474fi
7475
7476if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7477	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7478		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7479	fi
7480	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7481	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7482$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7483if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7484  $as_echo_n "(cached) " >&6
7485else
7486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487/* end confdefs.h.  */
7488int i;
7489_ACEOF
7490if ac_fn_c_try_compile "$LINENO"; then :
7491  xorg_cv_cc_flag_unused_command_line_argument=yes
7492else
7493  xorg_cv_cc_flag_unused_command_line_argument=no
7494fi
7495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7496fi
7497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7498$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7499	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7500	CFLAGS="$xorg_testset_save_CFLAGS"
7501fi
7502
7503found="no"
7504
7505	if test $found = "no" ; then
7506		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7507			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7508		fi
7509
7510		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7511			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7512		fi
7513
7514		CFLAGS="$CFLAGS -Werror=missing-braces"
7515
7516		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7517$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7518		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7519		if eval \${$cacheid+:} false; then :
7520  $as_echo_n "(cached) " >&6
7521else
7522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523/* end confdefs.h.  */
7524int i;
7525int
7526main ()
7527{
7528
7529  ;
7530  return 0;
7531}
7532_ACEOF
7533if ac_fn_c_try_link "$LINENO"; then :
7534  eval $cacheid=yes
7535else
7536  eval $cacheid=no
7537fi
7538rm -f core conftest.err conftest.$ac_objext \
7539    conftest$ac_exeext conftest.$ac_ext
7540fi
7541
7542
7543		CFLAGS="$xorg_testset_save_CFLAGS"
7544
7545		eval supported=\$$cacheid
7546		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7547$as_echo "$supported" >&6; }
7548		if test "$supported" = "yes" ; then
7549			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7550			found="yes"
7551		fi
7552	fi
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568xorg_testset_save_CFLAGS="$CFLAGS"
7569
7570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7571	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7572	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7573$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7574if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7575  $as_echo_n "(cached) " >&6
7576else
7577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578/* end confdefs.h.  */
7579int i;
7580_ACEOF
7581if ac_fn_c_try_compile "$LINENO"; then :
7582  xorg_cv_cc_flag_unknown_warning_option=yes
7583else
7584  xorg_cv_cc_flag_unknown_warning_option=no
7585fi
7586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587fi
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7589$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7590	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7591	CFLAGS="$xorg_testset_save_CFLAGS"
7592fi
7593
7594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7595	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7596		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7597	fi
7598	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7599	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7600$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7601if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7602  $as_echo_n "(cached) " >&6
7603else
7604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605/* end confdefs.h.  */
7606int i;
7607_ACEOF
7608if ac_fn_c_try_compile "$LINENO"; then :
7609  xorg_cv_cc_flag_unused_command_line_argument=yes
7610else
7611  xorg_cv_cc_flag_unused_command_line_argument=no
7612fi
7613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7614fi
7615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7616$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7617	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7618	CFLAGS="$xorg_testset_save_CFLAGS"
7619fi
7620
7621found="no"
7622
7623	if test $found = "no" ; then
7624		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7625			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7626		fi
7627
7628		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7629			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7630		fi
7631
7632		CFLAGS="$CFLAGS -Werror=sequence-point"
7633
7634		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7635$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7636		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7637		if eval \${$cacheid+:} false; then :
7638  $as_echo_n "(cached) " >&6
7639else
7640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641/* end confdefs.h.  */
7642int i;
7643int
7644main ()
7645{
7646
7647  ;
7648  return 0;
7649}
7650_ACEOF
7651if ac_fn_c_try_link "$LINENO"; then :
7652  eval $cacheid=yes
7653else
7654  eval $cacheid=no
7655fi
7656rm -f core conftest.err conftest.$ac_objext \
7657    conftest$ac_exeext conftest.$ac_ext
7658fi
7659
7660
7661		CFLAGS="$xorg_testset_save_CFLAGS"
7662
7663		eval supported=\$$cacheid
7664		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7665$as_echo "$supported" >&6; }
7666		if test "$supported" = "yes" ; then
7667			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7668			found="yes"
7669		fi
7670	fi
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686xorg_testset_save_CFLAGS="$CFLAGS"
7687
7688if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7689	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7690	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7691$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7692if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7693  $as_echo_n "(cached) " >&6
7694else
7695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696/* end confdefs.h.  */
7697int i;
7698_ACEOF
7699if ac_fn_c_try_compile "$LINENO"; then :
7700  xorg_cv_cc_flag_unknown_warning_option=yes
7701else
7702  xorg_cv_cc_flag_unknown_warning_option=no
7703fi
7704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7705fi
7706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7707$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7708	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7709	CFLAGS="$xorg_testset_save_CFLAGS"
7710fi
7711
7712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7713	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7714		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7715	fi
7716	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7717	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7718$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7719if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7720  $as_echo_n "(cached) " >&6
7721else
7722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723/* end confdefs.h.  */
7724int i;
7725_ACEOF
7726if ac_fn_c_try_compile "$LINENO"; then :
7727  xorg_cv_cc_flag_unused_command_line_argument=yes
7728else
7729  xorg_cv_cc_flag_unused_command_line_argument=no
7730fi
7731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732fi
7733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7734$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7735	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7736	CFLAGS="$xorg_testset_save_CFLAGS"
7737fi
7738
7739found="no"
7740
7741	if test $found = "no" ; then
7742		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7743			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7744		fi
7745
7746		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7747			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7748		fi
7749
7750		CFLAGS="$CFLAGS -Werror=return-type"
7751
7752		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7753$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7754		cacheid=xorg_cv_cc_flag__Werror_return_type
7755		if eval \${$cacheid+:} false; then :
7756  $as_echo_n "(cached) " >&6
7757else
7758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759/* end confdefs.h.  */
7760int i;
7761int
7762main ()
7763{
7764
7765  ;
7766  return 0;
7767}
7768_ACEOF
7769if ac_fn_c_try_link "$LINENO"; then :
7770  eval $cacheid=yes
7771else
7772  eval $cacheid=no
7773fi
7774rm -f core conftest.err conftest.$ac_objext \
7775    conftest$ac_exeext conftest.$ac_ext
7776fi
7777
7778
7779		CFLAGS="$xorg_testset_save_CFLAGS"
7780
7781		eval supported=\$$cacheid
7782		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7783$as_echo "$supported" >&6; }
7784		if test "$supported" = "yes" ; then
7785			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7786			found="yes"
7787		fi
7788	fi
7789
7790	if test $found = "no" ; then
7791		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7792			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7793		fi
7794
7795		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7796			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7797		fi
7798
7799		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7800
7801		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7802$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7803		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7804		if eval \${$cacheid+:} false; then :
7805  $as_echo_n "(cached) " >&6
7806else
7807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808/* end confdefs.h.  */
7809int i;
7810int
7811main ()
7812{
7813
7814  ;
7815  return 0;
7816}
7817_ACEOF
7818if ac_fn_c_try_link "$LINENO"; then :
7819  eval $cacheid=yes
7820else
7821  eval $cacheid=no
7822fi
7823rm -f core conftest.err conftest.$ac_objext \
7824    conftest$ac_exeext conftest.$ac_ext
7825fi
7826
7827
7828		CFLAGS="$xorg_testset_save_CFLAGS"
7829
7830		eval supported=\$$cacheid
7831		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7832$as_echo "$supported" >&6; }
7833		if test "$supported" = "yes" ; then
7834			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7835			found="yes"
7836		fi
7837	fi
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853xorg_testset_save_CFLAGS="$CFLAGS"
7854
7855if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7856	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7857	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7858$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7859if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7860  $as_echo_n "(cached) " >&6
7861else
7862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863/* end confdefs.h.  */
7864int i;
7865_ACEOF
7866if ac_fn_c_try_compile "$LINENO"; then :
7867  xorg_cv_cc_flag_unknown_warning_option=yes
7868else
7869  xorg_cv_cc_flag_unknown_warning_option=no
7870fi
7871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872fi
7873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7874$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7875	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7876	CFLAGS="$xorg_testset_save_CFLAGS"
7877fi
7878
7879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7880	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7881		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7882	fi
7883	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7884	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7885$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7886if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7887  $as_echo_n "(cached) " >&6
7888else
7889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890/* end confdefs.h.  */
7891int i;
7892_ACEOF
7893if ac_fn_c_try_compile "$LINENO"; then :
7894  xorg_cv_cc_flag_unused_command_line_argument=yes
7895else
7896  xorg_cv_cc_flag_unused_command_line_argument=no
7897fi
7898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7899fi
7900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7901$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7902	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7903	CFLAGS="$xorg_testset_save_CFLAGS"
7904fi
7905
7906found="no"
7907
7908	if test $found = "no" ; then
7909		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7910			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7911		fi
7912
7913		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7914			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7915		fi
7916
7917		CFLAGS="$CFLAGS -Werror=trigraphs"
7918
7919		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7920$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7921		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7922		if eval \${$cacheid+:} false; then :
7923  $as_echo_n "(cached) " >&6
7924else
7925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926/* end confdefs.h.  */
7927int i;
7928int
7929main ()
7930{
7931
7932  ;
7933  return 0;
7934}
7935_ACEOF
7936if ac_fn_c_try_link "$LINENO"; then :
7937  eval $cacheid=yes
7938else
7939  eval $cacheid=no
7940fi
7941rm -f core conftest.err conftest.$ac_objext \
7942    conftest$ac_exeext conftest.$ac_ext
7943fi
7944
7945
7946		CFLAGS="$xorg_testset_save_CFLAGS"
7947
7948		eval supported=\$$cacheid
7949		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7950$as_echo "$supported" >&6; }
7951		if test "$supported" = "yes" ; then
7952			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7953			found="yes"
7954		fi
7955	fi
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971xorg_testset_save_CFLAGS="$CFLAGS"
7972
7973if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7974	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7975	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7976$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7977if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7978  $as_echo_n "(cached) " >&6
7979else
7980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981/* end confdefs.h.  */
7982int i;
7983_ACEOF
7984if ac_fn_c_try_compile "$LINENO"; then :
7985  xorg_cv_cc_flag_unknown_warning_option=yes
7986else
7987  xorg_cv_cc_flag_unknown_warning_option=no
7988fi
7989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7990fi
7991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7992$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7993	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7994	CFLAGS="$xorg_testset_save_CFLAGS"
7995fi
7996
7997if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7998	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7999		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8000	fi
8001	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8002	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8003$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8004if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8005  $as_echo_n "(cached) " >&6
8006else
8007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008/* end confdefs.h.  */
8009int i;
8010_ACEOF
8011if ac_fn_c_try_compile "$LINENO"; then :
8012  xorg_cv_cc_flag_unused_command_line_argument=yes
8013else
8014  xorg_cv_cc_flag_unused_command_line_argument=no
8015fi
8016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8017fi
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8019$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8020	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8021	CFLAGS="$xorg_testset_save_CFLAGS"
8022fi
8023
8024found="no"
8025
8026	if test $found = "no" ; then
8027		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8028			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8029		fi
8030
8031		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8032			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8033		fi
8034
8035		CFLAGS="$CFLAGS -Werror=array-bounds"
8036
8037		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8038$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8039		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8040		if eval \${$cacheid+:} false; then :
8041  $as_echo_n "(cached) " >&6
8042else
8043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044/* end confdefs.h.  */
8045int i;
8046int
8047main ()
8048{
8049
8050  ;
8051  return 0;
8052}
8053_ACEOF
8054if ac_fn_c_try_link "$LINENO"; then :
8055  eval $cacheid=yes
8056else
8057  eval $cacheid=no
8058fi
8059rm -f core conftest.err conftest.$ac_objext \
8060    conftest$ac_exeext conftest.$ac_ext
8061fi
8062
8063
8064		CFLAGS="$xorg_testset_save_CFLAGS"
8065
8066		eval supported=\$$cacheid
8067		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8068$as_echo "$supported" >&6; }
8069		if test "$supported" = "yes" ; then
8070			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8071			found="yes"
8072		fi
8073	fi
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089xorg_testset_save_CFLAGS="$CFLAGS"
8090
8091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8092	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8093	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8094$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8095if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8096  $as_echo_n "(cached) " >&6
8097else
8098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099/* end confdefs.h.  */
8100int i;
8101_ACEOF
8102if ac_fn_c_try_compile "$LINENO"; then :
8103  xorg_cv_cc_flag_unknown_warning_option=yes
8104else
8105  xorg_cv_cc_flag_unknown_warning_option=no
8106fi
8107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8108fi
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8110$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8111	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8112	CFLAGS="$xorg_testset_save_CFLAGS"
8113fi
8114
8115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8116	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8117		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8118	fi
8119	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8120	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8121$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8122if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8123  $as_echo_n "(cached) " >&6
8124else
8125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126/* end confdefs.h.  */
8127int i;
8128_ACEOF
8129if ac_fn_c_try_compile "$LINENO"; then :
8130  xorg_cv_cc_flag_unused_command_line_argument=yes
8131else
8132  xorg_cv_cc_flag_unused_command_line_argument=no
8133fi
8134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8135fi
8136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8137$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8138	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8139	CFLAGS="$xorg_testset_save_CFLAGS"
8140fi
8141
8142found="no"
8143
8144	if test $found = "no" ; then
8145		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8146			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8147		fi
8148
8149		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8150			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8151		fi
8152
8153		CFLAGS="$CFLAGS -Werror=write-strings"
8154
8155		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8156$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8157		cacheid=xorg_cv_cc_flag__Werror_write_strings
8158		if eval \${$cacheid+:} false; then :
8159  $as_echo_n "(cached) " >&6
8160else
8161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162/* end confdefs.h.  */
8163int i;
8164int
8165main ()
8166{
8167
8168  ;
8169  return 0;
8170}
8171_ACEOF
8172if ac_fn_c_try_link "$LINENO"; then :
8173  eval $cacheid=yes
8174else
8175  eval $cacheid=no
8176fi
8177rm -f core conftest.err conftest.$ac_objext \
8178    conftest$ac_exeext conftest.$ac_ext
8179fi
8180
8181
8182		CFLAGS="$xorg_testset_save_CFLAGS"
8183
8184		eval supported=\$$cacheid
8185		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8186$as_echo "$supported" >&6; }
8187		if test "$supported" = "yes" ; then
8188			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8189			found="yes"
8190		fi
8191	fi
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207xorg_testset_save_CFLAGS="$CFLAGS"
8208
8209if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8210	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8211	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8212$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8213if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8214  $as_echo_n "(cached) " >&6
8215else
8216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217/* end confdefs.h.  */
8218int i;
8219_ACEOF
8220if ac_fn_c_try_compile "$LINENO"; then :
8221  xorg_cv_cc_flag_unknown_warning_option=yes
8222else
8223  xorg_cv_cc_flag_unknown_warning_option=no
8224fi
8225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8226fi
8227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8228$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8229	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8230	CFLAGS="$xorg_testset_save_CFLAGS"
8231fi
8232
8233if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8234	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8235		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8236	fi
8237	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8238	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8239$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8240if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8241  $as_echo_n "(cached) " >&6
8242else
8243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244/* end confdefs.h.  */
8245int i;
8246_ACEOF
8247if ac_fn_c_try_compile "$LINENO"; then :
8248  xorg_cv_cc_flag_unused_command_line_argument=yes
8249else
8250  xorg_cv_cc_flag_unused_command_line_argument=no
8251fi
8252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253fi
8254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8255$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8256	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8257	CFLAGS="$xorg_testset_save_CFLAGS"
8258fi
8259
8260found="no"
8261
8262	if test $found = "no" ; then
8263		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8264			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8265		fi
8266
8267		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8268			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8269		fi
8270
8271		CFLAGS="$CFLAGS -Werror=address"
8272
8273		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8274$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8275		cacheid=xorg_cv_cc_flag__Werror_address
8276		if eval \${$cacheid+:} false; then :
8277  $as_echo_n "(cached) " >&6
8278else
8279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280/* end confdefs.h.  */
8281int i;
8282int
8283main ()
8284{
8285
8286  ;
8287  return 0;
8288}
8289_ACEOF
8290if ac_fn_c_try_link "$LINENO"; then :
8291  eval $cacheid=yes
8292else
8293  eval $cacheid=no
8294fi
8295rm -f core conftest.err conftest.$ac_objext \
8296    conftest$ac_exeext conftest.$ac_ext
8297fi
8298
8299
8300		CFLAGS="$xorg_testset_save_CFLAGS"
8301
8302		eval supported=\$$cacheid
8303		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8304$as_echo "$supported" >&6; }
8305		if test "$supported" = "yes" ; then
8306			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8307			found="yes"
8308		fi
8309	fi
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325xorg_testset_save_CFLAGS="$CFLAGS"
8326
8327if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8328	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8329	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8330$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8331if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8332  $as_echo_n "(cached) " >&6
8333else
8334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335/* end confdefs.h.  */
8336int i;
8337_ACEOF
8338if ac_fn_c_try_compile "$LINENO"; then :
8339  xorg_cv_cc_flag_unknown_warning_option=yes
8340else
8341  xorg_cv_cc_flag_unknown_warning_option=no
8342fi
8343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344fi
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8346$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8347	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8348	CFLAGS="$xorg_testset_save_CFLAGS"
8349fi
8350
8351if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8352	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8353		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8354	fi
8355	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8356	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8357$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8358if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8359  $as_echo_n "(cached) " >&6
8360else
8361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362/* end confdefs.h.  */
8363int i;
8364_ACEOF
8365if ac_fn_c_try_compile "$LINENO"; then :
8366  xorg_cv_cc_flag_unused_command_line_argument=yes
8367else
8368  xorg_cv_cc_flag_unused_command_line_argument=no
8369fi
8370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8371fi
8372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8373$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8374	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8375	CFLAGS="$xorg_testset_save_CFLAGS"
8376fi
8377
8378found="no"
8379
8380	if test $found = "no" ; then
8381		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8382			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8383		fi
8384
8385		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8386			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8387		fi
8388
8389		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8390
8391		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8392$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8393		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8394		if eval \${$cacheid+:} false; then :
8395  $as_echo_n "(cached) " >&6
8396else
8397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398/* end confdefs.h.  */
8399int i;
8400int
8401main ()
8402{
8403
8404  ;
8405  return 0;
8406}
8407_ACEOF
8408if ac_fn_c_try_link "$LINENO"; then :
8409  eval $cacheid=yes
8410else
8411  eval $cacheid=no
8412fi
8413rm -f core conftest.err conftest.$ac_objext \
8414    conftest$ac_exeext conftest.$ac_ext
8415fi
8416
8417
8418		CFLAGS="$xorg_testset_save_CFLAGS"
8419
8420		eval supported=\$$cacheid
8421		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8422$as_echo "$supported" >&6; }
8423		if test "$supported" = "yes" ; then
8424			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8425			found="yes"
8426		fi
8427	fi
8428
8429	if test $found = "no" ; then
8430		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8431			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8432		fi
8433
8434		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8435			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8436		fi
8437
8438		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8439
8440		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8441$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8442		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8443		if eval \${$cacheid+:} false; then :
8444  $as_echo_n "(cached) " >&6
8445else
8446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447/* end confdefs.h.  */
8448int i;
8449int
8450main ()
8451{
8452
8453  ;
8454  return 0;
8455}
8456_ACEOF
8457if ac_fn_c_try_link "$LINENO"; then :
8458  eval $cacheid=yes
8459else
8460  eval $cacheid=no
8461fi
8462rm -f core conftest.err conftest.$ac_objext \
8463    conftest$ac_exeext conftest.$ac_ext
8464fi
8465
8466
8467		CFLAGS="$xorg_testset_save_CFLAGS"
8468
8469		eval supported=\$$cacheid
8470		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8471$as_echo "$supported" >&6; }
8472		if test "$supported" = "yes" ; then
8473			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8474			found="yes"
8475		fi
8476	fi
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492xorg_testset_save_CFLAGS="$CFLAGS"
8493
8494if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8495	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8496	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8497$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8498if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8499  $as_echo_n "(cached) " >&6
8500else
8501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8502/* end confdefs.h.  */
8503int i;
8504_ACEOF
8505if ac_fn_c_try_compile "$LINENO"; then :
8506  xorg_cv_cc_flag_unknown_warning_option=yes
8507else
8508  xorg_cv_cc_flag_unknown_warning_option=no
8509fi
8510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8511fi
8512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8513$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8514	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8515	CFLAGS="$xorg_testset_save_CFLAGS"
8516fi
8517
8518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8519	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8520		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8521	fi
8522	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8523	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8524$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8525if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8526  $as_echo_n "(cached) " >&6
8527else
8528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529/* end confdefs.h.  */
8530int i;
8531_ACEOF
8532if ac_fn_c_try_compile "$LINENO"; then :
8533  xorg_cv_cc_flag_unused_command_line_argument=yes
8534else
8535  xorg_cv_cc_flag_unused_command_line_argument=no
8536fi
8537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538fi
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8540$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8541	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8542	CFLAGS="$xorg_testset_save_CFLAGS"
8543fi
8544
8545found="no"
8546
8547	if test $found = "no" ; then
8548		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8549			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8550		fi
8551
8552		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8553			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8554		fi
8555
8556		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8557
8558		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8559$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8560		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8561		if eval \${$cacheid+:} false; then :
8562  $as_echo_n "(cached) " >&6
8563else
8564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565/* end confdefs.h.  */
8566int i;
8567int
8568main ()
8569{
8570
8571  ;
8572  return 0;
8573}
8574_ACEOF
8575if ac_fn_c_try_link "$LINENO"; then :
8576  eval $cacheid=yes
8577else
8578  eval $cacheid=no
8579fi
8580rm -f core conftest.err conftest.$ac_objext \
8581    conftest$ac_exeext conftest.$ac_ext
8582fi
8583
8584
8585		CFLAGS="$xorg_testset_save_CFLAGS"
8586
8587		eval supported=\$$cacheid
8588		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8589$as_echo "$supported" >&6; }
8590		if test "$supported" = "yes" ; then
8591			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8592			found="yes"
8593		fi
8594	fi
8595
8596 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8597else
8598{ $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
8599$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;}
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613xorg_testset_save_CFLAGS="$CFLAGS"
8614
8615if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8616	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8617	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8618$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8619if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8620  $as_echo_n "(cached) " >&6
8621else
8622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623/* end confdefs.h.  */
8624int i;
8625_ACEOF
8626if ac_fn_c_try_compile "$LINENO"; then :
8627  xorg_cv_cc_flag_unknown_warning_option=yes
8628else
8629  xorg_cv_cc_flag_unknown_warning_option=no
8630fi
8631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8632fi
8633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8634$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8635	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8636	CFLAGS="$xorg_testset_save_CFLAGS"
8637fi
8638
8639if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8640	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8641		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8642	fi
8643	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8644	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8645$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8646if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8647  $as_echo_n "(cached) " >&6
8648else
8649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650/* end confdefs.h.  */
8651int i;
8652_ACEOF
8653if ac_fn_c_try_compile "$LINENO"; then :
8654  xorg_cv_cc_flag_unused_command_line_argument=yes
8655else
8656  xorg_cv_cc_flag_unused_command_line_argument=no
8657fi
8658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8659fi
8660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8661$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8662	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8663	CFLAGS="$xorg_testset_save_CFLAGS"
8664fi
8665
8666found="no"
8667
8668	if test $found = "no" ; then
8669		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8670			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8671		fi
8672
8673		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8674			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8675		fi
8676
8677		CFLAGS="$CFLAGS -Wimplicit"
8678
8679		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8680$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8681		cacheid=xorg_cv_cc_flag__Wimplicit
8682		if eval \${$cacheid+:} false; then :
8683  $as_echo_n "(cached) " >&6
8684else
8685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686/* end confdefs.h.  */
8687int i;
8688int
8689main ()
8690{
8691
8692  ;
8693  return 0;
8694}
8695_ACEOF
8696if ac_fn_c_try_link "$LINENO"; then :
8697  eval $cacheid=yes
8698else
8699  eval $cacheid=no
8700fi
8701rm -f core conftest.err conftest.$ac_objext \
8702    conftest$ac_exeext conftest.$ac_ext
8703fi
8704
8705
8706		CFLAGS="$xorg_testset_save_CFLAGS"
8707
8708		eval supported=\$$cacheid
8709		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8710$as_echo "$supported" >&6; }
8711		if test "$supported" = "yes" ; then
8712			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8713			found="yes"
8714		fi
8715	fi
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731xorg_testset_save_CFLAGS="$CFLAGS"
8732
8733if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8734	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8735	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8736$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8737if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8738  $as_echo_n "(cached) " >&6
8739else
8740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741/* end confdefs.h.  */
8742int i;
8743_ACEOF
8744if ac_fn_c_try_compile "$LINENO"; then :
8745  xorg_cv_cc_flag_unknown_warning_option=yes
8746else
8747  xorg_cv_cc_flag_unknown_warning_option=no
8748fi
8749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750fi
8751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8752$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8753	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8754	CFLAGS="$xorg_testset_save_CFLAGS"
8755fi
8756
8757if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8758	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8759		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8760	fi
8761	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8762	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8763$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8764if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8765  $as_echo_n "(cached) " >&6
8766else
8767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768/* end confdefs.h.  */
8769int i;
8770_ACEOF
8771if ac_fn_c_try_compile "$LINENO"; then :
8772  xorg_cv_cc_flag_unused_command_line_argument=yes
8773else
8774  xorg_cv_cc_flag_unused_command_line_argument=no
8775fi
8776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8777fi
8778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8779$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8780	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8781	CFLAGS="$xorg_testset_save_CFLAGS"
8782fi
8783
8784found="no"
8785
8786	if test $found = "no" ; then
8787		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8788			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8789		fi
8790
8791		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8792			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8793		fi
8794
8795		CFLAGS="$CFLAGS -Wnonnull"
8796
8797		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8798$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8799		cacheid=xorg_cv_cc_flag__Wnonnull
8800		if eval \${$cacheid+:} false; then :
8801  $as_echo_n "(cached) " >&6
8802else
8803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804/* end confdefs.h.  */
8805int i;
8806int
8807main ()
8808{
8809
8810  ;
8811  return 0;
8812}
8813_ACEOF
8814if ac_fn_c_try_link "$LINENO"; then :
8815  eval $cacheid=yes
8816else
8817  eval $cacheid=no
8818fi
8819rm -f core conftest.err conftest.$ac_objext \
8820    conftest$ac_exeext conftest.$ac_ext
8821fi
8822
8823
8824		CFLAGS="$xorg_testset_save_CFLAGS"
8825
8826		eval supported=\$$cacheid
8827		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8828$as_echo "$supported" >&6; }
8829		if test "$supported" = "yes" ; then
8830			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8831			found="yes"
8832		fi
8833	fi
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849xorg_testset_save_CFLAGS="$CFLAGS"
8850
8851if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8852	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8853	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8854$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8855if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8856  $as_echo_n "(cached) " >&6
8857else
8858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859/* end confdefs.h.  */
8860int i;
8861_ACEOF
8862if ac_fn_c_try_compile "$LINENO"; then :
8863  xorg_cv_cc_flag_unknown_warning_option=yes
8864else
8865  xorg_cv_cc_flag_unknown_warning_option=no
8866fi
8867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8868fi
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8870$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8871	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8872	CFLAGS="$xorg_testset_save_CFLAGS"
8873fi
8874
8875if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8876	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8877		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8878	fi
8879	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8880	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8881$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8882if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8883  $as_echo_n "(cached) " >&6
8884else
8885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8886/* end confdefs.h.  */
8887int i;
8888_ACEOF
8889if ac_fn_c_try_compile "$LINENO"; then :
8890  xorg_cv_cc_flag_unused_command_line_argument=yes
8891else
8892  xorg_cv_cc_flag_unused_command_line_argument=no
8893fi
8894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8895fi
8896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8897$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8898	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8899	CFLAGS="$xorg_testset_save_CFLAGS"
8900fi
8901
8902found="no"
8903
8904	if test $found = "no" ; then
8905		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8906			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8907		fi
8908
8909		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8910			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8911		fi
8912
8913		CFLAGS="$CFLAGS -Winit-self"
8914
8915		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8916$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8917		cacheid=xorg_cv_cc_flag__Winit_self
8918		if eval \${$cacheid+:} false; then :
8919  $as_echo_n "(cached) " >&6
8920else
8921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922/* end confdefs.h.  */
8923int i;
8924int
8925main ()
8926{
8927
8928  ;
8929  return 0;
8930}
8931_ACEOF
8932if ac_fn_c_try_link "$LINENO"; then :
8933  eval $cacheid=yes
8934else
8935  eval $cacheid=no
8936fi
8937rm -f core conftest.err conftest.$ac_objext \
8938    conftest$ac_exeext conftest.$ac_ext
8939fi
8940
8941
8942		CFLAGS="$xorg_testset_save_CFLAGS"
8943
8944		eval supported=\$$cacheid
8945		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8946$as_echo "$supported" >&6; }
8947		if test "$supported" = "yes" ; then
8948			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8949			found="yes"
8950		fi
8951	fi
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967xorg_testset_save_CFLAGS="$CFLAGS"
8968
8969if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8970	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8971	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8972$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8973if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8974  $as_echo_n "(cached) " >&6
8975else
8976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977/* end confdefs.h.  */
8978int i;
8979_ACEOF
8980if ac_fn_c_try_compile "$LINENO"; then :
8981  xorg_cv_cc_flag_unknown_warning_option=yes
8982else
8983  xorg_cv_cc_flag_unknown_warning_option=no
8984fi
8985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986fi
8987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8988$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8989	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8990	CFLAGS="$xorg_testset_save_CFLAGS"
8991fi
8992
8993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8994	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8995		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8996	fi
8997	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8998	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8999$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9000if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9001  $as_echo_n "(cached) " >&6
9002else
9003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004/* end confdefs.h.  */
9005int i;
9006_ACEOF
9007if ac_fn_c_try_compile "$LINENO"; then :
9008  xorg_cv_cc_flag_unused_command_line_argument=yes
9009else
9010  xorg_cv_cc_flag_unused_command_line_argument=no
9011fi
9012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9013fi
9014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9015$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9016	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9017	CFLAGS="$xorg_testset_save_CFLAGS"
9018fi
9019
9020found="no"
9021
9022	if test $found = "no" ; then
9023		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9024			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9025		fi
9026
9027		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9028			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9029		fi
9030
9031		CFLAGS="$CFLAGS -Wmain"
9032
9033		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9034$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9035		cacheid=xorg_cv_cc_flag__Wmain
9036		if eval \${$cacheid+:} false; then :
9037  $as_echo_n "(cached) " >&6
9038else
9039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040/* end confdefs.h.  */
9041int i;
9042int
9043main ()
9044{
9045
9046  ;
9047  return 0;
9048}
9049_ACEOF
9050if ac_fn_c_try_link "$LINENO"; then :
9051  eval $cacheid=yes
9052else
9053  eval $cacheid=no
9054fi
9055rm -f core conftest.err conftest.$ac_objext \
9056    conftest$ac_exeext conftest.$ac_ext
9057fi
9058
9059
9060		CFLAGS="$xorg_testset_save_CFLAGS"
9061
9062		eval supported=\$$cacheid
9063		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9064$as_echo "$supported" >&6; }
9065		if test "$supported" = "yes" ; then
9066			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9067			found="yes"
9068		fi
9069	fi
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085xorg_testset_save_CFLAGS="$CFLAGS"
9086
9087if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9088	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9089	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9090$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9091if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9092  $as_echo_n "(cached) " >&6
9093else
9094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095/* end confdefs.h.  */
9096int i;
9097_ACEOF
9098if ac_fn_c_try_compile "$LINENO"; then :
9099  xorg_cv_cc_flag_unknown_warning_option=yes
9100else
9101  xorg_cv_cc_flag_unknown_warning_option=no
9102fi
9103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9104fi
9105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9106$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9107	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9108	CFLAGS="$xorg_testset_save_CFLAGS"
9109fi
9110
9111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9112	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9113		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9114	fi
9115	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9116	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9117$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9118if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9119  $as_echo_n "(cached) " >&6
9120else
9121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9122/* end confdefs.h.  */
9123int i;
9124_ACEOF
9125if ac_fn_c_try_compile "$LINENO"; then :
9126  xorg_cv_cc_flag_unused_command_line_argument=yes
9127else
9128  xorg_cv_cc_flag_unused_command_line_argument=no
9129fi
9130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9131fi
9132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9133$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9134	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9135	CFLAGS="$xorg_testset_save_CFLAGS"
9136fi
9137
9138found="no"
9139
9140	if test $found = "no" ; then
9141		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9142			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9143		fi
9144
9145		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9146			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9147		fi
9148
9149		CFLAGS="$CFLAGS -Wmissing-braces"
9150
9151		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9152$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9153		cacheid=xorg_cv_cc_flag__Wmissing_braces
9154		if eval \${$cacheid+:} false; then :
9155  $as_echo_n "(cached) " >&6
9156else
9157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158/* end confdefs.h.  */
9159int i;
9160int
9161main ()
9162{
9163
9164  ;
9165  return 0;
9166}
9167_ACEOF
9168if ac_fn_c_try_link "$LINENO"; then :
9169  eval $cacheid=yes
9170else
9171  eval $cacheid=no
9172fi
9173rm -f core conftest.err conftest.$ac_objext \
9174    conftest$ac_exeext conftest.$ac_ext
9175fi
9176
9177
9178		CFLAGS="$xorg_testset_save_CFLAGS"
9179
9180		eval supported=\$$cacheid
9181		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9182$as_echo "$supported" >&6; }
9183		if test "$supported" = "yes" ; then
9184			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9185			found="yes"
9186		fi
9187	fi
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203xorg_testset_save_CFLAGS="$CFLAGS"
9204
9205if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9206	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9207	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9208$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9209if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9210  $as_echo_n "(cached) " >&6
9211else
9212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213/* end confdefs.h.  */
9214int i;
9215_ACEOF
9216if ac_fn_c_try_compile "$LINENO"; then :
9217  xorg_cv_cc_flag_unknown_warning_option=yes
9218else
9219  xorg_cv_cc_flag_unknown_warning_option=no
9220fi
9221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9222fi
9223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9224$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9225	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9226	CFLAGS="$xorg_testset_save_CFLAGS"
9227fi
9228
9229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9230	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9231		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9232	fi
9233	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9234	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9235$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9236if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9237  $as_echo_n "(cached) " >&6
9238else
9239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240/* end confdefs.h.  */
9241int i;
9242_ACEOF
9243if ac_fn_c_try_compile "$LINENO"; then :
9244  xorg_cv_cc_flag_unused_command_line_argument=yes
9245else
9246  xorg_cv_cc_flag_unused_command_line_argument=no
9247fi
9248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9249fi
9250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9251$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9252	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9253	CFLAGS="$xorg_testset_save_CFLAGS"
9254fi
9255
9256found="no"
9257
9258	if test $found = "no" ; then
9259		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9260			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9261		fi
9262
9263		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9264			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9265		fi
9266
9267		CFLAGS="$CFLAGS -Wsequence-point"
9268
9269		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9270$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9271		cacheid=xorg_cv_cc_flag__Wsequence_point
9272		if eval \${$cacheid+:} false; then :
9273  $as_echo_n "(cached) " >&6
9274else
9275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9276/* end confdefs.h.  */
9277int i;
9278int
9279main ()
9280{
9281
9282  ;
9283  return 0;
9284}
9285_ACEOF
9286if ac_fn_c_try_link "$LINENO"; then :
9287  eval $cacheid=yes
9288else
9289  eval $cacheid=no
9290fi
9291rm -f core conftest.err conftest.$ac_objext \
9292    conftest$ac_exeext conftest.$ac_ext
9293fi
9294
9295
9296		CFLAGS="$xorg_testset_save_CFLAGS"
9297
9298		eval supported=\$$cacheid
9299		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9300$as_echo "$supported" >&6; }
9301		if test "$supported" = "yes" ; then
9302			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9303			found="yes"
9304		fi
9305	fi
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321xorg_testset_save_CFLAGS="$CFLAGS"
9322
9323if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9324	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9326$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9327if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9328  $as_echo_n "(cached) " >&6
9329else
9330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331/* end confdefs.h.  */
9332int i;
9333_ACEOF
9334if ac_fn_c_try_compile "$LINENO"; then :
9335  xorg_cv_cc_flag_unknown_warning_option=yes
9336else
9337  xorg_cv_cc_flag_unknown_warning_option=no
9338fi
9339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9340fi
9341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9342$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9343	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9344	CFLAGS="$xorg_testset_save_CFLAGS"
9345fi
9346
9347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9348	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9349		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9350	fi
9351	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9352	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9353$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9354if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9355  $as_echo_n "(cached) " >&6
9356else
9357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358/* end confdefs.h.  */
9359int i;
9360_ACEOF
9361if ac_fn_c_try_compile "$LINENO"; then :
9362  xorg_cv_cc_flag_unused_command_line_argument=yes
9363else
9364  xorg_cv_cc_flag_unused_command_line_argument=no
9365fi
9366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9367fi
9368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9369$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9370	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9371	CFLAGS="$xorg_testset_save_CFLAGS"
9372fi
9373
9374found="no"
9375
9376	if test $found = "no" ; then
9377		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9378			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9379		fi
9380
9381		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9382			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9383		fi
9384
9385		CFLAGS="$CFLAGS -Wreturn-type"
9386
9387		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9388$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9389		cacheid=xorg_cv_cc_flag__Wreturn_type
9390		if eval \${$cacheid+:} false; then :
9391  $as_echo_n "(cached) " >&6
9392else
9393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394/* end confdefs.h.  */
9395int i;
9396int
9397main ()
9398{
9399
9400  ;
9401  return 0;
9402}
9403_ACEOF
9404if ac_fn_c_try_link "$LINENO"; then :
9405  eval $cacheid=yes
9406else
9407  eval $cacheid=no
9408fi
9409rm -f core conftest.err conftest.$ac_objext \
9410    conftest$ac_exeext conftest.$ac_ext
9411fi
9412
9413
9414		CFLAGS="$xorg_testset_save_CFLAGS"
9415
9416		eval supported=\$$cacheid
9417		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9418$as_echo "$supported" >&6; }
9419		if test "$supported" = "yes" ; then
9420			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9421			found="yes"
9422		fi
9423	fi
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439xorg_testset_save_CFLAGS="$CFLAGS"
9440
9441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9442	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9444$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9445if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9446  $as_echo_n "(cached) " >&6
9447else
9448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449/* end confdefs.h.  */
9450int i;
9451_ACEOF
9452if ac_fn_c_try_compile "$LINENO"; then :
9453  xorg_cv_cc_flag_unknown_warning_option=yes
9454else
9455  xorg_cv_cc_flag_unknown_warning_option=no
9456fi
9457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9458fi
9459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9460$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9461	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9462	CFLAGS="$xorg_testset_save_CFLAGS"
9463fi
9464
9465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9466	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9467		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9468	fi
9469	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9470	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9471$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9472if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9473  $as_echo_n "(cached) " >&6
9474else
9475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476/* end confdefs.h.  */
9477int i;
9478_ACEOF
9479if ac_fn_c_try_compile "$LINENO"; then :
9480  xorg_cv_cc_flag_unused_command_line_argument=yes
9481else
9482  xorg_cv_cc_flag_unused_command_line_argument=no
9483fi
9484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9485fi
9486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9487$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9488	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9489	CFLAGS="$xorg_testset_save_CFLAGS"
9490fi
9491
9492found="no"
9493
9494	if test $found = "no" ; then
9495		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9496			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9497		fi
9498
9499		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9500			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9501		fi
9502
9503		CFLAGS="$CFLAGS -Wtrigraphs"
9504
9505		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9506$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9507		cacheid=xorg_cv_cc_flag__Wtrigraphs
9508		if eval \${$cacheid+:} false; then :
9509  $as_echo_n "(cached) " >&6
9510else
9511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9512/* end confdefs.h.  */
9513int i;
9514int
9515main ()
9516{
9517
9518  ;
9519  return 0;
9520}
9521_ACEOF
9522if ac_fn_c_try_link "$LINENO"; then :
9523  eval $cacheid=yes
9524else
9525  eval $cacheid=no
9526fi
9527rm -f core conftest.err conftest.$ac_objext \
9528    conftest$ac_exeext conftest.$ac_ext
9529fi
9530
9531
9532		CFLAGS="$xorg_testset_save_CFLAGS"
9533
9534		eval supported=\$$cacheid
9535		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9536$as_echo "$supported" >&6; }
9537		if test "$supported" = "yes" ; then
9538			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9539			found="yes"
9540		fi
9541	fi
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557xorg_testset_save_CFLAGS="$CFLAGS"
9558
9559if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9560	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9561	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9562$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9563if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9564  $as_echo_n "(cached) " >&6
9565else
9566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567/* end confdefs.h.  */
9568int i;
9569_ACEOF
9570if ac_fn_c_try_compile "$LINENO"; then :
9571  xorg_cv_cc_flag_unknown_warning_option=yes
9572else
9573  xorg_cv_cc_flag_unknown_warning_option=no
9574fi
9575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9576fi
9577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9578$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9579	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9580	CFLAGS="$xorg_testset_save_CFLAGS"
9581fi
9582
9583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9584	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9585		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9586	fi
9587	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9588	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9589$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9590if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9591  $as_echo_n "(cached) " >&6
9592else
9593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594/* end confdefs.h.  */
9595int i;
9596_ACEOF
9597if ac_fn_c_try_compile "$LINENO"; then :
9598  xorg_cv_cc_flag_unused_command_line_argument=yes
9599else
9600  xorg_cv_cc_flag_unused_command_line_argument=no
9601fi
9602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9603fi
9604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9605$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9606	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9607	CFLAGS="$xorg_testset_save_CFLAGS"
9608fi
9609
9610found="no"
9611
9612	if test $found = "no" ; then
9613		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9614			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9615		fi
9616
9617		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9618			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9619		fi
9620
9621		CFLAGS="$CFLAGS -Warray-bounds"
9622
9623		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9624$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9625		cacheid=xorg_cv_cc_flag__Warray_bounds
9626		if eval \${$cacheid+:} false; then :
9627  $as_echo_n "(cached) " >&6
9628else
9629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630/* end confdefs.h.  */
9631int i;
9632int
9633main ()
9634{
9635
9636  ;
9637  return 0;
9638}
9639_ACEOF
9640if ac_fn_c_try_link "$LINENO"; then :
9641  eval $cacheid=yes
9642else
9643  eval $cacheid=no
9644fi
9645rm -f core conftest.err conftest.$ac_objext \
9646    conftest$ac_exeext conftest.$ac_ext
9647fi
9648
9649
9650		CFLAGS="$xorg_testset_save_CFLAGS"
9651
9652		eval supported=\$$cacheid
9653		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9654$as_echo "$supported" >&6; }
9655		if test "$supported" = "yes" ; then
9656			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9657			found="yes"
9658		fi
9659	fi
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675xorg_testset_save_CFLAGS="$CFLAGS"
9676
9677if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9678	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9679	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9680$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9681if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9682  $as_echo_n "(cached) " >&6
9683else
9684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685/* end confdefs.h.  */
9686int i;
9687_ACEOF
9688if ac_fn_c_try_compile "$LINENO"; then :
9689  xorg_cv_cc_flag_unknown_warning_option=yes
9690else
9691  xorg_cv_cc_flag_unknown_warning_option=no
9692fi
9693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9694fi
9695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9696$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9697	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9698	CFLAGS="$xorg_testset_save_CFLAGS"
9699fi
9700
9701if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9702	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9703		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9704	fi
9705	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9706	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9707$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9708if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9709  $as_echo_n "(cached) " >&6
9710else
9711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712/* end confdefs.h.  */
9713int i;
9714_ACEOF
9715if ac_fn_c_try_compile "$LINENO"; then :
9716  xorg_cv_cc_flag_unused_command_line_argument=yes
9717else
9718  xorg_cv_cc_flag_unused_command_line_argument=no
9719fi
9720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9721fi
9722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9723$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9724	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9725	CFLAGS="$xorg_testset_save_CFLAGS"
9726fi
9727
9728found="no"
9729
9730	if test $found = "no" ; then
9731		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9732			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9733		fi
9734
9735		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9736			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9737		fi
9738
9739		CFLAGS="$CFLAGS -Wwrite-strings"
9740
9741		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9742$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9743		cacheid=xorg_cv_cc_flag__Wwrite_strings
9744		if eval \${$cacheid+:} false; then :
9745  $as_echo_n "(cached) " >&6
9746else
9747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748/* end confdefs.h.  */
9749int i;
9750int
9751main ()
9752{
9753
9754  ;
9755  return 0;
9756}
9757_ACEOF
9758if ac_fn_c_try_link "$LINENO"; then :
9759  eval $cacheid=yes
9760else
9761  eval $cacheid=no
9762fi
9763rm -f core conftest.err conftest.$ac_objext \
9764    conftest$ac_exeext conftest.$ac_ext
9765fi
9766
9767
9768		CFLAGS="$xorg_testset_save_CFLAGS"
9769
9770		eval supported=\$$cacheid
9771		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9772$as_echo "$supported" >&6; }
9773		if test "$supported" = "yes" ; then
9774			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9775			found="yes"
9776		fi
9777	fi
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793xorg_testset_save_CFLAGS="$CFLAGS"
9794
9795if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9796	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9797	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9798$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9799if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9800  $as_echo_n "(cached) " >&6
9801else
9802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803/* end confdefs.h.  */
9804int i;
9805_ACEOF
9806if ac_fn_c_try_compile "$LINENO"; then :
9807  xorg_cv_cc_flag_unknown_warning_option=yes
9808else
9809  xorg_cv_cc_flag_unknown_warning_option=no
9810fi
9811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9812fi
9813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9814$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9815	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9816	CFLAGS="$xorg_testset_save_CFLAGS"
9817fi
9818
9819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9820	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9821		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9822	fi
9823	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9824	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9825$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9826if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9827  $as_echo_n "(cached) " >&6
9828else
9829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9830/* end confdefs.h.  */
9831int i;
9832_ACEOF
9833if ac_fn_c_try_compile "$LINENO"; then :
9834  xorg_cv_cc_flag_unused_command_line_argument=yes
9835else
9836  xorg_cv_cc_flag_unused_command_line_argument=no
9837fi
9838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9839fi
9840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9841$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9842	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9843	CFLAGS="$xorg_testset_save_CFLAGS"
9844fi
9845
9846found="no"
9847
9848	if test $found = "no" ; then
9849		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9850			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9851		fi
9852
9853		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9854			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9855		fi
9856
9857		CFLAGS="$CFLAGS -Waddress"
9858
9859		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9860$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9861		cacheid=xorg_cv_cc_flag__Waddress
9862		if eval \${$cacheid+:} false; then :
9863  $as_echo_n "(cached) " >&6
9864else
9865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866/* end confdefs.h.  */
9867int i;
9868int
9869main ()
9870{
9871
9872  ;
9873  return 0;
9874}
9875_ACEOF
9876if ac_fn_c_try_link "$LINENO"; then :
9877  eval $cacheid=yes
9878else
9879  eval $cacheid=no
9880fi
9881rm -f core conftest.err conftest.$ac_objext \
9882    conftest$ac_exeext conftest.$ac_ext
9883fi
9884
9885
9886		CFLAGS="$xorg_testset_save_CFLAGS"
9887
9888		eval supported=\$$cacheid
9889		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9890$as_echo "$supported" >&6; }
9891		if test "$supported" = "yes" ; then
9892			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9893			found="yes"
9894		fi
9895	fi
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911xorg_testset_save_CFLAGS="$CFLAGS"
9912
9913if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9914	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9916$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9917if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9918  $as_echo_n "(cached) " >&6
9919else
9920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921/* end confdefs.h.  */
9922int i;
9923_ACEOF
9924if ac_fn_c_try_compile "$LINENO"; then :
9925  xorg_cv_cc_flag_unknown_warning_option=yes
9926else
9927  xorg_cv_cc_flag_unknown_warning_option=no
9928fi
9929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9930fi
9931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9932$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9933	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9934	CFLAGS="$xorg_testset_save_CFLAGS"
9935fi
9936
9937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9938	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9939		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9940	fi
9941	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9942	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9943$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9944if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9945  $as_echo_n "(cached) " >&6
9946else
9947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9948/* end confdefs.h.  */
9949int i;
9950_ACEOF
9951if ac_fn_c_try_compile "$LINENO"; then :
9952  xorg_cv_cc_flag_unused_command_line_argument=yes
9953else
9954  xorg_cv_cc_flag_unused_command_line_argument=no
9955fi
9956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9957fi
9958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9959$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9960	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9961	CFLAGS="$xorg_testset_save_CFLAGS"
9962fi
9963
9964found="no"
9965
9966	if test $found = "no" ; then
9967		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9968			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9969		fi
9970
9971		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9972			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9973		fi
9974
9975		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9976
9977		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9978$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9979		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9980		if eval \${$cacheid+:} false; then :
9981  $as_echo_n "(cached) " >&6
9982else
9983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984/* end confdefs.h.  */
9985int i;
9986int
9987main ()
9988{
9989
9990  ;
9991  return 0;
9992}
9993_ACEOF
9994if ac_fn_c_try_link "$LINENO"; then :
9995  eval $cacheid=yes
9996else
9997  eval $cacheid=no
9998fi
9999rm -f core conftest.err conftest.$ac_objext \
10000    conftest$ac_exeext conftest.$ac_ext
10001fi
10002
10003
10004		CFLAGS="$xorg_testset_save_CFLAGS"
10005
10006		eval supported=\$$cacheid
10007		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10008$as_echo "$supported" >&6; }
10009		if test "$supported" = "yes" ; then
10010			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10011			found="yes"
10012		fi
10013	fi
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029xorg_testset_save_CFLAGS="$CFLAGS"
10030
10031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10032	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10033	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10034$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10035if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10036  $as_echo_n "(cached) " >&6
10037else
10038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039/* end confdefs.h.  */
10040int i;
10041_ACEOF
10042if ac_fn_c_try_compile "$LINENO"; then :
10043  xorg_cv_cc_flag_unknown_warning_option=yes
10044else
10045  xorg_cv_cc_flag_unknown_warning_option=no
10046fi
10047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10048fi
10049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10050$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10051	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10052	CFLAGS="$xorg_testset_save_CFLAGS"
10053fi
10054
10055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10056	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10057		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10058	fi
10059	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10060	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10061$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10062if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10063  $as_echo_n "(cached) " >&6
10064else
10065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10066/* end confdefs.h.  */
10067int i;
10068_ACEOF
10069if ac_fn_c_try_compile "$LINENO"; then :
10070  xorg_cv_cc_flag_unused_command_line_argument=yes
10071else
10072  xorg_cv_cc_flag_unused_command_line_argument=no
10073fi
10074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10075fi
10076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10077$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10078	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10079	CFLAGS="$xorg_testset_save_CFLAGS"
10080fi
10081
10082found="no"
10083
10084	if test $found = "no" ; then
10085		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10086			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10087		fi
10088
10089		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10090			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10091		fi
10092
10093		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10094
10095		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10096$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10097		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10098		if eval \${$cacheid+:} false; then :
10099  $as_echo_n "(cached) " >&6
10100else
10101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10102/* end confdefs.h.  */
10103int i;
10104int
10105main ()
10106{
10107
10108  ;
10109  return 0;
10110}
10111_ACEOF
10112if ac_fn_c_try_link "$LINENO"; then :
10113  eval $cacheid=yes
10114else
10115  eval $cacheid=no
10116fi
10117rm -f core conftest.err conftest.$ac_objext \
10118    conftest$ac_exeext conftest.$ac_ext
10119fi
10120
10121
10122		CFLAGS="$xorg_testset_save_CFLAGS"
10123
10124		eval supported=\$$cacheid
10125		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10126$as_echo "$supported" >&6; }
10127		if test "$supported" = "yes" ; then
10128			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10129			found="yes"
10130		fi
10131	fi
10132
10133
10134fi
10135
10136
10137
10138
10139
10140
10141
10142		CWARNFLAGS="$BASE_CFLAGS"
10143		if  test "x$GCC" = xyes ; then
10144		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10145		fi
10146
10147
10148
10149
10150
10151
10152
10153
10154# Check whether --enable-strict-compilation was given.
10155if test "${enable_strict_compilation+set}" = set; then :
10156  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10157else
10158  STRICT_COMPILE=no
10159fi
10160
10161
10162
10163
10164
10165
10166STRICT_CFLAGS=""
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180xorg_testset_save_CFLAGS="$CFLAGS"
10181
10182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10183	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10184	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10185$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10186if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10187  $as_echo_n "(cached) " >&6
10188else
10189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190/* end confdefs.h.  */
10191int i;
10192_ACEOF
10193if ac_fn_c_try_compile "$LINENO"; then :
10194  xorg_cv_cc_flag_unknown_warning_option=yes
10195else
10196  xorg_cv_cc_flag_unknown_warning_option=no
10197fi
10198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10199fi
10200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10201$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10202	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10203	CFLAGS="$xorg_testset_save_CFLAGS"
10204fi
10205
10206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10207	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10208		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10209	fi
10210	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10211	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10212$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10213if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10214  $as_echo_n "(cached) " >&6
10215else
10216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217/* end confdefs.h.  */
10218int i;
10219_ACEOF
10220if ac_fn_c_try_compile "$LINENO"; then :
10221  xorg_cv_cc_flag_unused_command_line_argument=yes
10222else
10223  xorg_cv_cc_flag_unused_command_line_argument=no
10224fi
10225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10226fi
10227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10228$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10229	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10230	CFLAGS="$xorg_testset_save_CFLAGS"
10231fi
10232
10233found="no"
10234
10235	if test $found = "no" ; then
10236		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10237			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10238		fi
10239
10240		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10241			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10242		fi
10243
10244		CFLAGS="$CFLAGS -pedantic"
10245
10246		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10247$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10248		cacheid=xorg_cv_cc_flag__pedantic
10249		if eval \${$cacheid+:} false; then :
10250  $as_echo_n "(cached) " >&6
10251else
10252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253/* end confdefs.h.  */
10254int i;
10255int
10256main ()
10257{
10258
10259  ;
10260  return 0;
10261}
10262_ACEOF
10263if ac_fn_c_try_link "$LINENO"; then :
10264  eval $cacheid=yes
10265else
10266  eval $cacheid=no
10267fi
10268rm -f core conftest.err conftest.$ac_objext \
10269    conftest$ac_exeext conftest.$ac_ext
10270fi
10271
10272
10273		CFLAGS="$xorg_testset_save_CFLAGS"
10274
10275		eval supported=\$$cacheid
10276		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10277$as_echo "$supported" >&6; }
10278		if test "$supported" = "yes" ; then
10279			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10280			found="yes"
10281		fi
10282	fi
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298xorg_testset_save_CFLAGS="$CFLAGS"
10299
10300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10301	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10302	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10303$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10304if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10305  $as_echo_n "(cached) " >&6
10306else
10307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308/* end confdefs.h.  */
10309int i;
10310_ACEOF
10311if ac_fn_c_try_compile "$LINENO"; then :
10312  xorg_cv_cc_flag_unknown_warning_option=yes
10313else
10314  xorg_cv_cc_flag_unknown_warning_option=no
10315fi
10316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10317fi
10318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10319$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10320	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10321	CFLAGS="$xorg_testset_save_CFLAGS"
10322fi
10323
10324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10325	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10326		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10327	fi
10328	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10329	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10330$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10331if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10332  $as_echo_n "(cached) " >&6
10333else
10334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10335/* end confdefs.h.  */
10336int i;
10337_ACEOF
10338if ac_fn_c_try_compile "$LINENO"; then :
10339  xorg_cv_cc_flag_unused_command_line_argument=yes
10340else
10341  xorg_cv_cc_flag_unused_command_line_argument=no
10342fi
10343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10344fi
10345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10346$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10347	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10348	CFLAGS="$xorg_testset_save_CFLAGS"
10349fi
10350
10351found="no"
10352
10353	if test $found = "no" ; then
10354		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10355			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10356		fi
10357
10358		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10359			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10360		fi
10361
10362		CFLAGS="$CFLAGS -Werror"
10363
10364		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10365$as_echo_n "checking if $CC supports -Werror... " >&6; }
10366		cacheid=xorg_cv_cc_flag__Werror
10367		if eval \${$cacheid+:} false; then :
10368  $as_echo_n "(cached) " >&6
10369else
10370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10371/* end confdefs.h.  */
10372int i;
10373int
10374main ()
10375{
10376
10377  ;
10378  return 0;
10379}
10380_ACEOF
10381if ac_fn_c_try_link "$LINENO"; then :
10382  eval $cacheid=yes
10383else
10384  eval $cacheid=no
10385fi
10386rm -f core conftest.err conftest.$ac_objext \
10387    conftest$ac_exeext conftest.$ac_ext
10388fi
10389
10390
10391		CFLAGS="$xorg_testset_save_CFLAGS"
10392
10393		eval supported=\$$cacheid
10394		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10395$as_echo "$supported" >&6; }
10396		if test "$supported" = "yes" ; then
10397			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10398			found="yes"
10399		fi
10400	fi
10401
10402	if test $found = "no" ; then
10403		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10404			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10405		fi
10406
10407		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10408			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10409		fi
10410
10411		CFLAGS="$CFLAGS -errwarn"
10412
10413		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10414$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10415		cacheid=xorg_cv_cc_flag__errwarn
10416		if eval \${$cacheid+:} false; then :
10417  $as_echo_n "(cached) " >&6
10418else
10419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10420/* end confdefs.h.  */
10421int i;
10422int
10423main ()
10424{
10425
10426  ;
10427  return 0;
10428}
10429_ACEOF
10430if ac_fn_c_try_link "$LINENO"; then :
10431  eval $cacheid=yes
10432else
10433  eval $cacheid=no
10434fi
10435rm -f core conftest.err conftest.$ac_objext \
10436    conftest$ac_exeext conftest.$ac_ext
10437fi
10438
10439
10440		CFLAGS="$xorg_testset_save_CFLAGS"
10441
10442		eval supported=\$$cacheid
10443		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10444$as_echo "$supported" >&6; }
10445		if test "$supported" = "yes" ; then
10446			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10447			found="yes"
10448		fi
10449	fi
10450
10451
10452
10453# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10454# activate it with -Werror, so we add it here explicitly.
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468xorg_testset_save_CFLAGS="$CFLAGS"
10469
10470if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10471	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10472	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10473$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10474if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10475  $as_echo_n "(cached) " >&6
10476else
10477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478/* end confdefs.h.  */
10479int i;
10480_ACEOF
10481if ac_fn_c_try_compile "$LINENO"; then :
10482  xorg_cv_cc_flag_unknown_warning_option=yes
10483else
10484  xorg_cv_cc_flag_unknown_warning_option=no
10485fi
10486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10487fi
10488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10489$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10490	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10491	CFLAGS="$xorg_testset_save_CFLAGS"
10492fi
10493
10494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10495	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10496		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10497	fi
10498	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10499	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10500$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10501if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10502  $as_echo_n "(cached) " >&6
10503else
10504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505/* end confdefs.h.  */
10506int i;
10507_ACEOF
10508if ac_fn_c_try_compile "$LINENO"; then :
10509  xorg_cv_cc_flag_unused_command_line_argument=yes
10510else
10511  xorg_cv_cc_flag_unused_command_line_argument=no
10512fi
10513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10514fi
10515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10516$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10517	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10518	CFLAGS="$xorg_testset_save_CFLAGS"
10519fi
10520
10521found="no"
10522
10523	if test $found = "no" ; then
10524		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10525			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10526		fi
10527
10528		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10529			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10530		fi
10531
10532		CFLAGS="$CFLAGS -Werror=attributes"
10533
10534		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10535$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10536		cacheid=xorg_cv_cc_flag__Werror_attributes
10537		if eval \${$cacheid+:} false; then :
10538  $as_echo_n "(cached) " >&6
10539else
10540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10541/* end confdefs.h.  */
10542int i;
10543int
10544main ()
10545{
10546
10547  ;
10548  return 0;
10549}
10550_ACEOF
10551if ac_fn_c_try_link "$LINENO"; then :
10552  eval $cacheid=yes
10553else
10554  eval $cacheid=no
10555fi
10556rm -f core conftest.err conftest.$ac_objext \
10557    conftest$ac_exeext conftest.$ac_ext
10558fi
10559
10560
10561		CFLAGS="$xorg_testset_save_CFLAGS"
10562
10563		eval supported=\$$cacheid
10564		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10565$as_echo "$supported" >&6; }
10566		if test "$supported" = "yes" ; then
10567			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10568			found="yes"
10569		fi
10570	fi
10571
10572
10573
10574if test "x$STRICT_COMPILE" = "xyes"; then
10575    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10576    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10577fi
10578
10579
10580
10581
10582
10583
10584cat >>confdefs.h <<_ACEOF
10585#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10586_ACEOF
10587
10588	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10589	if test "x$PVM" = "x"; then
10590		PVM="0"
10591	fi
10592
10593cat >>confdefs.h <<_ACEOF
10594#define PACKAGE_VERSION_MINOR $PVM
10595_ACEOF
10596
10597	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10598	if test "x$PVP" = "x"; then
10599		PVP="0"
10600	fi
10601
10602cat >>confdefs.h <<_ACEOF
10603#define PACKAGE_VERSION_PATCHLEVEL $PVP
10604_ACEOF
10605
10606
10607
10608CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10609mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10610|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10611echo 'git directory not found: installing possibly empty changelog.' >&2)"
10612
10613
10614
10615
10616macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10617INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10618mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10619|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10620echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10621
10622
10623
10624
10625
10626
10627if test x$APP_MAN_SUFFIX = x    ; then
10628    APP_MAN_SUFFIX=1
10629fi
10630if test x$APP_MAN_DIR = x    ; then
10631    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10632fi
10633
10634if test x$LIB_MAN_SUFFIX = x    ; then
10635    LIB_MAN_SUFFIX=3
10636fi
10637if test x$LIB_MAN_DIR = x    ; then
10638    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10639fi
10640
10641if test x$FILE_MAN_SUFFIX = x    ; then
10642    case $host_os in
10643	solaris*)	FILE_MAN_SUFFIX=4  ;;
10644	*)		FILE_MAN_SUFFIX=5  ;;
10645    esac
10646fi
10647if test x$FILE_MAN_DIR = x    ; then
10648    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10649fi
10650
10651if test x$MISC_MAN_SUFFIX = x    ; then
10652    case $host_os in
10653	solaris*)	MISC_MAN_SUFFIX=5  ;;
10654	*)		MISC_MAN_SUFFIX=7  ;;
10655    esac
10656fi
10657if test x$MISC_MAN_DIR = x    ; then
10658    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10659fi
10660
10661if test x$DRIVER_MAN_SUFFIX = x    ; then
10662    case $host_os in
10663	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10664	*)		DRIVER_MAN_SUFFIX=4  ;;
10665    esac
10666fi
10667if test x$DRIVER_MAN_DIR = x    ; then
10668    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10669fi
10670
10671if test x$ADMIN_MAN_SUFFIX = x    ; then
10672    case $host_os in
10673	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10674	*)		ADMIN_MAN_SUFFIX=8  ;;
10675    esac
10676fi
10677if test x$ADMIN_MAN_DIR = x    ; then
10678    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10679fi
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695XORG_MAN_PAGE="X Version 11"
10696
10697MAN_SUBSTS="\
10698	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10699	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10700	-e 's|__xservername__|Xorg|g' \
10701	-e 's|__xconfigfile__|xorg.conf|g' \
10702	-e 's|__projectroot__|\$(prefix)|g' \
10703	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10704	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10705	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10706	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10707	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10708	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10709	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10710
10711
10712
10713# Check whether --enable-silent-rules was given.
10714if test "${enable_silent_rules+set}" = set; then :
10715  enableval=$enable_silent_rules;
10716fi
10717
10718case $enable_silent_rules in # (((
10719  yes) AM_DEFAULT_VERBOSITY=0;;
10720   no) AM_DEFAULT_VERBOSITY=1;;
10721    *) AM_DEFAULT_VERBOSITY=0;;
10722esac
10723am_make=${MAKE-make}
10724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10725$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10726if ${am_cv_make_support_nested_variables+:} false; then :
10727  $as_echo_n "(cached) " >&6
10728else
10729  if $as_echo 'TRUE=$(BAR$(V))
10730BAR0=false
10731BAR1=true
10732V=1
10733am__doit:
10734	@$(TRUE)
10735.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10736  am_cv_make_support_nested_variables=yes
10737else
10738  am_cv_make_support_nested_variables=no
10739fi
10740fi
10741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10742$as_echo "$am_cv_make_support_nested_variables" >&6; }
10743if test $am_cv_make_support_nested_variables = yes; then
10744    AM_V='$(V)'
10745  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10746else
10747  AM_V=$AM_DEFAULT_VERBOSITY
10748  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10749fi
10750AM_BACKSLASH='\'
10751
10752
10753
10754# Initialize libtool
10755# Check whether --enable-static was given.
10756if test "${enable_static+set}" = set; then :
10757  enableval=$enable_static; p=${PACKAGE-default}
10758    case $enableval in
10759    yes) enable_static=yes ;;
10760    no) enable_static=no ;;
10761    *)
10762     enable_static=no
10763      # Look at the argument we got.  We use all the common list separators.
10764      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10765      for pkg in $enableval; do
10766	IFS=$lt_save_ifs
10767	if test "X$pkg" = "X$p"; then
10768	  enable_static=yes
10769	fi
10770      done
10771      IFS=$lt_save_ifs
10772      ;;
10773    esac
10774else
10775  enable_static=no
10776fi
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786case `pwd` in
10787  *\ * | *\	*)
10788    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10789$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10790esac
10791
10792
10793
10794macro_version='2.4.6'
10795macro_revision='2.4.6'
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809ltmain=$ac_aux_dir/ltmain.sh
10810
10811# Backslashify metacharacters that are still active within
10812# double-quoted strings.
10813sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10814
10815# Same as above, but do not quote variable references.
10816double_quote_subst='s/\(["`\\]\)/\\\1/g'
10817
10818# Sed substitution to delay expansion of an escaped shell variable in a
10819# double_quote_subst'ed string.
10820delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10821
10822# Sed substitution to delay expansion of an escaped single quote.
10823delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10824
10825# Sed substitution to avoid accidental globbing in evaled expressions
10826no_glob_subst='s/\*/\\\*/g'
10827
10828ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10829ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10830ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10831
10832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10833$as_echo_n "checking how to print strings... " >&6; }
10834# Test print first, because it will be a builtin if present.
10835if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10836   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10837  ECHO='print -r --'
10838elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10839  ECHO='printf %s\n'
10840else
10841  # Use this function as a fallback that always works.
10842  func_fallback_echo ()
10843  {
10844    eval 'cat <<_LTECHO_EOF
10845$1
10846_LTECHO_EOF'
10847  }
10848  ECHO='func_fallback_echo'
10849fi
10850
10851# func_echo_all arg...
10852# Invoke $ECHO with all args, space-separated.
10853func_echo_all ()
10854{
10855    $ECHO ""
10856}
10857
10858case $ECHO in
10859  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10860$as_echo "printf" >&6; } ;;
10861  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10862$as_echo "print -r" >&6; } ;;
10863  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10864$as_echo "cat" >&6; } ;;
10865esac
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10881$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10882if ${ac_cv_path_SED+:} false; then :
10883  $as_echo_n "(cached) " >&6
10884else
10885            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10886     for ac_i in 1 2 3 4 5 6 7; do
10887       ac_script="$ac_script$as_nl$ac_script"
10888     done
10889     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10890     { ac_script=; unset ac_script;}
10891     if test -z "$SED"; then
10892  ac_path_SED_found=false
10893  # Loop through the user's path and test for each of PROGNAME-LIST
10894  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10895for as_dir in $PATH
10896do
10897  IFS=$as_save_IFS
10898  test -z "$as_dir" && as_dir=.
10899    for ac_prog in sed gsed; do
10900    for ac_exec_ext in '' $ac_executable_extensions; do
10901      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10902      as_fn_executable_p "$ac_path_SED" || continue
10903# Check for GNU ac_path_SED and select it if it is found.
10904  # Check for GNU $ac_path_SED
10905case `"$ac_path_SED" --version 2>&1` in
10906*GNU*)
10907  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10908*)
10909  ac_count=0
10910  $as_echo_n 0123456789 >"conftest.in"
10911  while :
10912  do
10913    cat "conftest.in" "conftest.in" >"conftest.tmp"
10914    mv "conftest.tmp" "conftest.in"
10915    cp "conftest.in" "conftest.nl"
10916    $as_echo '' >> "conftest.nl"
10917    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10918    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10919    as_fn_arith $ac_count + 1 && ac_count=$as_val
10920    if test $ac_count -gt ${ac_path_SED_max-0}; then
10921      # Best one so far, save it but keep looking for a better one
10922      ac_cv_path_SED="$ac_path_SED"
10923      ac_path_SED_max=$ac_count
10924    fi
10925    # 10*(2^10) chars as input seems more than enough
10926    test $ac_count -gt 10 && break
10927  done
10928  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10929esac
10930
10931      $ac_path_SED_found && break 3
10932    done
10933  done
10934  done
10935IFS=$as_save_IFS
10936  if test -z "$ac_cv_path_SED"; then
10937    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10938  fi
10939else
10940  ac_cv_path_SED=$SED
10941fi
10942
10943fi
10944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10945$as_echo "$ac_cv_path_SED" >&6; }
10946 SED="$ac_cv_path_SED"
10947  rm -f conftest.sed
10948
10949test -z "$SED" && SED=sed
10950Xsed="$SED -e 1s/^X//"
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10963$as_echo_n "checking for fgrep... " >&6; }
10964if ${ac_cv_path_FGREP+:} false; then :
10965  $as_echo_n "(cached) " >&6
10966else
10967  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10968   then ac_cv_path_FGREP="$GREP -F"
10969   else
10970     if test -z "$FGREP"; then
10971  ac_path_FGREP_found=false
10972  # Loop through the user's path and test for each of PROGNAME-LIST
10973  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10975do
10976  IFS=$as_save_IFS
10977  test -z "$as_dir" && as_dir=.
10978    for ac_prog in fgrep; do
10979    for ac_exec_ext in '' $ac_executable_extensions; do
10980      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10981      as_fn_executable_p "$ac_path_FGREP" || continue
10982# Check for GNU ac_path_FGREP and select it if it is found.
10983  # Check for GNU $ac_path_FGREP
10984case `"$ac_path_FGREP" --version 2>&1` in
10985*GNU*)
10986  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10987*)
10988  ac_count=0
10989  $as_echo_n 0123456789 >"conftest.in"
10990  while :
10991  do
10992    cat "conftest.in" "conftest.in" >"conftest.tmp"
10993    mv "conftest.tmp" "conftest.in"
10994    cp "conftest.in" "conftest.nl"
10995    $as_echo 'FGREP' >> "conftest.nl"
10996    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10997    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10998    as_fn_arith $ac_count + 1 && ac_count=$as_val
10999    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11000      # Best one so far, save it but keep looking for a better one
11001      ac_cv_path_FGREP="$ac_path_FGREP"
11002      ac_path_FGREP_max=$ac_count
11003    fi
11004    # 10*(2^10) chars as input seems more than enough
11005    test $ac_count -gt 10 && break
11006  done
11007  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11008esac
11009
11010      $ac_path_FGREP_found && break 3
11011    done
11012  done
11013  done
11014IFS=$as_save_IFS
11015  if test -z "$ac_cv_path_FGREP"; then
11016    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11017  fi
11018else
11019  ac_cv_path_FGREP=$FGREP
11020fi
11021
11022   fi
11023fi
11024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11025$as_echo "$ac_cv_path_FGREP" >&6; }
11026 FGREP="$ac_cv_path_FGREP"
11027
11028
11029test -z "$GREP" && GREP=grep
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049# Check whether --with-gnu-ld was given.
11050if test "${with_gnu_ld+set}" = set; then :
11051  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11052else
11053  with_gnu_ld=no
11054fi
11055
11056ac_prog=ld
11057if test yes = "$GCC"; then
11058  # Check if gcc -print-prog-name=ld gives a path.
11059  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11060$as_echo_n "checking for ld used by $CC... " >&6; }
11061  case $host in
11062  *-*-mingw*)
11063    # gcc leaves a trailing carriage return, which upsets mingw
11064    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11065  *)
11066    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11067  esac
11068  case $ac_prog in
11069    # Accept absolute paths.
11070    [\\/]* | ?:[\\/]*)
11071      re_direlt='/[^/][^/]*/\.\./'
11072      # Canonicalize the pathname of ld
11073      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11074      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11075	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11076      done
11077      test -z "$LD" && LD=$ac_prog
11078      ;;
11079  "")
11080    # If it fails, then pretend we aren't using GCC.
11081    ac_prog=ld
11082    ;;
11083  *)
11084    # If it is relative, then search for the first ld in PATH.
11085    with_gnu_ld=unknown
11086    ;;
11087  esac
11088elif test yes = "$with_gnu_ld"; then
11089  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11090$as_echo_n "checking for GNU ld... " >&6; }
11091else
11092  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11093$as_echo_n "checking for non-GNU ld... " >&6; }
11094fi
11095if ${lt_cv_path_LD+:} false; then :
11096  $as_echo_n "(cached) " >&6
11097else
11098  if test -z "$LD"; then
11099  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11100  for ac_dir in $PATH; do
11101    IFS=$lt_save_ifs
11102    test -z "$ac_dir" && ac_dir=.
11103    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11104      lt_cv_path_LD=$ac_dir/$ac_prog
11105      # Check to see if the program is GNU ld.  I'd rather use --version,
11106      # but apparently some variants of GNU ld only accept -v.
11107      # Break only if it was the GNU/non-GNU ld that we prefer.
11108      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11109      *GNU* | *'with BFD'*)
11110	test no != "$with_gnu_ld" && break
11111	;;
11112      *)
11113	test yes != "$with_gnu_ld" && break
11114	;;
11115      esac
11116    fi
11117  done
11118  IFS=$lt_save_ifs
11119else
11120  lt_cv_path_LD=$LD # Let the user override the test with a path.
11121fi
11122fi
11123
11124LD=$lt_cv_path_LD
11125if test -n "$LD"; then
11126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11127$as_echo "$LD" >&6; }
11128else
11129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130$as_echo "no" >&6; }
11131fi
11132test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11134$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11135if ${lt_cv_prog_gnu_ld+:} false; then :
11136  $as_echo_n "(cached) " >&6
11137else
11138  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11139case `$LD -v 2>&1 </dev/null` in
11140*GNU* | *'with BFD'*)
11141  lt_cv_prog_gnu_ld=yes
11142  ;;
11143*)
11144  lt_cv_prog_gnu_ld=no
11145  ;;
11146esac
11147fi
11148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11149$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11150with_gnu_ld=$lt_cv_prog_gnu_ld
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11161$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11162if ${lt_cv_path_NM+:} false; then :
11163  $as_echo_n "(cached) " >&6
11164else
11165  if test -n "$NM"; then
11166  # Let the user override the test.
11167  lt_cv_path_NM=$NM
11168else
11169  lt_nm_to_check=${ac_tool_prefix}nm
11170  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11171    lt_nm_to_check="$lt_nm_to_check nm"
11172  fi
11173  for lt_tmp_nm in $lt_nm_to_check; do
11174    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11175    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11176      IFS=$lt_save_ifs
11177      test -z "$ac_dir" && ac_dir=.
11178      tmp_nm=$ac_dir/$lt_tmp_nm
11179      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11180	# Check to see if the nm accepts a BSD-compat flag.
11181	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11182	#   nm: unknown option "B" ignored
11183	# Tru64's nm complains that /dev/null is an invalid object file
11184	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11185	case $build_os in
11186	mingw*) lt_bad_file=conftest.nm/nofile ;;
11187	*) lt_bad_file=/dev/null ;;
11188	esac
11189	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11190	*$lt_bad_file* | *'Invalid file or object type'*)
11191	  lt_cv_path_NM="$tmp_nm -B"
11192	  break 2
11193	  ;;
11194	*)
11195	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11196	  */dev/null*)
11197	    lt_cv_path_NM="$tmp_nm -p"
11198	    break 2
11199	    ;;
11200	  *)
11201	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11202	    continue # so that we can try to find one that supports BSD flags
11203	    ;;
11204	  esac
11205	  ;;
11206	esac
11207      fi
11208    done
11209    IFS=$lt_save_ifs
11210  done
11211  : ${lt_cv_path_NM=no}
11212fi
11213fi
11214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11215$as_echo "$lt_cv_path_NM" >&6; }
11216if test no != "$lt_cv_path_NM"; then
11217  NM=$lt_cv_path_NM
11218else
11219  # Didn't find any BSD compatible name lister, look for dumpbin.
11220  if test -n "$DUMPBIN"; then :
11221    # Let the user override the test.
11222  else
11223    if test -n "$ac_tool_prefix"; then
11224  for ac_prog in dumpbin "link -dump"
11225  do
11226    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11227set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11229$as_echo_n "checking for $ac_word... " >&6; }
11230if ${ac_cv_prog_DUMPBIN+:} false; then :
11231  $as_echo_n "(cached) " >&6
11232else
11233  if test -n "$DUMPBIN"; then
11234  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11235else
11236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11237for as_dir in $PATH
11238do
11239  IFS=$as_save_IFS
11240  test -z "$as_dir" && as_dir=.
11241    for ac_exec_ext in '' $ac_executable_extensions; do
11242  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11243    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11244    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11245    break 2
11246  fi
11247done
11248  done
11249IFS=$as_save_IFS
11250
11251fi
11252fi
11253DUMPBIN=$ac_cv_prog_DUMPBIN
11254if test -n "$DUMPBIN"; then
11255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11256$as_echo "$DUMPBIN" >&6; }
11257else
11258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11259$as_echo "no" >&6; }
11260fi
11261
11262
11263    test -n "$DUMPBIN" && break
11264  done
11265fi
11266if test -z "$DUMPBIN"; then
11267  ac_ct_DUMPBIN=$DUMPBIN
11268  for ac_prog in dumpbin "link -dump"
11269do
11270  # Extract the first word of "$ac_prog", so it can be a program name with args.
11271set dummy $ac_prog; ac_word=$2
11272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11273$as_echo_n "checking for $ac_word... " >&6; }
11274if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11275  $as_echo_n "(cached) " >&6
11276else
11277  if test -n "$ac_ct_DUMPBIN"; then
11278  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11279else
11280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11281for as_dir in $PATH
11282do
11283  IFS=$as_save_IFS
11284  test -z "$as_dir" && as_dir=.
11285    for ac_exec_ext in '' $ac_executable_extensions; do
11286  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11287    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11288    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11289    break 2
11290  fi
11291done
11292  done
11293IFS=$as_save_IFS
11294
11295fi
11296fi
11297ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11298if test -n "$ac_ct_DUMPBIN"; then
11299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11300$as_echo "$ac_ct_DUMPBIN" >&6; }
11301else
11302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11303$as_echo "no" >&6; }
11304fi
11305
11306
11307  test -n "$ac_ct_DUMPBIN" && break
11308done
11309
11310  if test "x$ac_ct_DUMPBIN" = x; then
11311    DUMPBIN=":"
11312  else
11313    case $cross_compiling:$ac_tool_warned in
11314yes:)
11315{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11317ac_tool_warned=yes ;;
11318esac
11319    DUMPBIN=$ac_ct_DUMPBIN
11320  fi
11321fi
11322
11323    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11324    *COFF*)
11325      DUMPBIN="$DUMPBIN -symbols -headers"
11326      ;;
11327    *)
11328      DUMPBIN=:
11329      ;;
11330    esac
11331  fi
11332
11333  if test : != "$DUMPBIN"; then
11334    NM=$DUMPBIN
11335  fi
11336fi
11337test -z "$NM" && NM=nm
11338
11339
11340
11341
11342
11343
11344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11345$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11346if ${lt_cv_nm_interface+:} false; then :
11347  $as_echo_n "(cached) " >&6
11348else
11349  lt_cv_nm_interface="BSD nm"
11350  echo "int some_variable = 0;" > conftest.$ac_ext
11351  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11352  (eval "$ac_compile" 2>conftest.err)
11353  cat conftest.err >&5
11354  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11355  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11356  cat conftest.err >&5
11357  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11358  cat conftest.out >&5
11359  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11360    lt_cv_nm_interface="MS dumpbin"
11361  fi
11362  rm -f conftest*
11363fi
11364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11365$as_echo "$lt_cv_nm_interface" >&6; }
11366
11367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11368$as_echo_n "checking whether ln -s works... " >&6; }
11369LN_S=$as_ln_s
11370if test "$LN_S" = "ln -s"; then
11371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11372$as_echo "yes" >&6; }
11373else
11374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11375$as_echo "no, using $LN_S" >&6; }
11376fi
11377
11378# find the maximum length of command line arguments
11379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11380$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11381if ${lt_cv_sys_max_cmd_len+:} false; then :
11382  $as_echo_n "(cached) " >&6
11383else
11384    i=0
11385  teststring=ABCD
11386
11387  case $build_os in
11388  msdosdjgpp*)
11389    # On DJGPP, this test can blow up pretty badly due to problems in libc
11390    # (any single argument exceeding 2000 bytes causes a buffer overrun
11391    # during glob expansion).  Even if it were fixed, the result of this
11392    # check would be larger than it should be.
11393    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11394    ;;
11395
11396  gnu*)
11397    # Under GNU Hurd, this test is not required because there is
11398    # no limit to the length of command line arguments.
11399    # Libtool will interpret -1 as no limit whatsoever
11400    lt_cv_sys_max_cmd_len=-1;
11401    ;;
11402
11403  cygwin* | mingw* | cegcc*)
11404    # On Win9x/ME, this test blows up -- it succeeds, but takes
11405    # about 5 minutes as the teststring grows exponentially.
11406    # Worse, since 9x/ME are not pre-emptively multitasking,
11407    # you end up with a "frozen" computer, even though with patience
11408    # the test eventually succeeds (with a max line length of 256k).
11409    # Instead, let's just punt: use the minimum linelength reported by
11410    # all of the supported platforms: 8192 (on NT/2K/XP).
11411    lt_cv_sys_max_cmd_len=8192;
11412    ;;
11413
11414  mint*)
11415    # On MiNT this can take a long time and run out of memory.
11416    lt_cv_sys_max_cmd_len=8192;
11417    ;;
11418
11419  amigaos*)
11420    # On AmigaOS with pdksh, this test takes hours, literally.
11421    # So we just punt and use a minimum line length of 8192.
11422    lt_cv_sys_max_cmd_len=8192;
11423    ;;
11424
11425  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11426    # This has been around since 386BSD, at least.  Likely further.
11427    if test -x /sbin/sysctl; then
11428      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11429    elif test -x /usr/sbin/sysctl; then
11430      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11431    else
11432      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11433    fi
11434    # And add a safety zone
11435    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11436    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11437    ;;
11438
11439  interix*)
11440    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11441    lt_cv_sys_max_cmd_len=196608
11442    ;;
11443
11444  os2*)
11445    # The test takes a long time on OS/2.
11446    lt_cv_sys_max_cmd_len=8192
11447    ;;
11448
11449  osf*)
11450    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11451    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11452    # nice to cause kernel panics so lets avoid the loop below.
11453    # First set a reasonable default.
11454    lt_cv_sys_max_cmd_len=16384
11455    #
11456    if test -x /sbin/sysconfig; then
11457      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11458        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11459      esac
11460    fi
11461    ;;
11462  sco3.2v5*)
11463    lt_cv_sys_max_cmd_len=102400
11464    ;;
11465  sysv5* | sco5v6* | sysv4.2uw2*)
11466    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11467    if test -n "$kargmax"; then
11468      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11469    else
11470      lt_cv_sys_max_cmd_len=32768
11471    fi
11472    ;;
11473  *)
11474    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11475    if test -n "$lt_cv_sys_max_cmd_len" && \
11476       test undefined != "$lt_cv_sys_max_cmd_len"; then
11477      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11478      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11479    else
11480      # Make teststring a little bigger before we do anything with it.
11481      # a 1K string should be a reasonable start.
11482      for i in 1 2 3 4 5 6 7 8; do
11483        teststring=$teststring$teststring
11484      done
11485      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11486      # If test is not a shell built-in, we'll probably end up computing a
11487      # maximum length that is only half of the actual maximum length, but
11488      # we can't tell.
11489      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11490	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11491	      test 17 != "$i" # 1/2 MB should be enough
11492      do
11493        i=`expr $i + 1`
11494        teststring=$teststring$teststring
11495      done
11496      # Only check the string length outside the loop.
11497      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11498      teststring=
11499      # Add a significant safety factor because C++ compilers can tack on
11500      # massive amounts of additional arguments before passing them to the
11501      # linker.  It appears as though 1/2 is a usable value.
11502      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11503    fi
11504    ;;
11505  esac
11506
11507fi
11508
11509if test -n "$lt_cv_sys_max_cmd_len"; then
11510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11511$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11512else
11513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11514$as_echo "none" >&6; }
11515fi
11516max_cmd_len=$lt_cv_sys_max_cmd_len
11517
11518
11519
11520
11521
11522
11523: ${CP="cp -f"}
11524: ${MV="mv -f"}
11525: ${RM="rm -f"}
11526
11527if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11528  lt_unset=unset
11529else
11530  lt_unset=false
11531fi
11532
11533
11534
11535
11536
11537# test EBCDIC or ASCII
11538case `echo X|tr X '\101'` in
11539 A) # ASCII based system
11540    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11541  lt_SP2NL='tr \040 \012'
11542  lt_NL2SP='tr \015\012 \040\040'
11543  ;;
11544 *) # EBCDIC based system
11545  lt_SP2NL='tr \100 \n'
11546  lt_NL2SP='tr \r\n \100\100'
11547  ;;
11548esac
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11559$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11560if ${lt_cv_to_host_file_cmd+:} false; then :
11561  $as_echo_n "(cached) " >&6
11562else
11563  case $host in
11564  *-*-mingw* )
11565    case $build in
11566      *-*-mingw* ) # actually msys
11567        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11568        ;;
11569      *-*-cygwin* )
11570        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11571        ;;
11572      * ) # otherwise, assume *nix
11573        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11574        ;;
11575    esac
11576    ;;
11577  *-*-cygwin* )
11578    case $build in
11579      *-*-mingw* ) # actually msys
11580        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11581        ;;
11582      *-*-cygwin* )
11583        lt_cv_to_host_file_cmd=func_convert_file_noop
11584        ;;
11585      * ) # otherwise, assume *nix
11586        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11587        ;;
11588    esac
11589    ;;
11590  * ) # unhandled hosts (and "normal" native builds)
11591    lt_cv_to_host_file_cmd=func_convert_file_noop
11592    ;;
11593esac
11594
11595fi
11596
11597to_host_file_cmd=$lt_cv_to_host_file_cmd
11598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11599$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11600
11601
11602
11603
11604
11605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11606$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11607if ${lt_cv_to_tool_file_cmd+:} false; then :
11608  $as_echo_n "(cached) " >&6
11609else
11610  #assume ordinary cross tools, or native build.
11611lt_cv_to_tool_file_cmd=func_convert_file_noop
11612case $host in
11613  *-*-mingw* )
11614    case $build in
11615      *-*-mingw* ) # actually msys
11616        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11617        ;;
11618    esac
11619    ;;
11620esac
11621
11622fi
11623
11624to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11626$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11627
11628
11629
11630
11631
11632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11633$as_echo_n "checking for $LD option to reload object files... " >&6; }
11634if ${lt_cv_ld_reload_flag+:} false; then :
11635  $as_echo_n "(cached) " >&6
11636else
11637  lt_cv_ld_reload_flag='-r'
11638fi
11639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11640$as_echo "$lt_cv_ld_reload_flag" >&6; }
11641reload_flag=$lt_cv_ld_reload_flag
11642case $reload_flag in
11643"" | " "*) ;;
11644*) reload_flag=" $reload_flag" ;;
11645esac
11646reload_cmds='$LD$reload_flag -o $output$reload_objs'
11647case $host_os in
11648  cygwin* | mingw* | pw32* | cegcc*)
11649    if test yes != "$GCC"; then
11650      reload_cmds=false
11651    fi
11652    ;;
11653  darwin*)
11654    if test yes = "$GCC"; then
11655      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11656    else
11657      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11658    fi
11659    ;;
11660esac
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670if test -n "$ac_tool_prefix"; then
11671  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11672set dummy ${ac_tool_prefix}objdump; ac_word=$2
11673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11674$as_echo_n "checking for $ac_word... " >&6; }
11675if ${ac_cv_prog_OBJDUMP+:} false; then :
11676  $as_echo_n "(cached) " >&6
11677else
11678  if test -n "$OBJDUMP"; then
11679  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11680else
11681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682for as_dir in $PATH
11683do
11684  IFS=$as_save_IFS
11685  test -z "$as_dir" && as_dir=.
11686    for ac_exec_ext in '' $ac_executable_extensions; do
11687  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11688    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11690    break 2
11691  fi
11692done
11693  done
11694IFS=$as_save_IFS
11695
11696fi
11697fi
11698OBJDUMP=$ac_cv_prog_OBJDUMP
11699if test -n "$OBJDUMP"; then
11700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11701$as_echo "$OBJDUMP" >&6; }
11702else
11703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11704$as_echo "no" >&6; }
11705fi
11706
11707
11708fi
11709if test -z "$ac_cv_prog_OBJDUMP"; then
11710  ac_ct_OBJDUMP=$OBJDUMP
11711  # Extract the first word of "objdump", so it can be a program name with args.
11712set dummy objdump; ac_word=$2
11713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11714$as_echo_n "checking for $ac_word... " >&6; }
11715if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11716  $as_echo_n "(cached) " >&6
11717else
11718  if test -n "$ac_ct_OBJDUMP"; then
11719  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11720else
11721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11722for as_dir in $PATH
11723do
11724  IFS=$as_save_IFS
11725  test -z "$as_dir" && as_dir=.
11726    for ac_exec_ext in '' $ac_executable_extensions; do
11727  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11728    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11729    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11730    break 2
11731  fi
11732done
11733  done
11734IFS=$as_save_IFS
11735
11736fi
11737fi
11738ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11739if test -n "$ac_ct_OBJDUMP"; then
11740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11741$as_echo "$ac_ct_OBJDUMP" >&6; }
11742else
11743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11744$as_echo "no" >&6; }
11745fi
11746
11747  if test "x$ac_ct_OBJDUMP" = x; then
11748    OBJDUMP="false"
11749  else
11750    case $cross_compiling:$ac_tool_warned in
11751yes:)
11752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11754ac_tool_warned=yes ;;
11755esac
11756    OBJDUMP=$ac_ct_OBJDUMP
11757  fi
11758else
11759  OBJDUMP="$ac_cv_prog_OBJDUMP"
11760fi
11761
11762test -z "$OBJDUMP" && OBJDUMP=objdump
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11773$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11774if ${lt_cv_deplibs_check_method+:} false; then :
11775  $as_echo_n "(cached) " >&6
11776else
11777  lt_cv_file_magic_cmd='$MAGIC_CMD'
11778lt_cv_file_magic_test_file=
11779lt_cv_deplibs_check_method='unknown'
11780# Need to set the preceding variable on all platforms that support
11781# interlibrary dependencies.
11782# 'none' -- dependencies not supported.
11783# 'unknown' -- same as none, but documents that we really don't know.
11784# 'pass_all' -- all dependencies passed with no checks.
11785# 'test_compile' -- check by making test program.
11786# 'file_magic [[regex]]' -- check by looking for files in library path
11787# that responds to the $file_magic_cmd with a given extended regex.
11788# If you have 'file' or equivalent on your system and you're not sure
11789# whether 'pass_all' will *always* work, you probably want this one.
11790
11791case $host_os in
11792aix[4-9]*)
11793  lt_cv_deplibs_check_method=pass_all
11794  ;;
11795
11796beos*)
11797  lt_cv_deplibs_check_method=pass_all
11798  ;;
11799
11800bsdi[45]*)
11801  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11802  lt_cv_file_magic_cmd='/usr/bin/file -L'
11803  lt_cv_file_magic_test_file=/shlib/libc.so
11804  ;;
11805
11806cygwin*)
11807  # func_win32_libid is a shell function defined in ltmain.sh
11808  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11809  lt_cv_file_magic_cmd='func_win32_libid'
11810  ;;
11811
11812mingw* | pw32*)
11813  # Base MSYS/MinGW do not provide the 'file' command needed by
11814  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11815  # unless we find 'file', for example because we are cross-compiling.
11816  if ( file / ) >/dev/null 2>&1; then
11817    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11818    lt_cv_file_magic_cmd='func_win32_libid'
11819  else
11820    # Keep this pattern in sync with the one in func_win32_libid.
11821    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11822    lt_cv_file_magic_cmd='$OBJDUMP -f'
11823  fi
11824  ;;
11825
11826cegcc*)
11827  # use the weaker test based on 'objdump'. See mingw*.
11828  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11829  lt_cv_file_magic_cmd='$OBJDUMP -f'
11830  ;;
11831
11832darwin* | rhapsody*)
11833  lt_cv_deplibs_check_method=pass_all
11834  ;;
11835
11836freebsd* | dragonfly*)
11837  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11838    case $host_cpu in
11839    i*86 )
11840      # Not sure whether the presence of OpenBSD here was a mistake.
11841      # Let's accept both of them until this is cleared up.
11842      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11843      lt_cv_file_magic_cmd=/usr/bin/file
11844      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11845      ;;
11846    esac
11847  else
11848    lt_cv_deplibs_check_method=pass_all
11849  fi
11850  ;;
11851
11852haiku*)
11853  lt_cv_deplibs_check_method=pass_all
11854  ;;
11855
11856hpux10.20* | hpux11*)
11857  lt_cv_file_magic_cmd=/usr/bin/file
11858  case $host_cpu in
11859  ia64*)
11860    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11861    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11862    ;;
11863  hppa*64*)
11864    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]'
11865    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11866    ;;
11867  *)
11868    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11869    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11870    ;;
11871  esac
11872  ;;
11873
11874interix[3-9]*)
11875  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11876  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11877  ;;
11878
11879irix5* | irix6* | nonstopux*)
11880  case $LD in
11881  *-32|*"-32 ") libmagic=32-bit;;
11882  *-n32|*"-n32 ") libmagic=N32;;
11883  *-64|*"-64 ") libmagic=64-bit;;
11884  *) libmagic=never-match;;
11885  esac
11886  lt_cv_deplibs_check_method=pass_all
11887  ;;
11888
11889# This must be glibc/ELF.
11890linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11891  lt_cv_deplibs_check_method=pass_all
11892  ;;
11893
11894netbsd* | netbsdelf*-gnu)
11895  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11896    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11897  else
11898    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11899  fi
11900  ;;
11901
11902newos6*)
11903  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11904  lt_cv_file_magic_cmd=/usr/bin/file
11905  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11906  ;;
11907
11908*nto* | *qnx*)
11909  lt_cv_deplibs_check_method=pass_all
11910  ;;
11911
11912openbsd* | bitrig*)
11913  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11914    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11915  else
11916    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11917  fi
11918  ;;
11919
11920osf3* | osf4* | osf5*)
11921  lt_cv_deplibs_check_method=pass_all
11922  ;;
11923
11924rdos*)
11925  lt_cv_deplibs_check_method=pass_all
11926  ;;
11927
11928solaris*)
11929  lt_cv_deplibs_check_method=pass_all
11930  ;;
11931
11932sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11933  lt_cv_deplibs_check_method=pass_all
11934  ;;
11935
11936sysv4 | sysv4.3*)
11937  case $host_vendor in
11938  motorola)
11939    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]'
11940    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11941    ;;
11942  ncr)
11943    lt_cv_deplibs_check_method=pass_all
11944    ;;
11945  sequent)
11946    lt_cv_file_magic_cmd='/bin/file'
11947    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11948    ;;
11949  sni)
11950    lt_cv_file_magic_cmd='/bin/file'
11951    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11952    lt_cv_file_magic_test_file=/lib/libc.so
11953    ;;
11954  siemens)
11955    lt_cv_deplibs_check_method=pass_all
11956    ;;
11957  pc)
11958    lt_cv_deplibs_check_method=pass_all
11959    ;;
11960  esac
11961  ;;
11962
11963tpf*)
11964  lt_cv_deplibs_check_method=pass_all
11965  ;;
11966os2*)
11967  lt_cv_deplibs_check_method=pass_all
11968  ;;
11969esac
11970
11971fi
11972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11973$as_echo "$lt_cv_deplibs_check_method" >&6; }
11974
11975file_magic_glob=
11976want_nocaseglob=no
11977if test "$build" = "$host"; then
11978  case $host_os in
11979  mingw* | pw32*)
11980    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11981      want_nocaseglob=yes
11982    else
11983      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11984    fi
11985    ;;
11986  esac
11987fi
11988
11989file_magic_cmd=$lt_cv_file_magic_cmd
11990deplibs_check_method=$lt_cv_deplibs_check_method
11991test -z "$deplibs_check_method" && deplibs_check_method=unknown
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014if test -n "$ac_tool_prefix"; then
12015  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12016set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12018$as_echo_n "checking for $ac_word... " >&6; }
12019if ${ac_cv_prog_DLLTOOL+:} false; then :
12020  $as_echo_n "(cached) " >&6
12021else
12022  if test -n "$DLLTOOL"; then
12023  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12024else
12025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12026for as_dir in $PATH
12027do
12028  IFS=$as_save_IFS
12029  test -z "$as_dir" && as_dir=.
12030    for ac_exec_ext in '' $ac_executable_extensions; do
12031  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12032    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12033    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12034    break 2
12035  fi
12036done
12037  done
12038IFS=$as_save_IFS
12039
12040fi
12041fi
12042DLLTOOL=$ac_cv_prog_DLLTOOL
12043if test -n "$DLLTOOL"; then
12044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12045$as_echo "$DLLTOOL" >&6; }
12046else
12047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048$as_echo "no" >&6; }
12049fi
12050
12051
12052fi
12053if test -z "$ac_cv_prog_DLLTOOL"; then
12054  ac_ct_DLLTOOL=$DLLTOOL
12055  # Extract the first word of "dlltool", so it can be a program name with args.
12056set dummy dlltool; ac_word=$2
12057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12058$as_echo_n "checking for $ac_word... " >&6; }
12059if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12060  $as_echo_n "(cached) " >&6
12061else
12062  if test -n "$ac_ct_DLLTOOL"; then
12063  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12064else
12065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12066for as_dir in $PATH
12067do
12068  IFS=$as_save_IFS
12069  test -z "$as_dir" && as_dir=.
12070    for ac_exec_ext in '' $ac_executable_extensions; do
12071  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12072    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12074    break 2
12075  fi
12076done
12077  done
12078IFS=$as_save_IFS
12079
12080fi
12081fi
12082ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12083if test -n "$ac_ct_DLLTOOL"; then
12084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12085$as_echo "$ac_ct_DLLTOOL" >&6; }
12086else
12087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12088$as_echo "no" >&6; }
12089fi
12090
12091  if test "x$ac_ct_DLLTOOL" = x; then
12092    DLLTOOL="false"
12093  else
12094    case $cross_compiling:$ac_tool_warned in
12095yes:)
12096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12098ac_tool_warned=yes ;;
12099esac
12100    DLLTOOL=$ac_ct_DLLTOOL
12101  fi
12102else
12103  DLLTOOL="$ac_cv_prog_DLLTOOL"
12104fi
12105
12106test -z "$DLLTOOL" && DLLTOOL=dlltool
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12118$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12119if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12120  $as_echo_n "(cached) " >&6
12121else
12122  lt_cv_sharedlib_from_linklib_cmd='unknown'
12123
12124case $host_os in
12125cygwin* | mingw* | pw32* | cegcc*)
12126  # two different shell functions defined in ltmain.sh;
12127  # decide which one to use based on capabilities of $DLLTOOL
12128  case `$DLLTOOL --help 2>&1` in
12129  *--identify-strict*)
12130    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12131    ;;
12132  *)
12133    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12134    ;;
12135  esac
12136  ;;
12137*)
12138  # fallback: assume linklib IS sharedlib
12139  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12140  ;;
12141esac
12142
12143fi
12144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12145$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12146sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12147test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12148
12149
12150
12151
12152
12153
12154
12155if test -n "$ac_tool_prefix"; then
12156  for ac_prog in ar
12157  do
12158    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12159set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12161$as_echo_n "checking for $ac_word... " >&6; }
12162if ${ac_cv_prog_AR+:} false; then :
12163  $as_echo_n "(cached) " >&6
12164else
12165  if test -n "$AR"; then
12166  ac_cv_prog_AR="$AR" # Let the user override the test.
12167else
12168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12169for as_dir in $PATH
12170do
12171  IFS=$as_save_IFS
12172  test -z "$as_dir" && as_dir=.
12173    for ac_exec_ext in '' $ac_executable_extensions; do
12174  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12175    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12176    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12177    break 2
12178  fi
12179done
12180  done
12181IFS=$as_save_IFS
12182
12183fi
12184fi
12185AR=$ac_cv_prog_AR
12186if test -n "$AR"; then
12187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12188$as_echo "$AR" >&6; }
12189else
12190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191$as_echo "no" >&6; }
12192fi
12193
12194
12195    test -n "$AR" && break
12196  done
12197fi
12198if test -z "$AR"; then
12199  ac_ct_AR=$AR
12200  for ac_prog in ar
12201do
12202  # Extract the first word of "$ac_prog", so it can be a program name with args.
12203set dummy $ac_prog; ac_word=$2
12204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12205$as_echo_n "checking for $ac_word... " >&6; }
12206if ${ac_cv_prog_ac_ct_AR+:} false; then :
12207  $as_echo_n "(cached) " >&6
12208else
12209  if test -n "$ac_ct_AR"; then
12210  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12211else
12212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12213for as_dir in $PATH
12214do
12215  IFS=$as_save_IFS
12216  test -z "$as_dir" && as_dir=.
12217    for ac_exec_ext in '' $ac_executable_extensions; do
12218  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12219    ac_cv_prog_ac_ct_AR="$ac_prog"
12220    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12221    break 2
12222  fi
12223done
12224  done
12225IFS=$as_save_IFS
12226
12227fi
12228fi
12229ac_ct_AR=$ac_cv_prog_ac_ct_AR
12230if test -n "$ac_ct_AR"; then
12231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12232$as_echo "$ac_ct_AR" >&6; }
12233else
12234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12235$as_echo "no" >&6; }
12236fi
12237
12238
12239  test -n "$ac_ct_AR" && break
12240done
12241
12242  if test "x$ac_ct_AR" = x; then
12243    AR="false"
12244  else
12245    case $cross_compiling:$ac_tool_warned in
12246yes:)
12247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12249ac_tool_warned=yes ;;
12250esac
12251    AR=$ac_ct_AR
12252  fi
12253fi
12254
12255: ${AR=ar}
12256: ${AR_FLAGS=cru}
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12269$as_echo_n "checking for archiver @FILE support... " >&6; }
12270if ${lt_cv_ar_at_file+:} false; then :
12271  $as_echo_n "(cached) " >&6
12272else
12273  lt_cv_ar_at_file=no
12274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12275/* end confdefs.h.  */
12276
12277int
12278main ()
12279{
12280
12281  ;
12282  return 0;
12283}
12284_ACEOF
12285if ac_fn_c_try_compile "$LINENO"; then :
12286  echo conftest.$ac_objext > conftest.lst
12287      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12288      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12289  (eval $lt_ar_try) 2>&5
12290  ac_status=$?
12291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12292  test $ac_status = 0; }
12293      if test 0 -eq "$ac_status"; then
12294	# Ensure the archiver fails upon bogus file names.
12295	rm -f conftest.$ac_objext libconftest.a
12296	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12297  (eval $lt_ar_try) 2>&5
12298  ac_status=$?
12299  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12300  test $ac_status = 0; }
12301	if test 0 -ne "$ac_status"; then
12302          lt_cv_ar_at_file=@
12303        fi
12304      fi
12305      rm -f conftest.* libconftest.a
12306
12307fi
12308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12309
12310fi
12311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12312$as_echo "$lt_cv_ar_at_file" >&6; }
12313
12314if test no = "$lt_cv_ar_at_file"; then
12315  archiver_list_spec=
12316else
12317  archiver_list_spec=$lt_cv_ar_at_file
12318fi
12319
12320
12321
12322
12323
12324
12325
12326if test -n "$ac_tool_prefix"; then
12327  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12328set dummy ${ac_tool_prefix}strip; ac_word=$2
12329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12330$as_echo_n "checking for $ac_word... " >&6; }
12331if ${ac_cv_prog_STRIP+:} false; then :
12332  $as_echo_n "(cached) " >&6
12333else
12334  if test -n "$STRIP"; then
12335  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12336else
12337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12338for as_dir in $PATH
12339do
12340  IFS=$as_save_IFS
12341  test -z "$as_dir" && as_dir=.
12342    for ac_exec_ext in '' $ac_executable_extensions; do
12343  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12344    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12345    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12346    break 2
12347  fi
12348done
12349  done
12350IFS=$as_save_IFS
12351
12352fi
12353fi
12354STRIP=$ac_cv_prog_STRIP
12355if test -n "$STRIP"; then
12356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12357$as_echo "$STRIP" >&6; }
12358else
12359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12360$as_echo "no" >&6; }
12361fi
12362
12363
12364fi
12365if test -z "$ac_cv_prog_STRIP"; then
12366  ac_ct_STRIP=$STRIP
12367  # Extract the first word of "strip", so it can be a program name with args.
12368set dummy strip; ac_word=$2
12369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12370$as_echo_n "checking for $ac_word... " >&6; }
12371if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12372  $as_echo_n "(cached) " >&6
12373else
12374  if test -n "$ac_ct_STRIP"; then
12375  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12376else
12377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378for as_dir in $PATH
12379do
12380  IFS=$as_save_IFS
12381  test -z "$as_dir" && as_dir=.
12382    for ac_exec_ext in '' $ac_executable_extensions; do
12383  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12384    ac_cv_prog_ac_ct_STRIP="strip"
12385    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12386    break 2
12387  fi
12388done
12389  done
12390IFS=$as_save_IFS
12391
12392fi
12393fi
12394ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12395if test -n "$ac_ct_STRIP"; then
12396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12397$as_echo "$ac_ct_STRIP" >&6; }
12398else
12399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400$as_echo "no" >&6; }
12401fi
12402
12403  if test "x$ac_ct_STRIP" = x; then
12404    STRIP=":"
12405  else
12406    case $cross_compiling:$ac_tool_warned in
12407yes:)
12408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12410ac_tool_warned=yes ;;
12411esac
12412    STRIP=$ac_ct_STRIP
12413  fi
12414else
12415  STRIP="$ac_cv_prog_STRIP"
12416fi
12417
12418test -z "$STRIP" && STRIP=:
12419
12420
12421
12422
12423
12424
12425if test -n "$ac_tool_prefix"; then
12426  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12427set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12429$as_echo_n "checking for $ac_word... " >&6; }
12430if ${ac_cv_prog_RANLIB+:} false; then :
12431  $as_echo_n "(cached) " >&6
12432else
12433  if test -n "$RANLIB"; then
12434  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12435else
12436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437for as_dir in $PATH
12438do
12439  IFS=$as_save_IFS
12440  test -z "$as_dir" && as_dir=.
12441    for ac_exec_ext in '' $ac_executable_extensions; do
12442  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12443    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12444    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12445    break 2
12446  fi
12447done
12448  done
12449IFS=$as_save_IFS
12450
12451fi
12452fi
12453RANLIB=$ac_cv_prog_RANLIB
12454if test -n "$RANLIB"; then
12455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12456$as_echo "$RANLIB" >&6; }
12457else
12458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459$as_echo "no" >&6; }
12460fi
12461
12462
12463fi
12464if test -z "$ac_cv_prog_RANLIB"; then
12465  ac_ct_RANLIB=$RANLIB
12466  # Extract the first word of "ranlib", so it can be a program name with args.
12467set dummy ranlib; ac_word=$2
12468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12469$as_echo_n "checking for $ac_word... " >&6; }
12470if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12471  $as_echo_n "(cached) " >&6
12472else
12473  if test -n "$ac_ct_RANLIB"; then
12474  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12475else
12476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477for as_dir in $PATH
12478do
12479  IFS=$as_save_IFS
12480  test -z "$as_dir" && as_dir=.
12481    for ac_exec_ext in '' $ac_executable_extensions; do
12482  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12483    ac_cv_prog_ac_ct_RANLIB="ranlib"
12484    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12485    break 2
12486  fi
12487done
12488  done
12489IFS=$as_save_IFS
12490
12491fi
12492fi
12493ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12494if test -n "$ac_ct_RANLIB"; then
12495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12496$as_echo "$ac_ct_RANLIB" >&6; }
12497else
12498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499$as_echo "no" >&6; }
12500fi
12501
12502  if test "x$ac_ct_RANLIB" = x; then
12503    RANLIB=":"
12504  else
12505    case $cross_compiling:$ac_tool_warned in
12506yes:)
12507{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12509ac_tool_warned=yes ;;
12510esac
12511    RANLIB=$ac_ct_RANLIB
12512  fi
12513else
12514  RANLIB="$ac_cv_prog_RANLIB"
12515fi
12516
12517test -z "$RANLIB" && RANLIB=:
12518
12519
12520
12521
12522
12523
12524# Determine commands to create old-style static archives.
12525old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12526old_postinstall_cmds='chmod 644 $oldlib'
12527old_postuninstall_cmds=
12528
12529if test -n "$RANLIB"; then
12530  case $host_os in
12531  bitrig* | openbsd*)
12532    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12533    ;;
12534  *)
12535    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12536    ;;
12537  esac
12538  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12539fi
12540
12541case $host_os in
12542  darwin*)
12543    lock_old_archive_extraction=yes ;;
12544  *)
12545    lock_old_archive_extraction=no ;;
12546esac
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586# If no C compiler was specified, use CC.
12587LTCC=${LTCC-"$CC"}
12588
12589# If no C compiler flags were specified, use CFLAGS.
12590LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12591
12592# Allow CC to be a program name with arguments.
12593compiler=$CC
12594
12595
12596# Check for command to grab the raw symbol name followed by C symbol from nm.
12597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12598$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12599if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12600  $as_echo_n "(cached) " >&6
12601else
12602
12603# These are sane defaults that work on at least a few old systems.
12604# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12605
12606# Character class describing NM global symbol codes.
12607symcode='[BCDEGRST]'
12608
12609# Regexp to match symbols that can be accessed directly from C.
12610sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12611
12612# Define system-specific variables.
12613case $host_os in
12614aix*)
12615  symcode='[BCDT]'
12616  ;;
12617cygwin* | mingw* | pw32* | cegcc*)
12618  symcode='[ABCDGISTW]'
12619  ;;
12620hpux*)
12621  if test ia64 = "$host_cpu"; then
12622    symcode='[ABCDEGRST]'
12623  fi
12624  ;;
12625irix* | nonstopux*)
12626  symcode='[BCDEGRST]'
12627  ;;
12628osf*)
12629  symcode='[BCDEGQRST]'
12630  ;;
12631solaris*)
12632  symcode='[BDRT]'
12633  ;;
12634sco3.2v5*)
12635  symcode='[DT]'
12636  ;;
12637sysv4.2uw2*)
12638  symcode='[DT]'
12639  ;;
12640sysv5* | sco5v6* | unixware* | OpenUNIX*)
12641  symcode='[ABDT]'
12642  ;;
12643sysv4)
12644  symcode='[DFNSTU]'
12645  ;;
12646esac
12647
12648# If we're using GNU nm, then use its standard symbol codes.
12649case `$NM -V 2>&1` in
12650*GNU* | *'with BFD'*)
12651  symcode='[ABCDGIRSTW]' ;;
12652esac
12653
12654if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12655  # Gets list of data symbols to import.
12656  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12657  # Adjust the below global symbol transforms to fixup imported variables.
12658  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12659  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
12660  lt_c_name_lib_hook="\
12661  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
12662  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
12663else
12664  # Disable hooks by default.
12665  lt_cv_sys_global_symbol_to_import=
12666  lt_cdecl_hook=
12667  lt_c_name_hook=
12668  lt_c_name_lib_hook=
12669fi
12670
12671# Transform an extracted symbol line into a proper C declaration.
12672# Some systems (esp. on ia64) link data and code symbols differently,
12673# so use this general approach.
12674lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12675$lt_cdecl_hook\
12676" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12677" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12678
12679# Transform an extracted symbol line into symbol name and symbol address
12680lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12681$lt_c_name_hook\
12682" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12683" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
12684
12685# Transform an extracted symbol line into symbol name with lib prefix and
12686# symbol address.
12687lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12688$lt_c_name_lib_hook\
12689" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12690" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
12691" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
12692
12693# Handle CRLF in mingw tool chain
12694opt_cr=
12695case $build_os in
12696mingw*)
12697  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12698  ;;
12699esac
12700
12701# Try without a prefix underscore, then with it.
12702for ac_symprfx in "" "_"; do
12703
12704  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12705  symxfrm="\\1 $ac_symprfx\\2 \\2"
12706
12707  # Write the raw and C identifiers.
12708  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12709    # Fake it for dumpbin and say T for any non-static function,
12710    # D for any global variable and I for any imported variable.
12711    # Also find C++ and __fastcall symbols from MSVC++,
12712    # which start with @ or ?.
12713    lt_cv_sys_global_symbol_pipe="$AWK '"\
12714"     {last_section=section; section=\$ 3};"\
12715"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12716"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12717"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12718"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12719"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12720"     \$ 0!~/External *\|/{next};"\
12721"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12722"     {if(hide[section]) next};"\
12723"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12724"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12725"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12726"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12727"     ' prfx=^$ac_symprfx"
12728  else
12729    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12730  fi
12731  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12732
12733  # Check to see that the pipe works correctly.
12734  pipe_works=no
12735
12736  rm -f conftest*
12737  cat > conftest.$ac_ext <<_LT_EOF
12738#ifdef __cplusplus
12739extern "C" {
12740#endif
12741char nm_test_var;
12742void nm_test_func(void);
12743void nm_test_func(void){}
12744#ifdef __cplusplus
12745}
12746#endif
12747int main(){nm_test_var='a';nm_test_func();return(0);}
12748_LT_EOF
12749
12750  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12751  (eval $ac_compile) 2>&5
12752  ac_status=$?
12753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12754  test $ac_status = 0; }; then
12755    # Now try to grab the symbols.
12756    nlist=conftest.nm
12757    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12758  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12759  ac_status=$?
12760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12761  test $ac_status = 0; } && test -s "$nlist"; then
12762      # Try sorting and uniquifying the output.
12763      if sort "$nlist" | uniq > "$nlist"T; then
12764	mv -f "$nlist"T "$nlist"
12765      else
12766	rm -f "$nlist"T
12767      fi
12768
12769      # Make sure that we snagged all the symbols we need.
12770      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12771	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12772	  cat <<_LT_EOF > conftest.$ac_ext
12773/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12774#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12775/* DATA imports from DLLs on WIN32 can't be const, because runtime
12776   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12777# define LT_DLSYM_CONST
12778#elif defined __osf__
12779/* This system does not cope well with relocations in const data.  */
12780# define LT_DLSYM_CONST
12781#else
12782# define LT_DLSYM_CONST const
12783#endif
12784
12785#ifdef __cplusplus
12786extern "C" {
12787#endif
12788
12789_LT_EOF
12790	  # Now generate the symbol file.
12791	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12792
12793	  cat <<_LT_EOF >> conftest.$ac_ext
12794
12795/* The mapping between symbol names and symbols.  */
12796LT_DLSYM_CONST struct {
12797  const char *name;
12798  void       *address;
12799}
12800lt__PROGRAM__LTX_preloaded_symbols[] =
12801{
12802  { "@PROGRAM@", (void *) 0 },
12803_LT_EOF
12804	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12805	  cat <<\_LT_EOF >> conftest.$ac_ext
12806  {0, (void *) 0}
12807};
12808
12809/* This works around a problem in FreeBSD linker */
12810#ifdef FREEBSD_WORKAROUND
12811static const void *lt_preloaded_setup() {
12812  return lt__PROGRAM__LTX_preloaded_symbols;
12813}
12814#endif
12815
12816#ifdef __cplusplus
12817}
12818#endif
12819_LT_EOF
12820	  # Now try linking the two files.
12821	  mv conftest.$ac_objext conftstm.$ac_objext
12822	  lt_globsym_save_LIBS=$LIBS
12823	  lt_globsym_save_CFLAGS=$CFLAGS
12824	  LIBS=conftstm.$ac_objext
12825	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12826	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12827  (eval $ac_link) 2>&5
12828  ac_status=$?
12829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12830  test $ac_status = 0; } && test -s conftest$ac_exeext; then
12831	    pipe_works=yes
12832	  fi
12833	  LIBS=$lt_globsym_save_LIBS
12834	  CFLAGS=$lt_globsym_save_CFLAGS
12835	else
12836	  echo "cannot find nm_test_func in $nlist" >&5
12837	fi
12838      else
12839	echo "cannot find nm_test_var in $nlist" >&5
12840      fi
12841    else
12842      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12843    fi
12844  else
12845    echo "$progname: failed program was:" >&5
12846    cat conftest.$ac_ext >&5
12847  fi
12848  rm -rf conftest* conftst*
12849
12850  # Do not use the global_symbol_pipe unless it works.
12851  if test yes = "$pipe_works"; then
12852    break
12853  else
12854    lt_cv_sys_global_symbol_pipe=
12855  fi
12856done
12857
12858fi
12859
12860if test -z "$lt_cv_sys_global_symbol_pipe"; then
12861  lt_cv_sys_global_symbol_to_cdecl=
12862fi
12863if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12865$as_echo "failed" >&6; }
12866else
12867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12868$as_echo "ok" >&6; }
12869fi
12870
12871# Response file support.
12872if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12873  nm_file_list_spec='@'
12874elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12875  nm_file_list_spec='@'
12876fi
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12915$as_echo_n "checking for sysroot... " >&6; }
12916
12917# Check whether --with-sysroot was given.
12918if test "${with_sysroot+set}" = set; then :
12919  withval=$with_sysroot;
12920else
12921  with_sysroot=no
12922fi
12923
12924
12925lt_sysroot=
12926case $with_sysroot in #(
12927 yes)
12928   if test yes = "$GCC"; then
12929     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12930   fi
12931   ;; #(
12932 /*)
12933   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12934   ;; #(
12935 no|'')
12936   ;; #(
12937 *)
12938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
12939$as_echo "$with_sysroot" >&6; }
12940   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12941   ;;
12942esac
12943
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12945$as_echo "${lt_sysroot:-no}" >&6; }
12946
12947
12948
12949
12950
12951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
12952$as_echo_n "checking for a working dd... " >&6; }
12953if ${ac_cv_path_lt_DD+:} false; then :
12954  $as_echo_n "(cached) " >&6
12955else
12956  printf 0123456789abcdef0123456789abcdef >conftest.i
12957cat conftest.i conftest.i >conftest2.i
12958: ${lt_DD:=$DD}
12959if test -z "$lt_DD"; then
12960  ac_path_lt_DD_found=false
12961  # Loop through the user's path and test for each of PROGNAME-LIST
12962  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963for as_dir in $PATH
12964do
12965  IFS=$as_save_IFS
12966  test -z "$as_dir" && as_dir=.
12967    for ac_prog in dd; do
12968    for ac_exec_ext in '' $ac_executable_extensions; do
12969      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
12970      as_fn_executable_p "$ac_path_lt_DD" || continue
12971if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
12972  cmp -s conftest.i conftest.out \
12973  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
12974fi
12975      $ac_path_lt_DD_found && break 3
12976    done
12977  done
12978  done
12979IFS=$as_save_IFS
12980  if test -z "$ac_cv_path_lt_DD"; then
12981    :
12982  fi
12983else
12984  ac_cv_path_lt_DD=$lt_DD
12985fi
12986
12987rm -f conftest.i conftest2.i conftest.out
12988fi
12989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
12990$as_echo "$ac_cv_path_lt_DD" >&6; }
12991
12992
12993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
12994$as_echo_n "checking how to truncate binary pipes... " >&6; }
12995if ${lt_cv_truncate_bin+:} false; then :
12996  $as_echo_n "(cached) " >&6
12997else
12998  printf 0123456789abcdef0123456789abcdef >conftest.i
12999cat conftest.i conftest.i >conftest2.i
13000lt_cv_truncate_bin=
13001if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13002  cmp -s conftest.i conftest.out \
13003  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13004fi
13005rm -f conftest.i conftest2.i conftest.out
13006test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13007fi
13008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13009$as_echo "$lt_cv_truncate_bin" >&6; }
13010
13011
13012
13013
13014
13015
13016
13017# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
13018func_cc_basename ()
13019{
13020    for cc_temp in $*""; do
13021      case $cc_temp in
13022        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13023        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13024        \-*) ;;
13025        *) break;;
13026      esac
13027    done
13028    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13029}
13030
13031# Check whether --enable-libtool-lock was given.
13032if test "${enable_libtool_lock+set}" = set; then :
13033  enableval=$enable_libtool_lock;
13034fi
13035
13036test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13037
13038# Some flags need to be propagated to the compiler or linker for good
13039# libtool support.
13040case $host in
13041ia64-*-hpux*)
13042  # Find out what ABI is being produced by ac_compile, and set mode
13043  # options accordingly.
13044  echo 'int i;' > conftest.$ac_ext
13045  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13046  (eval $ac_compile) 2>&5
13047  ac_status=$?
13048  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13049  test $ac_status = 0; }; then
13050    case `/usr/bin/file conftest.$ac_objext` in
13051      *ELF-32*)
13052	HPUX_IA64_MODE=32
13053	;;
13054      *ELF-64*)
13055	HPUX_IA64_MODE=64
13056	;;
13057    esac
13058  fi
13059  rm -rf conftest*
13060  ;;
13061*-*-irix6*)
13062  # Find out what ABI is being produced by ac_compile, and set linker
13063  # options accordingly.
13064  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13065  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13066  (eval $ac_compile) 2>&5
13067  ac_status=$?
13068  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13069  test $ac_status = 0; }; then
13070    if test yes = "$lt_cv_prog_gnu_ld"; then
13071      case `/usr/bin/file conftest.$ac_objext` in
13072	*32-bit*)
13073	  LD="${LD-ld} -melf32bsmip"
13074	  ;;
13075	*N32*)
13076	  LD="${LD-ld} -melf32bmipn32"
13077	  ;;
13078	*64-bit*)
13079	  LD="${LD-ld} -melf64bmip"
13080	;;
13081      esac
13082    else
13083      case `/usr/bin/file conftest.$ac_objext` in
13084	*32-bit*)
13085	  LD="${LD-ld} -32"
13086	  ;;
13087	*N32*)
13088	  LD="${LD-ld} -n32"
13089	  ;;
13090	*64-bit*)
13091	  LD="${LD-ld} -64"
13092	  ;;
13093      esac
13094    fi
13095  fi
13096  rm -rf conftest*
13097  ;;
13098
13099mips64*-*linux*)
13100  # Find out what ABI is being produced by ac_compile, and set linker
13101  # options accordingly.
13102  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13103  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13104  (eval $ac_compile) 2>&5
13105  ac_status=$?
13106  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13107  test $ac_status = 0; }; then
13108    emul=elf
13109    case `/usr/bin/file conftest.$ac_objext` in
13110      *32-bit*)
13111	emul="${emul}32"
13112	;;
13113      *64-bit*)
13114	emul="${emul}64"
13115	;;
13116    esac
13117    case `/usr/bin/file conftest.$ac_objext` in
13118      *MSB*)
13119	emul="${emul}btsmip"
13120	;;
13121      *LSB*)
13122	emul="${emul}ltsmip"
13123	;;
13124    esac
13125    case `/usr/bin/file conftest.$ac_objext` in
13126      *N32*)
13127	emul="${emul}n32"
13128	;;
13129    esac
13130    LD="${LD-ld} -m $emul"
13131  fi
13132  rm -rf conftest*
13133  ;;
13134
13135x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13136s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13137  # Find out what ABI is being produced by ac_compile, and set linker
13138  # options accordingly.  Note that the listed cases only cover the
13139  # situations where additional linker options are needed (such as when
13140  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13141  # vice versa); the common cases where no linker options are needed do
13142  # not appear in the list.
13143  echo 'int i;' > conftest.$ac_ext
13144  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13145  (eval $ac_compile) 2>&5
13146  ac_status=$?
13147  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13148  test $ac_status = 0; }; then
13149    case `/usr/bin/file conftest.o` in
13150      *32-bit*)
13151	case $host in
13152	  x86_64-*kfreebsd*-gnu)
13153	    LD="${LD-ld} -m elf_i386_fbsd"
13154	    ;;
13155	  x86_64-*linux*)
13156	    case `/usr/bin/file conftest.o` in
13157	      *x86-64*)
13158		LD="${LD-ld} -m elf32_x86_64"
13159		;;
13160	      *)
13161		LD="${LD-ld} -m elf_i386"
13162		;;
13163	    esac
13164	    ;;
13165	  powerpc64le-*linux*)
13166	    LD="${LD-ld} -m elf32lppclinux"
13167	    ;;
13168	  powerpc64-*linux*)
13169	    LD="${LD-ld} -m elf32ppclinux"
13170	    ;;
13171	  s390x-*linux*)
13172	    LD="${LD-ld} -m elf_s390"
13173	    ;;
13174	  sparc64-*linux*)
13175	    LD="${LD-ld} -m elf32_sparc"
13176	    ;;
13177	esac
13178	;;
13179      *64-bit*)
13180	case $host in
13181	  x86_64-*kfreebsd*-gnu)
13182	    LD="${LD-ld} -m elf_x86_64_fbsd"
13183	    ;;
13184	  x86_64-*linux*)
13185	    LD="${LD-ld} -m elf_x86_64"
13186	    ;;
13187	  powerpcle-*linux*)
13188	    LD="${LD-ld} -m elf64lppc"
13189	    ;;
13190	  powerpc-*linux*)
13191	    LD="${LD-ld} -m elf64ppc"
13192	    ;;
13193	  s390*-*linux*|s390*-*tpf*)
13194	    LD="${LD-ld} -m elf64_s390"
13195	    ;;
13196	  sparc*-*linux*)
13197	    LD="${LD-ld} -m elf64_sparc"
13198	    ;;
13199	esac
13200	;;
13201    esac
13202  fi
13203  rm -rf conftest*
13204  ;;
13205
13206*-*-sco3.2v5*)
13207  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13208  SAVE_CFLAGS=$CFLAGS
13209  CFLAGS="$CFLAGS -belf"
13210  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13211$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13212if ${lt_cv_cc_needs_belf+:} false; then :
13213  $as_echo_n "(cached) " >&6
13214else
13215  ac_ext=c
13216ac_cpp='$CPP $CPPFLAGS'
13217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13219ac_compiler_gnu=$ac_cv_c_compiler_gnu
13220
13221     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13222/* end confdefs.h.  */
13223
13224int
13225main ()
13226{
13227
13228  ;
13229  return 0;
13230}
13231_ACEOF
13232if ac_fn_c_try_link "$LINENO"; then :
13233  lt_cv_cc_needs_belf=yes
13234else
13235  lt_cv_cc_needs_belf=no
13236fi
13237rm -f core conftest.err conftest.$ac_objext \
13238    conftest$ac_exeext conftest.$ac_ext
13239     ac_ext=c
13240ac_cpp='$CPP $CPPFLAGS'
13241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13243ac_compiler_gnu=$ac_cv_c_compiler_gnu
13244
13245fi
13246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13247$as_echo "$lt_cv_cc_needs_belf" >&6; }
13248  if test yes != "$lt_cv_cc_needs_belf"; then
13249    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13250    CFLAGS=$SAVE_CFLAGS
13251  fi
13252  ;;
13253*-*solaris*)
13254  # Find out what ABI is being produced by ac_compile, and set linker
13255  # options accordingly.
13256  echo 'int i;' > conftest.$ac_ext
13257  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13258  (eval $ac_compile) 2>&5
13259  ac_status=$?
13260  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13261  test $ac_status = 0; }; then
13262    case `/usr/bin/file conftest.o` in
13263    *64-bit*)
13264      case $lt_cv_prog_gnu_ld in
13265      yes*)
13266        case $host in
13267        i?86-*-solaris*|x86_64-*-solaris*)
13268          LD="${LD-ld} -m elf_x86_64"
13269          ;;
13270        sparc*-*-solaris*)
13271          LD="${LD-ld} -m elf64_sparc"
13272          ;;
13273        esac
13274        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13275        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13276          LD=${LD-ld}_sol2
13277        fi
13278        ;;
13279      *)
13280	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13281	  LD="${LD-ld} -64"
13282	fi
13283	;;
13284      esac
13285      ;;
13286    esac
13287  fi
13288  rm -rf conftest*
13289  ;;
13290esac
13291
13292need_locks=$enable_libtool_lock
13293
13294if test -n "$ac_tool_prefix"; then
13295  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13296set dummy ${ac_tool_prefix}mt; ac_word=$2
13297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13298$as_echo_n "checking for $ac_word... " >&6; }
13299if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13300  $as_echo_n "(cached) " >&6
13301else
13302  if test -n "$MANIFEST_TOOL"; then
13303  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13304else
13305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13306for as_dir in $PATH
13307do
13308  IFS=$as_save_IFS
13309  test -z "$as_dir" && as_dir=.
13310    for ac_exec_ext in '' $ac_executable_extensions; do
13311  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13312    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13313    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13314    break 2
13315  fi
13316done
13317  done
13318IFS=$as_save_IFS
13319
13320fi
13321fi
13322MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13323if test -n "$MANIFEST_TOOL"; then
13324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13325$as_echo "$MANIFEST_TOOL" >&6; }
13326else
13327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13328$as_echo "no" >&6; }
13329fi
13330
13331
13332fi
13333if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13334  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13335  # Extract the first word of "mt", so it can be a program name with args.
13336set dummy mt; ac_word=$2
13337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13338$as_echo_n "checking for $ac_word... " >&6; }
13339if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13340  $as_echo_n "(cached) " >&6
13341else
13342  if test -n "$ac_ct_MANIFEST_TOOL"; then
13343  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13344else
13345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13346for as_dir in $PATH
13347do
13348  IFS=$as_save_IFS
13349  test -z "$as_dir" && as_dir=.
13350    for ac_exec_ext in '' $ac_executable_extensions; do
13351  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13352    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13354    break 2
13355  fi
13356done
13357  done
13358IFS=$as_save_IFS
13359
13360fi
13361fi
13362ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13363if test -n "$ac_ct_MANIFEST_TOOL"; then
13364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13365$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13366else
13367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368$as_echo "no" >&6; }
13369fi
13370
13371  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13372    MANIFEST_TOOL=":"
13373  else
13374    case $cross_compiling:$ac_tool_warned in
13375yes:)
13376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13378ac_tool_warned=yes ;;
13379esac
13380    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13381  fi
13382else
13383  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13384fi
13385
13386test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13388$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13389if ${lt_cv_path_mainfest_tool+:} false; then :
13390  $as_echo_n "(cached) " >&6
13391else
13392  lt_cv_path_mainfest_tool=no
13393  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13394  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13395  cat conftest.err >&5
13396  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13397    lt_cv_path_mainfest_tool=yes
13398  fi
13399  rm -f conftest*
13400fi
13401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13402$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13403if test yes != "$lt_cv_path_mainfest_tool"; then
13404  MANIFEST_TOOL=:
13405fi
13406
13407
13408
13409
13410
13411
13412  case $host_os in
13413    rhapsody* | darwin*)
13414    if test -n "$ac_tool_prefix"; then
13415  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13416set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13418$as_echo_n "checking for $ac_word... " >&6; }
13419if ${ac_cv_prog_DSYMUTIL+:} false; then :
13420  $as_echo_n "(cached) " >&6
13421else
13422  if test -n "$DSYMUTIL"; then
13423  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13424else
13425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13426for as_dir in $PATH
13427do
13428  IFS=$as_save_IFS
13429  test -z "$as_dir" && as_dir=.
13430    for ac_exec_ext in '' $ac_executable_extensions; do
13431  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13432    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13434    break 2
13435  fi
13436done
13437  done
13438IFS=$as_save_IFS
13439
13440fi
13441fi
13442DSYMUTIL=$ac_cv_prog_DSYMUTIL
13443if test -n "$DSYMUTIL"; then
13444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13445$as_echo "$DSYMUTIL" >&6; }
13446else
13447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13448$as_echo "no" >&6; }
13449fi
13450
13451
13452fi
13453if test -z "$ac_cv_prog_DSYMUTIL"; then
13454  ac_ct_DSYMUTIL=$DSYMUTIL
13455  # Extract the first word of "dsymutil", so it can be a program name with args.
13456set dummy dsymutil; ac_word=$2
13457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13458$as_echo_n "checking for $ac_word... " >&6; }
13459if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13460  $as_echo_n "(cached) " >&6
13461else
13462  if test -n "$ac_ct_DSYMUTIL"; then
13463  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13464else
13465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13466for as_dir in $PATH
13467do
13468  IFS=$as_save_IFS
13469  test -z "$as_dir" && as_dir=.
13470    for ac_exec_ext in '' $ac_executable_extensions; do
13471  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13472    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13474    break 2
13475  fi
13476done
13477  done
13478IFS=$as_save_IFS
13479
13480fi
13481fi
13482ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13483if test -n "$ac_ct_DSYMUTIL"; then
13484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13485$as_echo "$ac_ct_DSYMUTIL" >&6; }
13486else
13487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13488$as_echo "no" >&6; }
13489fi
13490
13491  if test "x$ac_ct_DSYMUTIL" = x; then
13492    DSYMUTIL=":"
13493  else
13494    case $cross_compiling:$ac_tool_warned in
13495yes:)
13496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13498ac_tool_warned=yes ;;
13499esac
13500    DSYMUTIL=$ac_ct_DSYMUTIL
13501  fi
13502else
13503  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13504fi
13505
13506    if test -n "$ac_tool_prefix"; then
13507  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13508set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13510$as_echo_n "checking for $ac_word... " >&6; }
13511if ${ac_cv_prog_NMEDIT+:} false; then :
13512  $as_echo_n "(cached) " >&6
13513else
13514  if test -n "$NMEDIT"; then
13515  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13516else
13517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13518for as_dir in $PATH
13519do
13520  IFS=$as_save_IFS
13521  test -z "$as_dir" && as_dir=.
13522    for ac_exec_ext in '' $ac_executable_extensions; do
13523  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13524    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13526    break 2
13527  fi
13528done
13529  done
13530IFS=$as_save_IFS
13531
13532fi
13533fi
13534NMEDIT=$ac_cv_prog_NMEDIT
13535if test -n "$NMEDIT"; then
13536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13537$as_echo "$NMEDIT" >&6; }
13538else
13539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13540$as_echo "no" >&6; }
13541fi
13542
13543
13544fi
13545if test -z "$ac_cv_prog_NMEDIT"; then
13546  ac_ct_NMEDIT=$NMEDIT
13547  # Extract the first word of "nmedit", so it can be a program name with args.
13548set dummy nmedit; ac_word=$2
13549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13550$as_echo_n "checking for $ac_word... " >&6; }
13551if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13552  $as_echo_n "(cached) " >&6
13553else
13554  if test -n "$ac_ct_NMEDIT"; then
13555  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13556else
13557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13558for as_dir in $PATH
13559do
13560  IFS=$as_save_IFS
13561  test -z "$as_dir" && as_dir=.
13562    for ac_exec_ext in '' $ac_executable_extensions; do
13563  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13564    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13565    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13566    break 2
13567  fi
13568done
13569  done
13570IFS=$as_save_IFS
13571
13572fi
13573fi
13574ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13575if test -n "$ac_ct_NMEDIT"; then
13576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13577$as_echo "$ac_ct_NMEDIT" >&6; }
13578else
13579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13580$as_echo "no" >&6; }
13581fi
13582
13583  if test "x$ac_ct_NMEDIT" = x; then
13584    NMEDIT=":"
13585  else
13586    case $cross_compiling:$ac_tool_warned in
13587yes:)
13588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13590ac_tool_warned=yes ;;
13591esac
13592    NMEDIT=$ac_ct_NMEDIT
13593  fi
13594else
13595  NMEDIT="$ac_cv_prog_NMEDIT"
13596fi
13597
13598    if test -n "$ac_tool_prefix"; then
13599  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13600set dummy ${ac_tool_prefix}lipo; ac_word=$2
13601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13602$as_echo_n "checking for $ac_word... " >&6; }
13603if ${ac_cv_prog_LIPO+:} false; then :
13604  $as_echo_n "(cached) " >&6
13605else
13606  if test -n "$LIPO"; then
13607  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13608else
13609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13610for as_dir in $PATH
13611do
13612  IFS=$as_save_IFS
13613  test -z "$as_dir" && as_dir=.
13614    for ac_exec_ext in '' $ac_executable_extensions; do
13615  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13616    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13617    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13618    break 2
13619  fi
13620done
13621  done
13622IFS=$as_save_IFS
13623
13624fi
13625fi
13626LIPO=$ac_cv_prog_LIPO
13627if test -n "$LIPO"; then
13628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13629$as_echo "$LIPO" >&6; }
13630else
13631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13632$as_echo "no" >&6; }
13633fi
13634
13635
13636fi
13637if test -z "$ac_cv_prog_LIPO"; then
13638  ac_ct_LIPO=$LIPO
13639  # Extract the first word of "lipo", so it can be a program name with args.
13640set dummy lipo; ac_word=$2
13641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13642$as_echo_n "checking for $ac_word... " >&6; }
13643if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13644  $as_echo_n "(cached) " >&6
13645else
13646  if test -n "$ac_ct_LIPO"; then
13647  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13648else
13649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13650for as_dir in $PATH
13651do
13652  IFS=$as_save_IFS
13653  test -z "$as_dir" && as_dir=.
13654    for ac_exec_ext in '' $ac_executable_extensions; do
13655  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13656    ac_cv_prog_ac_ct_LIPO="lipo"
13657    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13658    break 2
13659  fi
13660done
13661  done
13662IFS=$as_save_IFS
13663
13664fi
13665fi
13666ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13667if test -n "$ac_ct_LIPO"; then
13668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13669$as_echo "$ac_ct_LIPO" >&6; }
13670else
13671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13672$as_echo "no" >&6; }
13673fi
13674
13675  if test "x$ac_ct_LIPO" = x; then
13676    LIPO=":"
13677  else
13678    case $cross_compiling:$ac_tool_warned in
13679yes:)
13680{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13682ac_tool_warned=yes ;;
13683esac
13684    LIPO=$ac_ct_LIPO
13685  fi
13686else
13687  LIPO="$ac_cv_prog_LIPO"
13688fi
13689
13690    if test -n "$ac_tool_prefix"; then
13691  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13692set dummy ${ac_tool_prefix}otool; ac_word=$2
13693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13694$as_echo_n "checking for $ac_word... " >&6; }
13695if ${ac_cv_prog_OTOOL+:} false; then :
13696  $as_echo_n "(cached) " >&6
13697else
13698  if test -n "$OTOOL"; then
13699  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13700else
13701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13702for as_dir in $PATH
13703do
13704  IFS=$as_save_IFS
13705  test -z "$as_dir" && as_dir=.
13706    for ac_exec_ext in '' $ac_executable_extensions; do
13707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13708    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13710    break 2
13711  fi
13712done
13713  done
13714IFS=$as_save_IFS
13715
13716fi
13717fi
13718OTOOL=$ac_cv_prog_OTOOL
13719if test -n "$OTOOL"; then
13720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13721$as_echo "$OTOOL" >&6; }
13722else
13723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13724$as_echo "no" >&6; }
13725fi
13726
13727
13728fi
13729if test -z "$ac_cv_prog_OTOOL"; then
13730  ac_ct_OTOOL=$OTOOL
13731  # Extract the first word of "otool", so it can be a program name with args.
13732set dummy otool; ac_word=$2
13733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13734$as_echo_n "checking for $ac_word... " >&6; }
13735if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13736  $as_echo_n "(cached) " >&6
13737else
13738  if test -n "$ac_ct_OTOOL"; then
13739  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13740else
13741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13742for as_dir in $PATH
13743do
13744  IFS=$as_save_IFS
13745  test -z "$as_dir" && as_dir=.
13746    for ac_exec_ext in '' $ac_executable_extensions; do
13747  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13748    ac_cv_prog_ac_ct_OTOOL="otool"
13749    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13750    break 2
13751  fi
13752done
13753  done
13754IFS=$as_save_IFS
13755
13756fi
13757fi
13758ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13759if test -n "$ac_ct_OTOOL"; then
13760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13761$as_echo "$ac_ct_OTOOL" >&6; }
13762else
13763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13764$as_echo "no" >&6; }
13765fi
13766
13767  if test "x$ac_ct_OTOOL" = x; then
13768    OTOOL=":"
13769  else
13770    case $cross_compiling:$ac_tool_warned in
13771yes:)
13772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13774ac_tool_warned=yes ;;
13775esac
13776    OTOOL=$ac_ct_OTOOL
13777  fi
13778else
13779  OTOOL="$ac_cv_prog_OTOOL"
13780fi
13781
13782    if test -n "$ac_tool_prefix"; then
13783  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13784set dummy ${ac_tool_prefix}otool64; ac_word=$2
13785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13786$as_echo_n "checking for $ac_word... " >&6; }
13787if ${ac_cv_prog_OTOOL64+:} false; then :
13788  $as_echo_n "(cached) " >&6
13789else
13790  if test -n "$OTOOL64"; then
13791  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13792else
13793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13794for as_dir in $PATH
13795do
13796  IFS=$as_save_IFS
13797  test -z "$as_dir" && as_dir=.
13798    for ac_exec_ext in '' $ac_executable_extensions; do
13799  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13800    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13802    break 2
13803  fi
13804done
13805  done
13806IFS=$as_save_IFS
13807
13808fi
13809fi
13810OTOOL64=$ac_cv_prog_OTOOL64
13811if test -n "$OTOOL64"; then
13812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13813$as_echo "$OTOOL64" >&6; }
13814else
13815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13816$as_echo "no" >&6; }
13817fi
13818
13819
13820fi
13821if test -z "$ac_cv_prog_OTOOL64"; then
13822  ac_ct_OTOOL64=$OTOOL64
13823  # Extract the first word of "otool64", so it can be a program name with args.
13824set dummy otool64; ac_word=$2
13825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13826$as_echo_n "checking for $ac_word... " >&6; }
13827if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13828  $as_echo_n "(cached) " >&6
13829else
13830  if test -n "$ac_ct_OTOOL64"; then
13831  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13832else
13833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13834for as_dir in $PATH
13835do
13836  IFS=$as_save_IFS
13837  test -z "$as_dir" && as_dir=.
13838    for ac_exec_ext in '' $ac_executable_extensions; do
13839  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13840    ac_cv_prog_ac_ct_OTOOL64="otool64"
13841    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13842    break 2
13843  fi
13844done
13845  done
13846IFS=$as_save_IFS
13847
13848fi
13849fi
13850ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13851if test -n "$ac_ct_OTOOL64"; then
13852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13853$as_echo "$ac_ct_OTOOL64" >&6; }
13854else
13855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13856$as_echo "no" >&6; }
13857fi
13858
13859  if test "x$ac_ct_OTOOL64" = x; then
13860    OTOOL64=":"
13861  else
13862    case $cross_compiling:$ac_tool_warned in
13863yes:)
13864{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13865$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13866ac_tool_warned=yes ;;
13867esac
13868    OTOOL64=$ac_ct_OTOOL64
13869  fi
13870else
13871  OTOOL64="$ac_cv_prog_OTOOL64"
13872fi
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13901$as_echo_n "checking for -single_module linker flag... " >&6; }
13902if ${lt_cv_apple_cc_single_mod+:} false; then :
13903  $as_echo_n "(cached) " >&6
13904else
13905  lt_cv_apple_cc_single_mod=no
13906      if test -z "$LT_MULTI_MODULE"; then
13907	# By default we will add the -single_module flag. You can override
13908	# by either setting the environment variable LT_MULTI_MODULE
13909	# non-empty at configure time, or by adding -multi_module to the
13910	# link flags.
13911	rm -rf libconftest.dylib*
13912	echo "int foo(void){return 1;}" > conftest.c
13913	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13914-dynamiclib -Wl,-single_module conftest.c" >&5
13915	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13916	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13917        _lt_result=$?
13918	# If there is a non-empty error log, and "single_module"
13919	# appears in it, assume the flag caused a linker warning
13920        if test -s conftest.err && $GREP single_module conftest.err; then
13921	  cat conftest.err >&5
13922	# Otherwise, if the output was created with a 0 exit code from
13923	# the compiler, it worked.
13924	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
13925	  lt_cv_apple_cc_single_mod=yes
13926	else
13927	  cat conftest.err >&5
13928	fi
13929	rm -rf libconftest.dylib*
13930	rm -f conftest.*
13931      fi
13932fi
13933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13934$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13935
13936    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13937$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13938if ${lt_cv_ld_exported_symbols_list+:} false; then :
13939  $as_echo_n "(cached) " >&6
13940else
13941  lt_cv_ld_exported_symbols_list=no
13942      save_LDFLAGS=$LDFLAGS
13943      echo "_main" > conftest.sym
13944      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13945      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13946/* end confdefs.h.  */
13947
13948int
13949main ()
13950{
13951
13952  ;
13953  return 0;
13954}
13955_ACEOF
13956if ac_fn_c_try_link "$LINENO"; then :
13957  lt_cv_ld_exported_symbols_list=yes
13958else
13959  lt_cv_ld_exported_symbols_list=no
13960fi
13961rm -f core conftest.err conftest.$ac_objext \
13962    conftest$ac_exeext conftest.$ac_ext
13963	LDFLAGS=$save_LDFLAGS
13964
13965fi
13966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13967$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13968
13969    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13970$as_echo_n "checking for -force_load linker flag... " >&6; }
13971if ${lt_cv_ld_force_load+:} false; then :
13972  $as_echo_n "(cached) " >&6
13973else
13974  lt_cv_ld_force_load=no
13975      cat > conftest.c << _LT_EOF
13976int forced_loaded() { return 2;}
13977_LT_EOF
13978      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13979      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13980      echo "$AR cru libconftest.a conftest.o" >&5
13981      $AR cru libconftest.a conftest.o 2>&5
13982      echo "$RANLIB libconftest.a" >&5
13983      $RANLIB libconftest.a 2>&5
13984      cat > conftest.c << _LT_EOF
13985int main() { return 0;}
13986_LT_EOF
13987      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13988      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13989      _lt_result=$?
13990      if test -s conftest.err && $GREP force_load conftest.err; then
13991	cat conftest.err >&5
13992      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
13993	lt_cv_ld_force_load=yes
13994      else
13995	cat conftest.err >&5
13996      fi
13997        rm -f conftest.err libconftest.a conftest conftest.c
13998        rm -rf conftest.dSYM
13999
14000fi
14001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14002$as_echo "$lt_cv_ld_force_load" >&6; }
14003    case $host_os in
14004    rhapsody* | darwin1.[012])
14005      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14006    darwin1.*)
14007      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14008    darwin*) # darwin 5.x on
14009      # if running on 10.5 or later, the deployment target defaults
14010      # to the OS version, if on x86, and 10.4, the deployment
14011      # target defaults to 10.4. Don't you love it?
14012      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14013	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14014	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14015	10.[012][,.]*)
14016	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14017	10.*)
14018	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14019      esac
14020    ;;
14021  esac
14022    if test yes = "$lt_cv_apple_cc_single_mod"; then
14023      _lt_dar_single_mod='$single_module'
14024    fi
14025    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14026      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14027    else
14028      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14029    fi
14030    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14031      _lt_dsymutil='~$DSYMUTIL $lib || :'
14032    else
14033      _lt_dsymutil=
14034    fi
14035    ;;
14036  esac
14037
14038# func_munge_path_list VARIABLE PATH
14039# -----------------------------------
14040# VARIABLE is name of variable containing _space_ separated list of
14041# directories to be munged by the contents of PATH, which is string
14042# having a format:
14043# "DIR[:DIR]:"
14044#       string "DIR[ DIR]" will be prepended to VARIABLE
14045# ":DIR[:DIR]"
14046#       string "DIR[ DIR]" will be appended to VARIABLE
14047# "DIRP[:DIRP]::[DIRA:]DIRA"
14048#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14049#       "DIRA[ DIRA]" will be appended to VARIABLE
14050# "DIR[:DIR]"
14051#       VARIABLE will be replaced by "DIR[ DIR]"
14052func_munge_path_list ()
14053{
14054    case x$2 in
14055    x)
14056        ;;
14057    *:)
14058        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14059        ;;
14060    x:*)
14061        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14062        ;;
14063    *::*)
14064        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14065        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14066        ;;
14067    *)
14068        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14069        ;;
14070    esac
14071}
14072
14073for ac_header in dlfcn.h
14074do :
14075  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14076"
14077if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14078  cat >>confdefs.h <<_ACEOF
14079#define HAVE_DLFCN_H 1
14080_ACEOF
14081
14082fi
14083
14084done
14085
14086
14087
14088
14089
14090# Set options
14091
14092
14093
14094        enable_dlopen=no
14095
14096
14097  enable_win32_dll=no
14098
14099
14100            # Check whether --enable-shared was given.
14101if test "${enable_shared+set}" = set; then :
14102  enableval=$enable_shared; p=${PACKAGE-default}
14103    case $enableval in
14104    yes) enable_shared=yes ;;
14105    no) enable_shared=no ;;
14106    *)
14107      enable_shared=no
14108      # Look at the argument we got.  We use all the common list separators.
14109      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14110      for pkg in $enableval; do
14111	IFS=$lt_save_ifs
14112	if test "X$pkg" = "X$p"; then
14113	  enable_shared=yes
14114	fi
14115      done
14116      IFS=$lt_save_ifs
14117      ;;
14118    esac
14119else
14120  enable_shared=yes
14121fi
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133# Check whether --with-pic was given.
14134if test "${with_pic+set}" = set; then :
14135  withval=$with_pic; lt_p=${PACKAGE-default}
14136    case $withval in
14137    yes|no) pic_mode=$withval ;;
14138    *)
14139      pic_mode=default
14140      # Look at the argument we got.  We use all the common list separators.
14141      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14142      for lt_pkg in $withval; do
14143	IFS=$lt_save_ifs
14144	if test "X$lt_pkg" = "X$lt_p"; then
14145	  pic_mode=yes
14146	fi
14147      done
14148      IFS=$lt_save_ifs
14149      ;;
14150    esac
14151else
14152  pic_mode=default
14153fi
14154
14155
14156
14157
14158
14159
14160
14161
14162  # Check whether --enable-fast-install was given.
14163if test "${enable_fast_install+set}" = set; then :
14164  enableval=$enable_fast_install; p=${PACKAGE-default}
14165    case $enableval in
14166    yes) enable_fast_install=yes ;;
14167    no) enable_fast_install=no ;;
14168    *)
14169      enable_fast_install=no
14170      # Look at the argument we got.  We use all the common list separators.
14171      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14172      for pkg in $enableval; do
14173	IFS=$lt_save_ifs
14174	if test "X$pkg" = "X$p"; then
14175	  enable_fast_install=yes
14176	fi
14177      done
14178      IFS=$lt_save_ifs
14179      ;;
14180    esac
14181else
14182  enable_fast_install=yes
14183fi
14184
14185
14186
14187
14188
14189
14190
14191
14192  shared_archive_member_spec=
14193case $host,$enable_shared in
14194power*-*-aix[5-9]*,yes)
14195  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14196$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14197
14198# Check whether --with-aix-soname was given.
14199if test "${with_aix_soname+set}" = set; then :
14200  withval=$with_aix_soname; case $withval in
14201    aix|svr4|both)
14202      ;;
14203    *)
14204      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14205      ;;
14206    esac
14207    lt_cv_with_aix_soname=$with_aix_soname
14208else
14209  if ${lt_cv_with_aix_soname+:} false; then :
14210  $as_echo_n "(cached) " >&6
14211else
14212  lt_cv_with_aix_soname=aix
14213fi
14214
14215    with_aix_soname=$lt_cv_with_aix_soname
14216fi
14217
14218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14219$as_echo "$with_aix_soname" >&6; }
14220  if test aix != "$with_aix_soname"; then
14221    # For the AIX way of multilib, we name the shared archive member
14222    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14223    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14224    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14225    # the AIX toolchain works better with OBJECT_MODE set (default 32).
14226    if test 64 = "${OBJECT_MODE-32}"; then
14227      shared_archive_member_spec=shr_64
14228    else
14229      shared_archive_member_spec=shr
14230    fi
14231  fi
14232  ;;
14233*)
14234  with_aix_soname=aix
14235  ;;
14236esac
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247# This can be used to rebuild libtool when needed
14248LIBTOOL_DEPS=$ltmain
14249
14250# Always use our own libtool.
14251LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282test -z "$LN_S" && LN_S="ln -s"
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297if test -n "${ZSH_VERSION+set}"; then
14298   setopt NO_GLOB_SUBST
14299fi
14300
14301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14302$as_echo_n "checking for objdir... " >&6; }
14303if ${lt_cv_objdir+:} false; then :
14304  $as_echo_n "(cached) " >&6
14305else
14306  rm -f .libs 2>/dev/null
14307mkdir .libs 2>/dev/null
14308if test -d .libs; then
14309  lt_cv_objdir=.libs
14310else
14311  # MS-DOS does not allow filenames that begin with a dot.
14312  lt_cv_objdir=_libs
14313fi
14314rmdir .libs 2>/dev/null
14315fi
14316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14317$as_echo "$lt_cv_objdir" >&6; }
14318objdir=$lt_cv_objdir
14319
14320
14321
14322
14323
14324cat >>confdefs.h <<_ACEOF
14325#define LT_OBJDIR "$lt_cv_objdir/"
14326_ACEOF
14327
14328
14329
14330
14331case $host_os in
14332aix3*)
14333  # AIX sometimes has problems with the GCC collect2 program.  For some
14334  # reason, if we set the COLLECT_NAMES environment variable, the problems
14335  # vanish in a puff of smoke.
14336  if test set != "${COLLECT_NAMES+set}"; then
14337    COLLECT_NAMES=
14338    export COLLECT_NAMES
14339  fi
14340  ;;
14341esac
14342
14343# Global variables:
14344ofile=libtool
14345can_build_shared=yes
14346
14347# All known linkers require a '.a' archive for static linking (except MSVC,
14348# which needs '.lib').
14349libext=a
14350
14351with_gnu_ld=$lt_cv_prog_gnu_ld
14352
14353old_CC=$CC
14354old_CFLAGS=$CFLAGS
14355
14356# Set sane defaults for various variables
14357test -z "$CC" && CC=cc
14358test -z "$LTCC" && LTCC=$CC
14359test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14360test -z "$LD" && LD=ld
14361test -z "$ac_objext" && ac_objext=o
14362
14363func_cc_basename $compiler
14364cc_basename=$func_cc_basename_result
14365
14366
14367# Only perform the check for file, if the check method requires it
14368test -z "$MAGIC_CMD" && MAGIC_CMD=file
14369case $deplibs_check_method in
14370file_magic*)
14371  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14372    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14373$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14374if ${lt_cv_path_MAGIC_CMD+:} false; then :
14375  $as_echo_n "(cached) " >&6
14376else
14377  case $MAGIC_CMD in
14378[\\/*] |  ?:[\\/]*)
14379  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14380  ;;
14381*)
14382  lt_save_MAGIC_CMD=$MAGIC_CMD
14383  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14384  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14385  for ac_dir in $ac_dummy; do
14386    IFS=$lt_save_ifs
14387    test -z "$ac_dir" && ac_dir=.
14388    if test -f "$ac_dir/${ac_tool_prefix}file"; then
14389      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14390      if test -n "$file_magic_test_file"; then
14391	case $deplibs_check_method in
14392	"file_magic "*)
14393	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14394	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14395	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14396	    $EGREP "$file_magic_regex" > /dev/null; then
14397	    :
14398	  else
14399	    cat <<_LT_EOF 1>&2
14400
14401*** Warning: the command libtool uses to detect shared libraries,
14402*** $file_magic_cmd, produces output that libtool cannot recognize.
14403*** The result is that libtool may fail to recognize shared libraries
14404*** as such.  This will affect the creation of libtool libraries that
14405*** depend on shared libraries, but programs linked with such libtool
14406*** libraries will work regardless of this problem.  Nevertheless, you
14407*** may want to report the problem to your system manager and/or to
14408*** bug-libtool@gnu.org
14409
14410_LT_EOF
14411	  fi ;;
14412	esac
14413      fi
14414      break
14415    fi
14416  done
14417  IFS=$lt_save_ifs
14418  MAGIC_CMD=$lt_save_MAGIC_CMD
14419  ;;
14420esac
14421fi
14422
14423MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14424if test -n "$MAGIC_CMD"; then
14425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14426$as_echo "$MAGIC_CMD" >&6; }
14427else
14428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14429$as_echo "no" >&6; }
14430fi
14431
14432
14433
14434
14435
14436if test -z "$lt_cv_path_MAGIC_CMD"; then
14437  if test -n "$ac_tool_prefix"; then
14438    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14439$as_echo_n "checking for file... " >&6; }
14440if ${lt_cv_path_MAGIC_CMD+:} false; then :
14441  $as_echo_n "(cached) " >&6
14442else
14443  case $MAGIC_CMD in
14444[\\/*] |  ?:[\\/]*)
14445  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14446  ;;
14447*)
14448  lt_save_MAGIC_CMD=$MAGIC_CMD
14449  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14450  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14451  for ac_dir in $ac_dummy; do
14452    IFS=$lt_save_ifs
14453    test -z "$ac_dir" && ac_dir=.
14454    if test -f "$ac_dir/file"; then
14455      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14456      if test -n "$file_magic_test_file"; then
14457	case $deplibs_check_method in
14458	"file_magic "*)
14459	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14460	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14461	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14462	    $EGREP "$file_magic_regex" > /dev/null; then
14463	    :
14464	  else
14465	    cat <<_LT_EOF 1>&2
14466
14467*** Warning: the command libtool uses to detect shared libraries,
14468*** $file_magic_cmd, produces output that libtool cannot recognize.
14469*** The result is that libtool may fail to recognize shared libraries
14470*** as such.  This will affect the creation of libtool libraries that
14471*** depend on shared libraries, but programs linked with such libtool
14472*** libraries will work regardless of this problem.  Nevertheless, you
14473*** may want to report the problem to your system manager and/or to
14474*** bug-libtool@gnu.org
14475
14476_LT_EOF
14477	  fi ;;
14478	esac
14479      fi
14480      break
14481    fi
14482  done
14483  IFS=$lt_save_ifs
14484  MAGIC_CMD=$lt_save_MAGIC_CMD
14485  ;;
14486esac
14487fi
14488
14489MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14490if test -n "$MAGIC_CMD"; then
14491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14492$as_echo "$MAGIC_CMD" >&6; }
14493else
14494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14495$as_echo "no" >&6; }
14496fi
14497
14498
14499  else
14500    MAGIC_CMD=:
14501  fi
14502fi
14503
14504  fi
14505  ;;
14506esac
14507
14508# Use C for the default configuration in the libtool script
14509
14510lt_save_CC=$CC
14511ac_ext=c
14512ac_cpp='$CPP $CPPFLAGS'
14513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14515ac_compiler_gnu=$ac_cv_c_compiler_gnu
14516
14517
14518# Source file extension for C test sources.
14519ac_ext=c
14520
14521# Object file extension for compiled C test sources.
14522objext=o
14523objext=$objext
14524
14525# Code to be used in simple compile tests
14526lt_simple_compile_test_code="int some_variable = 0;"
14527
14528# Code to be used in simple link tests
14529lt_simple_link_test_code='int main(){return(0);}'
14530
14531
14532
14533
14534
14535
14536
14537# If no C compiler was specified, use CC.
14538LTCC=${LTCC-"$CC"}
14539
14540# If no C compiler flags were specified, use CFLAGS.
14541LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14542
14543# Allow CC to be a program name with arguments.
14544compiler=$CC
14545
14546# Save the default compiler, since it gets overwritten when the other
14547# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14548compiler_DEFAULT=$CC
14549
14550# save warnings/boilerplate of simple test code
14551ac_outfile=conftest.$ac_objext
14552echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14553eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14554_lt_compiler_boilerplate=`cat conftest.err`
14555$RM conftest*
14556
14557ac_outfile=conftest.$ac_objext
14558echo "$lt_simple_link_test_code" >conftest.$ac_ext
14559eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14560_lt_linker_boilerplate=`cat conftest.err`
14561$RM -r conftest*
14562
14563
14564if test -n "$compiler"; then
14565
14566lt_prog_compiler_no_builtin_flag=
14567
14568if test yes = "$GCC"; then
14569  case $cc_basename in
14570  nvcc*)
14571    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14572  *)
14573    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14574  esac
14575
14576  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14577$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14578if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14579  $as_echo_n "(cached) " >&6
14580else
14581  lt_cv_prog_compiler_rtti_exceptions=no
14582   ac_outfile=conftest.$ac_objext
14583   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14584   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
14585   # Insert the option either (1) after the last *FLAGS variable, or
14586   # (2) before a word containing "conftest.", or (3) at the end.
14587   # Note that $ac_compile itself does not contain backslashes and begins
14588   # with a dollar sign (not a hyphen), so the echo should work correctly.
14589   # The option is referenced via a variable to avoid confusing sed.
14590   lt_compile=`echo "$ac_compile" | $SED \
14591   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14592   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14593   -e 's:$: $lt_compiler_flag:'`
14594   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14595   (eval "$lt_compile" 2>conftest.err)
14596   ac_status=$?
14597   cat conftest.err >&5
14598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599   if (exit $ac_status) && test -s "$ac_outfile"; then
14600     # The compiler can only warn and ignore the option if not recognized
14601     # So say no if there are warnings other than the usual output.
14602     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14603     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14604     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14605       lt_cv_prog_compiler_rtti_exceptions=yes
14606     fi
14607   fi
14608   $RM conftest*
14609
14610fi
14611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14612$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14613
14614if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14615    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14616else
14617    :
14618fi
14619
14620fi
14621
14622
14623
14624
14625
14626
14627  lt_prog_compiler_wl=
14628lt_prog_compiler_pic=
14629lt_prog_compiler_static=
14630
14631
14632  if test yes = "$GCC"; then
14633    lt_prog_compiler_wl='-Wl,'
14634    lt_prog_compiler_static='-static'
14635
14636    case $host_os in
14637      aix*)
14638      # All AIX code is PIC.
14639      if test ia64 = "$host_cpu"; then
14640	# AIX 5 now supports IA64 processor
14641	lt_prog_compiler_static='-Bstatic'
14642      fi
14643      lt_prog_compiler_pic='-fPIC'
14644      ;;
14645
14646    amigaos*)
14647      case $host_cpu in
14648      powerpc)
14649            # see comment about AmigaOS4 .so support
14650            lt_prog_compiler_pic='-fPIC'
14651        ;;
14652      m68k)
14653            # FIXME: we need at least 68020 code to build shared libraries, but
14654            # adding the '-m68020' flag to GCC prevents building anything better,
14655            # like '-m68040'.
14656            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14657        ;;
14658      esac
14659      ;;
14660
14661    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14662      # PIC is the default for these OSes.
14663      ;;
14664
14665    mingw* | cygwin* | pw32* | os2* | cegcc*)
14666      # This hack is so that the source file can tell whether it is being
14667      # built for inclusion in a dll (and should export symbols for example).
14668      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14669      # (--disable-auto-import) libraries
14670      lt_prog_compiler_pic='-DDLL_EXPORT'
14671      case $host_os in
14672      os2*)
14673	lt_prog_compiler_static='$wl-static'
14674	;;
14675      esac
14676      ;;
14677
14678    darwin* | rhapsody*)
14679      # PIC is the default on this platform
14680      # Common symbols not allowed in MH_DYLIB files
14681      lt_prog_compiler_pic='-fno-common'
14682      ;;
14683
14684    haiku*)
14685      # PIC is the default for Haiku.
14686      # The "-static" flag exists, but is broken.
14687      lt_prog_compiler_static=
14688      ;;
14689
14690    hpux*)
14691      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14692      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14693      # sets the default TLS model and affects inlining.
14694      case $host_cpu in
14695      hppa*64*)
14696	# +Z the default
14697	;;
14698      *)
14699	lt_prog_compiler_pic='-fPIC'
14700	;;
14701      esac
14702      ;;
14703
14704    interix[3-9]*)
14705      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14706      # Instead, we relocate shared libraries at runtime.
14707      ;;
14708
14709    msdosdjgpp*)
14710      # Just because we use GCC doesn't mean we suddenly get shared libraries
14711      # on systems that don't support them.
14712      lt_prog_compiler_can_build_shared=no
14713      enable_shared=no
14714      ;;
14715
14716    *nto* | *qnx*)
14717      # QNX uses GNU C++, but need to define -shared option too, otherwise
14718      # it will coredump.
14719      lt_prog_compiler_pic='-fPIC -shared'
14720      ;;
14721
14722    sysv4*MP*)
14723      if test -d /usr/nec; then
14724	lt_prog_compiler_pic=-Kconform_pic
14725      fi
14726      ;;
14727
14728    *)
14729      lt_prog_compiler_pic='-fPIC'
14730      ;;
14731    esac
14732
14733    case $cc_basename in
14734    nvcc*) # Cuda Compiler Driver 2.2
14735      lt_prog_compiler_wl='-Xlinker '
14736      if test -n "$lt_prog_compiler_pic"; then
14737        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14738      fi
14739      ;;
14740    esac
14741  else
14742    # PORTME Check for flag to pass linker flags through the system compiler.
14743    case $host_os in
14744    aix*)
14745      lt_prog_compiler_wl='-Wl,'
14746      if test ia64 = "$host_cpu"; then
14747	# AIX 5 now supports IA64 processor
14748	lt_prog_compiler_static='-Bstatic'
14749      else
14750	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14751      fi
14752      ;;
14753
14754    darwin* | rhapsody*)
14755      # PIC is the default on this platform
14756      # Common symbols not allowed in MH_DYLIB files
14757      lt_prog_compiler_pic='-fno-common'
14758      case $cc_basename in
14759      nagfor*)
14760        # NAG Fortran compiler
14761        lt_prog_compiler_wl='-Wl,-Wl,,'
14762        lt_prog_compiler_pic='-PIC'
14763        lt_prog_compiler_static='-Bstatic'
14764        ;;
14765      esac
14766      ;;
14767
14768    mingw* | cygwin* | pw32* | os2* | cegcc*)
14769      # This hack is so that the source file can tell whether it is being
14770      # built for inclusion in a dll (and should export symbols for example).
14771      lt_prog_compiler_pic='-DDLL_EXPORT'
14772      case $host_os in
14773      os2*)
14774	lt_prog_compiler_static='$wl-static'
14775	;;
14776      esac
14777      ;;
14778
14779    hpux9* | hpux10* | hpux11*)
14780      lt_prog_compiler_wl='-Wl,'
14781      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14782      # not for PA HP-UX.
14783      case $host_cpu in
14784      hppa*64*|ia64*)
14785	# +Z the default
14786	;;
14787      *)
14788	lt_prog_compiler_pic='+Z'
14789	;;
14790      esac
14791      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14792      lt_prog_compiler_static='$wl-a ${wl}archive'
14793      ;;
14794
14795    irix5* | irix6* | nonstopux*)
14796      lt_prog_compiler_wl='-Wl,'
14797      # PIC (with -KPIC) is the default.
14798      lt_prog_compiler_static='-non_shared'
14799      ;;
14800
14801    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14802      case $cc_basename in
14803      # old Intel for x86_64, which still supported -KPIC.
14804      ecc*)
14805	lt_prog_compiler_wl='-Wl,'
14806	lt_prog_compiler_pic='-KPIC'
14807	lt_prog_compiler_static='-static'
14808        ;;
14809      # icc used to be incompatible with GCC.
14810      # ICC 10 doesn't accept -KPIC any more.
14811      icc* | ifort*)
14812	lt_prog_compiler_wl='-Wl,'
14813	lt_prog_compiler_pic='-fPIC'
14814	lt_prog_compiler_static='-static'
14815        ;;
14816      # Lahey Fortran 8.1.
14817      lf95*)
14818	lt_prog_compiler_wl='-Wl,'
14819	lt_prog_compiler_pic='--shared'
14820	lt_prog_compiler_static='--static'
14821	;;
14822      nagfor*)
14823	# NAG Fortran compiler
14824	lt_prog_compiler_wl='-Wl,-Wl,,'
14825	lt_prog_compiler_pic='-PIC'
14826	lt_prog_compiler_static='-Bstatic'
14827	;;
14828      tcc*)
14829	# Fabrice Bellard et al's Tiny C Compiler
14830	lt_prog_compiler_wl='-Wl,'
14831	lt_prog_compiler_pic='-fPIC'
14832	lt_prog_compiler_static='-static'
14833	;;
14834      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14835        # Portland Group compilers (*not* the Pentium gcc compiler,
14836	# which looks to be a dead project)
14837	lt_prog_compiler_wl='-Wl,'
14838	lt_prog_compiler_pic='-fpic'
14839	lt_prog_compiler_static='-Bstatic'
14840        ;;
14841      ccc*)
14842        lt_prog_compiler_wl='-Wl,'
14843        # All Alpha code is PIC.
14844        lt_prog_compiler_static='-non_shared'
14845        ;;
14846      xl* | bgxl* | bgf* | mpixl*)
14847	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14848	lt_prog_compiler_wl='-Wl,'
14849	lt_prog_compiler_pic='-qpic'
14850	lt_prog_compiler_static='-qstaticlink'
14851	;;
14852      *)
14853	case `$CC -V 2>&1 | sed 5q` in
14854	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14855	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14856	  lt_prog_compiler_pic='-KPIC'
14857	  lt_prog_compiler_static='-Bstatic'
14858	  lt_prog_compiler_wl=''
14859	  ;;
14860	*Sun\ F* | *Sun*Fortran*)
14861	  lt_prog_compiler_pic='-KPIC'
14862	  lt_prog_compiler_static='-Bstatic'
14863	  lt_prog_compiler_wl='-Qoption ld '
14864	  ;;
14865	*Sun\ C*)
14866	  # Sun C 5.9
14867	  lt_prog_compiler_pic='-KPIC'
14868	  lt_prog_compiler_static='-Bstatic'
14869	  lt_prog_compiler_wl='-Wl,'
14870	  ;;
14871        *Intel*\ [CF]*Compiler*)
14872	  lt_prog_compiler_wl='-Wl,'
14873	  lt_prog_compiler_pic='-fPIC'
14874	  lt_prog_compiler_static='-static'
14875	  ;;
14876	*Portland\ Group*)
14877	  lt_prog_compiler_wl='-Wl,'
14878	  lt_prog_compiler_pic='-fpic'
14879	  lt_prog_compiler_static='-Bstatic'
14880	  ;;
14881	esac
14882	;;
14883      esac
14884      ;;
14885
14886    newsos6)
14887      lt_prog_compiler_pic='-KPIC'
14888      lt_prog_compiler_static='-Bstatic'
14889      ;;
14890
14891    *nto* | *qnx*)
14892      # QNX uses GNU C++, but need to define -shared option too, otherwise
14893      # it will coredump.
14894      lt_prog_compiler_pic='-fPIC -shared'
14895      ;;
14896
14897    osf3* | osf4* | osf5*)
14898      lt_prog_compiler_wl='-Wl,'
14899      # All OSF/1 code is PIC.
14900      lt_prog_compiler_static='-non_shared'
14901      ;;
14902
14903    rdos*)
14904      lt_prog_compiler_static='-non_shared'
14905      ;;
14906
14907    solaris*)
14908      lt_prog_compiler_pic='-KPIC'
14909      lt_prog_compiler_static='-Bstatic'
14910      case $cc_basename in
14911      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14912	lt_prog_compiler_wl='-Qoption ld ';;
14913      *)
14914	lt_prog_compiler_wl='-Wl,';;
14915      esac
14916      ;;
14917
14918    sunos4*)
14919      lt_prog_compiler_wl='-Qoption ld '
14920      lt_prog_compiler_pic='-PIC'
14921      lt_prog_compiler_static='-Bstatic'
14922      ;;
14923
14924    sysv4 | sysv4.2uw2* | sysv4.3*)
14925      lt_prog_compiler_wl='-Wl,'
14926      lt_prog_compiler_pic='-KPIC'
14927      lt_prog_compiler_static='-Bstatic'
14928      ;;
14929
14930    sysv4*MP*)
14931      if test -d /usr/nec; then
14932	lt_prog_compiler_pic='-Kconform_pic'
14933	lt_prog_compiler_static='-Bstatic'
14934      fi
14935      ;;
14936
14937    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14938      lt_prog_compiler_wl='-Wl,'
14939      lt_prog_compiler_pic='-KPIC'
14940      lt_prog_compiler_static='-Bstatic'
14941      ;;
14942
14943    unicos*)
14944      lt_prog_compiler_wl='-Wl,'
14945      lt_prog_compiler_can_build_shared=no
14946      ;;
14947
14948    uts4*)
14949      lt_prog_compiler_pic='-pic'
14950      lt_prog_compiler_static='-Bstatic'
14951      ;;
14952
14953    *)
14954      lt_prog_compiler_can_build_shared=no
14955      ;;
14956    esac
14957  fi
14958
14959case $host_os in
14960  # For platforms that do not support PIC, -DPIC is meaningless:
14961  *djgpp*)
14962    lt_prog_compiler_pic=
14963    ;;
14964  *)
14965    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14966    ;;
14967esac
14968
14969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14970$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14971if ${lt_cv_prog_compiler_pic+:} false; then :
14972  $as_echo_n "(cached) " >&6
14973else
14974  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14975fi
14976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14977$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14978lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14979
14980#
14981# Check to make sure the PIC flag actually works.
14982#
14983if test -n "$lt_prog_compiler_pic"; then
14984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14985$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14986if ${lt_cv_prog_compiler_pic_works+:} false; then :
14987  $as_echo_n "(cached) " >&6
14988else
14989  lt_cv_prog_compiler_pic_works=no
14990   ac_outfile=conftest.$ac_objext
14991   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14992   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
14993   # Insert the option either (1) after the last *FLAGS variable, or
14994   # (2) before a word containing "conftest.", or (3) at the end.
14995   # Note that $ac_compile itself does not contain backslashes and begins
14996   # with a dollar sign (not a hyphen), so the echo should work correctly.
14997   # The option is referenced via a variable to avoid confusing sed.
14998   lt_compile=`echo "$ac_compile" | $SED \
14999   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15000   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15001   -e 's:$: $lt_compiler_flag:'`
15002   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15003   (eval "$lt_compile" 2>conftest.err)
15004   ac_status=$?
15005   cat conftest.err >&5
15006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007   if (exit $ac_status) && test -s "$ac_outfile"; then
15008     # The compiler can only warn and ignore the option if not recognized
15009     # So say no if there are warnings other than the usual output.
15010     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15011     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15012     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15013       lt_cv_prog_compiler_pic_works=yes
15014     fi
15015   fi
15016   $RM conftest*
15017
15018fi
15019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15020$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15021
15022if test yes = "$lt_cv_prog_compiler_pic_works"; then
15023    case $lt_prog_compiler_pic in
15024     "" | " "*) ;;
15025     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15026     esac
15027else
15028    lt_prog_compiler_pic=
15029     lt_prog_compiler_can_build_shared=no
15030fi
15031
15032fi
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044#
15045# Check to make sure the static flag actually works.
15046#
15047wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15049$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15050if ${lt_cv_prog_compiler_static_works+:} false; then :
15051  $as_echo_n "(cached) " >&6
15052else
15053  lt_cv_prog_compiler_static_works=no
15054   save_LDFLAGS=$LDFLAGS
15055   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15056   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15057   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15058     # The linker can only warn and ignore the option if not recognized
15059     # So say no if there are warnings
15060     if test -s conftest.err; then
15061       # Append any errors to the config.log.
15062       cat conftest.err 1>&5
15063       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15064       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15065       if diff conftest.exp conftest.er2 >/dev/null; then
15066         lt_cv_prog_compiler_static_works=yes
15067       fi
15068     else
15069       lt_cv_prog_compiler_static_works=yes
15070     fi
15071   fi
15072   $RM -r conftest*
15073   LDFLAGS=$save_LDFLAGS
15074
15075fi
15076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15077$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15078
15079if test yes = "$lt_cv_prog_compiler_static_works"; then
15080    :
15081else
15082    lt_prog_compiler_static=
15083fi
15084
15085
15086
15087
15088
15089
15090
15091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15092$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15093if ${lt_cv_prog_compiler_c_o+:} false; then :
15094  $as_echo_n "(cached) " >&6
15095else
15096  lt_cv_prog_compiler_c_o=no
15097   $RM -r conftest 2>/dev/null
15098   mkdir conftest
15099   cd conftest
15100   mkdir out
15101   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15102
15103   lt_compiler_flag="-o out/conftest2.$ac_objext"
15104   # Insert the option either (1) after the last *FLAGS variable, or
15105   # (2) before a word containing "conftest.", or (3) at the end.
15106   # Note that $ac_compile itself does not contain backslashes and begins
15107   # with a dollar sign (not a hyphen), so the echo should work correctly.
15108   lt_compile=`echo "$ac_compile" | $SED \
15109   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15110   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15111   -e 's:$: $lt_compiler_flag:'`
15112   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15113   (eval "$lt_compile" 2>out/conftest.err)
15114   ac_status=$?
15115   cat out/conftest.err >&5
15116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15118   then
15119     # The compiler can only warn and ignore the option if not recognized
15120     # So say no if there are warnings
15121     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15122     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15123     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15124       lt_cv_prog_compiler_c_o=yes
15125     fi
15126   fi
15127   chmod u+w . 2>&5
15128   $RM conftest*
15129   # SGI C++ compiler will create directory out/ii_files/ for
15130   # template instantiation
15131   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15132   $RM out/* && rmdir out
15133   cd ..
15134   $RM -r conftest
15135   $RM conftest*
15136
15137fi
15138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15139$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15140
15141
15142
15143
15144
15145
15146  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15147$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15148if ${lt_cv_prog_compiler_c_o+:} false; then :
15149  $as_echo_n "(cached) " >&6
15150else
15151  lt_cv_prog_compiler_c_o=no
15152   $RM -r conftest 2>/dev/null
15153   mkdir conftest
15154   cd conftest
15155   mkdir out
15156   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15157
15158   lt_compiler_flag="-o out/conftest2.$ac_objext"
15159   # Insert the option either (1) after the last *FLAGS variable, or
15160   # (2) before a word containing "conftest.", or (3) at the end.
15161   # Note that $ac_compile itself does not contain backslashes and begins
15162   # with a dollar sign (not a hyphen), so the echo should work correctly.
15163   lt_compile=`echo "$ac_compile" | $SED \
15164   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15165   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15166   -e 's:$: $lt_compiler_flag:'`
15167   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15168   (eval "$lt_compile" 2>out/conftest.err)
15169   ac_status=$?
15170   cat out/conftest.err >&5
15171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15173   then
15174     # The compiler can only warn and ignore the option if not recognized
15175     # So say no if there are warnings
15176     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15177     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15178     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15179       lt_cv_prog_compiler_c_o=yes
15180     fi
15181   fi
15182   chmod u+w . 2>&5
15183   $RM conftest*
15184   # SGI C++ compiler will create directory out/ii_files/ for
15185   # template instantiation
15186   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15187   $RM out/* && rmdir out
15188   cd ..
15189   $RM -r conftest
15190   $RM conftest*
15191
15192fi
15193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15194$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15195
15196
15197
15198
15199hard_links=nottested
15200if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15201  # do not overwrite the value of need_locks provided by the user
15202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15203$as_echo_n "checking if we can lock with hard links... " >&6; }
15204  hard_links=yes
15205  $RM conftest*
15206  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15207  touch conftest.a
15208  ln conftest.a conftest.b 2>&5 || hard_links=no
15209  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15211$as_echo "$hard_links" >&6; }
15212  if test no = "$hard_links"; then
15213    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15214$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15215    need_locks=warn
15216  fi
15217else
15218  need_locks=no
15219fi
15220
15221
15222
15223
15224
15225
15226  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15227$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15228
15229  runpath_var=
15230  allow_undefined_flag=
15231  always_export_symbols=no
15232  archive_cmds=
15233  archive_expsym_cmds=
15234  compiler_needs_object=no
15235  enable_shared_with_static_runtimes=no
15236  export_dynamic_flag_spec=
15237  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15238  hardcode_automatic=no
15239  hardcode_direct=no
15240  hardcode_direct_absolute=no
15241  hardcode_libdir_flag_spec=
15242  hardcode_libdir_separator=
15243  hardcode_minus_L=no
15244  hardcode_shlibpath_var=unsupported
15245  inherit_rpath=no
15246  link_all_deplibs=unknown
15247  module_cmds=
15248  module_expsym_cmds=
15249  old_archive_from_new_cmds=
15250  old_archive_from_expsyms_cmds=
15251  thread_safe_flag_spec=
15252  whole_archive_flag_spec=
15253  # include_expsyms should be a list of space-separated symbols to be *always*
15254  # included in the symbol list
15255  include_expsyms=
15256  # exclude_expsyms can be an extended regexp of symbols to exclude
15257  # it will be wrapped by ' (' and ')$', so one must not match beginning or
15258  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15259  # as well as any symbol that contains 'd'.
15260  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15261  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15262  # platforms (ab)use it in PIC code, but their linkers get confused if
15263  # the symbol is explicitly referenced.  Since portable code cannot
15264  # rely on this symbol name, it's probably fine to never include it in
15265  # preloaded symbol tables.
15266  # Exclude shared library initialization/finalization symbols.
15267  extract_expsyms_cmds=
15268
15269  case $host_os in
15270  cygwin* | mingw* | pw32* | cegcc*)
15271    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15272    # When not using gcc, we currently assume that we are using
15273    # Microsoft Visual C++.
15274    if test yes != "$GCC"; then
15275      with_gnu_ld=no
15276    fi
15277    ;;
15278  interix*)
15279    # we just hope/assume this is gcc and not c89 (= MSVC++)
15280    with_gnu_ld=yes
15281    ;;
15282  openbsd* | bitrig*)
15283    with_gnu_ld=no
15284    ;;
15285  linux* | k*bsd*-gnu | gnu*)
15286    link_all_deplibs=no
15287    ;;
15288  esac
15289
15290  ld_shlibs=yes
15291
15292  # On some targets, GNU ld is compatible enough with the native linker
15293  # that we're better off using the native interface for both.
15294  lt_use_gnu_ld_interface=no
15295  if test yes = "$with_gnu_ld"; then
15296    case $host_os in
15297      aix*)
15298	# The AIX port of GNU ld has always aspired to compatibility
15299	# with the native linker.  However, as the warning in the GNU ld
15300	# block says, versions before 2.19.5* couldn't really create working
15301	# shared libraries, regardless of the interface used.
15302	case `$LD -v 2>&1` in
15303	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15304	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15305	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15306	  *)
15307	    lt_use_gnu_ld_interface=yes
15308	    ;;
15309	esac
15310	;;
15311      *)
15312	lt_use_gnu_ld_interface=yes
15313	;;
15314    esac
15315  fi
15316
15317  if test yes = "$lt_use_gnu_ld_interface"; then
15318    # If archive_cmds runs LD, not CC, wlarc should be empty
15319    wlarc='$wl'
15320
15321    # Set some defaults for GNU ld with shared library support. These
15322    # are reset later if shared libraries are not supported. Putting them
15323    # here allows them to be overridden if necessary.
15324    runpath_var=LD_RUN_PATH
15325    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15326    export_dynamic_flag_spec='$wl--export-dynamic'
15327    # ancient GNU ld didn't support --whole-archive et. al.
15328    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15329      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15330    else
15331      whole_archive_flag_spec=
15332    fi
15333    supports_anon_versioning=no
15334    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15335      *GNU\ gold*) supports_anon_versioning=yes ;;
15336      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15337      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15338      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15339      *\ 2.11.*) ;; # other 2.11 versions
15340      *) supports_anon_versioning=yes ;;
15341    esac
15342
15343    # See if GNU ld supports shared libraries.
15344    case $host_os in
15345    aix[3-9]*)
15346      # On AIX/PPC, the GNU linker is very broken
15347      if test ia64 != "$host_cpu"; then
15348	ld_shlibs=no
15349	cat <<_LT_EOF 1>&2
15350
15351*** Warning: the GNU linker, at least up to release 2.19, is reported
15352*** to be unable to reliably create shared libraries on AIX.
15353*** Therefore, libtool is disabling shared libraries support.  If you
15354*** really care for shared libraries, you may want to install binutils
15355*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15356*** You will then need to restart the configuration process.
15357
15358_LT_EOF
15359      fi
15360      ;;
15361
15362    amigaos*)
15363      case $host_cpu in
15364      powerpc)
15365            # see comment about AmigaOS4 .so support
15366            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15367            archive_expsym_cmds=''
15368        ;;
15369      m68k)
15370            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)'
15371            hardcode_libdir_flag_spec='-L$libdir'
15372            hardcode_minus_L=yes
15373        ;;
15374      esac
15375      ;;
15376
15377    beos*)
15378      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15379	allow_undefined_flag=unsupported
15380	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15381	# support --undefined.  This deserves some investigation.  FIXME
15382	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15383      else
15384	ld_shlibs=no
15385      fi
15386      ;;
15387
15388    cygwin* | mingw* | pw32* | cegcc*)
15389      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15390      # as there is no search path for DLLs.
15391      hardcode_libdir_flag_spec='-L$libdir'
15392      export_dynamic_flag_spec='$wl--export-all-symbols'
15393      allow_undefined_flag=unsupported
15394      always_export_symbols=no
15395      enable_shared_with_static_runtimes=yes
15396      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'
15397      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15398
15399      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15400        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15401	# If the export-symbols file already is a .def file, use it as
15402	# is; otherwise, prepend EXPORTS...
15403	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15404          cp $export_symbols $output_objdir/$soname.def;
15405        else
15406          echo EXPORTS > $output_objdir/$soname.def;
15407          cat $export_symbols >> $output_objdir/$soname.def;
15408        fi~
15409        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15410      else
15411	ld_shlibs=no
15412      fi
15413      ;;
15414
15415    haiku*)
15416      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15417      link_all_deplibs=yes
15418      ;;
15419
15420    os2*)
15421      hardcode_libdir_flag_spec='-L$libdir'
15422      hardcode_minus_L=yes
15423      allow_undefined_flag=unsupported
15424      shrext_cmds=.dll
15425      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15426	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15427	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15428	$ECHO EXPORTS >> $output_objdir/$libname.def~
15429	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15430	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15431	emximp -o $lib $output_objdir/$libname.def'
15432      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15433	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15434	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15435	$ECHO EXPORTS >> $output_objdir/$libname.def~
15436	prefix_cmds="$SED"~
15437	if test EXPORTS = "`$SED 1q $export_symbols`"; then
15438	  prefix_cmds="$prefix_cmds -e 1d";
15439	fi~
15440	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15441	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15442	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15443	emximp -o $lib $output_objdir/$libname.def'
15444      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15445      enable_shared_with_static_runtimes=yes
15446      ;;
15447
15448    interix[3-9]*)
15449      hardcode_direct=no
15450      hardcode_shlibpath_var=no
15451      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15452      export_dynamic_flag_spec='$wl-E'
15453      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15454      # Instead, shared libraries are loaded at an image base (0x10000000 by
15455      # default) and relocated if they conflict, which is a slow very memory
15456      # consuming and fragmenting process.  To avoid this, we pick a random,
15457      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15458      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15459      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15460      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'
15461      ;;
15462
15463    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15464      tmp_diet=no
15465      if test linux-dietlibc = "$host_os"; then
15466	case $cc_basename in
15467	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15468	esac
15469      fi
15470      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15471	 && test no = "$tmp_diet"
15472      then
15473	tmp_addflag=' $pic_flag'
15474	tmp_sharedflag='-shared'
15475	case $cc_basename,$host_cpu in
15476        pgcc*)				# Portland Group C compiler
15477	  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'
15478	  tmp_addflag=' $pic_flag'
15479	  ;;
15480	pgf77* | pgf90* | pgf95* | pgfortran*)
15481					# Portland Group f77 and f90 compilers
15482	  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'
15483	  tmp_addflag=' $pic_flag -Mnomain' ;;
15484	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15485	  tmp_addflag=' -i_dynamic' ;;
15486	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15487	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15488	ifc* | ifort*)			# Intel Fortran compiler
15489	  tmp_addflag=' -nofor_main' ;;
15490	lf95*)				# Lahey Fortran 8.1
15491	  whole_archive_flag_spec=
15492	  tmp_sharedflag='--shared' ;;
15493        nagfor*)                        # NAGFOR 5.3
15494          tmp_sharedflag='-Wl,-shared' ;;
15495	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15496	  tmp_sharedflag='-qmkshrobj'
15497	  tmp_addflag= ;;
15498	nvcc*)	# Cuda Compiler Driver 2.2
15499	  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'
15500	  compiler_needs_object=yes
15501	  ;;
15502	esac
15503	case `$CC -V 2>&1 | sed 5q` in
15504	*Sun\ C*)			# Sun C 5.9
15505	  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'
15506	  compiler_needs_object=yes
15507	  tmp_sharedflag='-G' ;;
15508	*Sun\ F*)			# Sun Fortran 8.3
15509	  tmp_sharedflag='-G' ;;
15510	esac
15511	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15512
15513        if test yes = "$supports_anon_versioning"; then
15514          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15515            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15516            echo "local: *; };" >> $output_objdir/$libname.ver~
15517            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15518        fi
15519
15520	case $cc_basename in
15521	tcc*)
15522	  export_dynamic_flag_spec='-rdynamic'
15523	  ;;
15524	xlf* | bgf* | bgxlf* | mpixlf*)
15525	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15526	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15527	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15528	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15529	  if test yes = "$supports_anon_versioning"; then
15530	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15531              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15532              echo "local: *; };" >> $output_objdir/$libname.ver~
15533              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15534	  fi
15535	  ;;
15536	esac
15537      else
15538        ld_shlibs=no
15539      fi
15540      ;;
15541
15542    netbsd* | netbsdelf*-gnu)
15543      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15544	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15545	wlarc=
15546      else
15547	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15548	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15549      fi
15550      ;;
15551
15552    solaris*)
15553      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15554	ld_shlibs=no
15555	cat <<_LT_EOF 1>&2
15556
15557*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15558*** create shared libraries on Solaris systems.  Therefore, libtool
15559*** is disabling shared libraries support.  We urge you to upgrade GNU
15560*** binutils to release 2.9.1 or newer.  Another option is to modify
15561*** your PATH or compiler configuration so that the native linker is
15562*** used, and then restart.
15563
15564_LT_EOF
15565      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15566	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15567	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15568      else
15569	ld_shlibs=no
15570      fi
15571      ;;
15572
15573    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15574      case `$LD -v 2>&1` in
15575        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15576	ld_shlibs=no
15577	cat <<_LT_EOF 1>&2
15578
15579*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15580*** reliably create shared libraries on SCO systems.  Therefore, libtool
15581*** is disabling shared libraries support.  We urge you to upgrade GNU
15582*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15583*** your PATH or compiler configuration so that the native linker is
15584*** used, and then restart.
15585
15586_LT_EOF
15587	;;
15588	*)
15589	  # For security reasons, it is highly recommended that you always
15590	  # use absolute paths for naming shared libraries, and exclude the
15591	  # DT_RUNPATH tag from executables and libraries.  But doing so
15592	  # requires that you compile everything twice, which is a pain.
15593	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15594	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15595	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15596	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15597	  else
15598	    ld_shlibs=no
15599	  fi
15600	;;
15601      esac
15602      ;;
15603
15604    sunos4*)
15605      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15606      wlarc=
15607      hardcode_direct=yes
15608      hardcode_shlibpath_var=no
15609      ;;
15610
15611    *)
15612      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15613	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15614	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15615      else
15616	ld_shlibs=no
15617      fi
15618      ;;
15619    esac
15620
15621    if test no = "$ld_shlibs"; then
15622      runpath_var=
15623      hardcode_libdir_flag_spec=
15624      export_dynamic_flag_spec=
15625      whole_archive_flag_spec=
15626    fi
15627  else
15628    # PORTME fill in a description of your system's linker (not GNU ld)
15629    case $host_os in
15630    aix3*)
15631      allow_undefined_flag=unsupported
15632      always_export_symbols=yes
15633      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'
15634      # Note: this linker hardcodes the directories in LIBPATH if there
15635      # are no directories specified by -L.
15636      hardcode_minus_L=yes
15637      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15638	# Neither direct hardcoding nor static linking is supported with a
15639	# broken collect2.
15640	hardcode_direct=unsupported
15641      fi
15642      ;;
15643
15644    aix[4-9]*)
15645      if test ia64 = "$host_cpu"; then
15646	# On IA64, the linker does run time linking by default, so we don't
15647	# have to do anything special.
15648	aix_use_runtimelinking=no
15649	exp_sym_flag='-Bexport'
15650	no_entry_flag=
15651      else
15652	# If we're using GNU nm, then we don't want the "-C" option.
15653	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
15654	# Without the "-l" option, or with the "-B" option, AIX nm treats
15655	# weak defined symbols like other global defined symbols, whereas
15656	# GNU nm marks them as "W".
15657	# While the 'weak' keyword is ignored in the Export File, we need
15658	# it in the Import File for the 'aix-soname' feature, so we have
15659	# to replace the "-B" option with "-P" for AIX nm.
15660	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15661	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15662	else
15663	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15664	fi
15665	aix_use_runtimelinking=no
15666
15667	# Test if we are trying to use run time linking or normal
15668	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15669	# have runtime linking enabled, and use it for executables.
15670	# For shared libraries, we enable/disable runtime linking
15671	# depending on the kind of the shared library created -
15672	# when "with_aix_soname,aix_use_runtimelinking" is:
15673	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15674	# "aix,yes"  lib.so          shared, rtl:yes, for executables
15675	#            lib.a           static archive
15676	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
15677	#            lib.a(lib.so.V) shared, rtl:no,  for executables
15678	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15679	#            lib.a(lib.so.V) shared, rtl:no
15680	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15681	#            lib.a           static archive
15682	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15683	  for ld_flag in $LDFLAGS; do
15684	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15685	    aix_use_runtimelinking=yes
15686	    break
15687	  fi
15688	  done
15689	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15690	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
15691	    # so we don't have lib.a shared libs to link our executables.
15692	    # We have to force runtime linking in this case.
15693	    aix_use_runtimelinking=yes
15694	    LDFLAGS="$LDFLAGS -Wl,-brtl"
15695	  fi
15696	  ;;
15697	esac
15698
15699	exp_sym_flag='-bexport'
15700	no_entry_flag='-bnoentry'
15701      fi
15702
15703      # When large executables or shared objects are built, AIX ld can
15704      # have problems creating the table of contents.  If linking a library
15705      # or program results in "error TOC overflow" add -mminimal-toc to
15706      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15707      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15708
15709      archive_cmds=''
15710      hardcode_direct=yes
15711      hardcode_direct_absolute=yes
15712      hardcode_libdir_separator=':'
15713      link_all_deplibs=yes
15714      file_list_spec='$wl-f,'
15715      case $with_aix_soname,$aix_use_runtimelinking in
15716      aix,*) ;; # traditional, no import file
15717      svr4,* | *,yes) # use import file
15718	# The Import File defines what to hardcode.
15719	hardcode_direct=no
15720	hardcode_direct_absolute=no
15721	;;
15722      esac
15723
15724      if test yes = "$GCC"; then
15725	case $host_os in aix4.[012]|aix4.[012].*)
15726	# We only want to do this on AIX 4.2 and lower, the check
15727	# below for broken collect2 doesn't work under 4.3+
15728	  collect2name=`$CC -print-prog-name=collect2`
15729	  if test -f "$collect2name" &&
15730	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15731	  then
15732	  # We have reworked collect2
15733	  :
15734	  else
15735	  # We have old collect2
15736	  hardcode_direct=unsupported
15737	  # It fails to find uninstalled libraries when the uninstalled
15738	  # path is not listed in the libpath.  Setting hardcode_minus_L
15739	  # to unsupported forces relinking
15740	  hardcode_minus_L=yes
15741	  hardcode_libdir_flag_spec='-L$libdir'
15742	  hardcode_libdir_separator=
15743	  fi
15744	  ;;
15745	esac
15746	shared_flag='-shared'
15747	if test yes = "$aix_use_runtimelinking"; then
15748	  shared_flag="$shared_flag "'$wl-G'
15749	fi
15750	# Need to ensure runtime linking is disabled for the traditional
15751	# shared library, or the linker may eventually find shared libraries
15752	# /with/ Import File - we do not want to mix them.
15753	shared_flag_aix='-shared'
15754	shared_flag_svr4='-shared $wl-G'
15755      else
15756	# not using gcc
15757	if test ia64 = "$host_cpu"; then
15758	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15759	# chokes on -Wl,-G. The following line is correct:
15760	  shared_flag='-G'
15761	else
15762	  if test yes = "$aix_use_runtimelinking"; then
15763	    shared_flag='$wl-G'
15764	  else
15765	    shared_flag='$wl-bM:SRE'
15766	  fi
15767	  shared_flag_aix='$wl-bM:SRE'
15768	  shared_flag_svr4='$wl-G'
15769	fi
15770      fi
15771
15772      export_dynamic_flag_spec='$wl-bexpall'
15773      # It seems that -bexpall does not export symbols beginning with
15774      # underscore (_), so it is better to generate a list of symbols to export.
15775      always_export_symbols=yes
15776      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15777	# Warning - without using the other runtime loading flags (-brtl),
15778	# -berok will link without error, but may produce a broken library.
15779	allow_undefined_flag='-berok'
15780        # Determine the default libpath from the value encoded in an
15781        # empty executable.
15782        if test set = "${lt_cv_aix_libpath+set}"; then
15783  aix_libpath=$lt_cv_aix_libpath
15784else
15785  if ${lt_cv_aix_libpath_+:} false; then :
15786  $as_echo_n "(cached) " >&6
15787else
15788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15789/* end confdefs.h.  */
15790
15791int
15792main ()
15793{
15794
15795  ;
15796  return 0;
15797}
15798_ACEOF
15799if ac_fn_c_try_link "$LINENO"; then :
15800
15801  lt_aix_libpath_sed='
15802      /Import File Strings/,/^$/ {
15803	  /^0/ {
15804	      s/^0  *\([^ ]*\) *$/\1/
15805	      p
15806	  }
15807      }'
15808  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15809  # Check for a 64-bit object if we didn't find anything.
15810  if test -z "$lt_cv_aix_libpath_"; then
15811    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15812  fi
15813fi
15814rm -f core conftest.err conftest.$ac_objext \
15815    conftest$ac_exeext conftest.$ac_ext
15816  if test -z "$lt_cv_aix_libpath_"; then
15817    lt_cv_aix_libpath_=/usr/lib:/lib
15818  fi
15819
15820fi
15821
15822  aix_libpath=$lt_cv_aix_libpath_
15823fi
15824
15825        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15826        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15827      else
15828	if test ia64 = "$host_cpu"; then
15829	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15830	  allow_undefined_flag="-z nodefs"
15831	  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"
15832	else
15833	 # Determine the default libpath from the value encoded in an
15834	 # empty executable.
15835	 if test set = "${lt_cv_aix_libpath+set}"; then
15836  aix_libpath=$lt_cv_aix_libpath
15837else
15838  if ${lt_cv_aix_libpath_+:} false; then :
15839  $as_echo_n "(cached) " >&6
15840else
15841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842/* end confdefs.h.  */
15843
15844int
15845main ()
15846{
15847
15848  ;
15849  return 0;
15850}
15851_ACEOF
15852if ac_fn_c_try_link "$LINENO"; then :
15853
15854  lt_aix_libpath_sed='
15855      /Import File Strings/,/^$/ {
15856	  /^0/ {
15857	      s/^0  *\([^ ]*\) *$/\1/
15858	      p
15859	  }
15860      }'
15861  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15862  # Check for a 64-bit object if we didn't find anything.
15863  if test -z "$lt_cv_aix_libpath_"; then
15864    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15865  fi
15866fi
15867rm -f core conftest.err conftest.$ac_objext \
15868    conftest$ac_exeext conftest.$ac_ext
15869  if test -z "$lt_cv_aix_libpath_"; then
15870    lt_cv_aix_libpath_=/usr/lib:/lib
15871  fi
15872
15873fi
15874
15875  aix_libpath=$lt_cv_aix_libpath_
15876fi
15877
15878	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15879	  # Warning - without using the other run time loading flags,
15880	  # -berok will link without error, but may produce a broken library.
15881	  no_undefined_flag=' $wl-bernotok'
15882	  allow_undefined_flag=' $wl-berok'
15883	  if test yes = "$with_gnu_ld"; then
15884	    # We only use this code for GNU lds that support --whole-archive.
15885	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15886	  else
15887	    # Exported symbols can be pulled into shared objects from archives
15888	    whole_archive_flag_spec='$convenience'
15889	  fi
15890	  archive_cmds_need_lc=yes
15891	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15892	  # -brtl affects multiple linker settings, -berok does not and is overridden later
15893	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15894	  if test svr4 != "$with_aix_soname"; then
15895	    # This is similar to how AIX traditionally builds its shared libraries.
15896	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15897	  fi
15898	  if test aix != "$with_aix_soname"; then
15899	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15900	  else
15901	    # used by -dlpreopen to get the symbols
15902	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15903	  fi
15904	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
15905	fi
15906      fi
15907      ;;
15908
15909    amigaos*)
15910      case $host_cpu in
15911      powerpc)
15912            # see comment about AmigaOS4 .so support
15913            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15914            archive_expsym_cmds=''
15915        ;;
15916      m68k)
15917            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)'
15918            hardcode_libdir_flag_spec='-L$libdir'
15919            hardcode_minus_L=yes
15920        ;;
15921      esac
15922      ;;
15923
15924    bsdi[45]*)
15925      export_dynamic_flag_spec=-rdynamic
15926      ;;
15927
15928    cygwin* | mingw* | pw32* | cegcc*)
15929      # When not using gcc, we currently assume that we are using
15930      # Microsoft Visual C++.
15931      # hardcode_libdir_flag_spec is actually meaningless, as there is
15932      # no search path for DLLs.
15933      case $cc_basename in
15934      cl*)
15935	# Native MSVC
15936	hardcode_libdir_flag_spec=' '
15937	allow_undefined_flag=unsupported
15938	always_export_symbols=yes
15939	file_list_spec='@'
15940	# Tell ltmain to make .lib files, not .a files.
15941	libext=lib
15942	# Tell ltmain to make .dll files, not .so files.
15943	shrext_cmds=.dll
15944	# FIXME: Setting linknames here is a bad hack.
15945	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15946	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15947            cp "$export_symbols" "$output_objdir/$soname.def";
15948            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15949          else
15950            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15951          fi~
15952          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15953          linknames='
15954	# The linker will not automatically build a static lib if we build a DLL.
15955	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15956	enable_shared_with_static_runtimes=yes
15957	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15958	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15959	# Don't use ranlib
15960	old_postinstall_cmds='chmod 644 $oldlib'
15961	postlink_cmds='lt_outputfile="@OUTPUT@"~
15962          lt_tool_outputfile="@TOOL_OUTPUT@"~
15963          case $lt_outputfile in
15964            *.exe|*.EXE) ;;
15965            *)
15966              lt_outputfile=$lt_outputfile.exe
15967              lt_tool_outputfile=$lt_tool_outputfile.exe
15968              ;;
15969          esac~
15970          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15971            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15972            $RM "$lt_outputfile.manifest";
15973          fi'
15974	;;
15975      *)
15976	# Assume MSVC wrapper
15977	hardcode_libdir_flag_spec=' '
15978	allow_undefined_flag=unsupported
15979	# Tell ltmain to make .lib files, not .a files.
15980	libext=lib
15981	# Tell ltmain to make .dll files, not .so files.
15982	shrext_cmds=.dll
15983	# FIXME: Setting linknames here is a bad hack.
15984	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15985	# The linker will automatically build a .lib file if we build a DLL.
15986	old_archive_from_new_cmds='true'
15987	# FIXME: Should let the user specify the lib program.
15988	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15989	enable_shared_with_static_runtimes=yes
15990	;;
15991      esac
15992      ;;
15993
15994    darwin* | rhapsody*)
15995
15996
15997  archive_cmds_need_lc=no
15998  hardcode_direct=no
15999  hardcode_automatic=yes
16000  hardcode_shlibpath_var=unsupported
16001  if test yes = "$lt_cv_ld_force_load"; then
16002    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\"`'
16003
16004  else
16005    whole_archive_flag_spec=''
16006  fi
16007  link_all_deplibs=yes
16008  allow_undefined_flag=$_lt_dar_allow_undefined
16009  case $cc_basename in
16010     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16011     *) _lt_dar_can_shared=$GCC ;;
16012  esac
16013  if test yes = "$_lt_dar_can_shared"; then
16014    output_verbose_link_cmd=func_echo_all
16015    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16016    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16017    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"
16018    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"
16019
16020  else
16021  ld_shlibs=no
16022  fi
16023
16024      ;;
16025
16026    dgux*)
16027      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16028      hardcode_libdir_flag_spec='-L$libdir'
16029      hardcode_shlibpath_var=no
16030      ;;
16031
16032    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16033    # support.  Future versions do this automatically, but an explicit c++rt0.o
16034    # does not break anything, and helps significantly (at the cost of a little
16035    # extra space).
16036    freebsd2.2*)
16037      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16038      hardcode_libdir_flag_spec='-R$libdir'
16039      hardcode_direct=yes
16040      hardcode_shlibpath_var=no
16041      ;;
16042
16043    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16044    freebsd2.*)
16045      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16046      hardcode_direct=yes
16047      hardcode_minus_L=yes
16048      hardcode_shlibpath_var=no
16049      ;;
16050
16051    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16052    freebsd* | dragonfly*)
16053      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16054      hardcode_libdir_flag_spec='-R$libdir'
16055      hardcode_direct=yes
16056      hardcode_shlibpath_var=no
16057      ;;
16058
16059    hpux9*)
16060      if test yes = "$GCC"; then
16061	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16062      else
16063	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16064      fi
16065      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16066      hardcode_libdir_separator=:
16067      hardcode_direct=yes
16068
16069      # hardcode_minus_L: Not really in the search PATH,
16070      # but as the default location of the library.
16071      hardcode_minus_L=yes
16072      export_dynamic_flag_spec='$wl-E'
16073      ;;
16074
16075    hpux10*)
16076      if test yes,no = "$GCC,$with_gnu_ld"; then
16077	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16078      else
16079	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16080      fi
16081      if test no = "$with_gnu_ld"; then
16082	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16083	hardcode_libdir_separator=:
16084	hardcode_direct=yes
16085	hardcode_direct_absolute=yes
16086	export_dynamic_flag_spec='$wl-E'
16087	# hardcode_minus_L: Not really in the search PATH,
16088	# but as the default location of the library.
16089	hardcode_minus_L=yes
16090      fi
16091      ;;
16092
16093    hpux11*)
16094      if test yes,no = "$GCC,$with_gnu_ld"; then
16095	case $host_cpu in
16096	hppa*64*)
16097	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16098	  ;;
16099	ia64*)
16100	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16101	  ;;
16102	*)
16103	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16104	  ;;
16105	esac
16106      else
16107	case $host_cpu in
16108	hppa*64*)
16109	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16110	  ;;
16111	ia64*)
16112	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16113	  ;;
16114	*)
16115
16116	  # Older versions of the 11.00 compiler do not understand -b yet
16117	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16118	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16119$as_echo_n "checking if $CC understands -b... " >&6; }
16120if ${lt_cv_prog_compiler__b+:} false; then :
16121  $as_echo_n "(cached) " >&6
16122else
16123  lt_cv_prog_compiler__b=no
16124   save_LDFLAGS=$LDFLAGS
16125   LDFLAGS="$LDFLAGS -b"
16126   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16127   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16128     # The linker can only warn and ignore the option if not recognized
16129     # So say no if there are warnings
16130     if test -s conftest.err; then
16131       # Append any errors to the config.log.
16132       cat conftest.err 1>&5
16133       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16134       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16135       if diff conftest.exp conftest.er2 >/dev/null; then
16136         lt_cv_prog_compiler__b=yes
16137       fi
16138     else
16139       lt_cv_prog_compiler__b=yes
16140     fi
16141   fi
16142   $RM -r conftest*
16143   LDFLAGS=$save_LDFLAGS
16144
16145fi
16146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16147$as_echo "$lt_cv_prog_compiler__b" >&6; }
16148
16149if test yes = "$lt_cv_prog_compiler__b"; then
16150    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16151else
16152    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16153fi
16154
16155	  ;;
16156	esac
16157      fi
16158      if test no = "$with_gnu_ld"; then
16159	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16160	hardcode_libdir_separator=:
16161
16162	case $host_cpu in
16163	hppa*64*|ia64*)
16164	  hardcode_direct=no
16165	  hardcode_shlibpath_var=no
16166	  ;;
16167	*)
16168	  hardcode_direct=yes
16169	  hardcode_direct_absolute=yes
16170	  export_dynamic_flag_spec='$wl-E'
16171
16172	  # hardcode_minus_L: Not really in the search PATH,
16173	  # but as the default location of the library.
16174	  hardcode_minus_L=yes
16175	  ;;
16176	esac
16177      fi
16178      ;;
16179
16180    irix5* | irix6* | nonstopux*)
16181      if test yes = "$GCC"; then
16182	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'
16183	# Try to use the -exported_symbol ld option, if it does not
16184	# work, assume that -exports_file does not work either and
16185	# implicitly export all symbols.
16186	# This should be the same for all languages, so no per-tag cache variable.
16187	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16188$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16189if ${lt_cv_irix_exported_symbol+:} false; then :
16190  $as_echo_n "(cached) " >&6
16191else
16192  save_LDFLAGS=$LDFLAGS
16193	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16194	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16195/* end confdefs.h.  */
16196int foo (void) { return 0; }
16197_ACEOF
16198if ac_fn_c_try_link "$LINENO"; then :
16199  lt_cv_irix_exported_symbol=yes
16200else
16201  lt_cv_irix_exported_symbol=no
16202fi
16203rm -f core conftest.err conftest.$ac_objext \
16204    conftest$ac_exeext conftest.$ac_ext
16205           LDFLAGS=$save_LDFLAGS
16206fi
16207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16208$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16209	if test yes = "$lt_cv_irix_exported_symbol"; then
16210          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'
16211	fi
16212	link_all_deplibs=no
16213      else
16214	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'
16215	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'
16216      fi
16217      archive_cmds_need_lc='no'
16218      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16219      hardcode_libdir_separator=:
16220      inherit_rpath=yes
16221      link_all_deplibs=yes
16222      ;;
16223
16224    linux*)
16225      case $cc_basename in
16226      tcc*)
16227	# Fabrice Bellard et al's Tiny C Compiler
16228	ld_shlibs=yes
16229	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16230	;;
16231      esac
16232      ;;
16233
16234    netbsd* | netbsdelf*-gnu)
16235      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16236	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16237      else
16238	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16239      fi
16240      hardcode_libdir_flag_spec='-R$libdir'
16241      hardcode_direct=yes
16242      hardcode_shlibpath_var=no
16243      ;;
16244
16245    newsos6)
16246      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16247      hardcode_direct=yes
16248      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16249      hardcode_libdir_separator=:
16250      hardcode_shlibpath_var=no
16251      ;;
16252
16253    *nto* | *qnx*)
16254      ;;
16255
16256    openbsd* | bitrig*)
16257      if test -f /usr/libexec/ld.so; then
16258	hardcode_direct=yes
16259	hardcode_shlibpath_var=no
16260	hardcode_direct_absolute=yes
16261	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16262	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16263	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16264	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16265	  export_dynamic_flag_spec='$wl-E'
16266	else
16267	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16268	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16269	fi
16270      else
16271	ld_shlibs=no
16272      fi
16273      ;;
16274
16275    os2*)
16276      hardcode_libdir_flag_spec='-L$libdir'
16277      hardcode_minus_L=yes
16278      allow_undefined_flag=unsupported
16279      shrext_cmds=.dll
16280      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16281	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16282	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16283	$ECHO EXPORTS >> $output_objdir/$libname.def~
16284	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16285	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16286	emximp -o $lib $output_objdir/$libname.def'
16287      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16288	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16289	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16290	$ECHO EXPORTS >> $output_objdir/$libname.def~
16291	prefix_cmds="$SED"~
16292	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16293	  prefix_cmds="$prefix_cmds -e 1d";
16294	fi~
16295	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16296	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16297	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16298	emximp -o $lib $output_objdir/$libname.def'
16299      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16300      enable_shared_with_static_runtimes=yes
16301      ;;
16302
16303    osf3*)
16304      if test yes = "$GCC"; then
16305	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16306	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'
16307      else
16308	allow_undefined_flag=' -expect_unresolved \*'
16309	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'
16310      fi
16311      archive_cmds_need_lc='no'
16312      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16313      hardcode_libdir_separator=:
16314      ;;
16315
16316    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16317      if test yes = "$GCC"; then
16318	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16319	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'
16320	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16321      else
16322	allow_undefined_flag=' -expect_unresolved \*'
16323	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'
16324	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~
16325          $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'
16326
16327	# Both c and cxx compiler support -rpath directly
16328	hardcode_libdir_flag_spec='-rpath $libdir'
16329      fi
16330      archive_cmds_need_lc='no'
16331      hardcode_libdir_separator=:
16332      ;;
16333
16334    solaris*)
16335      no_undefined_flag=' -z defs'
16336      if test yes = "$GCC"; then
16337	wlarc='$wl'
16338	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16339	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16340          $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'
16341      else
16342	case `$CC -V 2>&1` in
16343	*"Compilers 5.0"*)
16344	  wlarc=''
16345	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16346	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16347            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16348	  ;;
16349	*)
16350	  wlarc='$wl'
16351	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16352	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16353            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16354	  ;;
16355	esac
16356      fi
16357      hardcode_libdir_flag_spec='-R$libdir'
16358      hardcode_shlibpath_var=no
16359      case $host_os in
16360      solaris2.[0-5] | solaris2.[0-5].*) ;;
16361      *)
16362	# The compiler driver will combine and reorder linker options,
16363	# but understands '-z linker_flag'.  GCC discards it without '$wl',
16364	# but is careful enough not to reorder.
16365	# Supported since Solaris 2.6 (maybe 2.5.1?)
16366	if test yes = "$GCC"; then
16367	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16368	else
16369	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16370	fi
16371	;;
16372      esac
16373      link_all_deplibs=yes
16374      ;;
16375
16376    sunos4*)
16377      if test sequent = "$host_vendor"; then
16378	# Use $CC to link under sequent, because it throws in some extra .o
16379	# files that make .init and .fini sections work.
16380	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16381      else
16382	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16383      fi
16384      hardcode_libdir_flag_spec='-L$libdir'
16385      hardcode_direct=yes
16386      hardcode_minus_L=yes
16387      hardcode_shlibpath_var=no
16388      ;;
16389
16390    sysv4)
16391      case $host_vendor in
16392	sni)
16393	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16394	  hardcode_direct=yes # is this really true???
16395	;;
16396	siemens)
16397	  ## LD is ld it makes a PLAMLIB
16398	  ## CC just makes a GrossModule.
16399	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16400	  reload_cmds='$CC -r -o $output$reload_objs'
16401	  hardcode_direct=no
16402        ;;
16403	motorola)
16404	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16405	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16406	;;
16407      esac
16408      runpath_var='LD_RUN_PATH'
16409      hardcode_shlibpath_var=no
16410      ;;
16411
16412    sysv4.3*)
16413      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16414      hardcode_shlibpath_var=no
16415      export_dynamic_flag_spec='-Bexport'
16416      ;;
16417
16418    sysv4*MP*)
16419      if test -d /usr/nec; then
16420	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16421	hardcode_shlibpath_var=no
16422	runpath_var=LD_RUN_PATH
16423	hardcode_runpath_var=yes
16424	ld_shlibs=yes
16425      fi
16426      ;;
16427
16428    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16429      no_undefined_flag='$wl-z,text'
16430      archive_cmds_need_lc=no
16431      hardcode_shlibpath_var=no
16432      runpath_var='LD_RUN_PATH'
16433
16434      if test yes = "$GCC"; then
16435	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16436	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16437      else
16438	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16439	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16440      fi
16441      ;;
16442
16443    sysv5* | sco3.2v5* | sco5v6*)
16444      # Note: We CANNOT use -z defs as we might desire, because we do not
16445      # link with -lc, and that would cause any symbols used from libc to
16446      # always be unresolved, which means just about no library would
16447      # ever link correctly.  If we're not using GNU ld we use -z text
16448      # though, which does catch some bad symbols but isn't as heavy-handed
16449      # as -z defs.
16450      no_undefined_flag='$wl-z,text'
16451      allow_undefined_flag='$wl-z,nodefs'
16452      archive_cmds_need_lc=no
16453      hardcode_shlibpath_var=no
16454      hardcode_libdir_flag_spec='$wl-R,$libdir'
16455      hardcode_libdir_separator=':'
16456      link_all_deplibs=yes
16457      export_dynamic_flag_spec='$wl-Bexport'
16458      runpath_var='LD_RUN_PATH'
16459
16460      if test yes = "$GCC"; then
16461	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16462	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16463      else
16464	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16465	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16466      fi
16467      ;;
16468
16469    uts4*)
16470      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16471      hardcode_libdir_flag_spec='-L$libdir'
16472      hardcode_shlibpath_var=no
16473      ;;
16474
16475    *)
16476      ld_shlibs=no
16477      ;;
16478    esac
16479
16480    if test sni = "$host_vendor"; then
16481      case $host in
16482      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16483	export_dynamic_flag_spec='$wl-Blargedynsym'
16484	;;
16485      esac
16486    fi
16487  fi
16488
16489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16490$as_echo "$ld_shlibs" >&6; }
16491test no = "$ld_shlibs" && can_build_shared=no
16492
16493with_gnu_ld=$with_gnu_ld
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509#
16510# Do we need to explicitly link libc?
16511#
16512case "x$archive_cmds_need_lc" in
16513x|xyes)
16514  # Assume -lc should be added
16515  archive_cmds_need_lc=yes
16516
16517  if test yes,yes = "$GCC,$enable_shared"; then
16518    case $archive_cmds in
16519    *'~'*)
16520      # FIXME: we may have to deal with multi-command sequences.
16521      ;;
16522    '$CC '*)
16523      # Test whether the compiler implicitly links with -lc since on some
16524      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16525      # to ld, don't add -lc before -lgcc.
16526      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16527$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16528if ${lt_cv_archive_cmds_need_lc+:} false; then :
16529  $as_echo_n "(cached) " >&6
16530else
16531  $RM conftest*
16532	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16533
16534	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16535  (eval $ac_compile) 2>&5
16536  ac_status=$?
16537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16538  test $ac_status = 0; } 2>conftest.err; then
16539	  soname=conftest
16540	  lib=conftest
16541	  libobjs=conftest.$ac_objext
16542	  deplibs=
16543	  wl=$lt_prog_compiler_wl
16544	  pic_flag=$lt_prog_compiler_pic
16545	  compiler_flags=-v
16546	  linker_flags=-v
16547	  verstring=
16548	  output_objdir=.
16549	  libname=conftest
16550	  lt_save_allow_undefined_flag=$allow_undefined_flag
16551	  allow_undefined_flag=
16552	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16553  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16554  ac_status=$?
16555  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16556  test $ac_status = 0; }
16557	  then
16558	    lt_cv_archive_cmds_need_lc=no
16559	  else
16560	    lt_cv_archive_cmds_need_lc=yes
16561	  fi
16562	  allow_undefined_flag=$lt_save_allow_undefined_flag
16563	else
16564	  cat conftest.err 1>&5
16565	fi
16566	$RM conftest*
16567
16568fi
16569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16570$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16571      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16572      ;;
16573    esac
16574  fi
16575  ;;
16576esac
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16730$as_echo_n "checking dynamic linker characteristics... " >&6; }
16731
16732if test yes = "$GCC"; then
16733  case $host_os in
16734    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16735    *) lt_awk_arg='/^libraries:/' ;;
16736  esac
16737  case $host_os in
16738    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16739    *) lt_sed_strip_eq='s|=/|/|g' ;;
16740  esac
16741  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16742  case $lt_search_path_spec in
16743  *\;*)
16744    # if the path contains ";" then we assume it to be the separator
16745    # otherwise default to the standard path separator (i.e. ":") - it is
16746    # assumed that no part of a normal pathname contains ";" but that should
16747    # okay in the real world where ";" in dirpaths is itself problematic.
16748    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16749    ;;
16750  *)
16751    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16752    ;;
16753  esac
16754  # Ok, now we have the path, separated by spaces, we can step through it
16755  # and add multilib dir if necessary...
16756  lt_tmp_lt_search_path_spec=
16757  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16758  # ...but if some path component already ends with the multilib dir we assume
16759  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16760  case "$lt_multi_os_dir; $lt_search_path_spec " in
16761  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16762    lt_multi_os_dir=
16763    ;;
16764  esac
16765  for lt_sys_path in $lt_search_path_spec; do
16766    if test -d "$lt_sys_path$lt_multi_os_dir"; then
16767      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16768    elif test -n "$lt_multi_os_dir"; then
16769      test -d "$lt_sys_path" && \
16770	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16771    fi
16772  done
16773  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16774BEGIN {RS = " "; FS = "/|\n";} {
16775  lt_foo = "";
16776  lt_count = 0;
16777  for (lt_i = NF; lt_i > 0; lt_i--) {
16778    if ($lt_i != "" && $lt_i != ".") {
16779      if ($lt_i == "..") {
16780        lt_count++;
16781      } else {
16782        if (lt_count == 0) {
16783          lt_foo = "/" $lt_i lt_foo;
16784        } else {
16785          lt_count--;
16786        }
16787      }
16788    }
16789  }
16790  if (lt_foo != "") { lt_freq[lt_foo]++; }
16791  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16792}'`
16793  # AWK program above erroneously prepends '/' to C:/dos/paths
16794  # for these hosts.
16795  case $host_os in
16796    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16797      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16798  esac
16799  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16800else
16801  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16802fi
16803library_names_spec=
16804libname_spec='lib$name'
16805soname_spec=
16806shrext_cmds=.so
16807postinstall_cmds=
16808postuninstall_cmds=
16809finish_cmds=
16810finish_eval=
16811shlibpath_var=
16812shlibpath_overrides_runpath=unknown
16813version_type=none
16814dynamic_linker="$host_os ld.so"
16815sys_lib_dlsearch_path_spec="/lib /usr/lib"
16816need_lib_prefix=unknown
16817hardcode_into_libs=no
16818
16819# when you set need_version to no, make sure it does not cause -set_version
16820# flags to be left without arguments
16821need_version=unknown
16822
16823
16824
16825case $host_os in
16826aix3*)
16827  version_type=linux # correct to gnu/linux during the next big refactor
16828  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16829  shlibpath_var=LIBPATH
16830
16831  # AIX 3 has no versioning support, so we append a major version to the name.
16832  soname_spec='$libname$release$shared_ext$major'
16833  ;;
16834
16835aix[4-9]*)
16836  version_type=linux # correct to gnu/linux during the next big refactor
16837  need_lib_prefix=no
16838  need_version=no
16839  hardcode_into_libs=yes
16840  if test ia64 = "$host_cpu"; then
16841    # AIX 5 supports IA64
16842    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16843    shlibpath_var=LD_LIBRARY_PATH
16844  else
16845    # With GCC up to 2.95.x, collect2 would create an import file
16846    # for dependence libraries.  The import file would start with
16847    # the line '#! .'.  This would cause the generated library to
16848    # depend on '.', always an invalid library.  This was fixed in
16849    # development snapshots of GCC prior to 3.0.
16850    case $host_os in
16851      aix4 | aix4.[01] | aix4.[01].*)
16852      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16853	   echo ' yes '
16854	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16855	:
16856      else
16857	can_build_shared=no
16858      fi
16859      ;;
16860    esac
16861    # Using Import Files as archive members, it is possible to support
16862    # filename-based versioning of shared library archives on AIX. While
16863    # this would work for both with and without runtime linking, it will
16864    # prevent static linking of such archives. So we do filename-based
16865    # shared library versioning with .so extension only, which is used
16866    # when both runtime linking and shared linking is enabled.
16867    # Unfortunately, runtime linking may impact performance, so we do
16868    # not want this to be the default eventually. Also, we use the
16869    # versioned .so libs for executables only if there is the -brtl
16870    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16871    # To allow for filename-based versioning support, we need to create
16872    # libNAME.so.V as an archive file, containing:
16873    # *) an Import File, referring to the versioned filename of the
16874    #    archive as well as the shared archive member, telling the
16875    #    bitwidth (32 or 64) of that shared object, and providing the
16876    #    list of exported symbols of that shared object, eventually
16877    #    decorated with the 'weak' keyword
16878    # *) the shared object with the F_LOADONLY flag set, to really avoid
16879    #    it being seen by the linker.
16880    # At run time we better use the real file rather than another symlink,
16881    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16882
16883    case $with_aix_soname,$aix_use_runtimelinking in
16884    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16885    # soname into executable. Probably we can add versioning support to
16886    # collect2, so additional links can be useful in future.
16887    aix,yes) # traditional libtool
16888      dynamic_linker='AIX unversionable lib.so'
16889      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16890      # instead of lib<name>.a to let people know that these are not
16891      # typical AIX shared libraries.
16892      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16893      ;;
16894    aix,no) # traditional AIX only
16895      dynamic_linker='AIX lib.a(lib.so.V)'
16896      # We preserve .a as extension for shared libraries through AIX4.2
16897      # and later when we are not doing run time linking.
16898      library_names_spec='$libname$release.a $libname.a'
16899      soname_spec='$libname$release$shared_ext$major'
16900      ;;
16901    svr4,*) # full svr4 only
16902      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16903      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16904      # We do not specify a path in Import Files, so LIBPATH fires.
16905      shlibpath_overrides_runpath=yes
16906      ;;
16907    *,yes) # both, prefer svr4
16908      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16909      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16910      # unpreferred sharedlib libNAME.a needs extra handling
16911      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16912      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16913      # We do not specify a path in Import Files, so LIBPATH fires.
16914      shlibpath_overrides_runpath=yes
16915      ;;
16916    *,no) # both, prefer aix
16917      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16918      library_names_spec='$libname$release.a $libname.a'
16919      soname_spec='$libname$release$shared_ext$major'
16920      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16921      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16922      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16923      ;;
16924    esac
16925    shlibpath_var=LIBPATH
16926  fi
16927  ;;
16928
16929amigaos*)
16930  case $host_cpu in
16931  powerpc)
16932    # Since July 2007 AmigaOS4 officially supports .so libraries.
16933    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16934    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16935    ;;
16936  m68k)
16937    library_names_spec='$libname.ixlibrary $libname.a'
16938    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16939    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16940    ;;
16941  esac
16942  ;;
16943
16944beos*)
16945  library_names_spec='$libname$shared_ext'
16946  dynamic_linker="$host_os ld.so"
16947  shlibpath_var=LIBRARY_PATH
16948  ;;
16949
16950bsdi[45]*)
16951  version_type=linux # correct to gnu/linux during the next big refactor
16952  need_version=no
16953  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16954  soname_spec='$libname$release$shared_ext$major'
16955  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16956  shlibpath_var=LD_LIBRARY_PATH
16957  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16958  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16959  # the default ld.so.conf also contains /usr/contrib/lib and
16960  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16961  # libtool to hard-code these into programs
16962  ;;
16963
16964cygwin* | mingw* | pw32* | cegcc*)
16965  version_type=windows
16966  shrext_cmds=.dll
16967  need_version=no
16968  need_lib_prefix=no
16969
16970  case $GCC,$cc_basename in
16971  yes,*)
16972    # gcc
16973    library_names_spec='$libname.dll.a'
16974    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16975    postinstall_cmds='base_file=`basename \$file`~
16976      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16977      dldir=$destdir/`dirname \$dlpath`~
16978      test -d \$dldir || mkdir -p \$dldir~
16979      $install_prog $dir/$dlname \$dldir/$dlname~
16980      chmod a+x \$dldir/$dlname~
16981      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16982        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16983      fi'
16984    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16985      dlpath=$dir/\$dldll~
16986       $RM \$dlpath'
16987    shlibpath_overrides_runpath=yes
16988
16989    case $host_os in
16990    cygwin*)
16991      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16992      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16993
16994      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16995      ;;
16996    mingw* | cegcc*)
16997      # MinGW DLLs use traditional 'lib' prefix
16998      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16999      ;;
17000    pw32*)
17001      # pw32 DLLs use 'pw' prefix rather than 'lib'
17002      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17003      ;;
17004    esac
17005    dynamic_linker='Win32 ld.exe'
17006    ;;
17007
17008  *,cl*)
17009    # Native MSVC
17010    libname_spec='$name'
17011    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17012    library_names_spec='$libname.dll.lib'
17013
17014    case $build_os in
17015    mingw*)
17016      sys_lib_search_path_spec=
17017      lt_save_ifs=$IFS
17018      IFS=';'
17019      for lt_path in $LIB
17020      do
17021        IFS=$lt_save_ifs
17022        # Let DOS variable expansion print the short 8.3 style file name.
17023        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17024        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17025      done
17026      IFS=$lt_save_ifs
17027      # Convert to MSYS style.
17028      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17029      ;;
17030    cygwin*)
17031      # Convert to unix form, then to dos form, then back to unix form
17032      # but this time dos style (no spaces!) so that the unix form looks
17033      # like /cygdrive/c/PROGRA~1:/cygdr...
17034      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17035      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17036      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17037      ;;
17038    *)
17039      sys_lib_search_path_spec=$LIB
17040      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17041        # It is most probably a Windows format PATH.
17042        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17043      else
17044        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17045      fi
17046      # FIXME: find the short name or the path components, as spaces are
17047      # common. (e.g. "Program Files" -> "PROGRA~1")
17048      ;;
17049    esac
17050
17051    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17052    postinstall_cmds='base_file=`basename \$file`~
17053      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17054      dldir=$destdir/`dirname \$dlpath`~
17055      test -d \$dldir || mkdir -p \$dldir~
17056      $install_prog $dir/$dlname \$dldir/$dlname'
17057    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17058      dlpath=$dir/\$dldll~
17059       $RM \$dlpath'
17060    shlibpath_overrides_runpath=yes
17061    dynamic_linker='Win32 link.exe'
17062    ;;
17063
17064  *)
17065    # Assume MSVC wrapper
17066    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17067    dynamic_linker='Win32 ld.exe'
17068    ;;
17069  esac
17070  # FIXME: first we should search . and the directory the executable is in
17071  shlibpath_var=PATH
17072  ;;
17073
17074darwin* | rhapsody*)
17075  dynamic_linker="$host_os dyld"
17076  version_type=darwin
17077  need_lib_prefix=no
17078  need_version=no
17079  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17080  soname_spec='$libname$release$major$shared_ext'
17081  shlibpath_overrides_runpath=yes
17082  shlibpath_var=DYLD_LIBRARY_PATH
17083  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17084
17085  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17086  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17087  ;;
17088
17089dgux*)
17090  version_type=linux # correct to gnu/linux during the next big refactor
17091  need_lib_prefix=no
17092  need_version=no
17093  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17094  soname_spec='$libname$release$shared_ext$major'
17095  shlibpath_var=LD_LIBRARY_PATH
17096  ;;
17097
17098freebsd* | dragonfly*)
17099  # DragonFly does not have aout.  When/if they implement a new
17100  # versioning mechanism, adjust this.
17101  if test -x /usr/bin/objformat; then
17102    objformat=`/usr/bin/objformat`
17103  else
17104    case $host_os in
17105    freebsd[23].*) objformat=aout ;;
17106    *) objformat=elf ;;
17107    esac
17108  fi
17109  version_type=freebsd-$objformat
17110  case $version_type in
17111    freebsd-elf*)
17112      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17113      soname_spec='$libname$release$shared_ext$major'
17114      need_version=no
17115      need_lib_prefix=no
17116      ;;
17117    freebsd-*)
17118      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17119      need_version=yes
17120      ;;
17121  esac
17122  shlibpath_var=LD_LIBRARY_PATH
17123  case $host_os in
17124  freebsd2.*)
17125    shlibpath_overrides_runpath=yes
17126    ;;
17127  freebsd3.[01]* | freebsdelf3.[01]*)
17128    shlibpath_overrides_runpath=yes
17129    hardcode_into_libs=yes
17130    ;;
17131  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17132  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17133    shlibpath_overrides_runpath=no
17134    hardcode_into_libs=yes
17135    ;;
17136  *) # from 4.6 on, and DragonFly
17137    shlibpath_overrides_runpath=yes
17138    hardcode_into_libs=yes
17139    ;;
17140  esac
17141  ;;
17142
17143haiku*)
17144  version_type=linux # correct to gnu/linux during the next big refactor
17145  need_lib_prefix=no
17146  need_version=no
17147  dynamic_linker="$host_os runtime_loader"
17148  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17149  soname_spec='$libname$release$shared_ext$major'
17150  shlibpath_var=LIBRARY_PATH
17151  shlibpath_overrides_runpath=no
17152  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17153  hardcode_into_libs=yes
17154  ;;
17155
17156hpux9* | hpux10* | hpux11*)
17157  # Give a soname corresponding to the major version so that dld.sl refuses to
17158  # link against other versions.
17159  version_type=sunos
17160  need_lib_prefix=no
17161  need_version=no
17162  case $host_cpu in
17163  ia64*)
17164    shrext_cmds='.so'
17165    hardcode_into_libs=yes
17166    dynamic_linker="$host_os dld.so"
17167    shlibpath_var=LD_LIBRARY_PATH
17168    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17169    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17170    soname_spec='$libname$release$shared_ext$major'
17171    if test 32 = "$HPUX_IA64_MODE"; then
17172      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17173      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17174    else
17175      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17176      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17177    fi
17178    ;;
17179  hppa*64*)
17180    shrext_cmds='.sl'
17181    hardcode_into_libs=yes
17182    dynamic_linker="$host_os dld.sl"
17183    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17184    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17185    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17186    soname_spec='$libname$release$shared_ext$major'
17187    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17188    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17189    ;;
17190  *)
17191    shrext_cmds='.sl'
17192    dynamic_linker="$host_os dld.sl"
17193    shlibpath_var=SHLIB_PATH
17194    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17195    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17196    soname_spec='$libname$release$shared_ext$major'
17197    ;;
17198  esac
17199  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17200  postinstall_cmds='chmod 555 $lib'
17201  # or fails outright, so override atomically:
17202  install_override_mode=555
17203  ;;
17204
17205interix[3-9]*)
17206  version_type=linux # correct to gnu/linux during the next big refactor
17207  need_lib_prefix=no
17208  need_version=no
17209  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17210  soname_spec='$libname$release$shared_ext$major'
17211  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17212  shlibpath_var=LD_LIBRARY_PATH
17213  shlibpath_overrides_runpath=no
17214  hardcode_into_libs=yes
17215  ;;
17216
17217irix5* | irix6* | nonstopux*)
17218  case $host_os in
17219    nonstopux*) version_type=nonstopux ;;
17220    *)
17221	if test yes = "$lt_cv_prog_gnu_ld"; then
17222		version_type=linux # correct to gnu/linux during the next big refactor
17223	else
17224		version_type=irix
17225	fi ;;
17226  esac
17227  need_lib_prefix=no
17228  need_version=no
17229  soname_spec='$libname$release$shared_ext$major'
17230  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17231  case $host_os in
17232  irix5* | nonstopux*)
17233    libsuff= shlibsuff=
17234    ;;
17235  *)
17236    case $LD in # libtool.m4 will add one of these switches to LD
17237    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17238      libsuff= shlibsuff= libmagic=32-bit;;
17239    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17240      libsuff=32 shlibsuff=N32 libmagic=N32;;
17241    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17242      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17243    *) libsuff= shlibsuff= libmagic=never-match;;
17244    esac
17245    ;;
17246  esac
17247  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17248  shlibpath_overrides_runpath=no
17249  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17250  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17251  hardcode_into_libs=yes
17252  ;;
17253
17254# No shared lib support for Linux oldld, aout, or coff.
17255linux*oldld* | linux*aout* | linux*coff*)
17256  dynamic_linker=no
17257  ;;
17258
17259linux*android*)
17260  version_type=none # Android doesn't support versioned libraries.
17261  need_lib_prefix=no
17262  need_version=no
17263  library_names_spec='$libname$release$shared_ext'
17264  soname_spec='$libname$release$shared_ext'
17265  finish_cmds=
17266  shlibpath_var=LD_LIBRARY_PATH
17267  shlibpath_overrides_runpath=yes
17268
17269  # This implies no fast_install, which is unacceptable.
17270  # Some rework will be needed to allow for fast_install
17271  # before this can be enabled.
17272  hardcode_into_libs=yes
17273
17274  dynamic_linker='Android linker'
17275  # Don't embed -rpath directories since the linker doesn't support them.
17276  hardcode_libdir_flag_spec='-L$libdir'
17277  ;;
17278
17279# This must be glibc/ELF.
17280linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17281  version_type=linux # correct to gnu/linux during the next big refactor
17282  need_lib_prefix=no
17283  need_version=no
17284  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17285  soname_spec='$libname$release$shared_ext$major'
17286  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17287  shlibpath_var=LD_LIBRARY_PATH
17288  shlibpath_overrides_runpath=no
17289
17290  # Some binutils ld are patched to set DT_RUNPATH
17291  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17292  $as_echo_n "(cached) " >&6
17293else
17294  lt_cv_shlibpath_overrides_runpath=no
17295    save_LDFLAGS=$LDFLAGS
17296    save_libdir=$libdir
17297    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17298	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17299    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17300/* end confdefs.h.  */
17301
17302int
17303main ()
17304{
17305
17306  ;
17307  return 0;
17308}
17309_ACEOF
17310if ac_fn_c_try_link "$LINENO"; then :
17311  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17312  lt_cv_shlibpath_overrides_runpath=yes
17313fi
17314fi
17315rm -f core conftest.err conftest.$ac_objext \
17316    conftest$ac_exeext conftest.$ac_ext
17317    LDFLAGS=$save_LDFLAGS
17318    libdir=$save_libdir
17319
17320fi
17321
17322  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17323
17324  # This implies no fast_install, which is unacceptable.
17325  # Some rework will be needed to allow for fast_install
17326  # before this can be enabled.
17327  hardcode_into_libs=yes
17328
17329  # Ideally, we could use ldconfig to report *all* directores which are
17330  # searched for libraries, however this is still not possible.  Aside from not
17331  # being certain /sbin/ldconfig is available, command
17332  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17333  # even though it is searched at run-time.  Try to do the best guess by
17334  # appending ld.so.conf contents (and includes) to the search path.
17335  if test -f /etc/ld.so.conf; then
17336    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' ' '`
17337    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17338  fi
17339
17340  # We used to test for /lib/ld.so.1 and disable shared libraries on
17341  # powerpc, because MkLinux only supported shared libraries with the
17342  # GNU dynamic linker.  Since this was broken with cross compilers,
17343  # most powerpc-linux boxes support dynamic linking these days and
17344  # people can always --disable-shared, the test was removed, and we
17345  # assume the GNU/Linux dynamic linker is in use.
17346  dynamic_linker='GNU/Linux ld.so'
17347  ;;
17348
17349netbsdelf*-gnu)
17350  version_type=linux
17351  need_lib_prefix=no
17352  need_version=no
17353  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17354  soname_spec='${libname}${release}${shared_ext}$major'
17355  shlibpath_var=LD_LIBRARY_PATH
17356  shlibpath_overrides_runpath=no
17357  hardcode_into_libs=yes
17358  dynamic_linker='NetBSD ld.elf_so'
17359  ;;
17360
17361netbsd*)
17362  version_type=sunos
17363  need_lib_prefix=no
17364  need_version=no
17365  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17366    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17367    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17368    dynamic_linker='NetBSD (a.out) ld.so'
17369  else
17370    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17371    soname_spec='$libname$release$shared_ext$major'
17372    dynamic_linker='NetBSD ld.elf_so'
17373  fi
17374  shlibpath_var=LD_LIBRARY_PATH
17375  shlibpath_overrides_runpath=yes
17376  hardcode_into_libs=yes
17377  ;;
17378
17379newsos6)
17380  version_type=linux # correct to gnu/linux during the next big refactor
17381  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17382  shlibpath_var=LD_LIBRARY_PATH
17383  shlibpath_overrides_runpath=yes
17384  ;;
17385
17386*nto* | *qnx*)
17387  version_type=qnx
17388  need_lib_prefix=no
17389  need_version=no
17390  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17391  soname_spec='$libname$release$shared_ext$major'
17392  shlibpath_var=LD_LIBRARY_PATH
17393  shlibpath_overrides_runpath=no
17394  hardcode_into_libs=yes
17395  dynamic_linker='ldqnx.so'
17396  ;;
17397
17398openbsd* | bitrig*)
17399  version_type=sunos
17400  sys_lib_dlsearch_path_spec=/usr/lib
17401  need_lib_prefix=no
17402  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17403    need_version=no
17404  else
17405    need_version=yes
17406  fi
17407  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17408  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17409  shlibpath_var=LD_LIBRARY_PATH
17410  shlibpath_overrides_runpath=yes
17411  ;;
17412
17413os2*)
17414  libname_spec='$name'
17415  version_type=windows
17416  shrext_cmds=.dll
17417  need_version=no
17418  need_lib_prefix=no
17419  # OS/2 can only load a DLL with a base name of 8 characters or less.
17420  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17421    v=$($ECHO $release$versuffix | tr -d .-);
17422    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17423    $ECHO $n$v`$shared_ext'
17424  library_names_spec='${libname}_dll.$libext'
17425  dynamic_linker='OS/2 ld.exe'
17426  shlibpath_var=BEGINLIBPATH
17427  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17428  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17429  postinstall_cmds='base_file=`basename \$file`~
17430    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17431    dldir=$destdir/`dirname \$dlpath`~
17432    test -d \$dldir || mkdir -p \$dldir~
17433    $install_prog $dir/$dlname \$dldir/$dlname~
17434    chmod a+x \$dldir/$dlname~
17435    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17436      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17437    fi'
17438  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17439    dlpath=$dir/\$dldll~
17440    $RM \$dlpath'
17441  ;;
17442
17443osf3* | osf4* | osf5*)
17444  version_type=osf
17445  need_lib_prefix=no
17446  need_version=no
17447  soname_spec='$libname$release$shared_ext$major'
17448  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17449  shlibpath_var=LD_LIBRARY_PATH
17450  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17451  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17452  ;;
17453
17454rdos*)
17455  dynamic_linker=no
17456  ;;
17457
17458solaris*)
17459  version_type=linux # correct to gnu/linux during the next big refactor
17460  need_lib_prefix=no
17461  need_version=no
17462  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17463  soname_spec='$libname$release$shared_ext$major'
17464  shlibpath_var=LD_LIBRARY_PATH
17465  shlibpath_overrides_runpath=yes
17466  hardcode_into_libs=yes
17467  # ldd complains unless libraries are executable
17468  postinstall_cmds='chmod +x $lib'
17469  ;;
17470
17471sunos4*)
17472  version_type=sunos
17473  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17474  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17475  shlibpath_var=LD_LIBRARY_PATH
17476  shlibpath_overrides_runpath=yes
17477  if test yes = "$with_gnu_ld"; then
17478    need_lib_prefix=no
17479  fi
17480  need_version=yes
17481  ;;
17482
17483sysv4 | sysv4.3*)
17484  version_type=linux # correct to gnu/linux during the next big refactor
17485  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17486  soname_spec='$libname$release$shared_ext$major'
17487  shlibpath_var=LD_LIBRARY_PATH
17488  case $host_vendor in
17489    sni)
17490      shlibpath_overrides_runpath=no
17491      need_lib_prefix=no
17492      runpath_var=LD_RUN_PATH
17493      ;;
17494    siemens)
17495      need_lib_prefix=no
17496      ;;
17497    motorola)
17498      need_lib_prefix=no
17499      need_version=no
17500      shlibpath_overrides_runpath=no
17501      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17502      ;;
17503  esac
17504  ;;
17505
17506sysv4*MP*)
17507  if test -d /usr/nec; then
17508    version_type=linux # correct to gnu/linux during the next big refactor
17509    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17510    soname_spec='$libname$shared_ext.$major'
17511    shlibpath_var=LD_LIBRARY_PATH
17512  fi
17513  ;;
17514
17515sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17516  version_type=sco
17517  need_lib_prefix=no
17518  need_version=no
17519  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17520  soname_spec='$libname$release$shared_ext$major'
17521  shlibpath_var=LD_LIBRARY_PATH
17522  shlibpath_overrides_runpath=yes
17523  hardcode_into_libs=yes
17524  if test yes = "$with_gnu_ld"; then
17525    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17526  else
17527    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17528    case $host_os in
17529      sco3.2v5*)
17530        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17531	;;
17532    esac
17533  fi
17534  sys_lib_dlsearch_path_spec='/usr/lib'
17535  ;;
17536
17537tpf*)
17538  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17539  version_type=linux # correct to gnu/linux during the next big refactor
17540  need_lib_prefix=no
17541  need_version=no
17542  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17543  shlibpath_var=LD_LIBRARY_PATH
17544  shlibpath_overrides_runpath=no
17545  hardcode_into_libs=yes
17546  ;;
17547
17548uts4*)
17549  version_type=linux # correct to gnu/linux during the next big refactor
17550  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17551  soname_spec='$libname$release$shared_ext$major'
17552  shlibpath_var=LD_LIBRARY_PATH
17553  ;;
17554
17555*)
17556  dynamic_linker=no
17557  ;;
17558esac
17559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17560$as_echo "$dynamic_linker" >&6; }
17561test no = "$dynamic_linker" && can_build_shared=no
17562
17563variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17564if test yes = "$GCC"; then
17565  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17566fi
17567
17568if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17569  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17570fi
17571
17572if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17573  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17574fi
17575
17576# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17577configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17578
17579# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17580func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17581
17582# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17583configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17682$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17683hardcode_action=
17684if test -n "$hardcode_libdir_flag_spec" ||
17685   test -n "$runpath_var" ||
17686   test yes = "$hardcode_automatic"; then
17687
17688  # We can hardcode non-existent directories.
17689  if test no != "$hardcode_direct" &&
17690     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17691     # have to relink, otherwise we might link with an installed library
17692     # when we should be linking with a yet-to-be-installed one
17693     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17694     test no != "$hardcode_minus_L"; then
17695    # Linking always hardcodes the temporary library directory.
17696    hardcode_action=relink
17697  else
17698    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17699    hardcode_action=immediate
17700  fi
17701else
17702  # We cannot hardcode anything, or else we can only hardcode existing
17703  # directories.
17704  hardcode_action=unsupported
17705fi
17706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17707$as_echo "$hardcode_action" >&6; }
17708
17709if test relink = "$hardcode_action" ||
17710   test yes = "$inherit_rpath"; then
17711  # Fast installation is not supported
17712  enable_fast_install=no
17713elif test yes = "$shlibpath_overrides_runpath" ||
17714     test no = "$enable_shared"; then
17715  # Fast installation is not necessary
17716  enable_fast_install=needless
17717fi
17718
17719
17720
17721
17722
17723
17724  if test yes != "$enable_dlopen"; then
17725  enable_dlopen=unknown
17726  enable_dlopen_self=unknown
17727  enable_dlopen_self_static=unknown
17728else
17729  lt_cv_dlopen=no
17730  lt_cv_dlopen_libs=
17731
17732  case $host_os in
17733  beos*)
17734    lt_cv_dlopen=load_add_on
17735    lt_cv_dlopen_libs=
17736    lt_cv_dlopen_self=yes
17737    ;;
17738
17739  mingw* | pw32* | cegcc*)
17740    lt_cv_dlopen=LoadLibrary
17741    lt_cv_dlopen_libs=
17742    ;;
17743
17744  cygwin*)
17745    lt_cv_dlopen=dlopen
17746    lt_cv_dlopen_libs=
17747    ;;
17748
17749  darwin*)
17750    # if libdl is installed we need to link against it
17751    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17752$as_echo_n "checking for dlopen in -ldl... " >&6; }
17753if ${ac_cv_lib_dl_dlopen+:} false; then :
17754  $as_echo_n "(cached) " >&6
17755else
17756  ac_check_lib_save_LIBS=$LIBS
17757LIBS="-ldl  $LIBS"
17758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17759/* end confdefs.h.  */
17760
17761/* Override any GCC internal prototype to avoid an error.
17762   Use char because int might match the return type of a GCC
17763   builtin and then its argument prototype would still apply.  */
17764#ifdef __cplusplus
17765extern "C"
17766#endif
17767char dlopen ();
17768int
17769main ()
17770{
17771return dlopen ();
17772  ;
17773  return 0;
17774}
17775_ACEOF
17776if ac_fn_c_try_link "$LINENO"; then :
17777  ac_cv_lib_dl_dlopen=yes
17778else
17779  ac_cv_lib_dl_dlopen=no
17780fi
17781rm -f core conftest.err conftest.$ac_objext \
17782    conftest$ac_exeext conftest.$ac_ext
17783LIBS=$ac_check_lib_save_LIBS
17784fi
17785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17786$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17787if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17788  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17789else
17790
17791    lt_cv_dlopen=dyld
17792    lt_cv_dlopen_libs=
17793    lt_cv_dlopen_self=yes
17794
17795fi
17796
17797    ;;
17798
17799  tpf*)
17800    # Don't try to run any link tests for TPF.  We know it's impossible
17801    # because TPF is a cross-compiler, and we know how we open DSOs.
17802    lt_cv_dlopen=dlopen
17803    lt_cv_dlopen_libs=
17804    lt_cv_dlopen_self=no
17805    ;;
17806
17807  *)
17808    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17809if test "x$ac_cv_func_shl_load" = xyes; then :
17810  lt_cv_dlopen=shl_load
17811else
17812  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17813$as_echo_n "checking for shl_load in -ldld... " >&6; }
17814if ${ac_cv_lib_dld_shl_load+:} false; then :
17815  $as_echo_n "(cached) " >&6
17816else
17817  ac_check_lib_save_LIBS=$LIBS
17818LIBS="-ldld  $LIBS"
17819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17820/* end confdefs.h.  */
17821
17822/* Override any GCC internal prototype to avoid an error.
17823   Use char because int might match the return type of a GCC
17824   builtin and then its argument prototype would still apply.  */
17825#ifdef __cplusplus
17826extern "C"
17827#endif
17828char shl_load ();
17829int
17830main ()
17831{
17832return shl_load ();
17833  ;
17834  return 0;
17835}
17836_ACEOF
17837if ac_fn_c_try_link "$LINENO"; then :
17838  ac_cv_lib_dld_shl_load=yes
17839else
17840  ac_cv_lib_dld_shl_load=no
17841fi
17842rm -f core conftest.err conftest.$ac_objext \
17843    conftest$ac_exeext conftest.$ac_ext
17844LIBS=$ac_check_lib_save_LIBS
17845fi
17846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17847$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17848if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17849  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17850else
17851  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17852if test "x$ac_cv_func_dlopen" = xyes; then :
17853  lt_cv_dlopen=dlopen
17854else
17855  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17856$as_echo_n "checking for dlopen in -ldl... " >&6; }
17857if ${ac_cv_lib_dl_dlopen+:} false; then :
17858  $as_echo_n "(cached) " >&6
17859else
17860  ac_check_lib_save_LIBS=$LIBS
17861LIBS="-ldl  $LIBS"
17862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17863/* end confdefs.h.  */
17864
17865/* Override any GCC internal prototype to avoid an error.
17866   Use char because int might match the return type of a GCC
17867   builtin and then its argument prototype would still apply.  */
17868#ifdef __cplusplus
17869extern "C"
17870#endif
17871char dlopen ();
17872int
17873main ()
17874{
17875return dlopen ();
17876  ;
17877  return 0;
17878}
17879_ACEOF
17880if ac_fn_c_try_link "$LINENO"; then :
17881  ac_cv_lib_dl_dlopen=yes
17882else
17883  ac_cv_lib_dl_dlopen=no
17884fi
17885rm -f core conftest.err conftest.$ac_objext \
17886    conftest$ac_exeext conftest.$ac_ext
17887LIBS=$ac_check_lib_save_LIBS
17888fi
17889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17890$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17891if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17892  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17893else
17894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17895$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17896if ${ac_cv_lib_svld_dlopen+:} false; then :
17897  $as_echo_n "(cached) " >&6
17898else
17899  ac_check_lib_save_LIBS=$LIBS
17900LIBS="-lsvld  $LIBS"
17901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17902/* end confdefs.h.  */
17903
17904/* Override any GCC internal prototype to avoid an error.
17905   Use char because int might match the return type of a GCC
17906   builtin and then its argument prototype would still apply.  */
17907#ifdef __cplusplus
17908extern "C"
17909#endif
17910char dlopen ();
17911int
17912main ()
17913{
17914return dlopen ();
17915  ;
17916  return 0;
17917}
17918_ACEOF
17919if ac_fn_c_try_link "$LINENO"; then :
17920  ac_cv_lib_svld_dlopen=yes
17921else
17922  ac_cv_lib_svld_dlopen=no
17923fi
17924rm -f core conftest.err conftest.$ac_objext \
17925    conftest$ac_exeext conftest.$ac_ext
17926LIBS=$ac_check_lib_save_LIBS
17927fi
17928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17929$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17930if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17931  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
17932else
17933  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17934$as_echo_n "checking for dld_link in -ldld... " >&6; }
17935if ${ac_cv_lib_dld_dld_link+:} false; then :
17936  $as_echo_n "(cached) " >&6
17937else
17938  ac_check_lib_save_LIBS=$LIBS
17939LIBS="-ldld  $LIBS"
17940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17941/* end confdefs.h.  */
17942
17943/* Override any GCC internal prototype to avoid an error.
17944   Use char because int might match the return type of a GCC
17945   builtin and then its argument prototype would still apply.  */
17946#ifdef __cplusplus
17947extern "C"
17948#endif
17949char dld_link ();
17950int
17951main ()
17952{
17953return dld_link ();
17954  ;
17955  return 0;
17956}
17957_ACEOF
17958if ac_fn_c_try_link "$LINENO"; then :
17959  ac_cv_lib_dld_dld_link=yes
17960else
17961  ac_cv_lib_dld_dld_link=no
17962fi
17963rm -f core conftest.err conftest.$ac_objext \
17964    conftest$ac_exeext conftest.$ac_ext
17965LIBS=$ac_check_lib_save_LIBS
17966fi
17967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17968$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17969if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17970  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
17971fi
17972
17973
17974fi
17975
17976
17977fi
17978
17979
17980fi
17981
17982
17983fi
17984
17985
17986fi
17987
17988    ;;
17989  esac
17990
17991  if test no = "$lt_cv_dlopen"; then
17992    enable_dlopen=no
17993  else
17994    enable_dlopen=yes
17995  fi
17996
17997  case $lt_cv_dlopen in
17998  dlopen)
17999    save_CPPFLAGS=$CPPFLAGS
18000    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18001
18002    save_LDFLAGS=$LDFLAGS
18003    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18004
18005    save_LIBS=$LIBS
18006    LIBS="$lt_cv_dlopen_libs $LIBS"
18007
18008    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18009$as_echo_n "checking whether a program can dlopen itself... " >&6; }
18010if ${lt_cv_dlopen_self+:} false; then :
18011  $as_echo_n "(cached) " >&6
18012else
18013  	  if test yes = "$cross_compiling"; then :
18014  lt_cv_dlopen_self=cross
18015else
18016  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18017  lt_status=$lt_dlunknown
18018  cat > conftest.$ac_ext <<_LT_EOF
18019#line $LINENO "configure"
18020#include "confdefs.h"
18021
18022#if HAVE_DLFCN_H
18023#include <dlfcn.h>
18024#endif
18025
18026#include <stdio.h>
18027
18028#ifdef RTLD_GLOBAL
18029#  define LT_DLGLOBAL		RTLD_GLOBAL
18030#else
18031#  ifdef DL_GLOBAL
18032#    define LT_DLGLOBAL		DL_GLOBAL
18033#  else
18034#    define LT_DLGLOBAL		0
18035#  endif
18036#endif
18037
18038/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18039   find out it does not work in some platform. */
18040#ifndef LT_DLLAZY_OR_NOW
18041#  ifdef RTLD_LAZY
18042#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18043#  else
18044#    ifdef DL_LAZY
18045#      define LT_DLLAZY_OR_NOW		DL_LAZY
18046#    else
18047#      ifdef RTLD_NOW
18048#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18049#      else
18050#        ifdef DL_NOW
18051#          define LT_DLLAZY_OR_NOW	DL_NOW
18052#        else
18053#          define LT_DLLAZY_OR_NOW	0
18054#        endif
18055#      endif
18056#    endif
18057#  endif
18058#endif
18059
18060/* When -fvisibility=hidden is used, assume the code has been annotated
18061   correspondingly for the symbols needed.  */
18062#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18063int fnord () __attribute__((visibility("default")));
18064#endif
18065
18066int fnord () { return 42; }
18067int main ()
18068{
18069  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18070  int status = $lt_dlunknown;
18071
18072  if (self)
18073    {
18074      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18075      else
18076        {
18077	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18078          else puts (dlerror ());
18079	}
18080      /* dlclose (self); */
18081    }
18082  else
18083    puts (dlerror ());
18084
18085  return status;
18086}
18087_LT_EOF
18088  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18089  (eval $ac_link) 2>&5
18090  ac_status=$?
18091  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18092  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18093    (./conftest; exit; ) >&5 2>/dev/null
18094    lt_status=$?
18095    case x$lt_status in
18096      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18097      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18098      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18099    esac
18100  else :
18101    # compilation failed
18102    lt_cv_dlopen_self=no
18103  fi
18104fi
18105rm -fr conftest*
18106
18107
18108fi
18109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18110$as_echo "$lt_cv_dlopen_self" >&6; }
18111
18112    if test yes = "$lt_cv_dlopen_self"; then
18113      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18114      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18115$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18116if ${lt_cv_dlopen_self_static+:} false; then :
18117  $as_echo_n "(cached) " >&6
18118else
18119  	  if test yes = "$cross_compiling"; then :
18120  lt_cv_dlopen_self_static=cross
18121else
18122  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18123  lt_status=$lt_dlunknown
18124  cat > conftest.$ac_ext <<_LT_EOF
18125#line $LINENO "configure"
18126#include "confdefs.h"
18127
18128#if HAVE_DLFCN_H
18129#include <dlfcn.h>
18130#endif
18131
18132#include <stdio.h>
18133
18134#ifdef RTLD_GLOBAL
18135#  define LT_DLGLOBAL		RTLD_GLOBAL
18136#else
18137#  ifdef DL_GLOBAL
18138#    define LT_DLGLOBAL		DL_GLOBAL
18139#  else
18140#    define LT_DLGLOBAL		0
18141#  endif
18142#endif
18143
18144/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18145   find out it does not work in some platform. */
18146#ifndef LT_DLLAZY_OR_NOW
18147#  ifdef RTLD_LAZY
18148#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18149#  else
18150#    ifdef DL_LAZY
18151#      define LT_DLLAZY_OR_NOW		DL_LAZY
18152#    else
18153#      ifdef RTLD_NOW
18154#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18155#      else
18156#        ifdef DL_NOW
18157#          define LT_DLLAZY_OR_NOW	DL_NOW
18158#        else
18159#          define LT_DLLAZY_OR_NOW	0
18160#        endif
18161#      endif
18162#    endif
18163#  endif
18164#endif
18165
18166/* When -fvisibility=hidden is used, assume the code has been annotated
18167   correspondingly for the symbols needed.  */
18168#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18169int fnord () __attribute__((visibility("default")));
18170#endif
18171
18172int fnord () { return 42; }
18173int main ()
18174{
18175  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18176  int status = $lt_dlunknown;
18177
18178  if (self)
18179    {
18180      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18181      else
18182        {
18183	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18184          else puts (dlerror ());
18185	}
18186      /* dlclose (self); */
18187    }
18188  else
18189    puts (dlerror ());
18190
18191  return status;
18192}
18193_LT_EOF
18194  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18195  (eval $ac_link) 2>&5
18196  ac_status=$?
18197  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18198  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18199    (./conftest; exit; ) >&5 2>/dev/null
18200    lt_status=$?
18201    case x$lt_status in
18202      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18203      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18204      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18205    esac
18206  else :
18207    # compilation failed
18208    lt_cv_dlopen_self_static=no
18209  fi
18210fi
18211rm -fr conftest*
18212
18213
18214fi
18215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18216$as_echo "$lt_cv_dlopen_self_static" >&6; }
18217    fi
18218
18219    CPPFLAGS=$save_CPPFLAGS
18220    LDFLAGS=$save_LDFLAGS
18221    LIBS=$save_LIBS
18222    ;;
18223  esac
18224
18225  case $lt_cv_dlopen_self in
18226  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18227  *) enable_dlopen_self=unknown ;;
18228  esac
18229
18230  case $lt_cv_dlopen_self_static in
18231  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18232  *) enable_dlopen_self_static=unknown ;;
18233  esac
18234fi
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252striplib=
18253old_striplib=
18254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18255$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18256if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18257  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18258  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18260$as_echo "yes" >&6; }
18261else
18262# FIXME - insert some real tests, host_os isn't really good enough
18263  case $host_os in
18264  darwin*)
18265    if test -n "$STRIP"; then
18266      striplib="$STRIP -x"
18267      old_striplib="$STRIP -S"
18268      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18269$as_echo "yes" >&6; }
18270    else
18271      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18272$as_echo "no" >&6; }
18273    fi
18274    ;;
18275  *)
18276    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18277$as_echo "no" >&6; }
18278    ;;
18279  esac
18280fi
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293  # Report what library types will actually be built
18294  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18295$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18297$as_echo "$can_build_shared" >&6; }
18298
18299  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18300$as_echo_n "checking whether to build shared libraries... " >&6; }
18301  test no = "$can_build_shared" && enable_shared=no
18302
18303  # On AIX, shared libraries and static libraries use the same namespace, and
18304  # are all built from PIC.
18305  case $host_os in
18306  aix3*)
18307    test yes = "$enable_shared" && enable_static=no
18308    if test -n "$RANLIB"; then
18309      archive_cmds="$archive_cmds~\$RANLIB \$lib"
18310      postinstall_cmds='$RANLIB $lib'
18311    fi
18312    ;;
18313
18314  aix[4-9]*)
18315    if test ia64 != "$host_cpu"; then
18316      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18317      yes,aix,yes) ;;			# shared object as lib.so file only
18318      yes,svr4,*) ;;			# shared object as lib.so archive member only
18319      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
18320      esac
18321    fi
18322    ;;
18323  esac
18324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18325$as_echo "$enable_shared" >&6; }
18326
18327  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18328$as_echo_n "checking whether to build static libraries... " >&6; }
18329  # Make sure either enable_shared or enable_static is yes.
18330  test yes = "$enable_shared" || enable_static=yes
18331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18332$as_echo "$enable_static" >&6; }
18333
18334
18335
18336
18337fi
18338ac_ext=c
18339ac_cpp='$CPP $CPPFLAGS'
18340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18342ac_compiler_gnu=$ac_cv_c_compiler_gnu
18343
18344CC=$lt_save_CC
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360        ac_config_commands="$ac_config_commands libtool"
18361
18362
18363
18364
18365# Only expand once:
18366
18367
18368
18369
18370
18371# Define a configure option for an alternate module directory
18372
18373# Check whether --with-xorg-module-dir was given.
18374if test "${with_xorg_module_dir+set}" = set; then :
18375  withval=$with_xorg_module_dir;  moduledir="$withval"
18376else
18377   moduledir="$libdir/xorg/modules"
18378fi
18379
18380
18381
18382# Store the list of server defined optional extensions in REQUIRED_MODULES
18383
18384
18385	SAVE_CFLAGS="$CFLAGS"
18386	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18387	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18388/* end confdefs.h.  */
18389
18390#include "xorg-server.h"
18391#if !defined RANDR
18392#error RANDR not defined
18393#endif
18394
18395int
18396main ()
18397{
18398
18399  ;
18400  return 0;
18401}
18402_ACEOF
18403if ac_fn_c_try_compile "$LINENO"; then :
18404  _EXT_CHECK=yes
18405else
18406  _EXT_CHECK=no
18407fi
18408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18409	CFLAGS="$SAVE_CFLAGS"
18410	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18411$as_echo_n "checking if RANDR is defined... " >&6; }
18412	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18413$as_echo "$_EXT_CHECK" >&6; }
18414	if test "$_EXT_CHECK" != no; then
18415		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18416	fi
18417
18418
18419
18420	SAVE_CFLAGS="$CFLAGS"
18421	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18422	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18423/* end confdefs.h.  */
18424
18425#include "xorg-server.h"
18426#if !defined RENDER
18427#error RENDER not defined
18428#endif
18429
18430int
18431main ()
18432{
18433
18434  ;
18435  return 0;
18436}
18437_ACEOF
18438if ac_fn_c_try_compile "$LINENO"; then :
18439  _EXT_CHECK=yes
18440else
18441  _EXT_CHECK=no
18442fi
18443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18444	CFLAGS="$SAVE_CFLAGS"
18445	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18446$as_echo_n "checking if RENDER is defined... " >&6; }
18447	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18448$as_echo "$_EXT_CHECK" >&6; }
18449	if test "$_EXT_CHECK" != no; then
18450		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18451	fi
18452
18453
18454
18455	SAVE_CFLAGS="$CFLAGS"
18456	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18457	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18458/* end confdefs.h.  */
18459
18460#include "xorg-server.h"
18461#if !defined DPMSExtension
18462#error DPMSExtension not defined
18463#endif
18464
18465int
18466main ()
18467{
18468
18469  ;
18470  return 0;
18471}
18472_ACEOF
18473if ac_fn_c_try_compile "$LINENO"; then :
18474  _EXT_CHECK=yes
18475else
18476  _EXT_CHECK=no
18477fi
18478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18479	CFLAGS="$SAVE_CFLAGS"
18480	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18481$as_echo_n "checking if DPMSExtension is defined... " >&6; }
18482	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18483$as_echo "$_EXT_CHECK" >&6; }
18484	if test "$_EXT_CHECK" != no; then
18485		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18486	fi
18487
18488
18489# Obtain compiler/linker options for the driver dependencies
18490
18491pkg_failed=no
18492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18493$as_echo_n "checking for XORG... " >&6; }
18494
18495if test -n "$XORG_CFLAGS"; then
18496    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18497 elif test -n "$PKG_CONFIG"; then
18498    if test -n "$PKG_CONFIG" && \
18499    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18500  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES") 2>&5
18501  ac_status=$?
18502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18503  test $ac_status = 0; }; then
18504  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18505		      test "x$?" != "x0" && pkg_failed=yes
18506else
18507  pkg_failed=yes
18508fi
18509 else
18510    pkg_failed=untried
18511fi
18512if test -n "$XORG_LIBS"; then
18513    pkg_cv_XORG_LIBS="$XORG_LIBS"
18514 elif test -n "$PKG_CONFIG"; then
18515    if test -n "$PKG_CONFIG" && \
18516    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18517  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES") 2>&5
18518  ac_status=$?
18519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18520  test $ac_status = 0; }; then
18521  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18522		      test "x$?" != "x0" && pkg_failed=yes
18523else
18524  pkg_failed=yes
18525fi
18526 else
18527    pkg_failed=untried
18528fi
18529
18530
18531
18532if test $pkg_failed = yes; then
18533   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18534$as_echo "no" >&6; }
18535
18536if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18537        _pkg_short_errors_supported=yes
18538else
18539        _pkg_short_errors_supported=no
18540fi
18541        if test $_pkg_short_errors_supported = yes; then
18542	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18543        else
18544	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18545        fi
18546	# Put the nasty error message in config.log where it belongs
18547	echo "$XORG_PKG_ERRORS" >&5
18548
18549	as_fn_error $? "Package requirements (xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES) were not met:
18550
18551$XORG_PKG_ERRORS
18552
18553Consider adjusting the PKG_CONFIG_PATH environment variable if you
18554installed software in a non-standard prefix.
18555
18556Alternatively, you may set the environment variables XORG_CFLAGS
18557and XORG_LIBS to avoid the need to call pkg-config.
18558See the pkg-config man page for more details." "$LINENO" 5
18559elif test $pkg_failed = untried; then
18560     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18561$as_echo "no" >&6; }
18562	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18564as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18565is in your PATH or set the PKG_CONFIG environment variable to the full
18566path to pkg-config.
18567
18568Alternatively, you may set the environment variables XORG_CFLAGS
18569and XORG_LIBS to avoid the need to call pkg-config.
18570See the pkg-config man page for more details.
18571
18572To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18573See \`config.log' for more details" "$LINENO" 5; }
18574else
18575	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18576	XORG_LIBS=$pkg_cv_XORG_LIBS
18577        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18578$as_echo "yes" >&6; }
18579
18580fi
18581
18582pkg_failed=no
18583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18584$as_echo_n "checking for XEXT... " >&6; }
18585
18586if test -n "$XEXT_CFLAGS"; then
18587    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18588 elif test -n "$PKG_CONFIG"; then
18589    if test -n "$PKG_CONFIG" && \
18590    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18591  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18592  ac_status=$?
18593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18594  test $ac_status = 0; }; then
18595  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18596		      test "x$?" != "x0" && pkg_failed=yes
18597else
18598  pkg_failed=yes
18599fi
18600 else
18601    pkg_failed=untried
18602fi
18603if test -n "$XEXT_LIBS"; then
18604    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18605 elif test -n "$PKG_CONFIG"; then
18606    if test -n "$PKG_CONFIG" && \
18607    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18608  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18609  ac_status=$?
18610  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18611  test $ac_status = 0; }; then
18612  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18613		      test "x$?" != "x0" && pkg_failed=yes
18614else
18615  pkg_failed=yes
18616fi
18617 else
18618    pkg_failed=untried
18619fi
18620
18621
18622
18623if test $pkg_failed = yes; then
18624   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18625$as_echo "no" >&6; }
18626
18627if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18628        _pkg_short_errors_supported=yes
18629else
18630        _pkg_short_errors_supported=no
18631fi
18632        if test $_pkg_short_errors_supported = yes; then
18633	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18634        else
18635	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18636        fi
18637	# Put the nasty error message in config.log where it belongs
18638	echo "$XEXT_PKG_ERRORS" >&5
18639
18640	HAVE_XEXTPROTO_71="no"
18641elif test $pkg_failed = untried; then
18642     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18643$as_echo "no" >&6; }
18644	HAVE_XEXTPROTO_71="no"
18645else
18646	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18647	XEXT_LIBS=$pkg_cv_XEXT_LIBS
18648        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18649$as_echo "yes" >&6; }
18650	HAVE_XEXTPROTO_71="yes"
18651fi
18652
18653if test "x$HAVE_XEXTPROTO_71" = xyes; then
18654
18655$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18656
18657fi
18658
18659save_CFLAGS="$CFLAGS"
18660CFLAGS="$XORG_CFLAGS"
18661ac_fn_c_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\"
18662"
18663if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes; then :
18664
18665$as_echo "#define HAVE_ISA 1" >>confdefs.h
18666
18667fi
18668
18669CFLAGS="$save_CFLAGS"
18670
18671save_CFLAGS="$CFLAGS"
18672CFLAGS="$XORG_CFLAGS"
18673ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18674"
18675if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18676  XSERVER_LIBPCIACCESS=yes
18677else
18678  XSERVER_LIBPCIACCESS=no
18679fi
18680
18681CFLAGS="$save_CFLAGS"
18682
18683if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18684
18685pkg_failed=no
18686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18687$as_echo_n "checking for PCIACCESS... " >&6; }
18688
18689if test -n "$PCIACCESS_CFLAGS"; then
18690    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18691 elif test -n "$PKG_CONFIG"; then
18692    if test -n "$PKG_CONFIG" && \
18693    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
18694  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
18695  ac_status=$?
18696  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18697  test $ac_status = 0; }; then
18698  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null`
18699		      test "x$?" != "x0" && pkg_failed=yes
18700else
18701  pkg_failed=yes
18702fi
18703 else
18704    pkg_failed=untried
18705fi
18706if test -n "$PCIACCESS_LIBS"; then
18707    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18708 elif test -n "$PKG_CONFIG"; then
18709    if test -n "$PKG_CONFIG" && \
18710    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
18711  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
18712  ac_status=$?
18713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18714  test $ac_status = 0; }; then
18715  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null`
18716		      test "x$?" != "x0" && pkg_failed=yes
18717else
18718  pkg_failed=yes
18719fi
18720 else
18721    pkg_failed=untried
18722fi
18723
18724
18725
18726if test $pkg_failed = yes; then
18727   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18728$as_echo "no" >&6; }
18729
18730if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18731        _pkg_short_errors_supported=yes
18732else
18733        _pkg_short_errors_supported=no
18734fi
18735        if test $_pkg_short_errors_supported = yes; then
18736	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
18737        else
18738	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
18739        fi
18740	# Put the nasty error message in config.log where it belongs
18741	echo "$PCIACCESS_PKG_ERRORS" >&5
18742
18743	as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met:
18744
18745$PCIACCESS_PKG_ERRORS
18746
18747Consider adjusting the PKG_CONFIG_PATH environment variable if you
18748installed software in a non-standard prefix.
18749
18750Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18751and PCIACCESS_LIBS to avoid the need to call pkg-config.
18752See the pkg-config man page for more details." "$LINENO" 5
18753elif test $pkg_failed = untried; then
18754     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18755$as_echo "no" >&6; }
18756	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18757$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18758as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18759is in your PATH or set the PKG_CONFIG environment variable to the full
18760path to pkg-config.
18761
18762Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18763and PCIACCESS_LIBS to avoid the need to call pkg-config.
18764See the pkg-config man page for more details.
18765
18766To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18767See \`config.log' for more details" "$LINENO" 5; }
18768else
18769	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18770	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18771        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18772$as_echo "yes" >&6; }
18773
18774fi
18775fi
18776
18777# Checks for libraries.
18778
18779DRIVER_NAME=vboxvideo
18780
18781
18782ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18783
18784cat >confcache <<\_ACEOF
18785# This file is a shell script that caches the results of configure
18786# tests run on this system so they can be shared between configure
18787# scripts and configure runs, see configure's option --config-cache.
18788# It is not useful on other systems.  If it contains results you don't
18789# want to keep, you may remove or edit it.
18790#
18791# config.status only pays attention to the cache file if you give it
18792# the --recheck option to rerun configure.
18793#
18794# `ac_cv_env_foo' variables (set or unset) will be overridden when
18795# loading this file, other *unset* `ac_cv_foo' will be assigned the
18796# following values.
18797
18798_ACEOF
18799
18800# The following way of writing the cache mishandles newlines in values,
18801# but we know of no workaround that is simple, portable, and efficient.
18802# So, we kill variables containing newlines.
18803# Ultrix sh set writes to stderr and can't be redirected directly,
18804# and sets the high bit in the cache file unless we assign to the vars.
18805(
18806  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18807    eval ac_val=\$$ac_var
18808    case $ac_val in #(
18809    *${as_nl}*)
18810      case $ac_var in #(
18811      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18812$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18813      esac
18814      case $ac_var in #(
18815      _ | IFS | as_nl) ;; #(
18816      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18817      *) { eval $ac_var=; unset $ac_var;} ;;
18818      esac ;;
18819    esac
18820  done
18821
18822  (set) 2>&1 |
18823    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18824    *${as_nl}ac_space=\ *)
18825      # `set' does not quote correctly, so add quotes: double-quote
18826      # substitution turns \\\\ into \\, and sed turns \\ into \.
18827      sed -n \
18828	"s/'/'\\\\''/g;
18829	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18830      ;; #(
18831    *)
18832      # `set' quotes correctly as required by POSIX, so do not add quotes.
18833      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18834      ;;
18835    esac |
18836    sort
18837) |
18838  sed '
18839     /^ac_cv_env_/b end
18840     t clear
18841     :clear
18842     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18843     t end
18844     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18845     :end' >>confcache
18846if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18847  if test -w "$cache_file"; then
18848    if test "x$cache_file" != "x/dev/null"; then
18849      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18850$as_echo "$as_me: updating cache $cache_file" >&6;}
18851      if test ! -f "$cache_file" || test -h "$cache_file"; then
18852	cat confcache >"$cache_file"
18853      else
18854        case $cache_file in #(
18855        */* | ?:*)
18856	  mv -f confcache "$cache_file"$$ &&
18857	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18858        *)
18859	  mv -f confcache "$cache_file" ;;
18860	esac
18861      fi
18862    fi
18863  else
18864    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18865$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18866  fi
18867fi
18868rm -f confcache
18869
18870test "x$prefix" = xNONE && prefix=$ac_default_prefix
18871# Let make expand exec_prefix.
18872test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18873
18874DEFS=-DHAVE_CONFIG_H
18875
18876ac_libobjs=
18877ac_ltlibobjs=
18878U=
18879for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18880  # 1. Remove the extension, and $U if already installed.
18881  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18882  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18883  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18884  #    will be set to the directory where LIBOBJS objects are built.
18885  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18886  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18887done
18888LIBOBJS=$ac_libobjs
18889
18890LTLIBOBJS=$ac_ltlibobjs
18891
18892
18893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18894$as_echo_n "checking that generated files are newer than configure... " >&6; }
18895   if test -n "$am_sleep_pid"; then
18896     # Hide warnings about reused PIDs.
18897     wait $am_sleep_pid 2>/dev/null
18898   fi
18899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18900$as_echo "done" >&6; }
18901 if test -n "$EXEEXT"; then
18902  am__EXEEXT_TRUE=
18903  am__EXEEXT_FALSE='#'
18904else
18905  am__EXEEXT_TRUE='#'
18906  am__EXEEXT_FALSE=
18907fi
18908
18909if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18910  as_fn_error $? "conditional \"AMDEP\" was never defined.
18911Usually this means the macro was only invoked conditionally." "$LINENO" 5
18912fi
18913if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18914  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18915Usually this means the macro was only invoked conditionally." "$LINENO" 5
18916fi
18917
18918: "${CONFIG_STATUS=./config.status}"
18919ac_write_fail=0
18920ac_clean_files_save=$ac_clean_files
18921ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18922{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18923$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18924as_write_fail=0
18925cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18926#! $SHELL
18927# Generated by $as_me.
18928# Run this file to recreate the current configuration.
18929# Compiler output produced by configure, useful for debugging
18930# configure, is in config.log if it exists.
18931
18932debug=false
18933ac_cs_recheck=false
18934ac_cs_silent=false
18935
18936SHELL=\${CONFIG_SHELL-$SHELL}
18937export SHELL
18938_ASEOF
18939cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18940## -------------------- ##
18941## M4sh Initialization. ##
18942## -------------------- ##
18943
18944# Be more Bourne compatible
18945DUALCASE=1; export DUALCASE # for MKS sh
18946if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18947  emulate sh
18948  NULLCMD=:
18949  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18950  # is contrary to our usage.  Disable this feature.
18951  alias -g '${1+"$@"}'='"$@"'
18952  setopt NO_GLOB_SUBST
18953else
18954  case `(set -o) 2>/dev/null` in #(
18955  *posix*) :
18956    set -o posix ;; #(
18957  *) :
18958     ;;
18959esac
18960fi
18961
18962
18963as_nl='
18964'
18965export as_nl
18966# Printing a long string crashes Solaris 7 /usr/bin/printf.
18967as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18968as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18969as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18970# Prefer a ksh shell builtin over an external printf program on Solaris,
18971# but without wasting forks for bash or zsh.
18972if test -z "$BASH_VERSION$ZSH_VERSION" \
18973    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18974  as_echo='print -r --'
18975  as_echo_n='print -rn --'
18976elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18977  as_echo='printf %s\n'
18978  as_echo_n='printf %s'
18979else
18980  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18981    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18982    as_echo_n='/usr/ucb/echo -n'
18983  else
18984    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18985    as_echo_n_body='eval
18986      arg=$1;
18987      case $arg in #(
18988      *"$as_nl"*)
18989	expr "X$arg" : "X\\(.*\\)$as_nl";
18990	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18991      esac;
18992      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18993    '
18994    export as_echo_n_body
18995    as_echo_n='sh -c $as_echo_n_body as_echo'
18996  fi
18997  export as_echo_body
18998  as_echo='sh -c $as_echo_body as_echo'
18999fi
19000
19001# The user is always right.
19002if test "${PATH_SEPARATOR+set}" != set; then
19003  PATH_SEPARATOR=:
19004  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19005    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19006      PATH_SEPARATOR=';'
19007  }
19008fi
19009
19010
19011# IFS
19012# We need space, tab and new line, in precisely that order.  Quoting is
19013# there to prevent editors from complaining about space-tab.
19014# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19015# splitting by setting IFS to empty value.)
19016IFS=" ""	$as_nl"
19017
19018# Find who we are.  Look in the path if we contain no directory separator.
19019as_myself=
19020case $0 in #((
19021  *[\\/]* ) as_myself=$0 ;;
19022  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19023for as_dir in $PATH
19024do
19025  IFS=$as_save_IFS
19026  test -z "$as_dir" && as_dir=.
19027    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19028  done
19029IFS=$as_save_IFS
19030
19031     ;;
19032esac
19033# We did not find ourselves, most probably we were run as `sh COMMAND'
19034# in which case we are not to be found in the path.
19035if test "x$as_myself" = x; then
19036  as_myself=$0
19037fi
19038if test ! -f "$as_myself"; then
19039  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19040  exit 1
19041fi
19042
19043# Unset variables that we do not need and which cause bugs (e.g. in
19044# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19045# suppresses any "Segmentation fault" message there.  '((' could
19046# trigger a bug in pdksh 5.2.14.
19047for as_var in BASH_ENV ENV MAIL MAILPATH
19048do eval test x\${$as_var+set} = xset \
19049  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19050done
19051PS1='$ '
19052PS2='> '
19053PS4='+ '
19054
19055# NLS nuisances.
19056LC_ALL=C
19057export LC_ALL
19058LANGUAGE=C
19059export LANGUAGE
19060
19061# CDPATH.
19062(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19063
19064
19065# as_fn_error STATUS ERROR [LINENO LOG_FD]
19066# ----------------------------------------
19067# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19068# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19069# script with STATUS, using 1 if that was 0.
19070as_fn_error ()
19071{
19072  as_status=$1; test $as_status -eq 0 && as_status=1
19073  if test "$4"; then
19074    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19075    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19076  fi
19077  $as_echo "$as_me: error: $2" >&2
19078  as_fn_exit $as_status
19079} # as_fn_error
19080
19081
19082# as_fn_set_status STATUS
19083# -----------------------
19084# Set $? to STATUS, without forking.
19085as_fn_set_status ()
19086{
19087  return $1
19088} # as_fn_set_status
19089
19090# as_fn_exit STATUS
19091# -----------------
19092# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19093as_fn_exit ()
19094{
19095  set +e
19096  as_fn_set_status $1
19097  exit $1
19098} # as_fn_exit
19099
19100# as_fn_unset VAR
19101# ---------------
19102# Portably unset VAR.
19103as_fn_unset ()
19104{
19105  { eval $1=; unset $1;}
19106}
19107as_unset=as_fn_unset
19108# as_fn_append VAR VALUE
19109# ----------------------
19110# Append the text in VALUE to the end of the definition contained in VAR. Take
19111# advantage of any shell optimizations that allow amortized linear growth over
19112# repeated appends, instead of the typical quadratic growth present in naive
19113# implementations.
19114if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19115  eval 'as_fn_append ()
19116  {
19117    eval $1+=\$2
19118  }'
19119else
19120  as_fn_append ()
19121  {
19122    eval $1=\$$1\$2
19123  }
19124fi # as_fn_append
19125
19126# as_fn_arith ARG...
19127# ------------------
19128# Perform arithmetic evaluation on the ARGs, and store the result in the
19129# global $as_val. Take advantage of shells that can avoid forks. The arguments
19130# must be portable across $(()) and expr.
19131if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19132  eval 'as_fn_arith ()
19133  {
19134    as_val=$(( $* ))
19135  }'
19136else
19137  as_fn_arith ()
19138  {
19139    as_val=`expr "$@" || test $? -eq 1`
19140  }
19141fi # as_fn_arith
19142
19143
19144if expr a : '\(a\)' >/dev/null 2>&1 &&
19145   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19146  as_expr=expr
19147else
19148  as_expr=false
19149fi
19150
19151if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19152  as_basename=basename
19153else
19154  as_basename=false
19155fi
19156
19157if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19158  as_dirname=dirname
19159else
19160  as_dirname=false
19161fi
19162
19163as_me=`$as_basename -- "$0" ||
19164$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19165	 X"$0" : 'X\(//\)$' \| \
19166	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19167$as_echo X/"$0" |
19168    sed '/^.*\/\([^/][^/]*\)\/*$/{
19169	    s//\1/
19170	    q
19171	  }
19172	  /^X\/\(\/\/\)$/{
19173	    s//\1/
19174	    q
19175	  }
19176	  /^X\/\(\/\).*/{
19177	    s//\1/
19178	    q
19179	  }
19180	  s/.*/./; q'`
19181
19182# Avoid depending upon Character Ranges.
19183as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19184as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19185as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19186as_cr_digits='0123456789'
19187as_cr_alnum=$as_cr_Letters$as_cr_digits
19188
19189ECHO_C= ECHO_N= ECHO_T=
19190case `echo -n x` in #(((((
19191-n*)
19192  case `echo 'xy\c'` in
19193  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19194  xy)  ECHO_C='\c';;
19195  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19196       ECHO_T='	';;
19197  esac;;
19198*)
19199  ECHO_N='-n';;
19200esac
19201
19202rm -f conf$$ conf$$.exe conf$$.file
19203if test -d conf$$.dir; then
19204  rm -f conf$$.dir/conf$$.file
19205else
19206  rm -f conf$$.dir
19207  mkdir conf$$.dir 2>/dev/null
19208fi
19209if (echo >conf$$.file) 2>/dev/null; then
19210  if ln -s conf$$.file conf$$ 2>/dev/null; then
19211    as_ln_s='ln -s'
19212    # ... but there are two gotchas:
19213    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19214    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19215    # In both cases, we have to default to `cp -pR'.
19216    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19217      as_ln_s='cp -pR'
19218  elif ln conf$$.file conf$$ 2>/dev/null; then
19219    as_ln_s=ln
19220  else
19221    as_ln_s='cp -pR'
19222  fi
19223else
19224  as_ln_s='cp -pR'
19225fi
19226rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19227rmdir conf$$.dir 2>/dev/null
19228
19229
19230# as_fn_mkdir_p
19231# -------------
19232# Create "$as_dir" as a directory, including parents if necessary.
19233as_fn_mkdir_p ()
19234{
19235
19236  case $as_dir in #(
19237  -*) as_dir=./$as_dir;;
19238  esac
19239  test -d "$as_dir" || eval $as_mkdir_p || {
19240    as_dirs=
19241    while :; do
19242      case $as_dir in #(
19243      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19244      *) as_qdir=$as_dir;;
19245      esac
19246      as_dirs="'$as_qdir' $as_dirs"
19247      as_dir=`$as_dirname -- "$as_dir" ||
19248$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19249	 X"$as_dir" : 'X\(//\)[^/]' \| \
19250	 X"$as_dir" : 'X\(//\)$' \| \
19251	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19252$as_echo X"$as_dir" |
19253    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19254	    s//\1/
19255	    q
19256	  }
19257	  /^X\(\/\/\)[^/].*/{
19258	    s//\1/
19259	    q
19260	  }
19261	  /^X\(\/\/\)$/{
19262	    s//\1/
19263	    q
19264	  }
19265	  /^X\(\/\).*/{
19266	    s//\1/
19267	    q
19268	  }
19269	  s/.*/./; q'`
19270      test -d "$as_dir" && break
19271    done
19272    test -z "$as_dirs" || eval "mkdir $as_dirs"
19273  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19274
19275
19276} # as_fn_mkdir_p
19277if mkdir -p . 2>/dev/null; then
19278  as_mkdir_p='mkdir -p "$as_dir"'
19279else
19280  test -d ./-p && rmdir ./-p
19281  as_mkdir_p=false
19282fi
19283
19284
19285# as_fn_executable_p FILE
19286# -----------------------
19287# Test if FILE is an executable regular file.
19288as_fn_executable_p ()
19289{
19290  test -f "$1" && test -x "$1"
19291} # as_fn_executable_p
19292as_test_x='test -x'
19293as_executable_p=as_fn_executable_p
19294
19295# Sed expression to map a string onto a valid CPP name.
19296as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19297
19298# Sed expression to map a string onto a valid variable name.
19299as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19300
19301
19302exec 6>&1
19303## ----------------------------------- ##
19304## Main body of $CONFIG_STATUS script. ##
19305## ----------------------------------- ##
19306_ASEOF
19307test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19308
19309cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19310# Save the log message, to keep $0 and so on meaningful, and to
19311# report actual input values of CONFIG_FILES etc. instead of their
19312# values after options handling.
19313ac_log="
19314This file was extended by xf86-video-vboxvideo $as_me 1.0.0, which was
19315generated by GNU Autoconf 2.69.  Invocation command line was
19316
19317  CONFIG_FILES    = $CONFIG_FILES
19318  CONFIG_HEADERS  = $CONFIG_HEADERS
19319  CONFIG_LINKS    = $CONFIG_LINKS
19320  CONFIG_COMMANDS = $CONFIG_COMMANDS
19321  $ $0 $@
19322
19323on `(hostname || uname -n) 2>/dev/null | sed 1q`
19324"
19325
19326_ACEOF
19327
19328case $ac_config_files in *"
19329"*) set x $ac_config_files; shift; ac_config_files=$*;;
19330esac
19331
19332case $ac_config_headers in *"
19333"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19334esac
19335
19336
19337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19338# Files that config.status was made for.
19339config_files="$ac_config_files"
19340config_headers="$ac_config_headers"
19341config_commands="$ac_config_commands"
19342
19343_ACEOF
19344
19345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19346ac_cs_usage="\
19347\`$as_me' instantiates files and other configuration actions
19348from templates according to the current configuration.  Unless the files
19349and actions are specified as TAGs, all are instantiated by default.
19350
19351Usage: $0 [OPTION]... [TAG]...
19352
19353  -h, --help       print this help, then exit
19354  -V, --version    print version number and configuration settings, then exit
19355      --config     print configuration, then exit
19356  -q, --quiet, --silent
19357                   do not print progress messages
19358  -d, --debug      don't remove temporary files
19359      --recheck    update $as_me by reconfiguring in the same conditions
19360      --file=FILE[:TEMPLATE]
19361                   instantiate the configuration file FILE
19362      --header=FILE[:TEMPLATE]
19363                   instantiate the configuration header FILE
19364
19365Configuration files:
19366$config_files
19367
19368Configuration headers:
19369$config_headers
19370
19371Configuration commands:
19372$config_commands
19373
19374Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19375
19376_ACEOF
19377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19378ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19379ac_cs_version="\\
19380xf86-video-vboxvideo config.status 1.0.0
19381configured by $0, generated by GNU Autoconf 2.69,
19382  with options \\"\$ac_cs_config\\"
19383
19384Copyright (C) 2012 Free Software Foundation, Inc.
19385This config.status script is free software; the Free Software Foundation
19386gives unlimited permission to copy, distribute and modify it."
19387
19388ac_pwd='$ac_pwd'
19389srcdir='$srcdir'
19390INSTALL='$INSTALL'
19391MKDIR_P='$MKDIR_P'
19392AWK='$AWK'
19393test -n "\$AWK" || AWK=awk
19394_ACEOF
19395
19396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19397# The default lists apply if the user does not specify any file.
19398ac_need_defaults=:
19399while test $# != 0
19400do
19401  case $1 in
19402  --*=?*)
19403    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19404    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19405    ac_shift=:
19406    ;;
19407  --*=)
19408    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19409    ac_optarg=
19410    ac_shift=:
19411    ;;
19412  *)
19413    ac_option=$1
19414    ac_optarg=$2
19415    ac_shift=shift
19416    ;;
19417  esac
19418
19419  case $ac_option in
19420  # Handling of the options.
19421  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19422    ac_cs_recheck=: ;;
19423  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19424    $as_echo "$ac_cs_version"; exit ;;
19425  --config | --confi | --conf | --con | --co | --c )
19426    $as_echo "$ac_cs_config"; exit ;;
19427  --debug | --debu | --deb | --de | --d | -d )
19428    debug=: ;;
19429  --file | --fil | --fi | --f )
19430    $ac_shift
19431    case $ac_optarg in
19432    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19433    '') as_fn_error $? "missing file argument" ;;
19434    esac
19435    as_fn_append CONFIG_FILES " '$ac_optarg'"
19436    ac_need_defaults=false;;
19437  --header | --heade | --head | --hea )
19438    $ac_shift
19439    case $ac_optarg in
19440    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19441    esac
19442    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19443    ac_need_defaults=false;;
19444  --he | --h)
19445    # Conflict between --help and --header
19446    as_fn_error $? "ambiguous option: \`$1'
19447Try \`$0 --help' for more information.";;
19448  --help | --hel | -h )
19449    $as_echo "$ac_cs_usage"; exit ;;
19450  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19451  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19452    ac_cs_silent=: ;;
19453
19454  # This is an error.
19455  -*) as_fn_error $? "unrecognized option: \`$1'
19456Try \`$0 --help' for more information." ;;
19457
19458  *) as_fn_append ac_config_targets " $1"
19459     ac_need_defaults=false ;;
19460
19461  esac
19462  shift
19463done
19464
19465ac_configure_extra_args=
19466
19467if $ac_cs_silent; then
19468  exec 6>/dev/null
19469  ac_configure_extra_args="$ac_configure_extra_args --silent"
19470fi
19471
19472_ACEOF
19473cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19474if \$ac_cs_recheck; then
19475  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19476  shift
19477  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19478  CONFIG_SHELL='$SHELL'
19479  export CONFIG_SHELL
19480  exec "\$@"
19481fi
19482
19483_ACEOF
19484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19485exec 5>>config.log
19486{
19487  echo
19488  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19489## Running $as_me. ##
19490_ASBOX
19491  $as_echo "$ac_log"
19492} >&5
19493
19494_ACEOF
19495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19496#
19497# INIT-COMMANDS
19498#
19499AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19500
19501
19502# The HP-UX ksh and POSIX shell print the target directory to stdout
19503# if CDPATH is set.
19504(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19505
19506sed_quote_subst='$sed_quote_subst'
19507double_quote_subst='$double_quote_subst'
19508delay_variable_subst='$delay_variable_subst'
19509enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19510macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19511macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19512enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19513pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19514enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19515shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19516SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19517ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19518PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19519host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19520host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19521host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19522build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19523build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19524build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19525SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19526Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19527GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19528EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19529FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19530LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19531NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19532LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19533max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19534ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19535exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19536lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19537lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19538lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19539lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19540lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19541reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19542reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19543OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19544deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19545file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19546file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19547want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19548DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19549sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19550AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19551AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19552archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19553STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19554RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19555old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19556old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19557old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19558lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19559CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19560CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19561compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19562GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19563lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19564lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19565lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19566lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19567lt_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"`'
19568lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19569nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19570lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19571lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19572objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19573MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19574lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19575lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19576lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19577lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19578lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19579need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19580MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19581DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19582NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19583LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19584OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19585OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19586libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19587shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19588extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19589archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19590enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19591export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19592whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19593compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19594old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19595old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19596archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19597archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19598module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19599module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19600with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19601allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19602no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19603hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19604hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19605hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19606hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19607hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19608hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19609hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19610inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19611link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19612always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19613export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19614exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19615include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19616prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19617postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19618file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19619variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19620need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19621need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19622version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19623runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19624shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19625shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19626libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19627library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19628soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19629install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19630postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19631postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19632finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19633finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19634hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19635sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19636configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19637configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19638hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19639enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19640enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19641enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19642old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19643striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19644
19645LTCC='$LTCC'
19646LTCFLAGS='$LTCFLAGS'
19647compiler='$compiler_DEFAULT'
19648
19649# A function that is used when there is no print builtin or printf.
19650func_fallback_echo ()
19651{
19652  eval 'cat <<_LTECHO_EOF
19653\$1
19654_LTECHO_EOF'
19655}
19656
19657# Quote evaled strings.
19658for var in SHELL \
19659ECHO \
19660PATH_SEPARATOR \
19661SED \
19662GREP \
19663EGREP \
19664FGREP \
19665LD \
19666NM \
19667LN_S \
19668lt_SP2NL \
19669lt_NL2SP \
19670reload_flag \
19671OBJDUMP \
19672deplibs_check_method \
19673file_magic_cmd \
19674file_magic_glob \
19675want_nocaseglob \
19676DLLTOOL \
19677sharedlib_from_linklib_cmd \
19678AR \
19679AR_FLAGS \
19680archiver_list_spec \
19681STRIP \
19682RANLIB \
19683CC \
19684CFLAGS \
19685compiler \
19686lt_cv_sys_global_symbol_pipe \
19687lt_cv_sys_global_symbol_to_cdecl \
19688lt_cv_sys_global_symbol_to_import \
19689lt_cv_sys_global_symbol_to_c_name_address \
19690lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19691lt_cv_nm_interface \
19692nm_file_list_spec \
19693lt_cv_truncate_bin \
19694lt_prog_compiler_no_builtin_flag \
19695lt_prog_compiler_pic \
19696lt_prog_compiler_wl \
19697lt_prog_compiler_static \
19698lt_cv_prog_compiler_c_o \
19699need_locks \
19700MANIFEST_TOOL \
19701DSYMUTIL \
19702NMEDIT \
19703LIPO \
19704OTOOL \
19705OTOOL64 \
19706shrext_cmds \
19707export_dynamic_flag_spec \
19708whole_archive_flag_spec \
19709compiler_needs_object \
19710with_gnu_ld \
19711allow_undefined_flag \
19712no_undefined_flag \
19713hardcode_libdir_flag_spec \
19714hardcode_libdir_separator \
19715exclude_expsyms \
19716include_expsyms \
19717file_list_spec \
19718variables_saved_for_relink \
19719libname_spec \
19720library_names_spec \
19721soname_spec \
19722install_override_mode \
19723finish_eval \
19724old_striplib \
19725striplib; do
19726    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19727    *[\\\\\\\`\\"\\\$]*)
19728      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19729      ;;
19730    *)
19731      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19732      ;;
19733    esac
19734done
19735
19736# Double-quote double-evaled strings.
19737for var in reload_cmds \
19738old_postinstall_cmds \
19739old_postuninstall_cmds \
19740old_archive_cmds \
19741extract_expsyms_cmds \
19742old_archive_from_new_cmds \
19743old_archive_from_expsyms_cmds \
19744archive_cmds \
19745archive_expsym_cmds \
19746module_cmds \
19747module_expsym_cmds \
19748export_symbols_cmds \
19749prelink_cmds \
19750postlink_cmds \
19751postinstall_cmds \
19752postuninstall_cmds \
19753finish_cmds \
19754sys_lib_search_path_spec \
19755configure_time_dlsearch_path \
19756configure_time_lt_sys_library_path; do
19757    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19758    *[\\\\\\\`\\"\\\$]*)
19759      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19760      ;;
19761    *)
19762      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19763      ;;
19764    esac
19765done
19766
19767ac_aux_dir='$ac_aux_dir'
19768
19769# See if we are running on zsh, and set the options that allow our
19770# commands through without removal of \ escapes INIT.
19771if test -n "\${ZSH_VERSION+set}"; then
19772   setopt NO_GLOB_SUBST
19773fi
19774
19775
19776    PACKAGE='$PACKAGE'
19777    VERSION='$VERSION'
19778    RM='$RM'
19779    ofile='$ofile'
19780
19781
19782
19783
19784_ACEOF
19785
19786cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19787
19788# Handling of arguments.
19789for ac_config_target in $ac_config_targets
19790do
19791  case $ac_config_target in
19792    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19793    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19794    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19795    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19796    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19797    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19798
19799  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19800  esac
19801done
19802
19803
19804# If the user did not use the arguments to specify the items to instantiate,
19805# then the envvar interface is used.  Set only those that are not.
19806# We use the long form for the default assignment because of an extremely
19807# bizarre bug on SunOS 4.1.3.
19808if $ac_need_defaults; then
19809  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19810  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19811  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19812fi
19813
19814# Have a temporary directory for convenience.  Make it in the build tree
19815# simply because there is no reason against having it here, and in addition,
19816# creating and moving files from /tmp can sometimes cause problems.
19817# Hook for its removal unless debugging.
19818# Note that there is a small window in which the directory will not be cleaned:
19819# after its creation but before its name has been assigned to `$tmp'.
19820$debug ||
19821{
19822  tmp= ac_tmp=
19823  trap 'exit_status=$?
19824  : "${ac_tmp:=$tmp}"
19825  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19826' 0
19827  trap 'as_fn_exit 1' 1 2 13 15
19828}
19829# Create a (secure) tmp directory for tmp files.
19830
19831{
19832  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19833  test -d "$tmp"
19834}  ||
19835{
19836  tmp=./conf$$-$RANDOM
19837  (umask 077 && mkdir "$tmp")
19838} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19839ac_tmp=$tmp
19840
19841# Set up the scripts for CONFIG_FILES section.
19842# No need to generate them if there are no CONFIG_FILES.
19843# This happens for instance with `./config.status config.h'.
19844if test -n "$CONFIG_FILES"; then
19845
19846
19847ac_cr=`echo X | tr X '\015'`
19848# On cygwin, bash can eat \r inside `` if the user requested igncr.
19849# But we know of no other shell where ac_cr would be empty at this
19850# point, so we can use a bashism as a fallback.
19851if test "x$ac_cr" = x; then
19852  eval ac_cr=\$\'\\r\'
19853fi
19854ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19855if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19856  ac_cs_awk_cr='\\r'
19857else
19858  ac_cs_awk_cr=$ac_cr
19859fi
19860
19861echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19862_ACEOF
19863
19864
19865{
19866  echo "cat >conf$$subs.awk <<_ACEOF" &&
19867  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19868  echo "_ACEOF"
19869} >conf$$subs.sh ||
19870  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19871ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19872ac_delim='%!_!# '
19873for ac_last_try in false false false false false :; do
19874  . ./conf$$subs.sh ||
19875    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19876
19877  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19878  if test $ac_delim_n = $ac_delim_num; then
19879    break
19880  elif $ac_last_try; then
19881    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19882  else
19883    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19884  fi
19885done
19886rm -f conf$$subs.sh
19887
19888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19889cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19890_ACEOF
19891sed -n '
19892h
19893s/^/S["/; s/!.*/"]=/
19894p
19895g
19896s/^[^!]*!//
19897:repl
19898t repl
19899s/'"$ac_delim"'$//
19900t delim
19901:nl
19902h
19903s/\(.\{148\}\)..*/\1/
19904t more1
19905s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19906p
19907n
19908b repl
19909:more1
19910s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19911p
19912g
19913s/.\{148\}//
19914t nl
19915:delim
19916h
19917s/\(.\{148\}\)..*/\1/
19918t more2
19919s/["\\]/\\&/g; s/^/"/; s/$/"/
19920p
19921b
19922:more2
19923s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19924p
19925g
19926s/.\{148\}//
19927t delim
19928' <conf$$subs.awk | sed '
19929/^[^""]/{
19930  N
19931  s/\n//
19932}
19933' >>$CONFIG_STATUS || ac_write_fail=1
19934rm -f conf$$subs.awk
19935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19936_ACAWK
19937cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19938  for (key in S) S_is_set[key] = 1
19939  FS = ""
19940
19941}
19942{
19943  line = $ 0
19944  nfields = split(line, field, "@")
19945  substed = 0
19946  len = length(field[1])
19947  for (i = 2; i < nfields; i++) {
19948    key = field[i]
19949    keylen = length(key)
19950    if (S_is_set[key]) {
19951      value = S[key]
19952      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19953      len += length(value) + length(field[++i])
19954      substed = 1
19955    } else
19956      len += 1 + keylen
19957  }
19958
19959  print line
19960}
19961
19962_ACAWK
19963_ACEOF
19964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19965if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19966  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19967else
19968  cat
19969fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19970  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19971_ACEOF
19972
19973# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19974# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19975# trailing colons and then remove the whole line if VPATH becomes empty
19976# (actually we leave an empty line to preserve line numbers).
19977if test "x$srcdir" = x.; then
19978  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19979h
19980s///
19981s/^/:/
19982s/[	 ]*$/:/
19983s/:\$(srcdir):/:/g
19984s/:\${srcdir}:/:/g
19985s/:@srcdir@:/:/g
19986s/^:*//
19987s/:*$//
19988x
19989s/\(=[	 ]*\).*/\1/
19990G
19991s/\n//
19992s/^[^=]*=[	 ]*$//
19993}'
19994fi
19995
19996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19997fi # test -n "$CONFIG_FILES"
19998
19999# Set up the scripts for CONFIG_HEADERS section.
20000# No need to generate them if there are no CONFIG_HEADERS.
20001# This happens for instance with `./config.status Makefile'.
20002if test -n "$CONFIG_HEADERS"; then
20003cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20004BEGIN {
20005_ACEOF
20006
20007# Transform confdefs.h into an awk script `defines.awk', embedded as
20008# here-document in config.status, that substitutes the proper values into
20009# config.h.in to produce config.h.
20010
20011# Create a delimiter string that does not exist in confdefs.h, to ease
20012# handling of long lines.
20013ac_delim='%!_!# '
20014for ac_last_try in false false :; do
20015  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20016  if test -z "$ac_tt"; then
20017    break
20018  elif $ac_last_try; then
20019    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20020  else
20021    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20022  fi
20023done
20024
20025# For the awk script, D is an array of macro values keyed by name,
20026# likewise P contains macro parameters if any.  Preserve backslash
20027# newline sequences.
20028
20029ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20030sed -n '
20031s/.\{148\}/&'"$ac_delim"'/g
20032t rset
20033:rset
20034s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20035t def
20036d
20037:def
20038s/\\$//
20039t bsnl
20040s/["\\]/\\&/g
20041s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20042D["\1"]=" \3"/p
20043s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20044d
20045:bsnl
20046s/["\\]/\\&/g
20047s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20048D["\1"]=" \3\\\\\\n"\\/p
20049t cont
20050s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20051t cont
20052d
20053:cont
20054n
20055s/.\{148\}/&'"$ac_delim"'/g
20056t clear
20057:clear
20058s/\\$//
20059t bsnlc
20060s/["\\]/\\&/g; s/^/"/; s/$/"/p
20061d
20062:bsnlc
20063s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20064b cont
20065' <confdefs.h | sed '
20066s/'"$ac_delim"'/"\\\
20067"/g' >>$CONFIG_STATUS || ac_write_fail=1
20068
20069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20070  for (key in D) D_is_set[key] = 1
20071  FS = ""
20072}
20073/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20074  line = \$ 0
20075  split(line, arg, " ")
20076  if (arg[1] == "#") {
20077    defundef = arg[2]
20078    mac1 = arg[3]
20079  } else {
20080    defundef = substr(arg[1], 2)
20081    mac1 = arg[2]
20082  }
20083  split(mac1, mac2, "(") #)
20084  macro = mac2[1]
20085  prefix = substr(line, 1, index(line, defundef) - 1)
20086  if (D_is_set[macro]) {
20087    # Preserve the white space surrounding the "#".
20088    print prefix "define", macro P[macro] D[macro]
20089    next
20090  } else {
20091    # Replace #undef with comments.  This is necessary, for example,
20092    # in the case of _POSIX_SOURCE, which is predefined and required
20093    # on some systems where configure will not decide to define it.
20094    if (defundef == "undef") {
20095      print "/*", prefix defundef, macro, "*/"
20096      next
20097    }
20098  }
20099}
20100{ print }
20101_ACAWK
20102_ACEOF
20103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20104  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20105fi # test -n "$CONFIG_HEADERS"
20106
20107
20108eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20109shift
20110for ac_tag
20111do
20112  case $ac_tag in
20113  :[FHLC]) ac_mode=$ac_tag; continue;;
20114  esac
20115  case $ac_mode$ac_tag in
20116  :[FHL]*:*);;
20117  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20118  :[FH]-) ac_tag=-:-;;
20119  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20120  esac
20121  ac_save_IFS=$IFS
20122  IFS=:
20123  set x $ac_tag
20124  IFS=$ac_save_IFS
20125  shift
20126  ac_file=$1
20127  shift
20128
20129  case $ac_mode in
20130  :L) ac_source=$1;;
20131  :[FH])
20132    ac_file_inputs=
20133    for ac_f
20134    do
20135      case $ac_f in
20136      -) ac_f="$ac_tmp/stdin";;
20137      *) # Look for the file first in the build tree, then in the source tree
20138	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20139	 # because $ac_f cannot contain `:'.
20140	 test -f "$ac_f" ||
20141	   case $ac_f in
20142	   [\\/$]*) false;;
20143	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20144	   esac ||
20145	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20146      esac
20147      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20148      as_fn_append ac_file_inputs " '$ac_f'"
20149    done
20150
20151    # Let's still pretend it is `configure' which instantiates (i.e., don't
20152    # use $as_me), people would be surprised to read:
20153    #    /* config.h.  Generated by config.status.  */
20154    configure_input='Generated from '`
20155	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20156	`' by configure.'
20157    if test x"$ac_file" != x-; then
20158      configure_input="$ac_file.  $configure_input"
20159      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20160$as_echo "$as_me: creating $ac_file" >&6;}
20161    fi
20162    # Neutralize special characters interpreted by sed in replacement strings.
20163    case $configure_input in #(
20164    *\&* | *\|* | *\\* )
20165       ac_sed_conf_input=`$as_echo "$configure_input" |
20166       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20167    *) ac_sed_conf_input=$configure_input;;
20168    esac
20169
20170    case $ac_tag in
20171    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20172      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20173    esac
20174    ;;
20175  esac
20176
20177  ac_dir=`$as_dirname -- "$ac_file" ||
20178$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20179	 X"$ac_file" : 'X\(//\)[^/]' \| \
20180	 X"$ac_file" : 'X\(//\)$' \| \
20181	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20182$as_echo X"$ac_file" |
20183    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20184	    s//\1/
20185	    q
20186	  }
20187	  /^X\(\/\/\)[^/].*/{
20188	    s//\1/
20189	    q
20190	  }
20191	  /^X\(\/\/\)$/{
20192	    s//\1/
20193	    q
20194	  }
20195	  /^X\(\/\).*/{
20196	    s//\1/
20197	    q
20198	  }
20199	  s/.*/./; q'`
20200  as_dir="$ac_dir"; as_fn_mkdir_p
20201  ac_builddir=.
20202
20203case "$ac_dir" in
20204.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20205*)
20206  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20207  # A ".." for each directory in $ac_dir_suffix.
20208  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20209  case $ac_top_builddir_sub in
20210  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20211  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20212  esac ;;
20213esac
20214ac_abs_top_builddir=$ac_pwd
20215ac_abs_builddir=$ac_pwd$ac_dir_suffix
20216# for backward compatibility:
20217ac_top_builddir=$ac_top_build_prefix
20218
20219case $srcdir in
20220  .)  # We are building in place.
20221    ac_srcdir=.
20222    ac_top_srcdir=$ac_top_builddir_sub
20223    ac_abs_top_srcdir=$ac_pwd ;;
20224  [\\/]* | ?:[\\/]* )  # Absolute name.
20225    ac_srcdir=$srcdir$ac_dir_suffix;
20226    ac_top_srcdir=$srcdir
20227    ac_abs_top_srcdir=$srcdir ;;
20228  *) # Relative name.
20229    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20230    ac_top_srcdir=$ac_top_build_prefix$srcdir
20231    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20232esac
20233ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20234
20235
20236  case $ac_mode in
20237  :F)
20238  #
20239  # CONFIG_FILE
20240  #
20241
20242  case $INSTALL in
20243  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20244  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20245  esac
20246  ac_MKDIR_P=$MKDIR_P
20247  case $MKDIR_P in
20248  [\\/$]* | ?:[\\/]* ) ;;
20249  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20250  esac
20251_ACEOF
20252
20253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20254# If the template does not know about datarootdir, expand it.
20255# FIXME: This hack should be removed a few years after 2.60.
20256ac_datarootdir_hack=; ac_datarootdir_seen=
20257ac_sed_dataroot='
20258/datarootdir/ {
20259  p
20260  q
20261}
20262/@datadir@/p
20263/@docdir@/p
20264/@infodir@/p
20265/@localedir@/p
20266/@mandir@/p'
20267case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20268*datarootdir*) ac_datarootdir_seen=yes;;
20269*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20270  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20271$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20272_ACEOF
20273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20274  ac_datarootdir_hack='
20275  s&@datadir@&$datadir&g
20276  s&@docdir@&$docdir&g
20277  s&@infodir@&$infodir&g
20278  s&@localedir@&$localedir&g
20279  s&@mandir@&$mandir&g
20280  s&\\\${datarootdir}&$datarootdir&g' ;;
20281esac
20282_ACEOF
20283
20284# Neutralize VPATH when `$srcdir' = `.'.
20285# Shell code in configure.ac might set extrasub.
20286# FIXME: do we really want to maintain this feature?
20287cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20288ac_sed_extra="$ac_vpsub
20289$extrasub
20290_ACEOF
20291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20292:t
20293/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20294s|@configure_input@|$ac_sed_conf_input|;t t
20295s&@top_builddir@&$ac_top_builddir_sub&;t t
20296s&@top_build_prefix@&$ac_top_build_prefix&;t t
20297s&@srcdir@&$ac_srcdir&;t t
20298s&@abs_srcdir@&$ac_abs_srcdir&;t t
20299s&@top_srcdir@&$ac_top_srcdir&;t t
20300s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20301s&@builddir@&$ac_builddir&;t t
20302s&@abs_builddir@&$ac_abs_builddir&;t t
20303s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20304s&@INSTALL@&$ac_INSTALL&;t t
20305s&@MKDIR_P@&$ac_MKDIR_P&;t t
20306$ac_datarootdir_hack
20307"
20308eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20309  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20310
20311test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20312  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20313  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20314      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20315  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20316which seems to be undefined.  Please make sure it is defined" >&5
20317$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20318which seems to be undefined.  Please make sure it is defined" >&2;}
20319
20320  rm -f "$ac_tmp/stdin"
20321  case $ac_file in
20322  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20323  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20324  esac \
20325  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20326 ;;
20327  :H)
20328  #
20329  # CONFIG_HEADER
20330  #
20331  if test x"$ac_file" != x-; then
20332    {
20333      $as_echo "/* $configure_input  */" \
20334      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20335    } >"$ac_tmp/config.h" \
20336      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20337    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20338      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20339$as_echo "$as_me: $ac_file is unchanged" >&6;}
20340    else
20341      rm -f "$ac_file"
20342      mv "$ac_tmp/config.h" "$ac_file" \
20343	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20344    fi
20345  else
20346    $as_echo "/* $configure_input  */" \
20347      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20348      || as_fn_error $? "could not create -" "$LINENO" 5
20349  fi
20350# Compute "$ac_file"'s index in $config_headers.
20351_am_arg="$ac_file"
20352_am_stamp_count=1
20353for _am_header in $config_headers :; do
20354  case $_am_header in
20355    $_am_arg | $_am_arg:* )
20356      break ;;
20357    * )
20358      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20359  esac
20360done
20361echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20362$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20363	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20364	 X"$_am_arg" : 'X\(//\)$' \| \
20365	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20366$as_echo X"$_am_arg" |
20367    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20368	    s//\1/
20369	    q
20370	  }
20371	  /^X\(\/\/\)[^/].*/{
20372	    s//\1/
20373	    q
20374	  }
20375	  /^X\(\/\/\)$/{
20376	    s//\1/
20377	    q
20378	  }
20379	  /^X\(\/\).*/{
20380	    s//\1/
20381	    q
20382	  }
20383	  s/.*/./; q'`/stamp-h$_am_stamp_count
20384 ;;
20385
20386  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20387$as_echo "$as_me: executing $ac_file commands" >&6;}
20388 ;;
20389  esac
20390
20391
20392  case $ac_file$ac_mode in
20393    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20394  # Older Autoconf quotes --file arguments for eval, but not when files
20395  # are listed without --file.  Let's play safe and only enable the eval
20396  # if we detect the quoting.
20397  case $CONFIG_FILES in
20398  *\'*) eval set x "$CONFIG_FILES" ;;
20399  *)   set x $CONFIG_FILES ;;
20400  esac
20401  shift
20402  for mf
20403  do
20404    # Strip MF so we end up with the name of the file.
20405    mf=`echo "$mf" | sed -e 's/:.*$//'`
20406    # Check whether this is an Automake generated Makefile or not.
20407    # We used to match only the files named 'Makefile.in', but
20408    # some people rename them; so instead we look at the file content.
20409    # Grep'ing the first line is not enough: some people post-process
20410    # each Makefile.in and add a new line on top of each file to say so.
20411    # Grep'ing the whole file is not good either: AIX grep has a line
20412    # limit of 2048, but all sed's we know have understand at least 4000.
20413    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20414      dirpart=`$as_dirname -- "$mf" ||
20415$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20416	 X"$mf" : 'X\(//\)[^/]' \| \
20417	 X"$mf" : 'X\(//\)$' \| \
20418	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20419$as_echo X"$mf" |
20420    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20421	    s//\1/
20422	    q
20423	  }
20424	  /^X\(\/\/\)[^/].*/{
20425	    s//\1/
20426	    q
20427	  }
20428	  /^X\(\/\/\)$/{
20429	    s//\1/
20430	    q
20431	  }
20432	  /^X\(\/\).*/{
20433	    s//\1/
20434	    q
20435	  }
20436	  s/.*/./; q'`
20437    else
20438      continue
20439    fi
20440    # Extract the definition of DEPDIR, am__include, and am__quote
20441    # from the Makefile without running 'make'.
20442    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20443    test -z "$DEPDIR" && continue
20444    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20445    test -z "$am__include" && continue
20446    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20447    # Find all dependency output files, they are included files with
20448    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20449    # simplest approach to changing $(DEPDIR) to its actual value in the
20450    # expansion.
20451    for file in `sed -n "
20452      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20453	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20454      # Make sure the directory exists.
20455      test -f "$dirpart/$file" && continue
20456      fdir=`$as_dirname -- "$file" ||
20457$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20458	 X"$file" : 'X\(//\)[^/]' \| \
20459	 X"$file" : 'X\(//\)$' \| \
20460	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20461$as_echo X"$file" |
20462    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20463	    s//\1/
20464	    q
20465	  }
20466	  /^X\(\/\/\)[^/].*/{
20467	    s//\1/
20468	    q
20469	  }
20470	  /^X\(\/\/\)$/{
20471	    s//\1/
20472	    q
20473	  }
20474	  /^X\(\/\).*/{
20475	    s//\1/
20476	    q
20477	  }
20478	  s/.*/./; q'`
20479      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20480      # echo "creating $dirpart/$file"
20481      echo '# dummy' > "$dirpart/$file"
20482    done
20483  done
20484}
20485 ;;
20486    "libtool":C)
20487
20488    # See if we are running on zsh, and set the options that allow our
20489    # commands through without removal of \ escapes.
20490    if test -n "${ZSH_VERSION+set}"; then
20491      setopt NO_GLOB_SUBST
20492    fi
20493
20494    cfgfile=${ofile}T
20495    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20496    $RM "$cfgfile"
20497
20498    cat <<_LT_EOF >> "$cfgfile"
20499#! $SHELL
20500# Generated automatically by $as_me ($PACKAGE) $VERSION
20501# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20502
20503# Provide generalized library-building support services.
20504# Written by Gordon Matzigkeit, 1996
20505
20506# Copyright (C) 2014 Free Software Foundation, Inc.
20507# This is free software; see the source for copying conditions.  There is NO
20508# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20509
20510# GNU Libtool is free software; you can redistribute it and/or modify
20511# it under the terms of the GNU General Public License as published by
20512# the Free Software Foundation; either version 2 of of the License, or
20513# (at your option) any later version.
20514#
20515# As a special exception to the GNU General Public License, if you
20516# distribute this file as part of a program or library that is built
20517# using GNU Libtool, you may include this file under the  same
20518# distribution terms that you use for the rest of that program.
20519#
20520# GNU Libtool is distributed in the hope that it will be useful, but
20521# WITHOUT ANY WARRANTY; without even the implied warranty of
20522# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20523# GNU General Public License for more details.
20524#
20525# You should have received a copy of the GNU General Public License
20526# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20527
20528
20529# The names of the tagged configurations supported by this script.
20530available_tags=''
20531
20532# Configured defaults for sys_lib_dlsearch_path munging.
20533: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20534
20535# ### BEGIN LIBTOOL CONFIG
20536
20537# Whether or not to build static libraries.
20538build_old_libs=$enable_static
20539
20540# Which release of libtool.m4 was used?
20541macro_version=$macro_version
20542macro_revision=$macro_revision
20543
20544# Whether or not to build shared libraries.
20545build_libtool_libs=$enable_shared
20546
20547# What type of objects to build.
20548pic_mode=$pic_mode
20549
20550# Whether or not to optimize for fast installation.
20551fast_install=$enable_fast_install
20552
20553# Shared archive member basename,for filename based shared library versioning on AIX.
20554shared_archive_member_spec=$shared_archive_member_spec
20555
20556# Shell to use when invoking shell scripts.
20557SHELL=$lt_SHELL
20558
20559# An echo program that protects backslashes.
20560ECHO=$lt_ECHO
20561
20562# The PATH separator for the build system.
20563PATH_SEPARATOR=$lt_PATH_SEPARATOR
20564
20565# The host system.
20566host_alias=$host_alias
20567host=$host
20568host_os=$host_os
20569
20570# The build system.
20571build_alias=$build_alias
20572build=$build
20573build_os=$build_os
20574
20575# A sed program that does not truncate output.
20576SED=$lt_SED
20577
20578# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20579Xsed="\$SED -e 1s/^X//"
20580
20581# A grep program that handles long lines.
20582GREP=$lt_GREP
20583
20584# An ERE matcher.
20585EGREP=$lt_EGREP
20586
20587# A literal string matcher.
20588FGREP=$lt_FGREP
20589
20590# A BSD- or MS-compatible name lister.
20591NM=$lt_NM
20592
20593# Whether we need soft or hard links.
20594LN_S=$lt_LN_S
20595
20596# What is the maximum length of a command?
20597max_cmd_len=$max_cmd_len
20598
20599# Object file suffix (normally "o").
20600objext=$ac_objext
20601
20602# Executable file suffix (normally "").
20603exeext=$exeext
20604
20605# whether the shell understands "unset".
20606lt_unset=$lt_unset
20607
20608# turn spaces into newlines.
20609SP2NL=$lt_lt_SP2NL
20610
20611# turn newlines into spaces.
20612NL2SP=$lt_lt_NL2SP
20613
20614# convert \$build file names to \$host format.
20615to_host_file_cmd=$lt_cv_to_host_file_cmd
20616
20617# convert \$build files to toolchain format.
20618to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20619
20620# An object symbol dumper.
20621OBJDUMP=$lt_OBJDUMP
20622
20623# Method to check whether dependent libraries are shared objects.
20624deplibs_check_method=$lt_deplibs_check_method
20625
20626# Command to use when deplibs_check_method = "file_magic".
20627file_magic_cmd=$lt_file_magic_cmd
20628
20629# How to find potential files when deplibs_check_method = "file_magic".
20630file_magic_glob=$lt_file_magic_glob
20631
20632# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20633want_nocaseglob=$lt_want_nocaseglob
20634
20635# DLL creation program.
20636DLLTOOL=$lt_DLLTOOL
20637
20638# Command to associate shared and link libraries.
20639sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20640
20641# The archiver.
20642AR=$lt_AR
20643
20644# Flags to create an archive.
20645AR_FLAGS=$lt_AR_FLAGS
20646
20647# How to feed a file listing to the archiver.
20648archiver_list_spec=$lt_archiver_list_spec
20649
20650# A symbol stripping program.
20651STRIP=$lt_STRIP
20652
20653# Commands used to install an old-style archive.
20654RANLIB=$lt_RANLIB
20655old_postinstall_cmds=$lt_old_postinstall_cmds
20656old_postuninstall_cmds=$lt_old_postuninstall_cmds
20657
20658# Whether to use a lock for old archive extraction.
20659lock_old_archive_extraction=$lock_old_archive_extraction
20660
20661# A C compiler.
20662LTCC=$lt_CC
20663
20664# LTCC compiler flags.
20665LTCFLAGS=$lt_CFLAGS
20666
20667# Take the output of nm and produce a listing of raw symbols and C names.
20668global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20669
20670# Transform the output of nm in a proper C declaration.
20671global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20672
20673# Transform the output of nm into a list of symbols to manually relocate.
20674global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20675
20676# Transform the output of nm in a C name address pair.
20677global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20678
20679# Transform the output of nm in a C name address pair when lib prefix is needed.
20680global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20681
20682# The name lister interface.
20683nm_interface=$lt_lt_cv_nm_interface
20684
20685# Specify filename containing input files for \$NM.
20686nm_file_list_spec=$lt_nm_file_list_spec
20687
20688# The root where to search for dependent libraries,and where our libraries should be installed.
20689lt_sysroot=$lt_sysroot
20690
20691# Command to truncate a binary pipe.
20692lt_truncate_bin=$lt_lt_cv_truncate_bin
20693
20694# The name of the directory that contains temporary libtool files.
20695objdir=$objdir
20696
20697# Used to examine libraries when file_magic_cmd begins with "file".
20698MAGIC_CMD=$MAGIC_CMD
20699
20700# Must we lock files when doing compilation?
20701need_locks=$lt_need_locks
20702
20703# Manifest tool.
20704MANIFEST_TOOL=$lt_MANIFEST_TOOL
20705
20706# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20707DSYMUTIL=$lt_DSYMUTIL
20708
20709# Tool to change global to local symbols on Mac OS X.
20710NMEDIT=$lt_NMEDIT
20711
20712# Tool to manipulate fat objects and archives on Mac OS X.
20713LIPO=$lt_LIPO
20714
20715# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20716OTOOL=$lt_OTOOL
20717
20718# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20719OTOOL64=$lt_OTOOL64
20720
20721# Old archive suffix (normally "a").
20722libext=$libext
20723
20724# Shared library suffix (normally ".so").
20725shrext_cmds=$lt_shrext_cmds
20726
20727# The commands to extract the exported symbol list from a shared archive.
20728extract_expsyms_cmds=$lt_extract_expsyms_cmds
20729
20730# Variables whose values should be saved in libtool wrapper scripts and
20731# restored at link time.
20732variables_saved_for_relink=$lt_variables_saved_for_relink
20733
20734# Do we need the "lib" prefix for modules?
20735need_lib_prefix=$need_lib_prefix
20736
20737# Do we need a version for libraries?
20738need_version=$need_version
20739
20740# Library versioning type.
20741version_type=$version_type
20742
20743# Shared library runtime path variable.
20744runpath_var=$runpath_var
20745
20746# Shared library path variable.
20747shlibpath_var=$shlibpath_var
20748
20749# Is shlibpath searched before the hard-coded library search path?
20750shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20751
20752# Format of library name prefix.
20753libname_spec=$lt_libname_spec
20754
20755# List of archive names.  First name is the real one, the rest are links.
20756# The last name is the one that the linker finds with -lNAME
20757library_names_spec=$lt_library_names_spec
20758
20759# The coded name of the library, if different from the real name.
20760soname_spec=$lt_soname_spec
20761
20762# Permission mode override for installation of shared libraries.
20763install_override_mode=$lt_install_override_mode
20764
20765# Command to use after installation of a shared archive.
20766postinstall_cmds=$lt_postinstall_cmds
20767
20768# Command to use after uninstallation of a shared archive.
20769postuninstall_cmds=$lt_postuninstall_cmds
20770
20771# Commands used to finish a libtool library installation in a directory.
20772finish_cmds=$lt_finish_cmds
20773
20774# As "finish_cmds", except a single script fragment to be evaled but
20775# not shown.
20776finish_eval=$lt_finish_eval
20777
20778# Whether we should hardcode library paths into libraries.
20779hardcode_into_libs=$hardcode_into_libs
20780
20781# Compile-time system search path for libraries.
20782sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20783
20784# Detected run-time system search path for libraries.
20785sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20786
20787# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20788configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20789
20790# Whether dlopen is supported.
20791dlopen_support=$enable_dlopen
20792
20793# Whether dlopen of programs is supported.
20794dlopen_self=$enable_dlopen_self
20795
20796# Whether dlopen of statically linked programs is supported.
20797dlopen_self_static=$enable_dlopen_self_static
20798
20799# Commands to strip libraries.
20800old_striplib=$lt_old_striplib
20801striplib=$lt_striplib
20802
20803
20804# The linker used to build libraries.
20805LD=$lt_LD
20806
20807# How to create reloadable object files.
20808reload_flag=$lt_reload_flag
20809reload_cmds=$lt_reload_cmds
20810
20811# Commands used to build an old-style archive.
20812old_archive_cmds=$lt_old_archive_cmds
20813
20814# A language specific compiler.
20815CC=$lt_compiler
20816
20817# Is the compiler the GNU compiler?
20818with_gcc=$GCC
20819
20820# Compiler flag to turn off builtin functions.
20821no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20822
20823# Additional compiler flags for building library objects.
20824pic_flag=$lt_lt_prog_compiler_pic
20825
20826# How to pass a linker flag through the compiler.
20827wl=$lt_lt_prog_compiler_wl
20828
20829# Compiler flag to prevent dynamic linking.
20830link_static_flag=$lt_lt_prog_compiler_static
20831
20832# Does compiler simultaneously support -c and -o options?
20833compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20834
20835# Whether or not to add -lc for building shared libraries.
20836build_libtool_need_lc=$archive_cmds_need_lc
20837
20838# Whether or not to disallow shared libs when runtime libs are static.
20839allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20840
20841# Compiler flag to allow reflexive dlopens.
20842export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20843
20844# Compiler flag to generate shared objects directly from archives.
20845whole_archive_flag_spec=$lt_whole_archive_flag_spec
20846
20847# Whether the compiler copes with passing no objects directly.
20848compiler_needs_object=$lt_compiler_needs_object
20849
20850# Create an old-style archive from a shared archive.
20851old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20852
20853# Create a temporary old-style archive to link instead of a shared archive.
20854old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20855
20856# Commands used to build a shared archive.
20857archive_cmds=$lt_archive_cmds
20858archive_expsym_cmds=$lt_archive_expsym_cmds
20859
20860# Commands used to build a loadable module if different from building
20861# a shared archive.
20862module_cmds=$lt_module_cmds
20863module_expsym_cmds=$lt_module_expsym_cmds
20864
20865# Whether we are building with GNU ld or not.
20866with_gnu_ld=$lt_with_gnu_ld
20867
20868# Flag that allows shared libraries with undefined symbols to be built.
20869allow_undefined_flag=$lt_allow_undefined_flag
20870
20871# Flag that enforces no undefined symbols.
20872no_undefined_flag=$lt_no_undefined_flag
20873
20874# Flag to hardcode \$libdir into a binary during linking.
20875# This must work even if \$libdir does not exist
20876hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20877
20878# Whether we need a single "-rpath" flag with a separated argument.
20879hardcode_libdir_separator=$lt_hardcode_libdir_separator
20880
20881# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20882# DIR into the resulting binary.
20883hardcode_direct=$hardcode_direct
20884
20885# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20886# DIR into the resulting binary and the resulting library dependency is
20887# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20888# library is relocated.
20889hardcode_direct_absolute=$hardcode_direct_absolute
20890
20891# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20892# into the resulting binary.
20893hardcode_minus_L=$hardcode_minus_L
20894
20895# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20896# into the resulting binary.
20897hardcode_shlibpath_var=$hardcode_shlibpath_var
20898
20899# Set to "yes" if building a shared library automatically hardcodes DIR
20900# into the library and all subsequent libraries and executables linked
20901# against it.
20902hardcode_automatic=$hardcode_automatic
20903
20904# Set to yes if linker adds runtime paths of dependent libraries
20905# to runtime path list.
20906inherit_rpath=$inherit_rpath
20907
20908# Whether libtool must link a program against all its dependency libraries.
20909link_all_deplibs=$link_all_deplibs
20910
20911# Set to "yes" if exported symbols are required.
20912always_export_symbols=$always_export_symbols
20913
20914# The commands to list exported symbols.
20915export_symbols_cmds=$lt_export_symbols_cmds
20916
20917# Symbols that should not be listed in the preloaded symbols.
20918exclude_expsyms=$lt_exclude_expsyms
20919
20920# Symbols that must always be exported.
20921include_expsyms=$lt_include_expsyms
20922
20923# Commands necessary for linking programs (against libraries) with templates.
20924prelink_cmds=$lt_prelink_cmds
20925
20926# Commands necessary for finishing linking programs.
20927postlink_cmds=$lt_postlink_cmds
20928
20929# Specify filename containing input files.
20930file_list_spec=$lt_file_list_spec
20931
20932# How to hardcode a shared library path into an executable.
20933hardcode_action=$hardcode_action
20934
20935# ### END LIBTOOL CONFIG
20936
20937_LT_EOF
20938
20939    cat <<'_LT_EOF' >> "$cfgfile"
20940
20941# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20942
20943# func_munge_path_list VARIABLE PATH
20944# -----------------------------------
20945# VARIABLE is name of variable containing _space_ separated list of
20946# directories to be munged by the contents of PATH, which is string
20947# having a format:
20948# "DIR[:DIR]:"
20949#       string "DIR[ DIR]" will be prepended to VARIABLE
20950# ":DIR[:DIR]"
20951#       string "DIR[ DIR]" will be appended to VARIABLE
20952# "DIRP[:DIRP]::[DIRA:]DIRA"
20953#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20954#       "DIRA[ DIRA]" will be appended to VARIABLE
20955# "DIR[:DIR]"
20956#       VARIABLE will be replaced by "DIR[ DIR]"
20957func_munge_path_list ()
20958{
20959    case x$2 in
20960    x)
20961        ;;
20962    *:)
20963        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20964        ;;
20965    x:*)
20966        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20967        ;;
20968    *::*)
20969        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20970        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20971        ;;
20972    *)
20973        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20974        ;;
20975    esac
20976}
20977
20978
20979# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
20980func_cc_basename ()
20981{
20982    for cc_temp in $*""; do
20983      case $cc_temp in
20984        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20985        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20986        \-*) ;;
20987        *) break;;
20988      esac
20989    done
20990    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20991}
20992
20993
20994# ### END FUNCTIONS SHARED WITH CONFIGURE
20995
20996_LT_EOF
20997
20998  case $host_os in
20999  aix3*)
21000    cat <<\_LT_EOF >> "$cfgfile"
21001# AIX sometimes has problems with the GCC collect2 program.  For some
21002# reason, if we set the COLLECT_NAMES environment variable, the problems
21003# vanish in a puff of smoke.
21004if test set != "${COLLECT_NAMES+set}"; then
21005  COLLECT_NAMES=
21006  export COLLECT_NAMES
21007fi
21008_LT_EOF
21009    ;;
21010  esac
21011
21012
21013ltmain=$ac_aux_dir/ltmain.sh
21014
21015
21016  # We use sed instead of cat because bash on DJGPP gets confused if
21017  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21018  # text mode, it properly converts lines to CR/LF.  This bash problem
21019  # is reportedly fixed, but why not run on old versions too?
21020  sed '$q' "$ltmain" >> "$cfgfile" \
21021     || (rm -f "$cfgfile"; exit 1)
21022
21023   mv -f "$cfgfile" "$ofile" ||
21024    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21025  chmod +x "$ofile"
21026
21027 ;;
21028
21029  esac
21030done # for ac_tag
21031
21032
21033as_fn_exit 0
21034_ACEOF
21035ac_clean_files=$ac_clean_files_save
21036
21037test $ac_write_fail = 0 ||
21038  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21039
21040
21041# configure is writing to config.log, and then calls config.status.
21042# config.status does its own redirection, appending to config.log.
21043# Unfortunately, on DOS this fails, as config.log is still kept open
21044# by configure, so config.status won't be able to write to it; its
21045# output is simply discarded.  So we exec the FD to /dev/null,
21046# effectively closing config.log, so it can be properly (re)opened and
21047# appended to by config.status.  When coming back to configure, we
21048# need to make the FD available again.
21049if test "$no_create" != yes; then
21050  ac_cs_success=:
21051  ac_config_status_args=
21052  test "$silent" = yes &&
21053    ac_config_status_args="$ac_config_status_args --quiet"
21054  exec 5>/dev/null
21055  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21056  exec 5>>config.log
21057  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21058  # would make configure fail if this is the last instruction.
21059  $ac_cs_success || as_fn_exit 1
21060fi
21061if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21062  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21063$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21064fi
21065
21066