configure revision 0496e070
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-video-r128 6.9.2.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   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-r128'
593PACKAGE_TARNAME='xf86-video-r128'
594PACKAGE_VERSION='6.9.2'
595PACKAGE_STRING='xf86-video-r128 6.9.2'
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
641moduledir
642XSERVER_LIBPCIACCESS_FALSE
643XSERVER_LIBPCIACCESS_TRUE
644PCIACCESS_LIBS
645PCIACCESS_CFLAGS
646USE_EXA_FALSE
647USE_EXA_TRUE
648XAA_FALSE
649XAA_TRUE
650DRI_LIBS
651DRI_CFLAGS
652DRI_FALSE
653DRI_TRUE
654HAVE_XEXTPROTO_71_FALSE
655HAVE_XEXTPROTO_71_TRUE
656XEXT_LIBS
657XEXT_CFLAGS
658XORG_LIBS
659XORG_CFLAGS
660OTOOL64
661OTOOL
662LIPO
663NMEDIT
664DSYMUTIL
665MANIFEST_TOOL
666RANLIB
667ac_ct_AR
668AR
669DLLTOOL
670OBJDUMP
671LN_S
672NM
673ac_ct_DUMPBIN
674DUMPBIN
675LD
676FGREP
677LIBTOOL
678MAINT
679MAINTAINER_MODE_FALSE
680MAINTAINER_MODE_TRUE
681AM_BACKSLASH
682AM_DEFAULT_VERBOSITY
683AM_DEFAULT_V
684AM_V
685MAN_SUBSTS
686XORG_MAN_PAGE
687ADMIN_MAN_DIR
688DRIVER_MAN_DIR
689MISC_MAN_DIR
690FILE_MAN_DIR
691LIB_MAN_DIR
692APP_MAN_DIR
693ADMIN_MAN_SUFFIX
694DRIVER_MAN_SUFFIX
695MISC_MAN_SUFFIX
696FILE_MAN_SUFFIX
697LIB_MAN_SUFFIX
698APP_MAN_SUFFIX
699SED
700host_os
701host_vendor
702host_cpu
703host
704build_os
705build_vendor
706build_cpu
707build
708INSTALL_CMD
709PKG_CONFIG_LIBDIR
710PKG_CONFIG_PATH
711PKG_CONFIG
712CHANGELOG_CMD
713STRICT_CFLAGS
714CWARNFLAGS
715BASE_CFLAGS
716EGREP
717GREP
718CPP
719am__fastdepCC_FALSE
720am__fastdepCC_TRUE
721CCDEPMODE
722am__nodep
723AMDEPBACKSLASH
724AMDEP_FALSE
725AMDEP_TRUE
726am__quote
727am__include
728DEPDIR
729OBJEXT
730EXEEXT
731ac_ct_CC
732CPPFLAGS
733LDFLAGS
734CFLAGS
735CC
736am__untar
737am__tar
738AMTAR
739am__leading_dot
740SET_MAKE
741AWK
742mkdir_p
743MKDIR_P
744INSTALL_STRIP_PROGRAM
745STRIP
746install_sh
747MAKEINFO
748AUTOHEADER
749AUTOMAKE
750AUTOCONF
751ACLOCAL
752VERSION
753PACKAGE
754CYGPATH_W
755am__isrc
756INSTALL_DATA
757INSTALL_SCRIPT
758INSTALL_PROGRAM
759target_alias
760host_alias
761build_alias
762LIBS
763ECHO_T
764ECHO_N
765ECHO_C
766DEFS
767mandir
768localedir
769libdir
770psdir
771pdfdir
772dvidir
773htmldir
774infodir
775docdir
776oldincludedir
777includedir
778localstatedir
779sharedstatedir
780sysconfdir
781datadir
782datarootdir
783libexecdir
784sbindir
785bindir
786program_transform_name
787prefix
788exec_prefix
789PACKAGE_URL
790PACKAGE_BUGREPORT
791PACKAGE_STRING
792PACKAGE_VERSION
793PACKAGE_TARNAME
794PACKAGE_NAME
795PATH_SEPARATOR
796SHELL'
797ac_subst_files=''
798ac_user_opts='
799enable_option_checking
800enable_dependency_tracking
801enable_selective_werror
802enable_strict_compilation
803enable_silent_rules
804enable_maintainer_mode
805enable_static
806enable_shared
807with_pic
808enable_fast_install
809with_gnu_ld
810with_sysroot
811enable_libtool_lock
812with_xorg_module_dir
813enable_dri
814enable_exa
815enable_xaa
816'
817      ac_precious_vars='build_alias
818host_alias
819target_alias
820CC
821CFLAGS
822LDFLAGS
823LIBS
824CPPFLAGS
825CPP
826PKG_CONFIG
827PKG_CONFIG_PATH
828PKG_CONFIG_LIBDIR
829XORG_CFLAGS
830XORG_LIBS
831XEXT_CFLAGS
832XEXT_LIBS
833DRI_CFLAGS
834DRI_LIBS
835PCIACCESS_CFLAGS
836PCIACCESS_LIBS'
837
838
839# Initialize some variables set by options.
840ac_init_help=
841ac_init_version=false
842ac_unrecognized_opts=
843ac_unrecognized_sep=
844# The variables have the same names as the options, with
845# dashes changed to underlines.
846cache_file=/dev/null
847exec_prefix=NONE
848no_create=
849no_recursion=
850prefix=NONE
851program_prefix=NONE
852program_suffix=NONE
853program_transform_name=s,x,x,
854silent=
855site=
856srcdir=
857verbose=
858x_includes=NONE
859x_libraries=NONE
860
861# Installation directory options.
862# These are left unexpanded so users can "make install exec_prefix=/foo"
863# and all the variables that are supposed to be based on exec_prefix
864# by default will actually change.
865# Use braces instead of parens because sh, perl, etc. also accept them.
866# (The list follows the same order as the GNU Coding Standards.)
867bindir='${exec_prefix}/bin'
868sbindir='${exec_prefix}/sbin'
869libexecdir='${exec_prefix}/libexec'
870datarootdir='${prefix}/share'
871datadir='${datarootdir}'
872sysconfdir='${prefix}/etc'
873sharedstatedir='${prefix}/com'
874localstatedir='${prefix}/var'
875includedir='${prefix}/include'
876oldincludedir='/usr/include'
877docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878infodir='${datarootdir}/info'
879htmldir='${docdir}'
880dvidir='${docdir}'
881pdfdir='${docdir}'
882psdir='${docdir}'
883libdir='${exec_prefix}/lib'
884localedir='${datarootdir}/locale'
885mandir='${datarootdir}/man'
886
887ac_prev=
888ac_dashdash=
889for ac_option
890do
891  # If the previous option needs an argument, assign it.
892  if test -n "$ac_prev"; then
893    eval $ac_prev=\$ac_option
894    ac_prev=
895    continue
896  fi
897
898  case $ac_option in
899  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900  *=)   ac_optarg= ;;
901  *)    ac_optarg=yes ;;
902  esac
903
904  # Accept the important Cygnus configure options, so we can diagnose typos.
905
906  case $ac_dashdash$ac_option in
907  --)
908    ac_dashdash=yes ;;
909
910  -bindir | --bindir | --bindi | --bind | --bin | --bi)
911    ac_prev=bindir ;;
912  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913    bindir=$ac_optarg ;;
914
915  -build | --build | --buil | --bui | --bu)
916    ac_prev=build_alias ;;
917  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918    build_alias=$ac_optarg ;;
919
920  -cache-file | --cache-file | --cache-fil | --cache-fi \
921  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922    ac_prev=cache_file ;;
923  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925    cache_file=$ac_optarg ;;
926
927  --config-cache | -C)
928    cache_file=config.cache ;;
929
930  -datadir | --datadir | --datadi | --datad)
931    ac_prev=datadir ;;
932  -datadir=* | --datadir=* | --datadi=* | --datad=*)
933    datadir=$ac_optarg ;;
934
935  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936  | --dataroo | --dataro | --datar)
937    ac_prev=datarootdir ;;
938  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940    datarootdir=$ac_optarg ;;
941
942  -disable-* | --disable-*)
943    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944    # Reject names that are not valid shell variable names.
945    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946      as_fn_error $? "invalid feature name: $ac_useropt"
947    ac_useropt_orig=$ac_useropt
948    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949    case $ac_user_opts in
950      *"
951"enable_$ac_useropt"
952"*) ;;
953      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954	 ac_unrecognized_sep=', ';;
955    esac
956    eval enable_$ac_useropt=no ;;
957
958  -docdir | --docdir | --docdi | --doc | --do)
959    ac_prev=docdir ;;
960  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961    docdir=$ac_optarg ;;
962
963  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964    ac_prev=dvidir ;;
965  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966    dvidir=$ac_optarg ;;
967
968  -enable-* | --enable-*)
969    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970    # Reject names that are not valid shell variable names.
971    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972      as_fn_error $? "invalid feature name: $ac_useropt"
973    ac_useropt_orig=$ac_useropt
974    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975    case $ac_user_opts in
976      *"
977"enable_$ac_useropt"
978"*) ;;
979      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980	 ac_unrecognized_sep=', ';;
981    esac
982    eval enable_$ac_useropt=\$ac_optarg ;;
983
984  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986  | --exec | --exe | --ex)
987    ac_prev=exec_prefix ;;
988  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990  | --exec=* | --exe=* | --ex=*)
991    exec_prefix=$ac_optarg ;;
992
993  -gas | --gas | --ga | --g)
994    # Obsolete; use --with-gas.
995    with_gas=yes ;;
996
997  -help | --help | --hel | --he | -h)
998    ac_init_help=long ;;
999  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000    ac_init_help=recursive ;;
1001  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002    ac_init_help=short ;;
1003
1004  -host | --host | --hos | --ho)
1005    ac_prev=host_alias ;;
1006  -host=* | --host=* | --hos=* | --ho=*)
1007    host_alias=$ac_optarg ;;
1008
1009  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010    ac_prev=htmldir ;;
1011  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012  | --ht=*)
1013    htmldir=$ac_optarg ;;
1014
1015  -includedir | --includedir | --includedi | --included | --include \
1016  | --includ | --inclu | --incl | --inc)
1017    ac_prev=includedir ;;
1018  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019  | --includ=* | --inclu=* | --incl=* | --inc=*)
1020    includedir=$ac_optarg ;;
1021
1022  -infodir | --infodir | --infodi | --infod | --info | --inf)
1023    ac_prev=infodir ;;
1024  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025    infodir=$ac_optarg ;;
1026
1027  -libdir | --libdir | --libdi | --libd)
1028    ac_prev=libdir ;;
1029  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030    libdir=$ac_optarg ;;
1031
1032  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033  | --libexe | --libex | --libe)
1034    ac_prev=libexecdir ;;
1035  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036  | --libexe=* | --libex=* | --libe=*)
1037    libexecdir=$ac_optarg ;;
1038
1039  -localedir | --localedir | --localedi | --localed | --locale)
1040    ac_prev=localedir ;;
1041  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042    localedir=$ac_optarg ;;
1043
1044  -localstatedir | --localstatedir | --localstatedi | --localstated \
1045  | --localstate | --localstat | --localsta | --localst | --locals)
1046    ac_prev=localstatedir ;;
1047  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049    localstatedir=$ac_optarg ;;
1050
1051  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052    ac_prev=mandir ;;
1053  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054    mandir=$ac_optarg ;;
1055
1056  -nfp | --nfp | --nf)
1057    # Obsolete; use --without-fp.
1058    with_fp=no ;;
1059
1060  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061  | --no-cr | --no-c | -n)
1062    no_create=yes ;;
1063
1064  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066    no_recursion=yes ;;
1067
1068  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070  | --oldin | --oldi | --old | --ol | --o)
1071    ac_prev=oldincludedir ;;
1072  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075    oldincludedir=$ac_optarg ;;
1076
1077  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078    ac_prev=prefix ;;
1079  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080    prefix=$ac_optarg ;;
1081
1082  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083  | --program-pre | --program-pr | --program-p)
1084    ac_prev=program_prefix ;;
1085  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087    program_prefix=$ac_optarg ;;
1088
1089  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090  | --program-suf | --program-su | --program-s)
1091    ac_prev=program_suffix ;;
1092  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094    program_suffix=$ac_optarg ;;
1095
1096  -program-transform-name | --program-transform-name \
1097  | --program-transform-nam | --program-transform-na \
1098  | --program-transform-n | --program-transform- \
1099  | --program-transform | --program-transfor \
1100  | --program-transfo | --program-transf \
1101  | --program-trans | --program-tran \
1102  | --progr-tra | --program-tr | --program-t)
1103    ac_prev=program_transform_name ;;
1104  -program-transform-name=* | --program-transform-name=* \
1105  | --program-transform-nam=* | --program-transform-na=* \
1106  | --program-transform-n=* | --program-transform-=* \
1107  | --program-transform=* | --program-transfor=* \
1108  | --program-transfo=* | --program-transf=* \
1109  | --program-trans=* | --program-tran=* \
1110  | --progr-tra=* | --program-tr=* | --program-t=*)
1111    program_transform_name=$ac_optarg ;;
1112
1113  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114    ac_prev=pdfdir ;;
1115  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116    pdfdir=$ac_optarg ;;
1117
1118  -psdir | --psdir | --psdi | --psd | --ps)
1119    ac_prev=psdir ;;
1120  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121    psdir=$ac_optarg ;;
1122
1123  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124  | -silent | --silent | --silen | --sile | --sil)
1125    silent=yes ;;
1126
1127  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128    ac_prev=sbindir ;;
1129  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130  | --sbi=* | --sb=*)
1131    sbindir=$ac_optarg ;;
1132
1133  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135  | --sharedst | --shareds | --shared | --share | --shar \
1136  | --sha | --sh)
1137    ac_prev=sharedstatedir ;;
1138  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141  | --sha=* | --sh=*)
1142    sharedstatedir=$ac_optarg ;;
1143
1144  -site | --site | --sit)
1145    ac_prev=site ;;
1146  -site=* | --site=* | --sit=*)
1147    site=$ac_optarg ;;
1148
1149  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150    ac_prev=srcdir ;;
1151  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152    srcdir=$ac_optarg ;;
1153
1154  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155  | --syscon | --sysco | --sysc | --sys | --sy)
1156    ac_prev=sysconfdir ;;
1157  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159    sysconfdir=$ac_optarg ;;
1160
1161  -target | --target | --targe | --targ | --tar | --ta | --t)
1162    ac_prev=target_alias ;;
1163  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164    target_alias=$ac_optarg ;;
1165
1166  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167    verbose=yes ;;
1168
1169  -version | --version | --versio | --versi | --vers | -V)
1170    ac_init_version=: ;;
1171
1172  -with-* | --with-*)
1173    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174    # Reject names that are not valid shell variable names.
1175    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176      as_fn_error $? "invalid package name: $ac_useropt"
1177    ac_useropt_orig=$ac_useropt
1178    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179    case $ac_user_opts in
1180      *"
1181"with_$ac_useropt"
1182"*) ;;
1183      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184	 ac_unrecognized_sep=', ';;
1185    esac
1186    eval with_$ac_useropt=\$ac_optarg ;;
1187
1188  -without-* | --without-*)
1189    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190    # Reject names that are not valid shell variable names.
1191    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192      as_fn_error $? "invalid package name: $ac_useropt"
1193    ac_useropt_orig=$ac_useropt
1194    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195    case $ac_user_opts in
1196      *"
1197"with_$ac_useropt"
1198"*) ;;
1199      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200	 ac_unrecognized_sep=', ';;
1201    esac
1202    eval with_$ac_useropt=no ;;
1203
1204  --x)
1205    # Obsolete; use --with-x.
1206    with_x=yes ;;
1207
1208  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209  | --x-incl | --x-inc | --x-in | --x-i)
1210    ac_prev=x_includes ;;
1211  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213    x_includes=$ac_optarg ;;
1214
1215  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217    ac_prev=x_libraries ;;
1218  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220    x_libraries=$ac_optarg ;;
1221
1222  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1223Try \`$0 --help' for more information"
1224    ;;
1225
1226  *=*)
1227    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228    # Reject names that are not valid shell variable names.
1229    case $ac_envvar in #(
1230      '' | [0-9]* | *[!_$as_cr_alnum]* )
1231      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1232    esac
1233    eval $ac_envvar=\$ac_optarg
1234    export $ac_envvar ;;
1235
1236  *)
1237    # FIXME: should be removed in autoconf 3.0.
1238    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1242    ;;
1243
1244  esac
1245done
1246
1247if test -n "$ac_prev"; then
1248  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249  as_fn_error $? "missing argument to $ac_option"
1250fi
1251
1252if test -n "$ac_unrecognized_opts"; then
1253  case $enable_option_checking in
1254    no) ;;
1255    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1256    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257  esac
1258fi
1259
1260# Check all directory arguments for consistency.
1261for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262		datadir sysconfdir sharedstatedir localstatedir includedir \
1263		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264		libdir localedir mandir
1265do
1266  eval ac_val=\$$ac_var
1267  # Remove trailing slashes.
1268  case $ac_val in
1269    */ )
1270      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271      eval $ac_var=\$ac_val;;
1272  esac
1273  # Be sure to have absolute directory names.
1274  case $ac_val in
1275    [\\/$]* | ?:[\\/]* )  continue;;
1276    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277  esac
1278  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1279done
1280
1281# There might be people who depend on the old broken behavior: `$host'
1282# used to hold the argument of --host etc.
1283# FIXME: To remove some day.
1284build=$build_alias
1285host=$host_alias
1286target=$target_alias
1287
1288# FIXME: To remove some day.
1289if test "x$host_alias" != x; then
1290  if test "x$build_alias" = x; then
1291    cross_compiling=maybe
1292  elif test "x$build_alias" != "x$host_alias"; then
1293    cross_compiling=yes
1294  fi
1295fi
1296
1297ac_tool_prefix=
1298test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299
1300test "$silent" = yes && exec 6>/dev/null
1301
1302
1303ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304ac_ls_di=`ls -di .` &&
1305ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306  as_fn_error $? "working directory cannot be determined"
1307test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308  as_fn_error $? "pwd does not report name of working directory"
1309
1310
1311# Find the source files, if location was not specified.
1312if test -z "$srcdir"; then
1313  ac_srcdir_defaulted=yes
1314  # Try the directory containing this script, then the parent directory.
1315  ac_confdir=`$as_dirname -- "$as_myself" ||
1316$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317	 X"$as_myself" : 'X\(//\)[^/]' \| \
1318	 X"$as_myself" : 'X\(//\)$' \| \
1319	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320$as_echo X"$as_myself" |
1321    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322	    s//\1/
1323	    q
1324	  }
1325	  /^X\(\/\/\)[^/].*/{
1326	    s//\1/
1327	    q
1328	  }
1329	  /^X\(\/\/\)$/{
1330	    s//\1/
1331	    q
1332	  }
1333	  /^X\(\/\).*/{
1334	    s//\1/
1335	    q
1336	  }
1337	  s/.*/./; q'`
1338  srcdir=$ac_confdir
1339  if test ! -r "$srcdir/$ac_unique_file"; then
1340    srcdir=..
1341  fi
1342else
1343  ac_srcdir_defaulted=no
1344fi
1345if test ! -r "$srcdir/$ac_unique_file"; then
1346  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1348fi
1349ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350ac_abs_confdir=`(
1351	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1352	pwd)`
1353# When building in place, set srcdir=.
1354if test "$ac_abs_confdir" = "$ac_pwd"; then
1355  srcdir=.
1356fi
1357# Remove unnecessary trailing slashes from srcdir.
1358# Double slashes in file names in object file debugging info
1359# mess up M-x gdb in Emacs.
1360case $srcdir in
1361*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362esac
1363for ac_var in $ac_precious_vars; do
1364  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365  eval ac_env_${ac_var}_value=\$${ac_var}
1366  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368done
1369
1370#
1371# Report the --help message.
1372#
1373if test "$ac_init_help" = "long"; then
1374  # Omit some internal or obsolete options to make the list less imposing.
1375  # This message is too long to be a string in the A/UX 3.1 sh.
1376  cat <<_ACEOF
1377\`configure' configures xf86-video-r128 6.9.2 to adapt to many kinds of systems.
1378
1379Usage: $0 [OPTION]... [VAR=VALUE]...
1380
1381To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382VAR=VALUE.  See below for descriptions of some of the useful variables.
1383
1384Defaults for the options are specified in brackets.
1385
1386Configuration:
1387  -h, --help              display this help and exit
1388      --help=short        display options specific to this package
1389      --help=recursive    display the short help of all the included packages
1390  -V, --version           display version information and exit
1391  -q, --quiet, --silent   do not print \`checking ...' messages
1392      --cache-file=FILE   cache test results in FILE [disabled]
1393  -C, --config-cache      alias for \`--cache-file=config.cache'
1394  -n, --no-create         do not create output files
1395      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1396
1397Installation directories:
1398  --prefix=PREFIX         install architecture-independent files in PREFIX
1399                          [$ac_default_prefix]
1400  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1401                          [PREFIX]
1402
1403By default, \`make install' will install all the files in
1404\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1405an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406for instance \`--prefix=\$HOME'.
1407
1408For better control, use the options below.
1409
1410Fine tuning of the installation directories:
1411  --bindir=DIR            user executables [EPREFIX/bin]
1412  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1413  --libexecdir=DIR        program executables [EPREFIX/libexec]
1414  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1415  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1416  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1417  --libdir=DIR            object code libraries [EPREFIX/lib]
1418  --includedir=DIR        C header files [PREFIX/include]
1419  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1420  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1421  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1422  --infodir=DIR           info documentation [DATAROOTDIR/info]
1423  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1424  --mandir=DIR            man documentation [DATAROOTDIR/man]
1425  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-r128]
1426  --htmldir=DIR           html documentation [DOCDIR]
1427  --dvidir=DIR            dvi documentation [DOCDIR]
1428  --pdfdir=DIR            pdf documentation [DOCDIR]
1429  --psdir=DIR             ps documentation [DOCDIR]
1430_ACEOF
1431
1432  cat <<\_ACEOF
1433
1434Program names:
1435  --program-prefix=PREFIX            prepend PREFIX to installed program names
1436  --program-suffix=SUFFIX            append SUFFIX to installed program names
1437  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1438
1439System types:
1440  --build=BUILD     configure for building on BUILD [guessed]
1441  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1442_ACEOF
1443fi
1444
1445if test -n "$ac_init_help"; then
1446  case $ac_init_help in
1447     short | recursive ) echo "Configuration of xf86-video-r128 6.9.2:";;
1448   esac
1449  cat <<\_ACEOF
1450
1451Optional Features:
1452  --disable-option-checking  ignore unrecognized --enable/--with options
1453  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1454  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1455  --disable-dependency-tracking  speeds up one-time build
1456  --enable-dependency-tracking   do not reject slow dependency extractors
1457  --disable-selective-werror
1458                          Turn off selective compiler errors. (default:
1459                          enabled)
1460  --enable-strict-compilation
1461                          Enable all warnings from compiler and make them
1462                          errors (default: disabled)
1463  --enable-silent-rules          less verbose build output (undo: `make V=1')
1464  --disable-silent-rules         verbose build output (undo: `make V=0')
1465  --enable-maintainer-mode  enable make rules and dependencies not useful
1466			  (and sometimes confusing) to the casual installer
1467  --enable-static[=PKGS]  build static libraries [default=no]
1468  --enable-shared[=PKGS]  build shared libraries [default=yes]
1469  --enable-fast-install[=PKGS]
1470                          optimize for fast installation [default=yes]
1471  --disable-libtool-lock  avoid locking (might break parallel builds)
1472  --disable-dri           Disable DRI support [[default=auto]]
1473  --disable-exa           Disable EXA support [[default=enabled]]
1474  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1475                          [default=auto]
1476
1477Optional Packages:
1478  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1479  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1480  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1481                          both]
1482  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1483  --with-sysroot=DIR Search for dependent libraries within DIR
1484                        (or the compiler's sysroot if not specified).
1485  --with-xorg-module-dir=DIR
1486                          Default xorg module directory
1487                          [[default=$libdir/xorg/modules]]
1488
1489Some influential environment variables:
1490  CC          C compiler command
1491  CFLAGS      C compiler flags
1492  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1493              nonstandard directory <lib dir>
1494  LIBS        libraries to pass to the linker, e.g. -l<library>
1495  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1496              you have headers in a nonstandard directory <include dir>
1497  CPP         C preprocessor
1498  PKG_CONFIG  path to pkg-config utility
1499  PKG_CONFIG_PATH
1500              directories to add to pkg-config's search path
1501  PKG_CONFIG_LIBDIR
1502              path overriding pkg-config's built-in search path
1503  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1504  XORG_LIBS   linker flags for XORG, overriding pkg-config
1505  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1506  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1507  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
1508  DRI_LIBS    linker flags for DRI, overriding pkg-config
1509  PCIACCESS_CFLAGS
1510              C compiler flags for PCIACCESS, overriding pkg-config
1511  PCIACCESS_LIBS
1512              linker flags for PCIACCESS, overriding pkg-config
1513
1514Use these variables to override the choices made by `configure' or to help
1515it to find libraries and programs with nonstandard names/locations.
1516
1517Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1518_ACEOF
1519ac_status=$?
1520fi
1521
1522if test "$ac_init_help" = "recursive"; then
1523  # If there are subdirs, report their specific --help.
1524  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525    test -d "$ac_dir" ||
1526      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1527      continue
1528    ac_builddir=.
1529
1530case "$ac_dir" in
1531.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532*)
1533  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1534  # A ".." for each directory in $ac_dir_suffix.
1535  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1536  case $ac_top_builddir_sub in
1537  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539  esac ;;
1540esac
1541ac_abs_top_builddir=$ac_pwd
1542ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543# for backward compatibility:
1544ac_top_builddir=$ac_top_build_prefix
1545
1546case $srcdir in
1547  .)  # We are building in place.
1548    ac_srcdir=.
1549    ac_top_srcdir=$ac_top_builddir_sub
1550    ac_abs_top_srcdir=$ac_pwd ;;
1551  [\\/]* | ?:[\\/]* )  # Absolute name.
1552    ac_srcdir=$srcdir$ac_dir_suffix;
1553    ac_top_srcdir=$srcdir
1554    ac_abs_top_srcdir=$srcdir ;;
1555  *) # Relative name.
1556    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557    ac_top_srcdir=$ac_top_build_prefix$srcdir
1558    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559esac
1560ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561
1562    cd "$ac_dir" || { ac_status=$?; continue; }
1563    # Check for guested configure.
1564    if test -f "$ac_srcdir/configure.gnu"; then
1565      echo &&
1566      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567    elif test -f "$ac_srcdir/configure"; then
1568      echo &&
1569      $SHELL "$ac_srcdir/configure" --help=recursive
1570    else
1571      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572    fi || ac_status=$?
1573    cd "$ac_pwd" || { ac_status=$?; break; }
1574  done
1575fi
1576
1577test -n "$ac_init_help" && exit $ac_status
1578if $ac_init_version; then
1579  cat <<\_ACEOF
1580xf86-video-r128 configure 6.9.2
1581generated by GNU Autoconf 2.69
1582
1583Copyright (C) 2012 Free Software Foundation, Inc.
1584This configure script is free software; the Free Software Foundation
1585gives unlimited permission to copy, distribute and modify it.
1586_ACEOF
1587  exit
1588fi
1589
1590## ------------------------ ##
1591## Autoconf initialization. ##
1592## ------------------------ ##
1593
1594# ac_fn_c_try_compile LINENO
1595# --------------------------
1596# Try to compile conftest.$ac_ext, and return whether this succeeded.
1597ac_fn_c_try_compile ()
1598{
1599  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600  rm -f conftest.$ac_objext
1601  if { { ac_try="$ac_compile"
1602case "(($ac_try" in
1603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604  *) ac_try_echo=$ac_try;;
1605esac
1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607$as_echo "$ac_try_echo"; } >&5
1608  (eval "$ac_compile") 2>conftest.err
1609  ac_status=$?
1610  if test -s conftest.err; then
1611    grep -v '^ *+' conftest.err >conftest.er1
1612    cat conftest.er1 >&5
1613    mv -f conftest.er1 conftest.err
1614  fi
1615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616  test $ac_status = 0; } && {
1617	 test -z "$ac_c_werror_flag" ||
1618	 test ! -s conftest.err
1619       } && test -s conftest.$ac_objext; then :
1620  ac_retval=0
1621else
1622  $as_echo "$as_me: failed program was:" >&5
1623sed 's/^/| /' conftest.$ac_ext >&5
1624
1625	ac_retval=1
1626fi
1627  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628  as_fn_set_status $ac_retval
1629
1630} # ac_fn_c_try_compile
1631
1632# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1633# ---------------------------------------------
1634# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1635# accordingly.
1636ac_fn_c_check_decl ()
1637{
1638  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639  as_decl_name=`echo $2|sed 's/ *(.*//'`
1640  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1641  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1642$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1643if eval \${$3+:} false; then :
1644  $as_echo_n "(cached) " >&6
1645else
1646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647/* end confdefs.h.  */
1648$4
1649int
1650main ()
1651{
1652#ifndef $as_decl_name
1653#ifdef __cplusplus
1654  (void) $as_decl_use;
1655#else
1656  (void) $as_decl_name;
1657#endif
1658#endif
1659
1660  ;
1661  return 0;
1662}
1663_ACEOF
1664if ac_fn_c_try_compile "$LINENO"; then :
1665  eval "$3=yes"
1666else
1667  eval "$3=no"
1668fi
1669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1670fi
1671eval ac_res=\$$3
1672	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673$as_echo "$ac_res" >&6; }
1674  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675
1676} # ac_fn_c_check_decl
1677
1678# ac_fn_c_try_cpp LINENO
1679# ----------------------
1680# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1681ac_fn_c_try_cpp ()
1682{
1683  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684  if { { ac_try="$ac_cpp conftest.$ac_ext"
1685case "(($ac_try" in
1686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687  *) ac_try_echo=$ac_try;;
1688esac
1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690$as_echo "$ac_try_echo"; } >&5
1691  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1692  ac_status=$?
1693  if test -s conftest.err; then
1694    grep -v '^ *+' conftest.err >conftest.er1
1695    cat conftest.er1 >&5
1696    mv -f conftest.er1 conftest.err
1697  fi
1698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699  test $ac_status = 0; } > conftest.i && {
1700	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1701	 test ! -s conftest.err
1702       }; then :
1703  ac_retval=0
1704else
1705  $as_echo "$as_me: failed program was:" >&5
1706sed 's/^/| /' conftest.$ac_ext >&5
1707
1708    ac_retval=1
1709fi
1710  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711  as_fn_set_status $ac_retval
1712
1713} # ac_fn_c_try_cpp
1714
1715# ac_fn_c_try_run LINENO
1716# ----------------------
1717# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1718# that executables *can* be run.
1719ac_fn_c_try_run ()
1720{
1721  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722  if { { ac_try="$ac_link"
1723case "(($ac_try" in
1724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725  *) ac_try_echo=$ac_try;;
1726esac
1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728$as_echo "$ac_try_echo"; } >&5
1729  (eval "$ac_link") 2>&5
1730  ac_status=$?
1731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1733  { { case "(($ac_try" in
1734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735  *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739  (eval "$ac_try") 2>&5
1740  ac_status=$?
1741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742  test $ac_status = 0; }; }; then :
1743  ac_retval=0
1744else
1745  $as_echo "$as_me: program exited with status $ac_status" >&5
1746       $as_echo "$as_me: failed program was:" >&5
1747sed 's/^/| /' conftest.$ac_ext >&5
1748
1749       ac_retval=$ac_status
1750fi
1751  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753  as_fn_set_status $ac_retval
1754
1755} # ac_fn_c_try_run
1756
1757# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1758# -------------------------------------------------------
1759# Tests whether HEADER exists and can be compiled using the include files in
1760# INCLUDES, setting the cache variable VAR accordingly.
1761ac_fn_c_check_header_compile ()
1762{
1763  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765$as_echo_n "checking for $2... " >&6; }
1766if eval \${$3+:} false; then :
1767  $as_echo_n "(cached) " >&6
1768else
1769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770/* end confdefs.h.  */
1771$4
1772#include <$2>
1773_ACEOF
1774if ac_fn_c_try_compile "$LINENO"; then :
1775  eval "$3=yes"
1776else
1777  eval "$3=no"
1778fi
1779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780fi
1781eval ac_res=\$$3
1782	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783$as_echo "$ac_res" >&6; }
1784  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785
1786} # ac_fn_c_check_header_compile
1787
1788# ac_fn_c_try_link LINENO
1789# -----------------------
1790# Try to link conftest.$ac_ext, and return whether this succeeded.
1791ac_fn_c_try_link ()
1792{
1793  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794  rm -f conftest.$ac_objext conftest$ac_exeext
1795  if { { ac_try="$ac_link"
1796case "(($ac_try" in
1797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798  *) ac_try_echo=$ac_try;;
1799esac
1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801$as_echo "$ac_try_echo"; } >&5
1802  (eval "$ac_link") 2>conftest.err
1803  ac_status=$?
1804  if test -s conftest.err; then
1805    grep -v '^ *+' conftest.err >conftest.er1
1806    cat conftest.er1 >&5
1807    mv -f conftest.er1 conftest.err
1808  fi
1809  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810  test $ac_status = 0; } && {
1811	 test -z "$ac_c_werror_flag" ||
1812	 test ! -s conftest.err
1813       } && test -s conftest$ac_exeext && {
1814	 test "$cross_compiling" = yes ||
1815	 test -x conftest$ac_exeext
1816       }; then :
1817  ac_retval=0
1818else
1819  $as_echo "$as_me: failed program was:" >&5
1820sed 's/^/| /' conftest.$ac_ext >&5
1821
1822	ac_retval=1
1823fi
1824  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1825  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1826  # interfere with the next link command; also delete a directory that is
1827  # left behind by Apple's compiler.  We do this before executing the actions.
1828  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830  as_fn_set_status $ac_retval
1831
1832} # ac_fn_c_try_link
1833
1834# ac_fn_c_check_func LINENO FUNC VAR
1835# ----------------------------------
1836# Tests whether FUNC exists, setting the cache variable VAR accordingly
1837ac_fn_c_check_func ()
1838{
1839  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841$as_echo_n "checking for $2... " >&6; }
1842if eval \${$3+:} false; then :
1843  $as_echo_n "(cached) " >&6
1844else
1845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846/* end confdefs.h.  */
1847/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1848   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1849#define $2 innocuous_$2
1850
1851/* System header to define __stub macros and hopefully few prototypes,
1852    which can conflict with char $2 (); below.
1853    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1854    <limits.h> exists even on freestanding compilers.  */
1855
1856#ifdef __STDC__
1857# include <limits.h>
1858#else
1859# include <assert.h>
1860#endif
1861
1862#undef $2
1863
1864/* Override any GCC internal prototype to avoid an error.
1865   Use char because int might match the return type of a GCC
1866   builtin and then its argument prototype would still apply.  */
1867#ifdef __cplusplus
1868extern "C"
1869#endif
1870char $2 ();
1871/* The GNU C library defines this for functions which it implements
1872    to always fail with ENOSYS.  Some functions are actually named
1873    something starting with __ and the normal name is an alias.  */
1874#if defined __stub_$2 || defined __stub___$2
1875choke me
1876#endif
1877
1878int
1879main ()
1880{
1881return $2 ();
1882  ;
1883  return 0;
1884}
1885_ACEOF
1886if ac_fn_c_try_link "$LINENO"; then :
1887  eval "$3=yes"
1888else
1889  eval "$3=no"
1890fi
1891rm -f core conftest.err conftest.$ac_objext \
1892    conftest$ac_exeext conftest.$ac_ext
1893fi
1894eval ac_res=\$$3
1895	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896$as_echo "$ac_res" >&6; }
1897  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898
1899} # ac_fn_c_check_func
1900
1901# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1902# -------------------------------------------------------
1903# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1904# the include files in INCLUDES and setting the cache variable VAR
1905# accordingly.
1906ac_fn_c_check_header_mongrel ()
1907{
1908  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909  if eval \${$3+:} false; then :
1910  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911$as_echo_n "checking for $2... " >&6; }
1912if eval \${$3+:} false; then :
1913  $as_echo_n "(cached) " >&6
1914fi
1915eval ac_res=\$$3
1916	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917$as_echo "$ac_res" >&6; }
1918else
1919  # Is the header compilable?
1920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1921$as_echo_n "checking $2 usability... " >&6; }
1922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923/* end confdefs.h.  */
1924$4
1925#include <$2>
1926_ACEOF
1927if ac_fn_c_try_compile "$LINENO"; then :
1928  ac_header_compiler=yes
1929else
1930  ac_header_compiler=no
1931fi
1932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1934$as_echo "$ac_header_compiler" >&6; }
1935
1936# Is the header present?
1937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1938$as_echo_n "checking $2 presence... " >&6; }
1939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940/* end confdefs.h.  */
1941#include <$2>
1942_ACEOF
1943if ac_fn_c_try_cpp "$LINENO"; then :
1944  ac_header_preproc=yes
1945else
1946  ac_header_preproc=no
1947fi
1948rm -f conftest.err conftest.i conftest.$ac_ext
1949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1950$as_echo "$ac_header_preproc" >&6; }
1951
1952# So?  What about this header?
1953case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1954  yes:no: )
1955    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1956$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1957    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1958$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1959    ;;
1960  no:yes:* )
1961    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1962$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1963    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1964$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1965    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1966$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1967    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1968$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1969    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1970$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1971( $as_echo "## ---------------------------------------------------------------------- ##
1972## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1973## ---------------------------------------------------------------------- ##"
1974     ) | sed "s/^/$as_me: WARNING:     /" >&2
1975    ;;
1976esac
1977  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1978$as_echo_n "checking for $2... " >&6; }
1979if eval \${$3+:} false; then :
1980  $as_echo_n "(cached) " >&6
1981else
1982  eval "$3=\$ac_header_compiler"
1983fi
1984eval ac_res=\$$3
1985	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986$as_echo "$ac_res" >&6; }
1987fi
1988  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989
1990} # ac_fn_c_check_header_mongrel
1991cat >config.log <<_ACEOF
1992This file contains any messages produced by compilers while
1993running configure, to aid debugging if configure makes a mistake.
1994
1995It was created by xf86-video-r128 $as_me 6.9.2, which was
1996generated by GNU Autoconf 2.69.  Invocation command line was
1997
1998  $ $0 $@
1999
2000_ACEOF
2001exec 5>>config.log
2002{
2003cat <<_ASUNAME
2004## --------- ##
2005## Platform. ##
2006## --------- ##
2007
2008hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2009uname -m = `(uname -m) 2>/dev/null || echo unknown`
2010uname -r = `(uname -r) 2>/dev/null || echo unknown`
2011uname -s = `(uname -s) 2>/dev/null || echo unknown`
2012uname -v = `(uname -v) 2>/dev/null || echo unknown`
2013
2014/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2015/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2016
2017/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2018/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2019/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2020/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2021/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2022/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2023/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2024
2025_ASUNAME
2026
2027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028for as_dir in $PATH
2029do
2030  IFS=$as_save_IFS
2031  test -z "$as_dir" && as_dir=.
2032    $as_echo "PATH: $as_dir"
2033  done
2034IFS=$as_save_IFS
2035
2036} >&5
2037
2038cat >&5 <<_ACEOF
2039
2040
2041## ----------- ##
2042## Core tests. ##
2043## ----------- ##
2044
2045_ACEOF
2046
2047
2048# Keep a trace of the command line.
2049# Strip out --no-create and --no-recursion so they do not pile up.
2050# Strip out --silent because we don't want to record it for future runs.
2051# Also quote any args containing shell meta-characters.
2052# Make two passes to allow for proper duplicate-argument suppression.
2053ac_configure_args=
2054ac_configure_args0=
2055ac_configure_args1=
2056ac_must_keep_next=false
2057for ac_pass in 1 2
2058do
2059  for ac_arg
2060  do
2061    case $ac_arg in
2062    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2063    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2064    | -silent | --silent | --silen | --sile | --sil)
2065      continue ;;
2066    *\'*)
2067      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2068    esac
2069    case $ac_pass in
2070    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2071    2)
2072      as_fn_append ac_configure_args1 " '$ac_arg'"
2073      if test $ac_must_keep_next = true; then
2074	ac_must_keep_next=false # Got value, back to normal.
2075      else
2076	case $ac_arg in
2077	  *=* | --config-cache | -C | -disable-* | --disable-* \
2078	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2079	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2080	  | -with-* | --with-* | -without-* | --without-* | --x)
2081	    case "$ac_configure_args0 " in
2082	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2083	    esac
2084	    ;;
2085	  -* ) ac_must_keep_next=true ;;
2086	esac
2087      fi
2088      as_fn_append ac_configure_args " '$ac_arg'"
2089      ;;
2090    esac
2091  done
2092done
2093{ ac_configure_args0=; unset ac_configure_args0;}
2094{ ac_configure_args1=; unset ac_configure_args1;}
2095
2096# When interrupted or exit'd, cleanup temporary files, and complete
2097# config.log.  We remove comments because anyway the quotes in there
2098# would cause problems or look ugly.
2099# WARNING: Use '\'' to represent an apostrophe within the trap.
2100# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2101trap 'exit_status=$?
2102  # Save into config.log some information that might help in debugging.
2103  {
2104    echo
2105
2106    $as_echo "## ---------------- ##
2107## Cache variables. ##
2108## ---------------- ##"
2109    echo
2110    # The following way of writing the cache mishandles newlines in values,
2111(
2112  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2113    eval ac_val=\$$ac_var
2114    case $ac_val in #(
2115    *${as_nl}*)
2116      case $ac_var in #(
2117      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2118$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2119      esac
2120      case $ac_var in #(
2121      _ | IFS | as_nl) ;; #(
2122      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2123      *) { eval $ac_var=; unset $ac_var;} ;;
2124      esac ;;
2125    esac
2126  done
2127  (set) 2>&1 |
2128    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2129    *${as_nl}ac_space=\ *)
2130      sed -n \
2131	"s/'\''/'\''\\\\'\'''\''/g;
2132	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2133      ;; #(
2134    *)
2135      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2136      ;;
2137    esac |
2138    sort
2139)
2140    echo
2141
2142    $as_echo "## ----------------- ##
2143## Output variables. ##
2144## ----------------- ##"
2145    echo
2146    for ac_var in $ac_subst_vars
2147    do
2148      eval ac_val=\$$ac_var
2149      case $ac_val in
2150      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2151      esac
2152      $as_echo "$ac_var='\''$ac_val'\''"
2153    done | sort
2154    echo
2155
2156    if test -n "$ac_subst_files"; then
2157      $as_echo "## ------------------- ##
2158## File substitutions. ##
2159## ------------------- ##"
2160      echo
2161      for ac_var in $ac_subst_files
2162      do
2163	eval ac_val=\$$ac_var
2164	case $ac_val in
2165	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2166	esac
2167	$as_echo "$ac_var='\''$ac_val'\''"
2168      done | sort
2169      echo
2170    fi
2171
2172    if test -s confdefs.h; then
2173      $as_echo "## ----------- ##
2174## confdefs.h. ##
2175## ----------- ##"
2176      echo
2177      cat confdefs.h
2178      echo
2179    fi
2180    test "$ac_signal" != 0 &&
2181      $as_echo "$as_me: caught signal $ac_signal"
2182    $as_echo "$as_me: exit $exit_status"
2183  } >&5
2184  rm -f core *.core core.conftest.* &&
2185    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2186    exit $exit_status
2187' 0
2188for ac_signal in 1 2 13 15; do
2189  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2190done
2191ac_signal=0
2192
2193# confdefs.h avoids OS command line length limits that DEFS can exceed.
2194rm -f -r conftest* confdefs.h
2195
2196$as_echo "/* confdefs.h */" > confdefs.h
2197
2198# Predefined preprocessor variables.
2199
2200cat >>confdefs.h <<_ACEOF
2201#define PACKAGE_NAME "$PACKAGE_NAME"
2202_ACEOF
2203
2204cat >>confdefs.h <<_ACEOF
2205#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2206_ACEOF
2207
2208cat >>confdefs.h <<_ACEOF
2209#define PACKAGE_VERSION "$PACKAGE_VERSION"
2210_ACEOF
2211
2212cat >>confdefs.h <<_ACEOF
2213#define PACKAGE_STRING "$PACKAGE_STRING"
2214_ACEOF
2215
2216cat >>confdefs.h <<_ACEOF
2217#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2218_ACEOF
2219
2220cat >>confdefs.h <<_ACEOF
2221#define PACKAGE_URL "$PACKAGE_URL"
2222_ACEOF
2223
2224
2225# Let the site file select an alternate cache file if it wants to.
2226# Prefer an explicitly selected file to automatically selected ones.
2227ac_site_file1=NONE
2228ac_site_file2=NONE
2229if test -n "$CONFIG_SITE"; then
2230  # We do not want a PATH search for config.site.
2231  case $CONFIG_SITE in #((
2232    -*)  ac_site_file1=./$CONFIG_SITE;;
2233    */*) ac_site_file1=$CONFIG_SITE;;
2234    *)   ac_site_file1=./$CONFIG_SITE;;
2235  esac
2236elif test "x$prefix" != xNONE; then
2237  ac_site_file1=$prefix/share/config.site
2238  ac_site_file2=$prefix/etc/config.site
2239else
2240  ac_site_file1=$ac_default_prefix/share/config.site
2241  ac_site_file2=$ac_default_prefix/etc/config.site
2242fi
2243for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2244do
2245  test "x$ac_site_file" = xNONE && continue
2246  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2247    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2248$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2249    sed 's/^/| /' "$ac_site_file" >&5
2250    . "$ac_site_file" \
2251      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2253as_fn_error $? "failed to load site script $ac_site_file
2254See \`config.log' for more details" "$LINENO" 5; }
2255  fi
2256done
2257
2258if test -r "$cache_file"; then
2259  # Some versions of bash will fail to source /dev/null (special files
2260  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2261  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2262    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2263$as_echo "$as_me: loading cache $cache_file" >&6;}
2264    case $cache_file in
2265      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2266      *)                      . "./$cache_file";;
2267    esac
2268  fi
2269else
2270  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2271$as_echo "$as_me: creating cache $cache_file" >&6;}
2272  >$cache_file
2273fi
2274
2275# Check that the precious variables saved in the cache have kept the same
2276# value.
2277ac_cache_corrupted=false
2278for ac_var in $ac_precious_vars; do
2279  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2280  eval ac_new_set=\$ac_env_${ac_var}_set
2281  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2282  eval ac_new_val=\$ac_env_${ac_var}_value
2283  case $ac_old_set,$ac_new_set in
2284    set,)
2285      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2286$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2287      ac_cache_corrupted=: ;;
2288    ,set)
2289      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2290$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2291      ac_cache_corrupted=: ;;
2292    ,);;
2293    *)
2294      if test "x$ac_old_val" != "x$ac_new_val"; then
2295	# differences in whitespace do not lead to failure.
2296	ac_old_val_w=`echo x $ac_old_val`
2297	ac_new_val_w=`echo x $ac_new_val`
2298	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2299	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2300$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2301	  ac_cache_corrupted=:
2302	else
2303	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2304$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2305	  eval $ac_var=\$ac_old_val
2306	fi
2307	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2308$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2309	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2310$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2311      fi;;
2312  esac
2313  # Pass precious variables to config.status.
2314  if test "$ac_new_set" = set; then
2315    case $ac_new_val in
2316    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2317    *) ac_arg=$ac_var=$ac_new_val ;;
2318    esac
2319    case " $ac_configure_args " in
2320      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2321      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2322    esac
2323  fi
2324done
2325if $ac_cache_corrupted; then
2326  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2328  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2329$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2330  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2331fi
2332## -------------------- ##
2333## Main body of script. ##
2334## -------------------- ##
2335
2336ac_ext=c
2337ac_cpp='$CPP $CPPFLAGS'
2338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340ac_compiler_gnu=$ac_cv_c_compiler_gnu
2341
2342
2343
2344ac_config_headers="$ac_config_headers config.h"
2345
2346ac_aux_dir=
2347for ac_dir in . "$srcdir"/.; do
2348  if test -f "$ac_dir/install-sh"; then
2349    ac_aux_dir=$ac_dir
2350    ac_install_sh="$ac_aux_dir/install-sh -c"
2351    break
2352  elif test -f "$ac_dir/install.sh"; then
2353    ac_aux_dir=$ac_dir
2354    ac_install_sh="$ac_aux_dir/install.sh -c"
2355    break
2356  elif test -f "$ac_dir/shtool"; then
2357    ac_aux_dir=$ac_dir
2358    ac_install_sh="$ac_aux_dir/shtool install -c"
2359    break
2360  fi
2361done
2362if test -z "$ac_aux_dir"; then
2363  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2364fi
2365
2366# These three variables are undocumented and unsupported,
2367# and are intended to be withdrawn in a future Autoconf release.
2368# They can cause serious problems if a builder's source tree is in a directory
2369# whose full name contains unusual characters.
2370ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2371ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2372ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2373
2374
2375
2376# Initialize Automake
2377am__api_version='1.11'
2378
2379# Find a good install program.  We prefer a C program (faster),
2380# so one script is as good as another.  But avoid the broken or
2381# incompatible versions:
2382# SysV /etc/install, /usr/sbin/install
2383# SunOS /usr/etc/install
2384# IRIX /sbin/install
2385# AIX /bin/install
2386# AmigaOS /C/install, which installs bootblocks on floppy discs
2387# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2388# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2389# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2390# OS/2's system install, which has a completely different semantic
2391# ./install, which can be erroneously created by make from ./install.sh.
2392# Reject install programs that cannot install multiple files.
2393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2394$as_echo_n "checking for a BSD-compatible install... " >&6; }
2395if test -z "$INSTALL"; then
2396if ${ac_cv_path_install+:} false; then :
2397  $as_echo_n "(cached) " >&6
2398else
2399  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400for as_dir in $PATH
2401do
2402  IFS=$as_save_IFS
2403  test -z "$as_dir" && as_dir=.
2404    # Account for people who put trailing slashes in PATH elements.
2405case $as_dir/ in #((
2406  ./ | .// | /[cC]/* | \
2407  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2408  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2409  /usr/ucb/* ) ;;
2410  *)
2411    # OSF1 and SCO ODT 3.0 have their own names for install.
2412    # Don't use installbsd from OSF since it installs stuff as root
2413    # by default.
2414    for ac_prog in ginstall scoinst install; do
2415      for ac_exec_ext in '' $ac_executable_extensions; do
2416	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2417	  if test $ac_prog = install &&
2418	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2419	    # AIX install.  It has an incompatible calling convention.
2420	    :
2421	  elif test $ac_prog = install &&
2422	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2423	    # program-specific install script used by HP pwplus--don't use.
2424	    :
2425	  else
2426	    rm -rf conftest.one conftest.two conftest.dir
2427	    echo one > conftest.one
2428	    echo two > conftest.two
2429	    mkdir conftest.dir
2430	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2431	      test -s conftest.one && test -s conftest.two &&
2432	      test -s conftest.dir/conftest.one &&
2433	      test -s conftest.dir/conftest.two
2434	    then
2435	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2436	      break 3
2437	    fi
2438	  fi
2439	fi
2440      done
2441    done
2442    ;;
2443esac
2444
2445  done
2446IFS=$as_save_IFS
2447
2448rm -rf conftest.one conftest.two conftest.dir
2449
2450fi
2451  if test "${ac_cv_path_install+set}" = set; then
2452    INSTALL=$ac_cv_path_install
2453  else
2454    # As a last resort, use the slow shell script.  Don't cache a
2455    # value for INSTALL within a source directory, because that will
2456    # break other packages using the cache if that directory is
2457    # removed, or if the value is a relative name.
2458    INSTALL=$ac_install_sh
2459  fi
2460fi
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2462$as_echo "$INSTALL" >&6; }
2463
2464# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2465# It thinks the first close brace ends the variable substitution.
2466test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2467
2468test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2469
2470test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2471
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2473$as_echo_n "checking whether build environment is sane... " >&6; }
2474# Just in case
2475sleep 1
2476echo timestamp > conftest.file
2477# Reject unsafe characters in $srcdir or the absolute working directory
2478# name.  Accept space and tab only in the latter.
2479am_lf='
2480'
2481case `pwd` in
2482  *[\\\"\#\$\&\'\`$am_lf]*)
2483    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2484esac
2485case $srcdir in
2486  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2487    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2488esac
2489
2490# Do `set' in a subshell so we don't clobber the current shell's
2491# arguments.  Must try -L first in case configure is actually a
2492# symlink; some systems play weird games with the mod time of symlinks
2493# (eg FreeBSD returns the mod time of the symlink's containing
2494# directory).
2495if (
2496   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2497   if test "$*" = "X"; then
2498      # -L didn't work.
2499      set X `ls -t "$srcdir/configure" conftest.file`
2500   fi
2501   rm -f conftest.file
2502   if test "$*" != "X $srcdir/configure conftest.file" \
2503      && test "$*" != "X conftest.file $srcdir/configure"; then
2504
2505      # If neither matched, then we have a broken ls.  This can happen
2506      # if, for instance, CONFIG_SHELL is bash and it inherits a
2507      # broken ls alias from the environment.  This has actually
2508      # happened.  Such a system could not be considered "sane".
2509      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2510alias in your environment" "$LINENO" 5
2511   fi
2512
2513   test "$2" = conftest.file
2514   )
2515then
2516   # Ok.
2517   :
2518else
2519   as_fn_error $? "newly created file is older than distributed files!
2520Check your system clock" "$LINENO" 5
2521fi
2522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2523$as_echo "yes" >&6; }
2524test "$program_prefix" != NONE &&
2525  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2526# Use a double $ so make ignores it.
2527test "$program_suffix" != NONE &&
2528  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2529# Double any \ or $.
2530# By default was `s,x,x', remove it if useless.
2531ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2532program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2533
2534# expand $ac_aux_dir to an absolute path
2535am_aux_dir=`cd $ac_aux_dir && pwd`
2536
2537if test x"${MISSING+set}" != xset; then
2538  case $am_aux_dir in
2539  *\ * | *\	*)
2540    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2541  *)
2542    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2543  esac
2544fi
2545# Use eval to expand $SHELL
2546if eval "$MISSING --run true"; then
2547  am_missing_run="$MISSING --run "
2548else
2549  am_missing_run=
2550  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2551$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2552fi
2553
2554if test x"${install_sh}" != xset; then
2555  case $am_aux_dir in
2556  *\ * | *\	*)
2557    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2558  *)
2559    install_sh="\${SHELL} $am_aux_dir/install-sh"
2560  esac
2561fi
2562
2563# Installed binaries are usually stripped using `strip' when the user
2564# run `make install-strip'.  However `strip' might not be the right
2565# tool to use in cross-compilation environments, therefore Automake
2566# will honor the `STRIP' environment variable to overrule this program.
2567if test "$cross_compiling" != no; then
2568  if test -n "$ac_tool_prefix"; then
2569  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2570set dummy ${ac_tool_prefix}strip; ac_word=$2
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572$as_echo_n "checking for $ac_word... " >&6; }
2573if ${ac_cv_prog_STRIP+:} false; then :
2574  $as_echo_n "(cached) " >&6
2575else
2576  if test -n "$STRIP"; then
2577  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2578else
2579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580for as_dir in $PATH
2581do
2582  IFS=$as_save_IFS
2583  test -z "$as_dir" && as_dir=.
2584    for ac_exec_ext in '' $ac_executable_extensions; do
2585  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2586    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2587    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588    break 2
2589  fi
2590done
2591  done
2592IFS=$as_save_IFS
2593
2594fi
2595fi
2596STRIP=$ac_cv_prog_STRIP
2597if test -n "$STRIP"; then
2598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2599$as_echo "$STRIP" >&6; }
2600else
2601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602$as_echo "no" >&6; }
2603fi
2604
2605
2606fi
2607if test -z "$ac_cv_prog_STRIP"; then
2608  ac_ct_STRIP=$STRIP
2609  # Extract the first word of "strip", so it can be a program name with args.
2610set dummy strip; ac_word=$2
2611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2612$as_echo_n "checking for $ac_word... " >&6; }
2613if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2614  $as_echo_n "(cached) " >&6
2615else
2616  if test -n "$ac_ct_STRIP"; then
2617  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2618else
2619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620for as_dir in $PATH
2621do
2622  IFS=$as_save_IFS
2623  test -z "$as_dir" && as_dir=.
2624    for ac_exec_ext in '' $ac_executable_extensions; do
2625  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626    ac_cv_prog_ac_ct_STRIP="strip"
2627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2628    break 2
2629  fi
2630done
2631  done
2632IFS=$as_save_IFS
2633
2634fi
2635fi
2636ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2637if test -n "$ac_ct_STRIP"; then
2638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2639$as_echo "$ac_ct_STRIP" >&6; }
2640else
2641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642$as_echo "no" >&6; }
2643fi
2644
2645  if test "x$ac_ct_STRIP" = x; then
2646    STRIP=":"
2647  else
2648    case $cross_compiling:$ac_tool_warned in
2649yes:)
2650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2652ac_tool_warned=yes ;;
2653esac
2654    STRIP=$ac_ct_STRIP
2655  fi
2656else
2657  STRIP="$ac_cv_prog_STRIP"
2658fi
2659
2660fi
2661INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2662
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2664$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2665if test -z "$MKDIR_P"; then
2666  if ${ac_cv_path_mkdir+:} false; then :
2667  $as_echo_n "(cached) " >&6
2668else
2669  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2671do
2672  IFS=$as_save_IFS
2673  test -z "$as_dir" && as_dir=.
2674    for ac_prog in mkdir gmkdir; do
2675	 for ac_exec_ext in '' $ac_executable_extensions; do
2676	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2677	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2678	     'mkdir (GNU coreutils) '* | \
2679	     'mkdir (coreutils) '* | \
2680	     'mkdir (fileutils) '4.1*)
2681	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2682	       break 3;;
2683	   esac
2684	 done
2685       done
2686  done
2687IFS=$as_save_IFS
2688
2689fi
2690
2691  test -d ./--version && rmdir ./--version
2692  if test "${ac_cv_path_mkdir+set}" = set; then
2693    MKDIR_P="$ac_cv_path_mkdir -p"
2694  else
2695    # As a last resort, use the slow shell script.  Don't cache a
2696    # value for MKDIR_P within a source directory, because that will
2697    # break other packages using the cache if that directory is
2698    # removed, or if the value is a relative name.
2699    MKDIR_P="$ac_install_sh -d"
2700  fi
2701fi
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2703$as_echo "$MKDIR_P" >&6; }
2704
2705mkdir_p="$MKDIR_P"
2706case $mkdir_p in
2707  [\\/$]* | ?:[\\/]*) ;;
2708  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2709esac
2710
2711for ac_prog in gawk mawk nawk awk
2712do
2713  # Extract the first word of "$ac_prog", so it can be a program name with args.
2714set dummy $ac_prog; ac_word=$2
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2716$as_echo_n "checking for $ac_word... " >&6; }
2717if ${ac_cv_prog_AWK+:} false; then :
2718  $as_echo_n "(cached) " >&6
2719else
2720  if test -n "$AWK"; then
2721  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2722else
2723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724for as_dir in $PATH
2725do
2726  IFS=$as_save_IFS
2727  test -z "$as_dir" && as_dir=.
2728    for ac_exec_ext in '' $ac_executable_extensions; do
2729  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730    ac_cv_prog_AWK="$ac_prog"
2731    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2732    break 2
2733  fi
2734done
2735  done
2736IFS=$as_save_IFS
2737
2738fi
2739fi
2740AWK=$ac_cv_prog_AWK
2741if test -n "$AWK"; then
2742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2743$as_echo "$AWK" >&6; }
2744else
2745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746$as_echo "no" >&6; }
2747fi
2748
2749
2750  test -n "$AWK" && break
2751done
2752
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2754$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2755set x ${MAKE-make}
2756ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2757if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2758  $as_echo_n "(cached) " >&6
2759else
2760  cat >conftest.make <<\_ACEOF
2761SHELL = /bin/sh
2762all:
2763	@echo '@@@%%%=$(MAKE)=@@@%%%'
2764_ACEOF
2765# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2766case `${MAKE-make} -f conftest.make 2>/dev/null` in
2767  *@@@%%%=?*=@@@%%%*)
2768    eval ac_cv_prog_make_${ac_make}_set=yes;;
2769  *)
2770    eval ac_cv_prog_make_${ac_make}_set=no;;
2771esac
2772rm -f conftest.make
2773fi
2774if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2776$as_echo "yes" >&6; }
2777  SET_MAKE=
2778else
2779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2780$as_echo "no" >&6; }
2781  SET_MAKE="MAKE=${MAKE-make}"
2782fi
2783
2784rm -rf .tst 2>/dev/null
2785mkdir .tst 2>/dev/null
2786if test -d .tst; then
2787  am__leading_dot=.
2788else
2789  am__leading_dot=_
2790fi
2791rmdir .tst 2>/dev/null
2792
2793if test "`cd $srcdir && pwd`" != "`pwd`"; then
2794  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2795  # is not polluted with repeated "-I."
2796  am__isrc=' -I$(srcdir)'
2797  # test to see if srcdir already configured
2798  if test -f $srcdir/config.status; then
2799    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2800  fi
2801fi
2802
2803# test whether we have cygpath
2804if test -z "$CYGPATH_W"; then
2805  if (cygpath --version) >/dev/null 2>/dev/null; then
2806    CYGPATH_W='cygpath -w'
2807  else
2808    CYGPATH_W=echo
2809  fi
2810fi
2811
2812
2813# Define the identity of the package.
2814 PACKAGE='xf86-video-r128'
2815 VERSION='6.9.2'
2816
2817
2818cat >>confdefs.h <<_ACEOF
2819#define PACKAGE "$PACKAGE"
2820_ACEOF
2821
2822
2823cat >>confdefs.h <<_ACEOF
2824#define VERSION "$VERSION"
2825_ACEOF
2826
2827# Some tools Automake needs.
2828
2829ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2830
2831
2832AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2833
2834
2835AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2836
2837
2838AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2839
2840
2841MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2842
2843# We need awk for the "check" target.  The system "awk" is bad on
2844# some platforms.
2845# Always define AMTAR for backward compatibility.  Yes, it's still used
2846# in the wild :-(  We should find a proper way to deprecate it ...
2847AMTAR='$${TAR-tar}'
2848
2849am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2850
2851
2852
2853
2854
2855
2856# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868DEPDIR="${am__leading_dot}deps"
2869
2870ac_config_commands="$ac_config_commands depfiles"
2871
2872
2873am_make=${MAKE-make}
2874cat > confinc << 'END'
2875am__doit:
2876	@echo this is the am__doit target
2877.PHONY: am__doit
2878END
2879# If we don't find an include directive, just comment out the code.
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2881$as_echo_n "checking for style of include used by $am_make... " >&6; }
2882am__include="#"
2883am__quote=
2884_am_result=none
2885# First try GNU make style include.
2886echo "include confinc" > confmf
2887# Ignore all kinds of additional output from `make'.
2888case `$am_make -s -f confmf 2> /dev/null` in #(
2889*the\ am__doit\ target*)
2890  am__include=include
2891  am__quote=
2892  _am_result=GNU
2893  ;;
2894esac
2895# Now try BSD make style include.
2896if test "$am__include" = "#"; then
2897   echo '.include "confinc"' > confmf
2898   case `$am_make -s -f confmf 2> /dev/null` in #(
2899   *the\ am__doit\ target*)
2900     am__include=.include
2901     am__quote="\""
2902     _am_result=BSD
2903     ;;
2904   esac
2905fi
2906
2907
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2909$as_echo "$_am_result" >&6; }
2910rm -f confinc confmf
2911
2912# Check whether --enable-dependency-tracking was given.
2913if test "${enable_dependency_tracking+set}" = set; then :
2914  enableval=$enable_dependency_tracking;
2915fi
2916
2917if test "x$enable_dependency_tracking" != xno; then
2918  am_depcomp="$ac_aux_dir/depcomp"
2919  AMDEPBACKSLASH='\'
2920  am__nodep='_no'
2921fi
2922 if test "x$enable_dependency_tracking" != xno; then
2923  AMDEP_TRUE=
2924  AMDEP_FALSE='#'
2925else
2926  AMDEP_TRUE='#'
2927  AMDEP_FALSE=
2928fi
2929
2930
2931ac_ext=c
2932ac_cpp='$CPP $CPPFLAGS'
2933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935ac_compiler_gnu=$ac_cv_c_compiler_gnu
2936if test -n "$ac_tool_prefix"; then
2937  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2938set dummy ${ac_tool_prefix}gcc; ac_word=$2
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940$as_echo_n "checking for $ac_word... " >&6; }
2941if ${ac_cv_prog_CC+:} false; then :
2942  $as_echo_n "(cached) " >&6
2943else
2944  if test -n "$CC"; then
2945  ac_cv_prog_CC="$CC" # Let the user override the test.
2946else
2947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948for as_dir in $PATH
2949do
2950  IFS=$as_save_IFS
2951  test -z "$as_dir" && as_dir=.
2952    for ac_exec_ext in '' $ac_executable_extensions; do
2953  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956    break 2
2957  fi
2958done
2959  done
2960IFS=$as_save_IFS
2961
2962fi
2963fi
2964CC=$ac_cv_prog_CC
2965if test -n "$CC"; then
2966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2967$as_echo "$CC" >&6; }
2968else
2969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970$as_echo "no" >&6; }
2971fi
2972
2973
2974fi
2975if test -z "$ac_cv_prog_CC"; then
2976  ac_ct_CC=$CC
2977  # Extract the first word of "gcc", so it can be a program name with args.
2978set dummy gcc; ac_word=$2
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980$as_echo_n "checking for $ac_word... " >&6; }
2981if ${ac_cv_prog_ac_ct_CC+:} false; then :
2982  $as_echo_n "(cached) " >&6
2983else
2984  if test -n "$ac_ct_CC"; then
2985  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2986else
2987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988for as_dir in $PATH
2989do
2990  IFS=$as_save_IFS
2991  test -z "$as_dir" && as_dir=.
2992    for ac_exec_ext in '' $ac_executable_extensions; do
2993  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994    ac_cv_prog_ac_ct_CC="gcc"
2995    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996    break 2
2997  fi
2998done
2999  done
3000IFS=$as_save_IFS
3001
3002fi
3003fi
3004ac_ct_CC=$ac_cv_prog_ac_ct_CC
3005if test -n "$ac_ct_CC"; then
3006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3007$as_echo "$ac_ct_CC" >&6; }
3008else
3009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010$as_echo "no" >&6; }
3011fi
3012
3013  if test "x$ac_ct_CC" = x; then
3014    CC=""
3015  else
3016    case $cross_compiling:$ac_tool_warned in
3017yes:)
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3020ac_tool_warned=yes ;;
3021esac
3022    CC=$ac_ct_CC
3023  fi
3024else
3025  CC="$ac_cv_prog_CC"
3026fi
3027
3028if test -z "$CC"; then
3029          if test -n "$ac_tool_prefix"; then
3030    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3031set dummy ${ac_tool_prefix}cc; ac_word=$2
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033$as_echo_n "checking for $ac_word... " >&6; }
3034if ${ac_cv_prog_CC+:} false; then :
3035  $as_echo_n "(cached) " >&6
3036else
3037  if test -n "$CC"; then
3038  ac_cv_prog_CC="$CC" # Let the user override the test.
3039else
3040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041for as_dir in $PATH
3042do
3043  IFS=$as_save_IFS
3044  test -z "$as_dir" && as_dir=.
3045    for ac_exec_ext in '' $ac_executable_extensions; do
3046  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047    ac_cv_prog_CC="${ac_tool_prefix}cc"
3048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049    break 2
3050  fi
3051done
3052  done
3053IFS=$as_save_IFS
3054
3055fi
3056fi
3057CC=$ac_cv_prog_CC
3058if test -n "$CC"; then
3059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3060$as_echo "$CC" >&6; }
3061else
3062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063$as_echo "no" >&6; }
3064fi
3065
3066
3067  fi
3068fi
3069if test -z "$CC"; then
3070  # Extract the first word of "cc", so it can be a program name with args.
3071set dummy cc; ac_word=$2
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073$as_echo_n "checking for $ac_word... " >&6; }
3074if ${ac_cv_prog_CC+:} false; then :
3075  $as_echo_n "(cached) " >&6
3076else
3077  if test -n "$CC"; then
3078  ac_cv_prog_CC="$CC" # Let the user override the test.
3079else
3080  ac_prog_rejected=no
3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082for as_dir in $PATH
3083do
3084  IFS=$as_save_IFS
3085  test -z "$as_dir" && as_dir=.
3086    for ac_exec_ext in '' $ac_executable_extensions; do
3087  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3089       ac_prog_rejected=yes
3090       continue
3091     fi
3092    ac_cv_prog_CC="cc"
3093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094    break 2
3095  fi
3096done
3097  done
3098IFS=$as_save_IFS
3099
3100if test $ac_prog_rejected = yes; then
3101  # We found a bogon in the path, so make sure we never use it.
3102  set dummy $ac_cv_prog_CC
3103  shift
3104  if test $# != 0; then
3105    # We chose a different compiler from the bogus one.
3106    # However, it has the same basename, so the bogon will be chosen
3107    # first if we set CC to just the basename; use the full file name.
3108    shift
3109    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3110  fi
3111fi
3112fi
3113fi
3114CC=$ac_cv_prog_CC
3115if test -n "$CC"; then
3116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3117$as_echo "$CC" >&6; }
3118else
3119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120$as_echo "no" >&6; }
3121fi
3122
3123
3124fi
3125if test -z "$CC"; then
3126  if test -n "$ac_tool_prefix"; then
3127  for ac_prog in cl.exe
3128  do
3129    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3130set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132$as_echo_n "checking for $ac_word... " >&6; }
3133if ${ac_cv_prog_CC+:} false; then :
3134  $as_echo_n "(cached) " >&6
3135else
3136  if test -n "$CC"; then
3137  ac_cv_prog_CC="$CC" # Let the user override the test.
3138else
3139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140for as_dir in $PATH
3141do
3142  IFS=$as_save_IFS
3143  test -z "$as_dir" && as_dir=.
3144    for ac_exec_ext in '' $ac_executable_extensions; do
3145  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3146    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3147    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148    break 2
3149  fi
3150done
3151  done
3152IFS=$as_save_IFS
3153
3154fi
3155fi
3156CC=$ac_cv_prog_CC
3157if test -n "$CC"; then
3158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3159$as_echo "$CC" >&6; }
3160else
3161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162$as_echo "no" >&6; }
3163fi
3164
3165
3166    test -n "$CC" && break
3167  done
3168fi
3169if test -z "$CC"; then
3170  ac_ct_CC=$CC
3171  for ac_prog in cl.exe
3172do
3173  # Extract the first word of "$ac_prog", so it can be a program name with args.
3174set dummy $ac_prog; ac_word=$2
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176$as_echo_n "checking for $ac_word... " >&6; }
3177if ${ac_cv_prog_ac_ct_CC+:} false; then :
3178  $as_echo_n "(cached) " >&6
3179else
3180  if test -n "$ac_ct_CC"; then
3181  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3182else
3183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184for as_dir in $PATH
3185do
3186  IFS=$as_save_IFS
3187  test -z "$as_dir" && as_dir=.
3188    for ac_exec_ext in '' $ac_executable_extensions; do
3189  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190    ac_cv_prog_ac_ct_CC="$ac_prog"
3191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192    break 2
3193  fi
3194done
3195  done
3196IFS=$as_save_IFS
3197
3198fi
3199fi
3200ac_ct_CC=$ac_cv_prog_ac_ct_CC
3201if test -n "$ac_ct_CC"; then
3202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3203$as_echo "$ac_ct_CC" >&6; }
3204else
3205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206$as_echo "no" >&6; }
3207fi
3208
3209
3210  test -n "$ac_ct_CC" && break
3211done
3212
3213  if test "x$ac_ct_CC" = x; then
3214    CC=""
3215  else
3216    case $cross_compiling:$ac_tool_warned in
3217yes:)
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3220ac_tool_warned=yes ;;
3221esac
3222    CC=$ac_ct_CC
3223  fi
3224fi
3225
3226fi
3227
3228
3229test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3230$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231as_fn_error $? "no acceptable C compiler found in \$PATH
3232See \`config.log' for more details" "$LINENO" 5; }
3233
3234# Provide some information about the compiler.
3235$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3236set X $ac_compile
3237ac_compiler=$2
3238for ac_option in --version -v -V -qversion; do
3239  { { ac_try="$ac_compiler $ac_option >&5"
3240case "(($ac_try" in
3241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242  *) ac_try_echo=$ac_try;;
3243esac
3244eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245$as_echo "$ac_try_echo"; } >&5
3246  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3247  ac_status=$?
3248  if test -s conftest.err; then
3249    sed '10a\
3250... rest of stderr output deleted ...
3251         10q' conftest.err >conftest.er1
3252    cat conftest.er1 >&5
3253  fi
3254  rm -f conftest.er1 conftest.err
3255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256  test $ac_status = 0; }
3257done
3258
3259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260/* end confdefs.h.  */
3261
3262int
3263main ()
3264{
3265
3266  ;
3267  return 0;
3268}
3269_ACEOF
3270ac_clean_files_save=$ac_clean_files
3271ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3272# Try to create an executable without -o first, disregard a.out.
3273# It will help us diagnose broken compilers, and finding out an intuition
3274# of exeext.
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3276$as_echo_n "checking whether the C compiler works... " >&6; }
3277ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3278
3279# The possible output files:
3280ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3281
3282ac_rmfiles=
3283for ac_file in $ac_files
3284do
3285  case $ac_file in
3286    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3287    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3288  esac
3289done
3290rm -f $ac_rmfiles
3291
3292if { { ac_try="$ac_link_default"
3293case "(($ac_try" in
3294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295  *) ac_try_echo=$ac_try;;
3296esac
3297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298$as_echo "$ac_try_echo"; } >&5
3299  (eval "$ac_link_default") 2>&5
3300  ac_status=$?
3301  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302  test $ac_status = 0; }; then :
3303  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3304# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3305# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3306# so that the user can short-circuit this test for compilers unknown to
3307# Autoconf.
3308for ac_file in $ac_files ''
3309do
3310  test -f "$ac_file" || continue
3311  case $ac_file in
3312    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3313	;;
3314    [ab].out )
3315	# We found the default executable, but exeext='' is most
3316	# certainly right.
3317	break;;
3318    *.* )
3319	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3320	then :; else
3321	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3322	fi
3323	# We set ac_cv_exeext here because the later test for it is not
3324	# safe: cross compilers may not add the suffix if given an `-o'
3325	# argument, so we may need to know it at that point already.
3326	# Even if this section looks crufty: it has the advantage of
3327	# actually working.
3328	break;;
3329    * )
3330	break;;
3331  esac
3332done
3333test "$ac_cv_exeext" = no && ac_cv_exeext=
3334
3335else
3336  ac_file=''
3337fi
3338if test -z "$ac_file"; then :
3339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340$as_echo "no" >&6; }
3341$as_echo "$as_me: failed program was:" >&5
3342sed 's/^/| /' conftest.$ac_ext >&5
3343
3344{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346as_fn_error 77 "C compiler cannot create executables
3347See \`config.log' for more details" "$LINENO" 5; }
3348else
3349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3350$as_echo "yes" >&6; }
3351fi
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3353$as_echo_n "checking for C compiler default output file name... " >&6; }
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3355$as_echo "$ac_file" >&6; }
3356ac_exeext=$ac_cv_exeext
3357
3358rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3359ac_clean_files=$ac_clean_files_save
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3361$as_echo_n "checking for suffix of executables... " >&6; }
3362if { { ac_try="$ac_link"
3363case "(($ac_try" in
3364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365  *) ac_try_echo=$ac_try;;
3366esac
3367eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368$as_echo "$ac_try_echo"; } >&5
3369  (eval "$ac_link") 2>&5
3370  ac_status=$?
3371  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372  test $ac_status = 0; }; then :
3373  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3374# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3375# work properly (i.e., refer to `conftest.exe'), while it won't with
3376# `rm'.
3377for ac_file in conftest.exe conftest conftest.*; do
3378  test -f "$ac_file" || continue
3379  case $ac_file in
3380    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3381    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3382	  break;;
3383    * ) break;;
3384  esac
3385done
3386else
3387  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3389as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3390See \`config.log' for more details" "$LINENO" 5; }
3391fi
3392rm -f conftest conftest$ac_cv_exeext
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3394$as_echo "$ac_cv_exeext" >&6; }
3395
3396rm -f conftest.$ac_ext
3397EXEEXT=$ac_cv_exeext
3398ac_exeext=$EXEEXT
3399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400/* end confdefs.h.  */
3401#include <stdio.h>
3402int
3403main ()
3404{
3405FILE *f = fopen ("conftest.out", "w");
3406 return ferror (f) || fclose (f) != 0;
3407
3408  ;
3409  return 0;
3410}
3411_ACEOF
3412ac_clean_files="$ac_clean_files conftest.out"
3413# Check that the compiler produces executables we can run.  If not, either
3414# the compiler is broken, or we cross compile.
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3416$as_echo_n "checking whether we are cross compiling... " >&6; }
3417if test "$cross_compiling" != yes; then
3418  { { ac_try="$ac_link"
3419case "(($ac_try" in
3420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421  *) ac_try_echo=$ac_try;;
3422esac
3423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424$as_echo "$ac_try_echo"; } >&5
3425  (eval "$ac_link") 2>&5
3426  ac_status=$?
3427  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428  test $ac_status = 0; }
3429  if { ac_try='./conftest$ac_cv_exeext'
3430  { { case "(($ac_try" in
3431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432  *) ac_try_echo=$ac_try;;
3433esac
3434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435$as_echo "$ac_try_echo"; } >&5
3436  (eval "$ac_try") 2>&5
3437  ac_status=$?
3438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439  test $ac_status = 0; }; }; then
3440    cross_compiling=no
3441  else
3442    if test "$cross_compiling" = maybe; then
3443	cross_compiling=yes
3444    else
3445	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447as_fn_error $? "cannot run C compiled programs.
3448If you meant to cross compile, use \`--host'.
3449See \`config.log' for more details" "$LINENO" 5; }
3450    fi
3451  fi
3452fi
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3454$as_echo "$cross_compiling" >&6; }
3455
3456rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3457ac_clean_files=$ac_clean_files_save
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3459$as_echo_n "checking for suffix of object files... " >&6; }
3460if ${ac_cv_objext+:} false; then :
3461  $as_echo_n "(cached) " >&6
3462else
3463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464/* end confdefs.h.  */
3465
3466int
3467main ()
3468{
3469
3470  ;
3471  return 0;
3472}
3473_ACEOF
3474rm -f conftest.o conftest.obj
3475if { { ac_try="$ac_compile"
3476case "(($ac_try" in
3477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478  *) ac_try_echo=$ac_try;;
3479esac
3480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481$as_echo "$ac_try_echo"; } >&5
3482  (eval "$ac_compile") 2>&5
3483  ac_status=$?
3484  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485  test $ac_status = 0; }; then :
3486  for ac_file in conftest.o conftest.obj conftest.*; do
3487  test -f "$ac_file" || continue;
3488  case $ac_file in
3489    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3490    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3491       break;;
3492  esac
3493done
3494else
3495  $as_echo "$as_me: failed program was:" >&5
3496sed 's/^/| /' conftest.$ac_ext >&5
3497
3498{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500as_fn_error $? "cannot compute suffix of object files: cannot compile
3501See \`config.log' for more details" "$LINENO" 5; }
3502fi
3503rm -f conftest.$ac_cv_objext conftest.$ac_ext
3504fi
3505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3506$as_echo "$ac_cv_objext" >&6; }
3507OBJEXT=$ac_cv_objext
3508ac_objext=$OBJEXT
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3510$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3511if ${ac_cv_c_compiler_gnu+:} false; then :
3512  $as_echo_n "(cached) " >&6
3513else
3514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515/* end confdefs.h.  */
3516
3517int
3518main ()
3519{
3520#ifndef __GNUC__
3521       choke me
3522#endif
3523
3524  ;
3525  return 0;
3526}
3527_ACEOF
3528if ac_fn_c_try_compile "$LINENO"; then :
3529  ac_compiler_gnu=yes
3530else
3531  ac_compiler_gnu=no
3532fi
3533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534ac_cv_c_compiler_gnu=$ac_compiler_gnu
3535
3536fi
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3538$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3539if test $ac_compiler_gnu = yes; then
3540  GCC=yes
3541else
3542  GCC=
3543fi
3544ac_test_CFLAGS=${CFLAGS+set}
3545ac_save_CFLAGS=$CFLAGS
3546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3547$as_echo_n "checking whether $CC accepts -g... " >&6; }
3548if ${ac_cv_prog_cc_g+:} false; then :
3549  $as_echo_n "(cached) " >&6
3550else
3551  ac_save_c_werror_flag=$ac_c_werror_flag
3552   ac_c_werror_flag=yes
3553   ac_cv_prog_cc_g=no
3554   CFLAGS="-g"
3555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556/* end confdefs.h.  */
3557
3558int
3559main ()
3560{
3561
3562  ;
3563  return 0;
3564}
3565_ACEOF
3566if ac_fn_c_try_compile "$LINENO"; then :
3567  ac_cv_prog_cc_g=yes
3568else
3569  CFLAGS=""
3570      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571/* end confdefs.h.  */
3572
3573int
3574main ()
3575{
3576
3577  ;
3578  return 0;
3579}
3580_ACEOF
3581if ac_fn_c_try_compile "$LINENO"; then :
3582
3583else
3584  ac_c_werror_flag=$ac_save_c_werror_flag
3585	 CFLAGS="-g"
3586	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587/* end confdefs.h.  */
3588
3589int
3590main ()
3591{
3592
3593  ;
3594  return 0;
3595}
3596_ACEOF
3597if ac_fn_c_try_compile "$LINENO"; then :
3598  ac_cv_prog_cc_g=yes
3599fi
3600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601fi
3602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603fi
3604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605   ac_c_werror_flag=$ac_save_c_werror_flag
3606fi
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3608$as_echo "$ac_cv_prog_cc_g" >&6; }
3609if test "$ac_test_CFLAGS" = set; then
3610  CFLAGS=$ac_save_CFLAGS
3611elif test $ac_cv_prog_cc_g = yes; then
3612  if test "$GCC" = yes; then
3613    CFLAGS="-g -O2"
3614  else
3615    CFLAGS="-g"
3616  fi
3617else
3618  if test "$GCC" = yes; then
3619    CFLAGS="-O2"
3620  else
3621    CFLAGS=
3622  fi
3623fi
3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3625$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3626if ${ac_cv_prog_cc_c89+:} false; then :
3627  $as_echo_n "(cached) " >&6
3628else
3629  ac_cv_prog_cc_c89=no
3630ac_save_CC=$CC
3631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632/* end confdefs.h.  */
3633#include <stdarg.h>
3634#include <stdio.h>
3635struct stat;
3636/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3637struct buf { int x; };
3638FILE * (*rcsopen) (struct buf *, struct stat *, int);
3639static char *e (p, i)
3640     char **p;
3641     int i;
3642{
3643  return p[i];
3644}
3645static char *f (char * (*g) (char **, int), char **p, ...)
3646{
3647  char *s;
3648  va_list v;
3649  va_start (v,p);
3650  s = g (p, va_arg (v,int));
3651  va_end (v);
3652  return s;
3653}
3654
3655/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3656   function prototypes and stuff, but not '\xHH' hex character constants.
3657   These don't provoke an error unfortunately, instead are silently treated
3658   as 'x'.  The following induces an error, until -std is added to get
3659   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3660   array size at least.  It's necessary to write '\x00'==0 to get something
3661   that's true only with -std.  */
3662int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3663
3664/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3665   inside strings and character constants.  */
3666#define FOO(x) 'x'
3667int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3668
3669int test (int i, double x);
3670struct s1 {int (*f) (int a);};
3671struct s2 {int (*f) (double a);};
3672int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3673int argc;
3674char **argv;
3675int
3676main ()
3677{
3678return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3679  ;
3680  return 0;
3681}
3682_ACEOF
3683for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3684	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3685do
3686  CC="$ac_save_CC $ac_arg"
3687  if ac_fn_c_try_compile "$LINENO"; then :
3688  ac_cv_prog_cc_c89=$ac_arg
3689fi
3690rm -f core conftest.err conftest.$ac_objext
3691  test "x$ac_cv_prog_cc_c89" != "xno" && break
3692done
3693rm -f conftest.$ac_ext
3694CC=$ac_save_CC
3695
3696fi
3697# AC_CACHE_VAL
3698case "x$ac_cv_prog_cc_c89" in
3699  x)
3700    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3701$as_echo "none needed" >&6; } ;;
3702  xno)
3703    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3704$as_echo "unsupported" >&6; } ;;
3705  *)
3706    CC="$CC $ac_cv_prog_cc_c89"
3707    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3708$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3709esac
3710if test "x$ac_cv_prog_cc_c89" != xno; then :
3711
3712fi
3713
3714ac_ext=c
3715ac_cpp='$CPP $CPPFLAGS'
3716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719
3720depcc="$CC"   am_compiler_list=
3721
3722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3723$as_echo_n "checking dependency style of $depcc... " >&6; }
3724if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3725  $as_echo_n "(cached) " >&6
3726else
3727  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3728  # We make a subdir and do the tests there.  Otherwise we can end up
3729  # making bogus files that we don't know about and never remove.  For
3730  # instance it was reported that on HP-UX the gcc test will end up
3731  # making a dummy file named `D' -- because `-MD' means `put the output
3732  # in D'.
3733  rm -rf conftest.dir
3734  mkdir conftest.dir
3735  # Copy depcomp to subdir because otherwise we won't find it if we're
3736  # using a relative directory.
3737  cp "$am_depcomp" conftest.dir
3738  cd conftest.dir
3739  # We will build objects and dependencies in a subdirectory because
3740  # it helps to detect inapplicable dependency modes.  For instance
3741  # both Tru64's cc and ICC support -MD to output dependencies as a
3742  # side effect of compilation, but ICC will put the dependencies in
3743  # the current directory while Tru64 will put them in the object
3744  # directory.
3745  mkdir sub
3746
3747  am_cv_CC_dependencies_compiler_type=none
3748  if test "$am_compiler_list" = ""; then
3749     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3750  fi
3751  am__universal=false
3752  case " $depcc " in #(
3753     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3754     esac
3755
3756  for depmode in $am_compiler_list; do
3757    # Setup a source with many dependencies, because some compilers
3758    # like to wrap large dependency lists on column 80 (with \), and
3759    # we should not choose a depcomp mode which is confused by this.
3760    #
3761    # We need to recreate these files for each test, as the compiler may
3762    # overwrite some of them when testing with obscure command lines.
3763    # This happens at least with the AIX C compiler.
3764    : > sub/conftest.c
3765    for i in 1 2 3 4 5 6; do
3766      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3767      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3768      # Solaris 8's {/usr,}/bin/sh.
3769      touch sub/conftst$i.h
3770    done
3771    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3772
3773    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3774    # mode.  It turns out that the SunPro C++ compiler does not properly
3775    # handle `-M -o', and we need to detect this.  Also, some Intel
3776    # versions had trouble with output in subdirs
3777    am__obj=sub/conftest.${OBJEXT-o}
3778    am__minus_obj="-o $am__obj"
3779    case $depmode in
3780    gcc)
3781      # This depmode causes a compiler race in universal mode.
3782      test "$am__universal" = false || continue
3783      ;;
3784    nosideeffect)
3785      # after this tag, mechanisms are not by side-effect, so they'll
3786      # only be used when explicitly requested
3787      if test "x$enable_dependency_tracking" = xyes; then
3788	continue
3789      else
3790	break
3791      fi
3792      ;;
3793    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3794      # This compiler won't grok `-c -o', but also, the minuso test has
3795      # not run yet.  These depmodes are late enough in the game, and
3796      # so weak that their functioning should not be impacted.
3797      am__obj=conftest.${OBJEXT-o}
3798      am__minus_obj=
3799      ;;
3800    none) break ;;
3801    esac
3802    if depmode=$depmode \
3803       source=sub/conftest.c object=$am__obj \
3804       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3805       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3806         >/dev/null 2>conftest.err &&
3807       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3808       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3809       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3810       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3811      # icc doesn't choke on unknown options, it will just issue warnings
3812      # or remarks (even with -Werror).  So we grep stderr for any message
3813      # that says an option was ignored or not supported.
3814      # When given -MP, icc 7.0 and 7.1 complain thusly:
3815      #   icc: Command line warning: ignoring option '-M'; no argument required
3816      # The diagnosis changed in icc 8.0:
3817      #   icc: Command line remark: option '-MP' not supported
3818      if (grep 'ignoring option' conftest.err ||
3819          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3820        am_cv_CC_dependencies_compiler_type=$depmode
3821        break
3822      fi
3823    fi
3824  done
3825
3826  cd ..
3827  rm -rf conftest.dir
3828else
3829  am_cv_CC_dependencies_compiler_type=none
3830fi
3831
3832fi
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3834$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3835CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3836
3837 if
3838  test "x$enable_dependency_tracking" != xno \
3839  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3840  am__fastdepCC_TRUE=
3841  am__fastdepCC_FALSE='#'
3842else
3843  am__fastdepCC_TRUE='#'
3844  am__fastdepCC_FALSE=
3845fi
3846
3847
3848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3849$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3850if ${ac_cv_prog_cc_c99+:} false; then :
3851  $as_echo_n "(cached) " >&6
3852else
3853  ac_cv_prog_cc_c99=no
3854ac_save_CC=$CC
3855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856/* end confdefs.h.  */
3857#include <stdarg.h>
3858#include <stdbool.h>
3859#include <stdlib.h>
3860#include <wchar.h>
3861#include <stdio.h>
3862
3863// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3864#define debug(...) fprintf (stderr, __VA_ARGS__)
3865#define showlist(...) puts (#__VA_ARGS__)
3866#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3867static void
3868test_varargs_macros (void)
3869{
3870  int x = 1234;
3871  int y = 5678;
3872  debug ("Flag");
3873  debug ("X = %d\n", x);
3874  showlist (The first, second, and third items.);
3875  report (x>y, "x is %d but y is %d", x, y);
3876}
3877
3878// Check long long types.
3879#define BIG64 18446744073709551615ull
3880#define BIG32 4294967295ul
3881#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3882#if !BIG_OK
3883  your preprocessor is broken;
3884#endif
3885#if BIG_OK
3886#else
3887  your preprocessor is broken;
3888#endif
3889static long long int bignum = -9223372036854775807LL;
3890static unsigned long long int ubignum = BIG64;
3891
3892struct incomplete_array
3893{
3894  int datasize;
3895  double data[];
3896};
3897
3898struct named_init {
3899  int number;
3900  const wchar_t *name;
3901  double average;
3902};
3903
3904typedef const char *ccp;
3905
3906static inline int
3907test_restrict (ccp restrict text)
3908{
3909  // See if C++-style comments work.
3910  // Iterate through items via the restricted pointer.
3911  // Also check for declarations in for loops.
3912  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3913    continue;
3914  return 0;
3915}
3916
3917// Check varargs and va_copy.
3918static void
3919test_varargs (const char *format, ...)
3920{
3921  va_list args;
3922  va_start (args, format);
3923  va_list args_copy;
3924  va_copy (args_copy, args);
3925
3926  const char *str;
3927  int number;
3928  float fnumber;
3929
3930  while (*format)
3931    {
3932      switch (*format++)
3933	{
3934	case 's': // string
3935	  str = va_arg (args_copy, const char *);
3936	  break;
3937	case 'd': // int
3938	  number = va_arg (args_copy, int);
3939	  break;
3940	case 'f': // float
3941	  fnumber = va_arg (args_copy, double);
3942	  break;
3943	default:
3944	  break;
3945	}
3946    }
3947  va_end (args_copy);
3948  va_end (args);
3949}
3950
3951int
3952main ()
3953{
3954
3955  // Check bool.
3956  _Bool success = false;
3957
3958  // Check restrict.
3959  if (test_restrict ("String literal") == 0)
3960    success = true;
3961  char *restrict newvar = "Another string";
3962
3963  // Check varargs.
3964  test_varargs ("s, d' f .", "string", 65, 34.234);
3965  test_varargs_macros ();
3966
3967  // Check flexible array members.
3968  struct incomplete_array *ia =
3969    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3970  ia->datasize = 10;
3971  for (int i = 0; i < ia->datasize; ++i)
3972    ia->data[i] = i * 1.234;
3973
3974  // Check named initializers.
3975  struct named_init ni = {
3976    .number = 34,
3977    .name = L"Test wide string",
3978    .average = 543.34343,
3979  };
3980
3981  ni.number = 58;
3982
3983  int dynamic_array[ni.number];
3984  dynamic_array[ni.number - 1] = 543;
3985
3986  // work around unused variable warnings
3987  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3988	  || dynamic_array[ni.number - 1] != 543);
3989
3990  ;
3991  return 0;
3992}
3993_ACEOF
3994for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3995do
3996  CC="$ac_save_CC $ac_arg"
3997  if ac_fn_c_try_compile "$LINENO"; then :
3998  ac_cv_prog_cc_c99=$ac_arg
3999fi
4000rm -f core conftest.err conftest.$ac_objext
4001  test "x$ac_cv_prog_cc_c99" != "xno" && break
4002done
4003rm -f conftest.$ac_ext
4004CC=$ac_save_CC
4005
4006fi
4007# AC_CACHE_VAL
4008case "x$ac_cv_prog_cc_c99" in
4009  x)
4010    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4011$as_echo "none needed" >&6; } ;;
4012  xno)
4013    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4014$as_echo "unsupported" >&6; } ;;
4015  *)
4016    CC="$CC $ac_cv_prog_cc_c99"
4017    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4018$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4019esac
4020if test "x$ac_cv_prog_cc_c99" != xno; then :
4021
4022fi
4023
4024
4025
4026ac_ext=c
4027ac_cpp='$CPP $CPPFLAGS'
4028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4030ac_compiler_gnu=$ac_cv_c_compiler_gnu
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4032$as_echo_n "checking how to run the C preprocessor... " >&6; }
4033# On Suns, sometimes $CPP names a directory.
4034if test -n "$CPP" && test -d "$CPP"; then
4035  CPP=
4036fi
4037if test -z "$CPP"; then
4038  if ${ac_cv_prog_CPP+:} false; then :
4039  $as_echo_n "(cached) " >&6
4040else
4041      # Double quotes because CPP needs to be expanded
4042    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4043    do
4044      ac_preproc_ok=false
4045for ac_c_preproc_warn_flag in '' yes
4046do
4047  # Use a header file that comes with gcc, so configuring glibc
4048  # with a fresh cross-compiler works.
4049  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4050  # <limits.h> exists even on freestanding compilers.
4051  # On the NeXT, cc -E runs the code through the compiler's parser,
4052  # not just through cpp. "Syntax error" is here to catch this case.
4053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054/* end confdefs.h.  */
4055#ifdef __STDC__
4056# include <limits.h>
4057#else
4058# include <assert.h>
4059#endif
4060		     Syntax error
4061_ACEOF
4062if ac_fn_c_try_cpp "$LINENO"; then :
4063
4064else
4065  # Broken: fails on valid input.
4066continue
4067fi
4068rm -f conftest.err conftest.i conftest.$ac_ext
4069
4070  # OK, works on sane cases.  Now check whether nonexistent headers
4071  # can be detected and how.
4072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073/* end confdefs.h.  */
4074#include <ac_nonexistent.h>
4075_ACEOF
4076if ac_fn_c_try_cpp "$LINENO"; then :
4077  # Broken: success on invalid input.
4078continue
4079else
4080  # Passes both tests.
4081ac_preproc_ok=:
4082break
4083fi
4084rm -f conftest.err conftest.i conftest.$ac_ext
4085
4086done
4087# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4088rm -f conftest.i conftest.err conftest.$ac_ext
4089if $ac_preproc_ok; then :
4090  break
4091fi
4092
4093    done
4094    ac_cv_prog_CPP=$CPP
4095
4096fi
4097  CPP=$ac_cv_prog_CPP
4098else
4099  ac_cv_prog_CPP=$CPP
4100fi
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4102$as_echo "$CPP" >&6; }
4103ac_preproc_ok=false
4104for ac_c_preproc_warn_flag in '' yes
4105do
4106  # Use a header file that comes with gcc, so configuring glibc
4107  # with a fresh cross-compiler works.
4108  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4109  # <limits.h> exists even on freestanding compilers.
4110  # On the NeXT, cc -E runs the code through the compiler's parser,
4111  # not just through cpp. "Syntax error" is here to catch this case.
4112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113/* end confdefs.h.  */
4114#ifdef __STDC__
4115# include <limits.h>
4116#else
4117# include <assert.h>
4118#endif
4119		     Syntax error
4120_ACEOF
4121if ac_fn_c_try_cpp "$LINENO"; then :
4122
4123else
4124  # Broken: fails on valid input.
4125continue
4126fi
4127rm -f conftest.err conftest.i conftest.$ac_ext
4128
4129  # OK, works on sane cases.  Now check whether nonexistent headers
4130  # can be detected and how.
4131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132/* end confdefs.h.  */
4133#include <ac_nonexistent.h>
4134_ACEOF
4135if ac_fn_c_try_cpp "$LINENO"; then :
4136  # Broken: success on invalid input.
4137continue
4138else
4139  # Passes both tests.
4140ac_preproc_ok=:
4141break
4142fi
4143rm -f conftest.err conftest.i conftest.$ac_ext
4144
4145done
4146# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4147rm -f conftest.i conftest.err conftest.$ac_ext
4148if $ac_preproc_ok; then :
4149
4150else
4151  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4153as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4154See \`config.log' for more details" "$LINENO" 5; }
4155fi
4156
4157ac_ext=c
4158ac_cpp='$CPP $CPPFLAGS'
4159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161ac_compiler_gnu=$ac_cv_c_compiler_gnu
4162
4163
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4165$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4166if ${ac_cv_path_GREP+:} false; then :
4167  $as_echo_n "(cached) " >&6
4168else
4169  if test -z "$GREP"; then
4170  ac_path_GREP_found=false
4171  # Loop through the user's path and test for each of PROGNAME-LIST
4172  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4174do
4175  IFS=$as_save_IFS
4176  test -z "$as_dir" && as_dir=.
4177    for ac_prog in grep ggrep; do
4178    for ac_exec_ext in '' $ac_executable_extensions; do
4179      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4180      as_fn_executable_p "$ac_path_GREP" || continue
4181# Check for GNU ac_path_GREP and select it if it is found.
4182  # Check for GNU $ac_path_GREP
4183case `"$ac_path_GREP" --version 2>&1` in
4184*GNU*)
4185  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4186*)
4187  ac_count=0
4188  $as_echo_n 0123456789 >"conftest.in"
4189  while :
4190  do
4191    cat "conftest.in" "conftest.in" >"conftest.tmp"
4192    mv "conftest.tmp" "conftest.in"
4193    cp "conftest.in" "conftest.nl"
4194    $as_echo 'GREP' >> "conftest.nl"
4195    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4196    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4197    as_fn_arith $ac_count + 1 && ac_count=$as_val
4198    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4199      # Best one so far, save it but keep looking for a better one
4200      ac_cv_path_GREP="$ac_path_GREP"
4201      ac_path_GREP_max=$ac_count
4202    fi
4203    # 10*(2^10) chars as input seems more than enough
4204    test $ac_count -gt 10 && break
4205  done
4206  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4207esac
4208
4209      $ac_path_GREP_found && break 3
4210    done
4211  done
4212  done
4213IFS=$as_save_IFS
4214  if test -z "$ac_cv_path_GREP"; then
4215    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4216  fi
4217else
4218  ac_cv_path_GREP=$GREP
4219fi
4220
4221fi
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4223$as_echo "$ac_cv_path_GREP" >&6; }
4224 GREP="$ac_cv_path_GREP"
4225
4226
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4228$as_echo_n "checking for egrep... " >&6; }
4229if ${ac_cv_path_EGREP+:} false; then :
4230  $as_echo_n "(cached) " >&6
4231else
4232  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4233   then ac_cv_path_EGREP="$GREP -E"
4234   else
4235     if test -z "$EGREP"; then
4236  ac_path_EGREP_found=false
4237  # Loop through the user's path and test for each of PROGNAME-LIST
4238  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4240do
4241  IFS=$as_save_IFS
4242  test -z "$as_dir" && as_dir=.
4243    for ac_prog in egrep; do
4244    for ac_exec_ext in '' $ac_executable_extensions; do
4245      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4246      as_fn_executable_p "$ac_path_EGREP" || continue
4247# Check for GNU ac_path_EGREP and select it if it is found.
4248  # Check for GNU $ac_path_EGREP
4249case `"$ac_path_EGREP" --version 2>&1` in
4250*GNU*)
4251  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4252*)
4253  ac_count=0
4254  $as_echo_n 0123456789 >"conftest.in"
4255  while :
4256  do
4257    cat "conftest.in" "conftest.in" >"conftest.tmp"
4258    mv "conftest.tmp" "conftest.in"
4259    cp "conftest.in" "conftest.nl"
4260    $as_echo 'EGREP' >> "conftest.nl"
4261    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4262    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4263    as_fn_arith $ac_count + 1 && ac_count=$as_val
4264    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4265      # Best one so far, save it but keep looking for a better one
4266      ac_cv_path_EGREP="$ac_path_EGREP"
4267      ac_path_EGREP_max=$ac_count
4268    fi
4269    # 10*(2^10) chars as input seems more than enough
4270    test $ac_count -gt 10 && break
4271  done
4272  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4273esac
4274
4275      $ac_path_EGREP_found && break 3
4276    done
4277  done
4278  done
4279IFS=$as_save_IFS
4280  if test -z "$ac_cv_path_EGREP"; then
4281    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4282  fi
4283else
4284  ac_cv_path_EGREP=$EGREP
4285fi
4286
4287   fi
4288fi
4289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4290$as_echo "$ac_cv_path_EGREP" >&6; }
4291 EGREP="$ac_cv_path_EGREP"
4292
4293
4294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4295$as_echo_n "checking for ANSI C header files... " >&6; }
4296if ${ac_cv_header_stdc+:} false; then :
4297  $as_echo_n "(cached) " >&6
4298else
4299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300/* end confdefs.h.  */
4301#include <stdlib.h>
4302#include <stdarg.h>
4303#include <string.h>
4304#include <float.h>
4305
4306int
4307main ()
4308{
4309
4310  ;
4311  return 0;
4312}
4313_ACEOF
4314if ac_fn_c_try_compile "$LINENO"; then :
4315  ac_cv_header_stdc=yes
4316else
4317  ac_cv_header_stdc=no
4318fi
4319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4320
4321if test $ac_cv_header_stdc = yes; then
4322  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324/* end confdefs.h.  */
4325#include <string.h>
4326
4327_ACEOF
4328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4329  $EGREP "memchr" >/dev/null 2>&1; then :
4330
4331else
4332  ac_cv_header_stdc=no
4333fi
4334rm -f conftest*
4335
4336fi
4337
4338if test $ac_cv_header_stdc = yes; then
4339  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341/* end confdefs.h.  */
4342#include <stdlib.h>
4343
4344_ACEOF
4345if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4346  $EGREP "free" >/dev/null 2>&1; then :
4347
4348else
4349  ac_cv_header_stdc=no
4350fi
4351rm -f conftest*
4352
4353fi
4354
4355if test $ac_cv_header_stdc = yes; then
4356  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4357  if test "$cross_compiling" = yes; then :
4358  :
4359else
4360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361/* end confdefs.h.  */
4362#include <ctype.h>
4363#include <stdlib.h>
4364#if ((' ' & 0x0FF) == 0x020)
4365# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4366# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4367#else
4368# define ISLOWER(c) \
4369		   (('a' <= (c) && (c) <= 'i') \
4370		     || ('j' <= (c) && (c) <= 'r') \
4371		     || ('s' <= (c) && (c) <= 'z'))
4372# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4373#endif
4374
4375#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4376int
4377main ()
4378{
4379  int i;
4380  for (i = 0; i < 256; i++)
4381    if (XOR (islower (i), ISLOWER (i))
4382	|| toupper (i) != TOUPPER (i))
4383      return 2;
4384  return 0;
4385}
4386_ACEOF
4387if ac_fn_c_try_run "$LINENO"; then :
4388
4389else
4390  ac_cv_header_stdc=no
4391fi
4392rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4393  conftest.$ac_objext conftest.beam conftest.$ac_ext
4394fi
4395
4396fi
4397fi
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4399$as_echo "$ac_cv_header_stdc" >&6; }
4400if test $ac_cv_header_stdc = yes; then
4401
4402$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4403
4404fi
4405
4406# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4407for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4408		  inttypes.h stdint.h unistd.h
4409do :
4410  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4411ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4412"
4413if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4414  cat >>confdefs.h <<_ACEOF
4415#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4416_ACEOF
4417
4418fi
4419
4420done
4421
4422
4423
4424
4425
4426
4427ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4428if test "x$ac_cv_have_decl___clang__" = xyes; then :
4429  CLANGCC="yes"
4430else
4431  CLANGCC="no"
4432fi
4433
4434ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4435if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4436  INTELCC="yes"
4437else
4438  INTELCC="no"
4439fi
4440
4441ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4442if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4443  SUNCC="yes"
4444else
4445  SUNCC="no"
4446fi
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4457	if test -n "$ac_tool_prefix"; then
4458  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4459set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461$as_echo_n "checking for $ac_word... " >&6; }
4462if ${ac_cv_path_PKG_CONFIG+:} false; then :
4463  $as_echo_n "(cached) " >&6
4464else
4465  case $PKG_CONFIG in
4466  [\\/]* | ?:[\\/]*)
4467  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4468  ;;
4469  *)
4470  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471for as_dir in $PATH
4472do
4473  IFS=$as_save_IFS
4474  test -z "$as_dir" && as_dir=.
4475    for ac_exec_ext in '' $ac_executable_extensions; do
4476  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4477    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4479    break 2
4480  fi
4481done
4482  done
4483IFS=$as_save_IFS
4484
4485  ;;
4486esac
4487fi
4488PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4489if test -n "$PKG_CONFIG"; then
4490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4491$as_echo "$PKG_CONFIG" >&6; }
4492else
4493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494$as_echo "no" >&6; }
4495fi
4496
4497
4498fi
4499if test -z "$ac_cv_path_PKG_CONFIG"; then
4500  ac_pt_PKG_CONFIG=$PKG_CONFIG
4501  # Extract the first word of "pkg-config", so it can be a program name with args.
4502set dummy pkg-config; ac_word=$2
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4504$as_echo_n "checking for $ac_word... " >&6; }
4505if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4506  $as_echo_n "(cached) " >&6
4507else
4508  case $ac_pt_PKG_CONFIG in
4509  [\\/]* | ?:[\\/]*)
4510  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4511  ;;
4512  *)
4513  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514for as_dir in $PATH
4515do
4516  IFS=$as_save_IFS
4517  test -z "$as_dir" && as_dir=.
4518    for ac_exec_ext in '' $ac_executable_extensions; do
4519  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4520    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4521    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522    break 2
4523  fi
4524done
4525  done
4526IFS=$as_save_IFS
4527
4528  ;;
4529esac
4530fi
4531ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4532if test -n "$ac_pt_PKG_CONFIG"; then
4533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4534$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4535else
4536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537$as_echo "no" >&6; }
4538fi
4539
4540  if test "x$ac_pt_PKG_CONFIG" = x; then
4541    PKG_CONFIG=""
4542  else
4543    case $cross_compiling:$ac_tool_warned in
4544yes:)
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4547ac_tool_warned=yes ;;
4548esac
4549    PKG_CONFIG=$ac_pt_PKG_CONFIG
4550  fi
4551else
4552  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4553fi
4554
4555fi
4556if test -n "$PKG_CONFIG"; then
4557	_pkg_min_version=0.9.0
4558	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4559$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4560	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4561		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4562$as_echo "yes" >&6; }
4563	else
4564		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565$as_echo "no" >&6; }
4566		PKG_CONFIG=""
4567	fi
4568fi
4569# Make sure we can run config.sub.
4570$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4571  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4572
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4574$as_echo_n "checking build system type... " >&6; }
4575if ${ac_cv_build+:} false; then :
4576  $as_echo_n "(cached) " >&6
4577else
4578  ac_build_alias=$build_alias
4579test "x$ac_build_alias" = x &&
4580  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4581test "x$ac_build_alias" = x &&
4582  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4583ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4584  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4585
4586fi
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4588$as_echo "$ac_cv_build" >&6; }
4589case $ac_cv_build in
4590*-*-*) ;;
4591*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4592esac
4593build=$ac_cv_build
4594ac_save_IFS=$IFS; IFS='-'
4595set x $ac_cv_build
4596shift
4597build_cpu=$1
4598build_vendor=$2
4599shift; shift
4600# Remember, the first character of IFS is used to create $*,
4601# except with old shells:
4602build_os=$*
4603IFS=$ac_save_IFS
4604case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4605
4606
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4608$as_echo_n "checking host system type... " >&6; }
4609if ${ac_cv_host+:} false; then :
4610  $as_echo_n "(cached) " >&6
4611else
4612  if test "x$host_alias" = x; then
4613  ac_cv_host=$ac_cv_build
4614else
4615  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4616    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4617fi
4618
4619fi
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4621$as_echo "$ac_cv_host" >&6; }
4622case $ac_cv_host in
4623*-*-*) ;;
4624*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4625esac
4626host=$ac_cv_host
4627ac_save_IFS=$IFS; IFS='-'
4628set x $ac_cv_host
4629shift
4630host_cpu=$1
4631host_vendor=$2
4632shift; shift
4633# Remember, the first character of IFS is used to create $*,
4634# except with old shells:
4635host_os=$*
4636IFS=$ac_save_IFS
4637case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4638
4639
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4641$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4642if ${ac_cv_path_SED+:} false; then :
4643  $as_echo_n "(cached) " >&6
4644else
4645            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4646     for ac_i in 1 2 3 4 5 6 7; do
4647       ac_script="$ac_script$as_nl$ac_script"
4648     done
4649     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4650     { ac_script=; unset ac_script;}
4651     if test -z "$SED"; then
4652  ac_path_SED_found=false
4653  # Loop through the user's path and test for each of PROGNAME-LIST
4654  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655for as_dir in $PATH
4656do
4657  IFS=$as_save_IFS
4658  test -z "$as_dir" && as_dir=.
4659    for ac_prog in sed gsed; do
4660    for ac_exec_ext in '' $ac_executable_extensions; do
4661      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4662      as_fn_executable_p "$ac_path_SED" || continue
4663# Check for GNU ac_path_SED and select it if it is found.
4664  # Check for GNU $ac_path_SED
4665case `"$ac_path_SED" --version 2>&1` in
4666*GNU*)
4667  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4668*)
4669  ac_count=0
4670  $as_echo_n 0123456789 >"conftest.in"
4671  while :
4672  do
4673    cat "conftest.in" "conftest.in" >"conftest.tmp"
4674    mv "conftest.tmp" "conftest.in"
4675    cp "conftest.in" "conftest.nl"
4676    $as_echo '' >> "conftest.nl"
4677    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4678    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4679    as_fn_arith $ac_count + 1 && ac_count=$as_val
4680    if test $ac_count -gt ${ac_path_SED_max-0}; then
4681      # Best one so far, save it but keep looking for a better one
4682      ac_cv_path_SED="$ac_path_SED"
4683      ac_path_SED_max=$ac_count
4684    fi
4685    # 10*(2^10) chars as input seems more than enough
4686    test $ac_count -gt 10 && break
4687  done
4688  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4689esac
4690
4691      $ac_path_SED_found && break 3
4692    done
4693  done
4694  done
4695IFS=$as_save_IFS
4696  if test -z "$ac_cv_path_SED"; then
4697    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4698  fi
4699else
4700  ac_cv_path_SED=$SED
4701fi
4702
4703fi
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4705$as_echo "$ac_cv_path_SED" >&6; }
4706 SED="$ac_cv_path_SED"
4707  rm -f conftest.sed
4708
4709
4710
4711
4712
4713
4714# Check whether --enable-selective-werror was given.
4715if test "${enable_selective_werror+set}" = set; then :
4716  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4717else
4718  SELECTIVE_WERROR=yes
4719fi
4720
4721
4722
4723
4724
4725# -v is too short to test reliably with XORG_TESTSET_CFLAG
4726if test "x$SUNCC" = "xyes"; then
4727    BASE_CFLAGS="-v"
4728else
4729    BASE_CFLAGS=""
4730fi
4731
4732# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746xorg_testset_save_CFLAGS="$CFLAGS"
4747
4748if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4749	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4750	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4751$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4752if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4753  $as_echo_n "(cached) " >&6
4754else
4755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756/* end confdefs.h.  */
4757int i;
4758_ACEOF
4759if ac_fn_c_try_compile "$LINENO"; then :
4760  xorg_cv_cc_flag_unknown_warning_option=yes
4761else
4762  xorg_cv_cc_flag_unknown_warning_option=no
4763fi
4764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765fi
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4767$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4768	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4769	CFLAGS="$xorg_testset_save_CFLAGS"
4770fi
4771
4772if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4773	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4774		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4775	fi
4776	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4777	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4778$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4779if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4780  $as_echo_n "(cached) " >&6
4781else
4782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783/* end confdefs.h.  */
4784int i;
4785_ACEOF
4786if ac_fn_c_try_compile "$LINENO"; then :
4787  xorg_cv_cc_flag_unused_command_line_argument=yes
4788else
4789  xorg_cv_cc_flag_unused_command_line_argument=no
4790fi
4791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792fi
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4794$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4795	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4796	CFLAGS="$xorg_testset_save_CFLAGS"
4797fi
4798
4799found="no"
4800
4801	if test $found = "no" ; then
4802		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4803			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4804		fi
4805
4806		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4807			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4808		fi
4809
4810		CFLAGS="$CFLAGS -Wall"
4811
4812		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4813$as_echo_n "checking if $CC supports-Wall... " >&6; }
4814		cacheid=xorg_cv_cc_flag__Wall
4815		if eval \${$cacheid+:} false; then :
4816  $as_echo_n "(cached) " >&6
4817else
4818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819/* end confdefs.h.  */
4820int i;
4821int
4822main ()
4823{
4824
4825  ;
4826  return 0;
4827}
4828_ACEOF
4829if ac_fn_c_try_link "$LINENO"; then :
4830  eval $cacheid=yes
4831else
4832  eval $cacheid=no
4833fi
4834rm -f core conftest.err conftest.$ac_objext \
4835    conftest$ac_exeext conftest.$ac_ext
4836fi
4837
4838
4839		CFLAGS="$xorg_testset_save_CFLAGS"
4840
4841		eval supported=\$$cacheid
4842		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4843$as_echo "$supported" >&6; }
4844		if test "$supported" = "yes" ; then
4845			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4846			found="yes"
4847		fi
4848	fi
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864xorg_testset_save_CFLAGS="$CFLAGS"
4865
4866if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4867	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4868	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4869$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4870if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4871  $as_echo_n "(cached) " >&6
4872else
4873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874/* end confdefs.h.  */
4875int i;
4876_ACEOF
4877if ac_fn_c_try_compile "$LINENO"; then :
4878  xorg_cv_cc_flag_unknown_warning_option=yes
4879else
4880  xorg_cv_cc_flag_unknown_warning_option=no
4881fi
4882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4883fi
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4885$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4886	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4887	CFLAGS="$xorg_testset_save_CFLAGS"
4888fi
4889
4890if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4891	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4892		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4893	fi
4894	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4895	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4896$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4897if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4898  $as_echo_n "(cached) " >&6
4899else
4900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901/* end confdefs.h.  */
4902int i;
4903_ACEOF
4904if ac_fn_c_try_compile "$LINENO"; then :
4905  xorg_cv_cc_flag_unused_command_line_argument=yes
4906else
4907  xorg_cv_cc_flag_unused_command_line_argument=no
4908fi
4909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910fi
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4912$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4913	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4914	CFLAGS="$xorg_testset_save_CFLAGS"
4915fi
4916
4917found="no"
4918
4919	if test $found = "no" ; then
4920		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4921			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4922		fi
4923
4924		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4925			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4926		fi
4927
4928		CFLAGS="$CFLAGS -Wpointer-arith"
4929
4930		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4931$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4932		cacheid=xorg_cv_cc_flag__Wpointer_arith
4933		if eval \${$cacheid+:} false; then :
4934  $as_echo_n "(cached) " >&6
4935else
4936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937/* end confdefs.h.  */
4938int i;
4939int
4940main ()
4941{
4942
4943  ;
4944  return 0;
4945}
4946_ACEOF
4947if ac_fn_c_try_link "$LINENO"; then :
4948  eval $cacheid=yes
4949else
4950  eval $cacheid=no
4951fi
4952rm -f core conftest.err conftest.$ac_objext \
4953    conftest$ac_exeext conftest.$ac_ext
4954fi
4955
4956
4957		CFLAGS="$xorg_testset_save_CFLAGS"
4958
4959		eval supported=\$$cacheid
4960		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4961$as_echo "$supported" >&6; }
4962		if test "$supported" = "yes" ; then
4963			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4964			found="yes"
4965		fi
4966	fi
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982xorg_testset_save_CFLAGS="$CFLAGS"
4983
4984if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4985	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4986	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4987$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4988if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4989  $as_echo_n "(cached) " >&6
4990else
4991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992/* end confdefs.h.  */
4993int i;
4994_ACEOF
4995if ac_fn_c_try_compile "$LINENO"; then :
4996  xorg_cv_cc_flag_unknown_warning_option=yes
4997else
4998  xorg_cv_cc_flag_unknown_warning_option=no
4999fi
5000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5001fi
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5003$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5004	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5005	CFLAGS="$xorg_testset_save_CFLAGS"
5006fi
5007
5008if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5009	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5010		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5011	fi
5012	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5013	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5014$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5015if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5016  $as_echo_n "(cached) " >&6
5017else
5018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019/* end confdefs.h.  */
5020int i;
5021_ACEOF
5022if ac_fn_c_try_compile "$LINENO"; then :
5023  xorg_cv_cc_flag_unused_command_line_argument=yes
5024else
5025  xorg_cv_cc_flag_unused_command_line_argument=no
5026fi
5027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028fi
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5030$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5031	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5032	CFLAGS="$xorg_testset_save_CFLAGS"
5033fi
5034
5035found="no"
5036
5037	if test $found = "no" ; then
5038		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5039			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5040		fi
5041
5042		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5043			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5044		fi
5045
5046		CFLAGS="$CFLAGS -Wmissing-declarations"
5047
5048		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
5049$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
5050		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5051		if eval \${$cacheid+:} false; then :
5052  $as_echo_n "(cached) " >&6
5053else
5054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055/* end confdefs.h.  */
5056int i;
5057int
5058main ()
5059{
5060
5061  ;
5062  return 0;
5063}
5064_ACEOF
5065if ac_fn_c_try_link "$LINENO"; then :
5066  eval $cacheid=yes
5067else
5068  eval $cacheid=no
5069fi
5070rm -f core conftest.err conftest.$ac_objext \
5071    conftest$ac_exeext conftest.$ac_ext
5072fi
5073
5074
5075		CFLAGS="$xorg_testset_save_CFLAGS"
5076
5077		eval supported=\$$cacheid
5078		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5079$as_echo "$supported" >&6; }
5080		if test "$supported" = "yes" ; then
5081			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5082			found="yes"
5083		fi
5084	fi
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100xorg_testset_save_CFLAGS="$CFLAGS"
5101
5102if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5103	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5104	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5105$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5106if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5107  $as_echo_n "(cached) " >&6
5108else
5109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110/* end confdefs.h.  */
5111int i;
5112_ACEOF
5113if ac_fn_c_try_compile "$LINENO"; then :
5114  xorg_cv_cc_flag_unknown_warning_option=yes
5115else
5116  xorg_cv_cc_flag_unknown_warning_option=no
5117fi
5118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119fi
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5121$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5122	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5123	CFLAGS="$xorg_testset_save_CFLAGS"
5124fi
5125
5126if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5127	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5128		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5129	fi
5130	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5131	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5132$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5133if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5134  $as_echo_n "(cached) " >&6
5135else
5136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137/* end confdefs.h.  */
5138int i;
5139_ACEOF
5140if ac_fn_c_try_compile "$LINENO"; then :
5141  xorg_cv_cc_flag_unused_command_line_argument=yes
5142else
5143  xorg_cv_cc_flag_unused_command_line_argument=no
5144fi
5145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5146fi
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5148$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5149	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5150	CFLAGS="$xorg_testset_save_CFLAGS"
5151fi
5152
5153found="no"
5154
5155	if test $found = "no" ; then
5156		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5157			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5158		fi
5159
5160		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5161			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5162		fi
5163
5164		CFLAGS="$CFLAGS -Wformat=2"
5165
5166		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
5167$as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
5168		cacheid=xorg_cv_cc_flag__Wformat_2
5169		if eval \${$cacheid+:} false; then :
5170  $as_echo_n "(cached) " >&6
5171else
5172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173/* end confdefs.h.  */
5174int i;
5175int
5176main ()
5177{
5178
5179  ;
5180  return 0;
5181}
5182_ACEOF
5183if ac_fn_c_try_link "$LINENO"; then :
5184  eval $cacheid=yes
5185else
5186  eval $cacheid=no
5187fi
5188rm -f core conftest.err conftest.$ac_objext \
5189    conftest$ac_exeext conftest.$ac_ext
5190fi
5191
5192
5193		CFLAGS="$xorg_testset_save_CFLAGS"
5194
5195		eval supported=\$$cacheid
5196		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5197$as_echo "$supported" >&6; }
5198		if test "$supported" = "yes" ; then
5199			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5200			found="yes"
5201		fi
5202	fi
5203
5204	if test $found = "no" ; then
5205		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5206			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5207		fi
5208
5209		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5210			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5211		fi
5212
5213		CFLAGS="$CFLAGS -Wformat"
5214
5215		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5216$as_echo_n "checking if $CC supports-Wformat... " >&6; }
5217		cacheid=xorg_cv_cc_flag__Wformat
5218		if eval \${$cacheid+:} false; then :
5219  $as_echo_n "(cached) " >&6
5220else
5221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222/* end confdefs.h.  */
5223int i;
5224int
5225main ()
5226{
5227
5228  ;
5229  return 0;
5230}
5231_ACEOF
5232if ac_fn_c_try_link "$LINENO"; then :
5233  eval $cacheid=yes
5234else
5235  eval $cacheid=no
5236fi
5237rm -f core conftest.err conftest.$ac_objext \
5238    conftest$ac_exeext conftest.$ac_ext
5239fi
5240
5241
5242		CFLAGS="$xorg_testset_save_CFLAGS"
5243
5244		eval supported=\$$cacheid
5245		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5246$as_echo "$supported" >&6; }
5247		if test "$supported" = "yes" ; then
5248			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5249			found="yes"
5250		fi
5251	fi
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269xorg_testset_save_CFLAGS="$CFLAGS"
5270
5271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5272	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5273	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5274$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5275if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5276  $as_echo_n "(cached) " >&6
5277else
5278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279/* end confdefs.h.  */
5280int i;
5281_ACEOF
5282if ac_fn_c_try_compile "$LINENO"; then :
5283  xorg_cv_cc_flag_unknown_warning_option=yes
5284else
5285  xorg_cv_cc_flag_unknown_warning_option=no
5286fi
5287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288fi
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5290$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5291	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5292	CFLAGS="$xorg_testset_save_CFLAGS"
5293fi
5294
5295if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5296	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5297		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5298	fi
5299	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5300	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5301$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5302if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5303  $as_echo_n "(cached) " >&6
5304else
5305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306/* end confdefs.h.  */
5307int i;
5308_ACEOF
5309if ac_fn_c_try_compile "$LINENO"; then :
5310  xorg_cv_cc_flag_unused_command_line_argument=yes
5311else
5312  xorg_cv_cc_flag_unused_command_line_argument=no
5313fi
5314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5315fi
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5317$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5318	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5319	CFLAGS="$xorg_testset_save_CFLAGS"
5320fi
5321
5322found="no"
5323
5324	if test $found = "no" ; then
5325		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5326			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5327		fi
5328
5329		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5330			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5331		fi
5332
5333		CFLAGS="$CFLAGS -Wstrict-prototypes"
5334
5335		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5336$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5337		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5338		if eval \${$cacheid+:} false; then :
5339  $as_echo_n "(cached) " >&6
5340else
5341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342/* end confdefs.h.  */
5343int i;
5344int
5345main ()
5346{
5347
5348  ;
5349  return 0;
5350}
5351_ACEOF
5352if ac_fn_c_try_link "$LINENO"; then :
5353  eval $cacheid=yes
5354else
5355  eval $cacheid=no
5356fi
5357rm -f core conftest.err conftest.$ac_objext \
5358    conftest$ac_exeext conftest.$ac_ext
5359fi
5360
5361
5362		CFLAGS="$xorg_testset_save_CFLAGS"
5363
5364		eval supported=\$$cacheid
5365		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5366$as_echo "$supported" >&6; }
5367		if test "$supported" = "yes" ; then
5368			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5369			found="yes"
5370		fi
5371	fi
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387xorg_testset_save_CFLAGS="$CFLAGS"
5388
5389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5390	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5391	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5392$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5393if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5394  $as_echo_n "(cached) " >&6
5395else
5396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397/* end confdefs.h.  */
5398int i;
5399_ACEOF
5400if ac_fn_c_try_compile "$LINENO"; then :
5401  xorg_cv_cc_flag_unknown_warning_option=yes
5402else
5403  xorg_cv_cc_flag_unknown_warning_option=no
5404fi
5405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406fi
5407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5408$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5409	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5410	CFLAGS="$xorg_testset_save_CFLAGS"
5411fi
5412
5413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5414	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5415		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5416	fi
5417	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5418	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5419$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5420if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5421  $as_echo_n "(cached) " >&6
5422else
5423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424/* end confdefs.h.  */
5425int i;
5426_ACEOF
5427if ac_fn_c_try_compile "$LINENO"; then :
5428  xorg_cv_cc_flag_unused_command_line_argument=yes
5429else
5430  xorg_cv_cc_flag_unused_command_line_argument=no
5431fi
5432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433fi
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5435$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5436	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5437	CFLAGS="$xorg_testset_save_CFLAGS"
5438fi
5439
5440found="no"
5441
5442	if test $found = "no" ; then
5443		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5444			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5445		fi
5446
5447		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5448			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5449		fi
5450
5451		CFLAGS="$CFLAGS -Wmissing-prototypes"
5452
5453		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5454$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5455		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5456		if eval \${$cacheid+:} false; then :
5457  $as_echo_n "(cached) " >&6
5458else
5459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460/* end confdefs.h.  */
5461int i;
5462int
5463main ()
5464{
5465
5466  ;
5467  return 0;
5468}
5469_ACEOF
5470if ac_fn_c_try_link "$LINENO"; then :
5471  eval $cacheid=yes
5472else
5473  eval $cacheid=no
5474fi
5475rm -f core conftest.err conftest.$ac_objext \
5476    conftest$ac_exeext conftest.$ac_ext
5477fi
5478
5479
5480		CFLAGS="$xorg_testset_save_CFLAGS"
5481
5482		eval supported=\$$cacheid
5483		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5484$as_echo "$supported" >&6; }
5485		if test "$supported" = "yes" ; then
5486			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5487			found="yes"
5488		fi
5489	fi
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505xorg_testset_save_CFLAGS="$CFLAGS"
5506
5507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5508	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5509	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5510$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5511if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5512  $as_echo_n "(cached) " >&6
5513else
5514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515/* end confdefs.h.  */
5516int i;
5517_ACEOF
5518if ac_fn_c_try_compile "$LINENO"; then :
5519  xorg_cv_cc_flag_unknown_warning_option=yes
5520else
5521  xorg_cv_cc_flag_unknown_warning_option=no
5522fi
5523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524fi
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5526$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5527	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5528	CFLAGS="$xorg_testset_save_CFLAGS"
5529fi
5530
5531if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5532	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5533		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5534	fi
5535	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5536	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5537$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5538if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5539  $as_echo_n "(cached) " >&6
5540else
5541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542/* end confdefs.h.  */
5543int i;
5544_ACEOF
5545if ac_fn_c_try_compile "$LINENO"; then :
5546  xorg_cv_cc_flag_unused_command_line_argument=yes
5547else
5548  xorg_cv_cc_flag_unused_command_line_argument=no
5549fi
5550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551fi
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5553$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5554	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5555	CFLAGS="$xorg_testset_save_CFLAGS"
5556fi
5557
5558found="no"
5559
5560	if test $found = "no" ; then
5561		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5562			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5563		fi
5564
5565		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5566			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5567		fi
5568
5569		CFLAGS="$CFLAGS -Wnested-externs"
5570
5571		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5572$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5573		cacheid=xorg_cv_cc_flag__Wnested_externs
5574		if eval \${$cacheid+:} false; then :
5575  $as_echo_n "(cached) " >&6
5576else
5577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578/* end confdefs.h.  */
5579int i;
5580int
5581main ()
5582{
5583
5584  ;
5585  return 0;
5586}
5587_ACEOF
5588if ac_fn_c_try_link "$LINENO"; then :
5589  eval $cacheid=yes
5590else
5591  eval $cacheid=no
5592fi
5593rm -f core conftest.err conftest.$ac_objext \
5594    conftest$ac_exeext conftest.$ac_ext
5595fi
5596
5597
5598		CFLAGS="$xorg_testset_save_CFLAGS"
5599
5600		eval supported=\$$cacheid
5601		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5602$as_echo "$supported" >&6; }
5603		if test "$supported" = "yes" ; then
5604			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5605			found="yes"
5606		fi
5607	fi
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623xorg_testset_save_CFLAGS="$CFLAGS"
5624
5625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5626	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5627	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5628$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5629if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5630  $as_echo_n "(cached) " >&6
5631else
5632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633/* end confdefs.h.  */
5634int i;
5635_ACEOF
5636if ac_fn_c_try_compile "$LINENO"; then :
5637  xorg_cv_cc_flag_unknown_warning_option=yes
5638else
5639  xorg_cv_cc_flag_unknown_warning_option=no
5640fi
5641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642fi
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5644$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5645	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5646	CFLAGS="$xorg_testset_save_CFLAGS"
5647fi
5648
5649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5650	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5651		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5652	fi
5653	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5654	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5655$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5656if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5657  $as_echo_n "(cached) " >&6
5658else
5659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660/* end confdefs.h.  */
5661int i;
5662_ACEOF
5663if ac_fn_c_try_compile "$LINENO"; then :
5664  xorg_cv_cc_flag_unused_command_line_argument=yes
5665else
5666  xorg_cv_cc_flag_unused_command_line_argument=no
5667fi
5668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669fi
5670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5671$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5672	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5673	CFLAGS="$xorg_testset_save_CFLAGS"
5674fi
5675
5676found="no"
5677
5678	if test $found = "no" ; then
5679		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5680			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5681		fi
5682
5683		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5684			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5685		fi
5686
5687		CFLAGS="$CFLAGS -Wbad-function-cast"
5688
5689		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5690$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5691		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5692		if eval \${$cacheid+:} false; then :
5693  $as_echo_n "(cached) " >&6
5694else
5695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696/* end confdefs.h.  */
5697int i;
5698int
5699main ()
5700{
5701
5702  ;
5703  return 0;
5704}
5705_ACEOF
5706if ac_fn_c_try_link "$LINENO"; then :
5707  eval $cacheid=yes
5708else
5709  eval $cacheid=no
5710fi
5711rm -f core conftest.err conftest.$ac_objext \
5712    conftest$ac_exeext conftest.$ac_ext
5713fi
5714
5715
5716		CFLAGS="$xorg_testset_save_CFLAGS"
5717
5718		eval supported=\$$cacheid
5719		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5720$as_echo "$supported" >&6; }
5721		if test "$supported" = "yes" ; then
5722			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5723			found="yes"
5724		fi
5725	fi
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741xorg_testset_save_CFLAGS="$CFLAGS"
5742
5743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5744	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5745	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5746$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5747if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5748  $as_echo_n "(cached) " >&6
5749else
5750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751/* end confdefs.h.  */
5752int i;
5753_ACEOF
5754if ac_fn_c_try_compile "$LINENO"; then :
5755  xorg_cv_cc_flag_unknown_warning_option=yes
5756else
5757  xorg_cv_cc_flag_unknown_warning_option=no
5758fi
5759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760fi
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5762$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5763	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5764	CFLAGS="$xorg_testset_save_CFLAGS"
5765fi
5766
5767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5768	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5769		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5770	fi
5771	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5772	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5773$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5774if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5775  $as_echo_n "(cached) " >&6
5776else
5777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778/* end confdefs.h.  */
5779int i;
5780_ACEOF
5781if ac_fn_c_try_compile "$LINENO"; then :
5782  xorg_cv_cc_flag_unused_command_line_argument=yes
5783else
5784  xorg_cv_cc_flag_unused_command_line_argument=no
5785fi
5786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787fi
5788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5789$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5790	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5791	CFLAGS="$xorg_testset_save_CFLAGS"
5792fi
5793
5794found="no"
5795
5796	if test $found = "no" ; then
5797		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5798			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5799		fi
5800
5801		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5802			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5803		fi
5804
5805		CFLAGS="$CFLAGS -Wold-style-definition"
5806
5807		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5808$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5809		cacheid=xorg_cv_cc_flag__Wold_style_definition
5810		if eval \${$cacheid+:} false; then :
5811  $as_echo_n "(cached) " >&6
5812else
5813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814/* end confdefs.h.  */
5815int i;
5816int
5817main ()
5818{
5819
5820  ;
5821  return 0;
5822}
5823_ACEOF
5824if ac_fn_c_try_link "$LINENO"; then :
5825  eval $cacheid=yes
5826else
5827  eval $cacheid=no
5828fi
5829rm -f core conftest.err conftest.$ac_objext \
5830    conftest$ac_exeext conftest.$ac_ext
5831fi
5832
5833
5834		CFLAGS="$xorg_testset_save_CFLAGS"
5835
5836		eval supported=\$$cacheid
5837		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5838$as_echo "$supported" >&6; }
5839		if test "$supported" = "yes" ; then
5840			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5841			found="yes"
5842		fi
5843	fi
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859xorg_testset_save_CFLAGS="$CFLAGS"
5860
5861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5862	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5863	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5864$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5865if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5866  $as_echo_n "(cached) " >&6
5867else
5868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869/* end confdefs.h.  */
5870int i;
5871_ACEOF
5872if ac_fn_c_try_compile "$LINENO"; then :
5873  xorg_cv_cc_flag_unknown_warning_option=yes
5874else
5875  xorg_cv_cc_flag_unknown_warning_option=no
5876fi
5877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878fi
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5880$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5881	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5882	CFLAGS="$xorg_testset_save_CFLAGS"
5883fi
5884
5885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5886	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5887		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5888	fi
5889	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5890	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5891$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5892if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5893  $as_echo_n "(cached) " >&6
5894else
5895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5896/* end confdefs.h.  */
5897int i;
5898_ACEOF
5899if ac_fn_c_try_compile "$LINENO"; then :
5900  xorg_cv_cc_flag_unused_command_line_argument=yes
5901else
5902  xorg_cv_cc_flag_unused_command_line_argument=no
5903fi
5904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905fi
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5907$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5908	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5909	CFLAGS="$xorg_testset_save_CFLAGS"
5910fi
5911
5912found="no"
5913
5914	if test $found = "no" ; then
5915		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5916			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5917		fi
5918
5919		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5920			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5921		fi
5922
5923		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5924
5925		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5926$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5927		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5928		if eval \${$cacheid+:} false; then :
5929  $as_echo_n "(cached) " >&6
5930else
5931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932/* end confdefs.h.  */
5933int i;
5934int
5935main ()
5936{
5937
5938  ;
5939  return 0;
5940}
5941_ACEOF
5942if ac_fn_c_try_link "$LINENO"; then :
5943  eval $cacheid=yes
5944else
5945  eval $cacheid=no
5946fi
5947rm -f core conftest.err conftest.$ac_objext \
5948    conftest$ac_exeext conftest.$ac_ext
5949fi
5950
5951
5952		CFLAGS="$xorg_testset_save_CFLAGS"
5953
5954		eval supported=\$$cacheid
5955		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5956$as_echo "$supported" >&6; }
5957		if test "$supported" = "yes" ; then
5958			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5959			found="yes"
5960		fi
5961	fi
5962
5963
5964
5965
5966
5967# This chunk adds additional warnings that could catch undesired effects.
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981xorg_testset_save_CFLAGS="$CFLAGS"
5982
5983if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5984	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5985	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5986$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5987if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5988  $as_echo_n "(cached) " >&6
5989else
5990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991/* end confdefs.h.  */
5992int i;
5993_ACEOF
5994if ac_fn_c_try_compile "$LINENO"; then :
5995  xorg_cv_cc_flag_unknown_warning_option=yes
5996else
5997  xorg_cv_cc_flag_unknown_warning_option=no
5998fi
5999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6000fi
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6002$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6003	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6004	CFLAGS="$xorg_testset_save_CFLAGS"
6005fi
6006
6007if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6008	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6009		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6010	fi
6011	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6012	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6013$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6014if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6015  $as_echo_n "(cached) " >&6
6016else
6017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018/* end confdefs.h.  */
6019int i;
6020_ACEOF
6021if ac_fn_c_try_compile "$LINENO"; then :
6022  xorg_cv_cc_flag_unused_command_line_argument=yes
6023else
6024  xorg_cv_cc_flag_unused_command_line_argument=no
6025fi
6026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027fi
6028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6029$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6030	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6031	CFLAGS="$xorg_testset_save_CFLAGS"
6032fi
6033
6034found="no"
6035
6036	if test $found = "no" ; then
6037		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6038			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6039		fi
6040
6041		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6042			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6043		fi
6044
6045		CFLAGS="$CFLAGS -Wunused"
6046
6047		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
6048$as_echo_n "checking if $CC supports-Wunused... " >&6; }
6049		cacheid=xorg_cv_cc_flag__Wunused
6050		if eval \${$cacheid+:} false; then :
6051  $as_echo_n "(cached) " >&6
6052else
6053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054/* end confdefs.h.  */
6055int i;
6056int
6057main ()
6058{
6059
6060  ;
6061  return 0;
6062}
6063_ACEOF
6064if ac_fn_c_try_link "$LINENO"; then :
6065  eval $cacheid=yes
6066else
6067  eval $cacheid=no
6068fi
6069rm -f core conftest.err conftest.$ac_objext \
6070    conftest$ac_exeext conftest.$ac_ext
6071fi
6072
6073
6074		CFLAGS="$xorg_testset_save_CFLAGS"
6075
6076		eval supported=\$$cacheid
6077		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6078$as_echo "$supported" >&6; }
6079		if test "$supported" = "yes" ; then
6080			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6081			found="yes"
6082		fi
6083	fi
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099xorg_testset_save_CFLAGS="$CFLAGS"
6100
6101if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6102	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6103	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6104$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6105if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6106  $as_echo_n "(cached) " >&6
6107else
6108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109/* end confdefs.h.  */
6110int i;
6111_ACEOF
6112if ac_fn_c_try_compile "$LINENO"; then :
6113  xorg_cv_cc_flag_unknown_warning_option=yes
6114else
6115  xorg_cv_cc_flag_unknown_warning_option=no
6116fi
6117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118fi
6119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6120$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6121	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6122	CFLAGS="$xorg_testset_save_CFLAGS"
6123fi
6124
6125if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6126	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6127		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6128	fi
6129	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6130	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6131$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6132if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6133  $as_echo_n "(cached) " >&6
6134else
6135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136/* end confdefs.h.  */
6137int i;
6138_ACEOF
6139if ac_fn_c_try_compile "$LINENO"; then :
6140  xorg_cv_cc_flag_unused_command_line_argument=yes
6141else
6142  xorg_cv_cc_flag_unused_command_line_argument=no
6143fi
6144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145fi
6146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6147$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6148	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6149	CFLAGS="$xorg_testset_save_CFLAGS"
6150fi
6151
6152found="no"
6153
6154	if test $found = "no" ; then
6155		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6156			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6157		fi
6158
6159		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6160			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6161		fi
6162
6163		CFLAGS="$CFLAGS -Wuninitialized"
6164
6165		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
6166$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
6167		cacheid=xorg_cv_cc_flag__Wuninitialized
6168		if eval \${$cacheid+:} false; then :
6169  $as_echo_n "(cached) " >&6
6170else
6171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172/* end confdefs.h.  */
6173int i;
6174int
6175main ()
6176{
6177
6178  ;
6179  return 0;
6180}
6181_ACEOF
6182if ac_fn_c_try_link "$LINENO"; then :
6183  eval $cacheid=yes
6184else
6185  eval $cacheid=no
6186fi
6187rm -f core conftest.err conftest.$ac_objext \
6188    conftest$ac_exeext conftest.$ac_ext
6189fi
6190
6191
6192		CFLAGS="$xorg_testset_save_CFLAGS"
6193
6194		eval supported=\$$cacheid
6195		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6196$as_echo "$supported" >&6; }
6197		if test "$supported" = "yes" ; then
6198			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6199			found="yes"
6200		fi
6201	fi
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217xorg_testset_save_CFLAGS="$CFLAGS"
6218
6219if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6220	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6221	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6222$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6223if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6224  $as_echo_n "(cached) " >&6
6225else
6226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227/* end confdefs.h.  */
6228int i;
6229_ACEOF
6230if ac_fn_c_try_compile "$LINENO"; then :
6231  xorg_cv_cc_flag_unknown_warning_option=yes
6232else
6233  xorg_cv_cc_flag_unknown_warning_option=no
6234fi
6235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6236fi
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6238$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6239	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6240	CFLAGS="$xorg_testset_save_CFLAGS"
6241fi
6242
6243if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6244	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6245		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6246	fi
6247	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6248	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6249$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6250if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6251  $as_echo_n "(cached) " >&6
6252else
6253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6254/* end confdefs.h.  */
6255int i;
6256_ACEOF
6257if ac_fn_c_try_compile "$LINENO"; then :
6258  xorg_cv_cc_flag_unused_command_line_argument=yes
6259else
6260  xorg_cv_cc_flag_unused_command_line_argument=no
6261fi
6262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6263fi
6264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6265$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6266	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6267	CFLAGS="$xorg_testset_save_CFLAGS"
6268fi
6269
6270found="no"
6271
6272	if test $found = "no" ; then
6273		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6274			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6275		fi
6276
6277		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6278			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6279		fi
6280
6281		CFLAGS="$CFLAGS -Wshadow"
6282
6283		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6284$as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6285		cacheid=xorg_cv_cc_flag__Wshadow
6286		if eval \${$cacheid+:} false; then :
6287  $as_echo_n "(cached) " >&6
6288else
6289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290/* end confdefs.h.  */
6291int i;
6292int
6293main ()
6294{
6295
6296  ;
6297  return 0;
6298}
6299_ACEOF
6300if ac_fn_c_try_link "$LINENO"; then :
6301  eval $cacheid=yes
6302else
6303  eval $cacheid=no
6304fi
6305rm -f core conftest.err conftest.$ac_objext \
6306    conftest$ac_exeext conftest.$ac_ext
6307fi
6308
6309
6310		CFLAGS="$xorg_testset_save_CFLAGS"
6311
6312		eval supported=\$$cacheid
6313		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6314$as_echo "$supported" >&6; }
6315		if test "$supported" = "yes" ; then
6316			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6317			found="yes"
6318		fi
6319	fi
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335xorg_testset_save_CFLAGS="$CFLAGS"
6336
6337if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6338	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6339	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6340$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6341if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6342  $as_echo_n "(cached) " >&6
6343else
6344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345/* end confdefs.h.  */
6346int i;
6347_ACEOF
6348if ac_fn_c_try_compile "$LINENO"; then :
6349  xorg_cv_cc_flag_unknown_warning_option=yes
6350else
6351  xorg_cv_cc_flag_unknown_warning_option=no
6352fi
6353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354fi
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6356$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6357	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6358	CFLAGS="$xorg_testset_save_CFLAGS"
6359fi
6360
6361if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6362	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6363		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6364	fi
6365	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6366	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6367$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6368if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6369  $as_echo_n "(cached) " >&6
6370else
6371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372/* end confdefs.h.  */
6373int i;
6374_ACEOF
6375if ac_fn_c_try_compile "$LINENO"; then :
6376  xorg_cv_cc_flag_unused_command_line_argument=yes
6377else
6378  xorg_cv_cc_flag_unused_command_line_argument=no
6379fi
6380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6381fi
6382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6383$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6384	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6385	CFLAGS="$xorg_testset_save_CFLAGS"
6386fi
6387
6388found="no"
6389
6390	if test $found = "no" ; then
6391		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6392			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6393		fi
6394
6395		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6396			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6397		fi
6398
6399		CFLAGS="$CFLAGS -Wcast-qual"
6400
6401		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6402$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6403		cacheid=xorg_cv_cc_flag__Wcast_qual
6404		if eval \${$cacheid+:} false; then :
6405  $as_echo_n "(cached) " >&6
6406else
6407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408/* end confdefs.h.  */
6409int i;
6410int
6411main ()
6412{
6413
6414  ;
6415  return 0;
6416}
6417_ACEOF
6418if ac_fn_c_try_link "$LINENO"; then :
6419  eval $cacheid=yes
6420else
6421  eval $cacheid=no
6422fi
6423rm -f core conftest.err conftest.$ac_objext \
6424    conftest$ac_exeext conftest.$ac_ext
6425fi
6426
6427
6428		CFLAGS="$xorg_testset_save_CFLAGS"
6429
6430		eval supported=\$$cacheid
6431		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6432$as_echo "$supported" >&6; }
6433		if test "$supported" = "yes" ; then
6434			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6435			found="yes"
6436		fi
6437	fi
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453xorg_testset_save_CFLAGS="$CFLAGS"
6454
6455if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6456	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6457	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6458$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6459if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6460  $as_echo_n "(cached) " >&6
6461else
6462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463/* end confdefs.h.  */
6464int i;
6465_ACEOF
6466if ac_fn_c_try_compile "$LINENO"; then :
6467  xorg_cv_cc_flag_unknown_warning_option=yes
6468else
6469  xorg_cv_cc_flag_unknown_warning_option=no
6470fi
6471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6472fi
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6474$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6475	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6476	CFLAGS="$xorg_testset_save_CFLAGS"
6477fi
6478
6479if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6480	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6481		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6482	fi
6483	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6484	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6485$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6486if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6487  $as_echo_n "(cached) " >&6
6488else
6489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490/* end confdefs.h.  */
6491int i;
6492_ACEOF
6493if ac_fn_c_try_compile "$LINENO"; then :
6494  xorg_cv_cc_flag_unused_command_line_argument=yes
6495else
6496  xorg_cv_cc_flag_unused_command_line_argument=no
6497fi
6498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499fi
6500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6501$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6502	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6503	CFLAGS="$xorg_testset_save_CFLAGS"
6504fi
6505
6506found="no"
6507
6508	if test $found = "no" ; then
6509		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6510			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6511		fi
6512
6513		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6514			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6515		fi
6516
6517		CFLAGS="$CFLAGS -Wmissing-noreturn"
6518
6519		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6520$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6521		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6522		if eval \${$cacheid+:} false; then :
6523  $as_echo_n "(cached) " >&6
6524else
6525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526/* end confdefs.h.  */
6527int i;
6528int
6529main ()
6530{
6531
6532  ;
6533  return 0;
6534}
6535_ACEOF
6536if ac_fn_c_try_link "$LINENO"; then :
6537  eval $cacheid=yes
6538else
6539  eval $cacheid=no
6540fi
6541rm -f core conftest.err conftest.$ac_objext \
6542    conftest$ac_exeext conftest.$ac_ext
6543fi
6544
6545
6546		CFLAGS="$xorg_testset_save_CFLAGS"
6547
6548		eval supported=\$$cacheid
6549		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6550$as_echo "$supported" >&6; }
6551		if test "$supported" = "yes" ; then
6552			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6553			found="yes"
6554		fi
6555	fi
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571xorg_testset_save_CFLAGS="$CFLAGS"
6572
6573if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6574	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6575	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6576$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6577if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6578  $as_echo_n "(cached) " >&6
6579else
6580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581/* end confdefs.h.  */
6582int i;
6583_ACEOF
6584if ac_fn_c_try_compile "$LINENO"; then :
6585  xorg_cv_cc_flag_unknown_warning_option=yes
6586else
6587  xorg_cv_cc_flag_unknown_warning_option=no
6588fi
6589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6590fi
6591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6592$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6593	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6594	CFLAGS="$xorg_testset_save_CFLAGS"
6595fi
6596
6597if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6598	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6599		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6600	fi
6601	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6602	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6603$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6604if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6605  $as_echo_n "(cached) " >&6
6606else
6607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608/* end confdefs.h.  */
6609int i;
6610_ACEOF
6611if ac_fn_c_try_compile "$LINENO"; then :
6612  xorg_cv_cc_flag_unused_command_line_argument=yes
6613else
6614  xorg_cv_cc_flag_unused_command_line_argument=no
6615fi
6616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617fi
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6619$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6620	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6621	CFLAGS="$xorg_testset_save_CFLAGS"
6622fi
6623
6624found="no"
6625
6626	if test $found = "no" ; then
6627		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6628			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6629		fi
6630
6631		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6632			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6633		fi
6634
6635		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6636
6637		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6638$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6639		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6640		if eval \${$cacheid+:} false; then :
6641  $as_echo_n "(cached) " >&6
6642else
6643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644/* end confdefs.h.  */
6645int i;
6646int
6647main ()
6648{
6649
6650  ;
6651  return 0;
6652}
6653_ACEOF
6654if ac_fn_c_try_link "$LINENO"; then :
6655  eval $cacheid=yes
6656else
6657  eval $cacheid=no
6658fi
6659rm -f core conftest.err conftest.$ac_objext \
6660    conftest$ac_exeext conftest.$ac_ext
6661fi
6662
6663
6664		CFLAGS="$xorg_testset_save_CFLAGS"
6665
6666		eval supported=\$$cacheid
6667		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6668$as_echo "$supported" >&6; }
6669		if test "$supported" = "yes" ; then
6670			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6671			found="yes"
6672		fi
6673	fi
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689xorg_testset_save_CFLAGS="$CFLAGS"
6690
6691if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6692	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6693	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6694$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6695if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6696  $as_echo_n "(cached) " >&6
6697else
6698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699/* end confdefs.h.  */
6700int i;
6701_ACEOF
6702if ac_fn_c_try_compile "$LINENO"; then :
6703  xorg_cv_cc_flag_unknown_warning_option=yes
6704else
6705  xorg_cv_cc_flag_unknown_warning_option=no
6706fi
6707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6708fi
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6710$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6711	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6712	CFLAGS="$xorg_testset_save_CFLAGS"
6713fi
6714
6715if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6716	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6717		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6718	fi
6719	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6720	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6721$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6722if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6723  $as_echo_n "(cached) " >&6
6724else
6725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726/* end confdefs.h.  */
6727int i;
6728_ACEOF
6729if ac_fn_c_try_compile "$LINENO"; then :
6730  xorg_cv_cc_flag_unused_command_line_argument=yes
6731else
6732  xorg_cv_cc_flag_unused_command_line_argument=no
6733fi
6734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735fi
6736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6737$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6738	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6739	CFLAGS="$xorg_testset_save_CFLAGS"
6740fi
6741
6742found="no"
6743
6744	if test $found = "no" ; then
6745		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6746			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6747		fi
6748
6749		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6750			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6751		fi
6752
6753		CFLAGS="$CFLAGS -Wredundant-decls"
6754
6755		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6756$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6757		cacheid=xorg_cv_cc_flag__Wredundant_decls
6758		if eval \${$cacheid+:} false; then :
6759  $as_echo_n "(cached) " >&6
6760else
6761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762/* end confdefs.h.  */
6763int i;
6764int
6765main ()
6766{
6767
6768  ;
6769  return 0;
6770}
6771_ACEOF
6772if ac_fn_c_try_link "$LINENO"; then :
6773  eval $cacheid=yes
6774else
6775  eval $cacheid=no
6776fi
6777rm -f core conftest.err conftest.$ac_objext \
6778    conftest$ac_exeext conftest.$ac_ext
6779fi
6780
6781
6782		CFLAGS="$xorg_testset_save_CFLAGS"
6783
6784		eval supported=\$$cacheid
6785		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6786$as_echo "$supported" >&6; }
6787		if test "$supported" = "yes" ; then
6788			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6789			found="yes"
6790		fi
6791	fi
6792
6793
6794
6795# These are currently disabled because they are noisy.  They will be enabled
6796# in the future once the codebase is sufficiently modernized to silence
6797# them.  For now, I don't want them to drown out the other warnings.
6798# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6799# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6800# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6801
6802# Turn some warnings into errors, so we don't accidently get successful builds
6803# when there are problems that should be fixed.
6804
6805if test "x$SELECTIVE_WERROR" = "xyes" ; then
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819xorg_testset_save_CFLAGS="$CFLAGS"
6820
6821if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6822	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6823	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6824$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6825if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6826  $as_echo_n "(cached) " >&6
6827else
6828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829/* end confdefs.h.  */
6830int i;
6831_ACEOF
6832if ac_fn_c_try_compile "$LINENO"; then :
6833  xorg_cv_cc_flag_unknown_warning_option=yes
6834else
6835  xorg_cv_cc_flag_unknown_warning_option=no
6836fi
6837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6838fi
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6840$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6841	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6842	CFLAGS="$xorg_testset_save_CFLAGS"
6843fi
6844
6845if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6846	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6847		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6848	fi
6849	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6850	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6851$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6852if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6853  $as_echo_n "(cached) " >&6
6854else
6855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856/* end confdefs.h.  */
6857int i;
6858_ACEOF
6859if ac_fn_c_try_compile "$LINENO"; then :
6860  xorg_cv_cc_flag_unused_command_line_argument=yes
6861else
6862  xorg_cv_cc_flag_unused_command_line_argument=no
6863fi
6864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6865fi
6866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6867$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6868	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6869	CFLAGS="$xorg_testset_save_CFLAGS"
6870fi
6871
6872found="no"
6873
6874	if test $found = "no" ; then
6875		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6876			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6877		fi
6878
6879		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6880			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6881		fi
6882
6883		CFLAGS="$CFLAGS -Werror=implicit"
6884
6885		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6886$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6887		cacheid=xorg_cv_cc_flag__Werror_implicit
6888		if eval \${$cacheid+:} false; then :
6889  $as_echo_n "(cached) " >&6
6890else
6891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892/* end confdefs.h.  */
6893int i;
6894int
6895main ()
6896{
6897
6898  ;
6899  return 0;
6900}
6901_ACEOF
6902if ac_fn_c_try_link "$LINENO"; then :
6903  eval $cacheid=yes
6904else
6905  eval $cacheid=no
6906fi
6907rm -f core conftest.err conftest.$ac_objext \
6908    conftest$ac_exeext conftest.$ac_ext
6909fi
6910
6911
6912		CFLAGS="$xorg_testset_save_CFLAGS"
6913
6914		eval supported=\$$cacheid
6915		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6916$as_echo "$supported" >&6; }
6917		if test "$supported" = "yes" ; then
6918			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6919			found="yes"
6920		fi
6921	fi
6922
6923	if test $found = "no" ; then
6924		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6925			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6926		fi
6927
6928		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6929			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6930		fi
6931
6932		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6933
6934		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6935$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6936		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6937		if eval \${$cacheid+:} false; then :
6938  $as_echo_n "(cached) " >&6
6939else
6940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941/* end confdefs.h.  */
6942int i;
6943int
6944main ()
6945{
6946
6947  ;
6948  return 0;
6949}
6950_ACEOF
6951if ac_fn_c_try_link "$LINENO"; then :
6952  eval $cacheid=yes
6953else
6954  eval $cacheid=no
6955fi
6956rm -f core conftest.err conftest.$ac_objext \
6957    conftest$ac_exeext conftest.$ac_ext
6958fi
6959
6960
6961		CFLAGS="$xorg_testset_save_CFLAGS"
6962
6963		eval supported=\$$cacheid
6964		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6965$as_echo "$supported" >&6; }
6966		if test "$supported" = "yes" ; then
6967			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6968			found="yes"
6969		fi
6970	fi
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986xorg_testset_save_CFLAGS="$CFLAGS"
6987
6988if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6989	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6990	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6991$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6992if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6993  $as_echo_n "(cached) " >&6
6994else
6995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996/* end confdefs.h.  */
6997int i;
6998_ACEOF
6999if ac_fn_c_try_compile "$LINENO"; then :
7000  xorg_cv_cc_flag_unknown_warning_option=yes
7001else
7002  xorg_cv_cc_flag_unknown_warning_option=no
7003fi
7004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005fi
7006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7007$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7008	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7009	CFLAGS="$xorg_testset_save_CFLAGS"
7010fi
7011
7012if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7013	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7014		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7015	fi
7016	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7017	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7018$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7019if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7020  $as_echo_n "(cached) " >&6
7021else
7022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023/* end confdefs.h.  */
7024int i;
7025_ACEOF
7026if ac_fn_c_try_compile "$LINENO"; then :
7027  xorg_cv_cc_flag_unused_command_line_argument=yes
7028else
7029  xorg_cv_cc_flag_unused_command_line_argument=no
7030fi
7031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7032fi
7033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7034$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7035	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7036	CFLAGS="$xorg_testset_save_CFLAGS"
7037fi
7038
7039found="no"
7040
7041	if test $found = "no" ; then
7042		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7043			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7044		fi
7045
7046		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7047			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7048		fi
7049
7050		CFLAGS="$CFLAGS -Werror=nonnull"
7051
7052		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
7053$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
7054		cacheid=xorg_cv_cc_flag__Werror_nonnull
7055		if eval \${$cacheid+:} false; then :
7056  $as_echo_n "(cached) " >&6
7057else
7058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059/* end confdefs.h.  */
7060int i;
7061int
7062main ()
7063{
7064
7065  ;
7066  return 0;
7067}
7068_ACEOF
7069if ac_fn_c_try_link "$LINENO"; then :
7070  eval $cacheid=yes
7071else
7072  eval $cacheid=no
7073fi
7074rm -f core conftest.err conftest.$ac_objext \
7075    conftest$ac_exeext conftest.$ac_ext
7076fi
7077
7078
7079		CFLAGS="$xorg_testset_save_CFLAGS"
7080
7081		eval supported=\$$cacheid
7082		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7083$as_echo "$supported" >&6; }
7084		if test "$supported" = "yes" ; then
7085			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7086			found="yes"
7087		fi
7088	fi
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104xorg_testset_save_CFLAGS="$CFLAGS"
7105
7106if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7107	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7108	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7109$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7110if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7111  $as_echo_n "(cached) " >&6
7112else
7113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114/* end confdefs.h.  */
7115int i;
7116_ACEOF
7117if ac_fn_c_try_compile "$LINENO"; then :
7118  xorg_cv_cc_flag_unknown_warning_option=yes
7119else
7120  xorg_cv_cc_flag_unknown_warning_option=no
7121fi
7122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7123fi
7124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7125$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7126	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7127	CFLAGS="$xorg_testset_save_CFLAGS"
7128fi
7129
7130if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7131	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7132		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7133	fi
7134	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7135	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7136$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7137if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7138  $as_echo_n "(cached) " >&6
7139else
7140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141/* end confdefs.h.  */
7142int i;
7143_ACEOF
7144if ac_fn_c_try_compile "$LINENO"; then :
7145  xorg_cv_cc_flag_unused_command_line_argument=yes
7146else
7147  xorg_cv_cc_flag_unused_command_line_argument=no
7148fi
7149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150fi
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7152$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7153	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7154	CFLAGS="$xorg_testset_save_CFLAGS"
7155fi
7156
7157found="no"
7158
7159	if test $found = "no" ; then
7160		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7161			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7162		fi
7163
7164		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7165			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7166		fi
7167
7168		CFLAGS="$CFLAGS -Werror=init-self"
7169
7170		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
7171$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
7172		cacheid=xorg_cv_cc_flag__Werror_init_self
7173		if eval \${$cacheid+:} false; then :
7174  $as_echo_n "(cached) " >&6
7175else
7176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7177/* end confdefs.h.  */
7178int i;
7179int
7180main ()
7181{
7182
7183  ;
7184  return 0;
7185}
7186_ACEOF
7187if ac_fn_c_try_link "$LINENO"; then :
7188  eval $cacheid=yes
7189else
7190  eval $cacheid=no
7191fi
7192rm -f core conftest.err conftest.$ac_objext \
7193    conftest$ac_exeext conftest.$ac_ext
7194fi
7195
7196
7197		CFLAGS="$xorg_testset_save_CFLAGS"
7198
7199		eval supported=\$$cacheid
7200		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7201$as_echo "$supported" >&6; }
7202		if test "$supported" = "yes" ; then
7203			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7204			found="yes"
7205		fi
7206	fi
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222xorg_testset_save_CFLAGS="$CFLAGS"
7223
7224if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7225	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7226	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7227$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7228if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7229  $as_echo_n "(cached) " >&6
7230else
7231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232/* end confdefs.h.  */
7233int i;
7234_ACEOF
7235if ac_fn_c_try_compile "$LINENO"; then :
7236  xorg_cv_cc_flag_unknown_warning_option=yes
7237else
7238  xorg_cv_cc_flag_unknown_warning_option=no
7239fi
7240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7241fi
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7243$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7244	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7245	CFLAGS="$xorg_testset_save_CFLAGS"
7246fi
7247
7248if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7249	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7250		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7251	fi
7252	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7253	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7254$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7255if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7256  $as_echo_n "(cached) " >&6
7257else
7258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259/* end confdefs.h.  */
7260int i;
7261_ACEOF
7262if ac_fn_c_try_compile "$LINENO"; then :
7263  xorg_cv_cc_flag_unused_command_line_argument=yes
7264else
7265  xorg_cv_cc_flag_unused_command_line_argument=no
7266fi
7267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7268fi
7269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7270$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7271	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7272	CFLAGS="$xorg_testset_save_CFLAGS"
7273fi
7274
7275found="no"
7276
7277	if test $found = "no" ; then
7278		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7279			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7280		fi
7281
7282		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7283			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7284		fi
7285
7286		CFLAGS="$CFLAGS -Werror=main"
7287
7288		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7289$as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7290		cacheid=xorg_cv_cc_flag__Werror_main
7291		if eval \${$cacheid+:} false; then :
7292  $as_echo_n "(cached) " >&6
7293else
7294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7295/* end confdefs.h.  */
7296int i;
7297int
7298main ()
7299{
7300
7301  ;
7302  return 0;
7303}
7304_ACEOF
7305if ac_fn_c_try_link "$LINENO"; then :
7306  eval $cacheid=yes
7307else
7308  eval $cacheid=no
7309fi
7310rm -f core conftest.err conftest.$ac_objext \
7311    conftest$ac_exeext conftest.$ac_ext
7312fi
7313
7314
7315		CFLAGS="$xorg_testset_save_CFLAGS"
7316
7317		eval supported=\$$cacheid
7318		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7319$as_echo "$supported" >&6; }
7320		if test "$supported" = "yes" ; then
7321			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7322			found="yes"
7323		fi
7324	fi
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340xorg_testset_save_CFLAGS="$CFLAGS"
7341
7342if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7343	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7344	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7345$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7346if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7347  $as_echo_n "(cached) " >&6
7348else
7349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350/* end confdefs.h.  */
7351int i;
7352_ACEOF
7353if ac_fn_c_try_compile "$LINENO"; then :
7354  xorg_cv_cc_flag_unknown_warning_option=yes
7355else
7356  xorg_cv_cc_flag_unknown_warning_option=no
7357fi
7358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7359fi
7360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7361$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7362	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7363	CFLAGS="$xorg_testset_save_CFLAGS"
7364fi
7365
7366if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7367	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7368		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7369	fi
7370	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7371	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7372$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7373if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7374  $as_echo_n "(cached) " >&6
7375else
7376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7377/* end confdefs.h.  */
7378int i;
7379_ACEOF
7380if ac_fn_c_try_compile "$LINENO"; then :
7381  xorg_cv_cc_flag_unused_command_line_argument=yes
7382else
7383  xorg_cv_cc_flag_unused_command_line_argument=no
7384fi
7385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7386fi
7387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7388$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7389	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7390	CFLAGS="$xorg_testset_save_CFLAGS"
7391fi
7392
7393found="no"
7394
7395	if test $found = "no" ; then
7396		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7397			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7398		fi
7399
7400		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7401			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7402		fi
7403
7404		CFLAGS="$CFLAGS -Werror=missing-braces"
7405
7406		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7407$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7408		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7409		if eval \${$cacheid+:} false; then :
7410  $as_echo_n "(cached) " >&6
7411else
7412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413/* end confdefs.h.  */
7414int i;
7415int
7416main ()
7417{
7418
7419  ;
7420  return 0;
7421}
7422_ACEOF
7423if ac_fn_c_try_link "$LINENO"; then :
7424  eval $cacheid=yes
7425else
7426  eval $cacheid=no
7427fi
7428rm -f core conftest.err conftest.$ac_objext \
7429    conftest$ac_exeext conftest.$ac_ext
7430fi
7431
7432
7433		CFLAGS="$xorg_testset_save_CFLAGS"
7434
7435		eval supported=\$$cacheid
7436		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7437$as_echo "$supported" >&6; }
7438		if test "$supported" = "yes" ; then
7439			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7440			found="yes"
7441		fi
7442	fi
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458xorg_testset_save_CFLAGS="$CFLAGS"
7459
7460if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7461	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7462	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7463$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7464if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7465  $as_echo_n "(cached) " >&6
7466else
7467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468/* end confdefs.h.  */
7469int i;
7470_ACEOF
7471if ac_fn_c_try_compile "$LINENO"; then :
7472  xorg_cv_cc_flag_unknown_warning_option=yes
7473else
7474  xorg_cv_cc_flag_unknown_warning_option=no
7475fi
7476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7477fi
7478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7479$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7480	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7481	CFLAGS="$xorg_testset_save_CFLAGS"
7482fi
7483
7484if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7485	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7486		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7487	fi
7488	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7489	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7490$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7491if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7492  $as_echo_n "(cached) " >&6
7493else
7494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495/* end confdefs.h.  */
7496int i;
7497_ACEOF
7498if ac_fn_c_try_compile "$LINENO"; then :
7499  xorg_cv_cc_flag_unused_command_line_argument=yes
7500else
7501  xorg_cv_cc_flag_unused_command_line_argument=no
7502fi
7503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7504fi
7505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7506$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7507	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7508	CFLAGS="$xorg_testset_save_CFLAGS"
7509fi
7510
7511found="no"
7512
7513	if test $found = "no" ; then
7514		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7515			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7516		fi
7517
7518		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7519			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7520		fi
7521
7522		CFLAGS="$CFLAGS -Werror=sequence-point"
7523
7524		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7525$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7526		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7527		if eval \${$cacheid+:} false; then :
7528  $as_echo_n "(cached) " >&6
7529else
7530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7531/* end confdefs.h.  */
7532int i;
7533int
7534main ()
7535{
7536
7537  ;
7538  return 0;
7539}
7540_ACEOF
7541if ac_fn_c_try_link "$LINENO"; then :
7542  eval $cacheid=yes
7543else
7544  eval $cacheid=no
7545fi
7546rm -f core conftest.err conftest.$ac_objext \
7547    conftest$ac_exeext conftest.$ac_ext
7548fi
7549
7550
7551		CFLAGS="$xorg_testset_save_CFLAGS"
7552
7553		eval supported=\$$cacheid
7554		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7555$as_echo "$supported" >&6; }
7556		if test "$supported" = "yes" ; then
7557			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7558			found="yes"
7559		fi
7560	fi
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576xorg_testset_save_CFLAGS="$CFLAGS"
7577
7578if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7579	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7580	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7581$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7582if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7583  $as_echo_n "(cached) " >&6
7584else
7585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586/* end confdefs.h.  */
7587int i;
7588_ACEOF
7589if ac_fn_c_try_compile "$LINENO"; then :
7590  xorg_cv_cc_flag_unknown_warning_option=yes
7591else
7592  xorg_cv_cc_flag_unknown_warning_option=no
7593fi
7594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7595fi
7596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7597$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7598	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7599	CFLAGS="$xorg_testset_save_CFLAGS"
7600fi
7601
7602if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7603	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7604		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7605	fi
7606	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7607	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7608$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7609if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7610  $as_echo_n "(cached) " >&6
7611else
7612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613/* end confdefs.h.  */
7614int i;
7615_ACEOF
7616if ac_fn_c_try_compile "$LINENO"; then :
7617  xorg_cv_cc_flag_unused_command_line_argument=yes
7618else
7619  xorg_cv_cc_flag_unused_command_line_argument=no
7620fi
7621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7622fi
7623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7624$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7625	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7626	CFLAGS="$xorg_testset_save_CFLAGS"
7627fi
7628
7629found="no"
7630
7631	if test $found = "no" ; then
7632		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7633			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7634		fi
7635
7636		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7637			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7638		fi
7639
7640		CFLAGS="$CFLAGS -Werror=return-type"
7641
7642		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7643$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7644		cacheid=xorg_cv_cc_flag__Werror_return_type
7645		if eval \${$cacheid+:} false; then :
7646  $as_echo_n "(cached) " >&6
7647else
7648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649/* end confdefs.h.  */
7650int i;
7651int
7652main ()
7653{
7654
7655  ;
7656  return 0;
7657}
7658_ACEOF
7659if ac_fn_c_try_link "$LINENO"; then :
7660  eval $cacheid=yes
7661else
7662  eval $cacheid=no
7663fi
7664rm -f core conftest.err conftest.$ac_objext \
7665    conftest$ac_exeext conftest.$ac_ext
7666fi
7667
7668
7669		CFLAGS="$xorg_testset_save_CFLAGS"
7670
7671		eval supported=\$$cacheid
7672		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7673$as_echo "$supported" >&6; }
7674		if test "$supported" = "yes" ; then
7675			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7676			found="yes"
7677		fi
7678	fi
7679
7680	if test $found = "no" ; then
7681		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7682			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7683		fi
7684
7685		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7686			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7687		fi
7688
7689		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7690
7691		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7692$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7693		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7694		if eval \${$cacheid+:} false; then :
7695  $as_echo_n "(cached) " >&6
7696else
7697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698/* end confdefs.h.  */
7699int i;
7700int
7701main ()
7702{
7703
7704  ;
7705  return 0;
7706}
7707_ACEOF
7708if ac_fn_c_try_link "$LINENO"; then :
7709  eval $cacheid=yes
7710else
7711  eval $cacheid=no
7712fi
7713rm -f core conftest.err conftest.$ac_objext \
7714    conftest$ac_exeext conftest.$ac_ext
7715fi
7716
7717
7718		CFLAGS="$xorg_testset_save_CFLAGS"
7719
7720		eval supported=\$$cacheid
7721		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7722$as_echo "$supported" >&6; }
7723		if test "$supported" = "yes" ; then
7724			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7725			found="yes"
7726		fi
7727	fi
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743xorg_testset_save_CFLAGS="$CFLAGS"
7744
7745if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7746	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7747	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7748$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7749if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7750  $as_echo_n "(cached) " >&6
7751else
7752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753/* end confdefs.h.  */
7754int i;
7755_ACEOF
7756if ac_fn_c_try_compile "$LINENO"; then :
7757  xorg_cv_cc_flag_unknown_warning_option=yes
7758else
7759  xorg_cv_cc_flag_unknown_warning_option=no
7760fi
7761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7762fi
7763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7764$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7765	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7766	CFLAGS="$xorg_testset_save_CFLAGS"
7767fi
7768
7769if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7770	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7771		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7772	fi
7773	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7774	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7775$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7776if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7777  $as_echo_n "(cached) " >&6
7778else
7779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780/* end confdefs.h.  */
7781int i;
7782_ACEOF
7783if ac_fn_c_try_compile "$LINENO"; then :
7784  xorg_cv_cc_flag_unused_command_line_argument=yes
7785else
7786  xorg_cv_cc_flag_unused_command_line_argument=no
7787fi
7788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789fi
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7791$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7792	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7793	CFLAGS="$xorg_testset_save_CFLAGS"
7794fi
7795
7796found="no"
7797
7798	if test $found = "no" ; then
7799		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7800			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7801		fi
7802
7803		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7804			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7805		fi
7806
7807		CFLAGS="$CFLAGS -Werror=trigraphs"
7808
7809		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7810$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7811		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7812		if eval \${$cacheid+:} false; then :
7813  $as_echo_n "(cached) " >&6
7814else
7815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816/* end confdefs.h.  */
7817int i;
7818int
7819main ()
7820{
7821
7822  ;
7823  return 0;
7824}
7825_ACEOF
7826if ac_fn_c_try_link "$LINENO"; then :
7827  eval $cacheid=yes
7828else
7829  eval $cacheid=no
7830fi
7831rm -f core conftest.err conftest.$ac_objext \
7832    conftest$ac_exeext conftest.$ac_ext
7833fi
7834
7835
7836		CFLAGS="$xorg_testset_save_CFLAGS"
7837
7838		eval supported=\$$cacheid
7839		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7840$as_echo "$supported" >&6; }
7841		if test "$supported" = "yes" ; then
7842			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7843			found="yes"
7844		fi
7845	fi
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861xorg_testset_save_CFLAGS="$CFLAGS"
7862
7863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7864	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7865	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7866$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7867if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7868  $as_echo_n "(cached) " >&6
7869else
7870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871/* end confdefs.h.  */
7872int i;
7873_ACEOF
7874if ac_fn_c_try_compile "$LINENO"; then :
7875  xorg_cv_cc_flag_unknown_warning_option=yes
7876else
7877  xorg_cv_cc_flag_unknown_warning_option=no
7878fi
7879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7880fi
7881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7882$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7883	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7884	CFLAGS="$xorg_testset_save_CFLAGS"
7885fi
7886
7887if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7888	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7889		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7890	fi
7891	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7892	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7893$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7894if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7895  $as_echo_n "(cached) " >&6
7896else
7897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898/* end confdefs.h.  */
7899int i;
7900_ACEOF
7901if ac_fn_c_try_compile "$LINENO"; then :
7902  xorg_cv_cc_flag_unused_command_line_argument=yes
7903else
7904  xorg_cv_cc_flag_unused_command_line_argument=no
7905fi
7906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7907fi
7908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7909$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7910	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7911	CFLAGS="$xorg_testset_save_CFLAGS"
7912fi
7913
7914found="no"
7915
7916	if test $found = "no" ; then
7917		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7918			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7919		fi
7920
7921		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7922			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7923		fi
7924
7925		CFLAGS="$CFLAGS -Werror=array-bounds"
7926
7927		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7928$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7929		cacheid=xorg_cv_cc_flag__Werror_array_bounds
7930		if eval \${$cacheid+:} false; then :
7931  $as_echo_n "(cached) " >&6
7932else
7933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934/* end confdefs.h.  */
7935int i;
7936int
7937main ()
7938{
7939
7940  ;
7941  return 0;
7942}
7943_ACEOF
7944if ac_fn_c_try_link "$LINENO"; then :
7945  eval $cacheid=yes
7946else
7947  eval $cacheid=no
7948fi
7949rm -f core conftest.err conftest.$ac_objext \
7950    conftest$ac_exeext conftest.$ac_ext
7951fi
7952
7953
7954		CFLAGS="$xorg_testset_save_CFLAGS"
7955
7956		eval supported=\$$cacheid
7957		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7958$as_echo "$supported" >&6; }
7959		if test "$supported" = "yes" ; then
7960			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7961			found="yes"
7962		fi
7963	fi
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979xorg_testset_save_CFLAGS="$CFLAGS"
7980
7981if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7982	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7983	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7984$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7985if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7986  $as_echo_n "(cached) " >&6
7987else
7988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989/* end confdefs.h.  */
7990int i;
7991_ACEOF
7992if ac_fn_c_try_compile "$LINENO"; then :
7993  xorg_cv_cc_flag_unknown_warning_option=yes
7994else
7995  xorg_cv_cc_flag_unknown_warning_option=no
7996fi
7997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7998fi
7999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8000$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8001	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8002	CFLAGS="$xorg_testset_save_CFLAGS"
8003fi
8004
8005if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8006	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8007		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8008	fi
8009	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8010	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8011$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8012if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8013  $as_echo_n "(cached) " >&6
8014else
8015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016/* end confdefs.h.  */
8017int i;
8018_ACEOF
8019if ac_fn_c_try_compile "$LINENO"; then :
8020  xorg_cv_cc_flag_unused_command_line_argument=yes
8021else
8022  xorg_cv_cc_flag_unused_command_line_argument=no
8023fi
8024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8025fi
8026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8027$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8028	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8029	CFLAGS="$xorg_testset_save_CFLAGS"
8030fi
8031
8032found="no"
8033
8034	if test $found = "no" ; then
8035		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8036			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8037		fi
8038
8039		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8040			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8041		fi
8042
8043		CFLAGS="$CFLAGS -Werror=write-strings"
8044
8045		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
8046$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
8047		cacheid=xorg_cv_cc_flag__Werror_write_strings
8048		if eval \${$cacheid+:} false; then :
8049  $as_echo_n "(cached) " >&6
8050else
8051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8052/* end confdefs.h.  */
8053int i;
8054int
8055main ()
8056{
8057
8058  ;
8059  return 0;
8060}
8061_ACEOF
8062if ac_fn_c_try_link "$LINENO"; then :
8063  eval $cacheid=yes
8064else
8065  eval $cacheid=no
8066fi
8067rm -f core conftest.err conftest.$ac_objext \
8068    conftest$ac_exeext conftest.$ac_ext
8069fi
8070
8071
8072		CFLAGS="$xorg_testset_save_CFLAGS"
8073
8074		eval supported=\$$cacheid
8075		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8076$as_echo "$supported" >&6; }
8077		if test "$supported" = "yes" ; then
8078			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8079			found="yes"
8080		fi
8081	fi
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097xorg_testset_save_CFLAGS="$CFLAGS"
8098
8099if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8100	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8101	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8102$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8103if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8104  $as_echo_n "(cached) " >&6
8105else
8106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107/* end confdefs.h.  */
8108int i;
8109_ACEOF
8110if ac_fn_c_try_compile "$LINENO"; then :
8111  xorg_cv_cc_flag_unknown_warning_option=yes
8112else
8113  xorg_cv_cc_flag_unknown_warning_option=no
8114fi
8115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8116fi
8117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8118$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8119	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8120	CFLAGS="$xorg_testset_save_CFLAGS"
8121fi
8122
8123if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8124	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8125		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8126	fi
8127	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8128	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8129$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8130if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8131  $as_echo_n "(cached) " >&6
8132else
8133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134/* end confdefs.h.  */
8135int i;
8136_ACEOF
8137if ac_fn_c_try_compile "$LINENO"; then :
8138  xorg_cv_cc_flag_unused_command_line_argument=yes
8139else
8140  xorg_cv_cc_flag_unused_command_line_argument=no
8141fi
8142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8143fi
8144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8145$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8146	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8147	CFLAGS="$xorg_testset_save_CFLAGS"
8148fi
8149
8150found="no"
8151
8152	if test $found = "no" ; then
8153		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8154			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8155		fi
8156
8157		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8158			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8159		fi
8160
8161		CFLAGS="$CFLAGS -Werror=address"
8162
8163		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
8164$as_echo_n "checking if $CC supports-Werror=address... " >&6; }
8165		cacheid=xorg_cv_cc_flag__Werror_address
8166		if eval \${$cacheid+:} false; then :
8167  $as_echo_n "(cached) " >&6
8168else
8169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170/* end confdefs.h.  */
8171int i;
8172int
8173main ()
8174{
8175
8176  ;
8177  return 0;
8178}
8179_ACEOF
8180if ac_fn_c_try_link "$LINENO"; then :
8181  eval $cacheid=yes
8182else
8183  eval $cacheid=no
8184fi
8185rm -f core conftest.err conftest.$ac_objext \
8186    conftest$ac_exeext conftest.$ac_ext
8187fi
8188
8189
8190		CFLAGS="$xorg_testset_save_CFLAGS"
8191
8192		eval supported=\$$cacheid
8193		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8194$as_echo "$supported" >&6; }
8195		if test "$supported" = "yes" ; then
8196			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8197			found="yes"
8198		fi
8199	fi
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215xorg_testset_save_CFLAGS="$CFLAGS"
8216
8217if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8218	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8219	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8220$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8221if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8222  $as_echo_n "(cached) " >&6
8223else
8224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225/* end confdefs.h.  */
8226int i;
8227_ACEOF
8228if ac_fn_c_try_compile "$LINENO"; then :
8229  xorg_cv_cc_flag_unknown_warning_option=yes
8230else
8231  xorg_cv_cc_flag_unknown_warning_option=no
8232fi
8233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8234fi
8235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8236$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8237	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8238	CFLAGS="$xorg_testset_save_CFLAGS"
8239fi
8240
8241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8242	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8243		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8244	fi
8245	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8246	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8247$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8248if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8249  $as_echo_n "(cached) " >&6
8250else
8251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8252/* end confdefs.h.  */
8253int i;
8254_ACEOF
8255if ac_fn_c_try_compile "$LINENO"; then :
8256  xorg_cv_cc_flag_unused_command_line_argument=yes
8257else
8258  xorg_cv_cc_flag_unused_command_line_argument=no
8259fi
8260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8261fi
8262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8263$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8264	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8265	CFLAGS="$xorg_testset_save_CFLAGS"
8266fi
8267
8268found="no"
8269
8270	if test $found = "no" ; then
8271		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8272			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8273		fi
8274
8275		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8276			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8277		fi
8278
8279		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8280
8281		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8282$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8283		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8284		if eval \${$cacheid+:} false; then :
8285  $as_echo_n "(cached) " >&6
8286else
8287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288/* end confdefs.h.  */
8289int i;
8290int
8291main ()
8292{
8293
8294  ;
8295  return 0;
8296}
8297_ACEOF
8298if ac_fn_c_try_link "$LINENO"; then :
8299  eval $cacheid=yes
8300else
8301  eval $cacheid=no
8302fi
8303rm -f core conftest.err conftest.$ac_objext \
8304    conftest$ac_exeext conftest.$ac_ext
8305fi
8306
8307
8308		CFLAGS="$xorg_testset_save_CFLAGS"
8309
8310		eval supported=\$$cacheid
8311		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8312$as_echo "$supported" >&6; }
8313		if test "$supported" = "yes" ; then
8314			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8315			found="yes"
8316		fi
8317	fi
8318
8319	if test $found = "no" ; then
8320		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8321			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8322		fi
8323
8324		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8325			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8326		fi
8327
8328		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8329
8330		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8331$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8332		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8333		if eval \${$cacheid+:} false; then :
8334  $as_echo_n "(cached) " >&6
8335else
8336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337/* end confdefs.h.  */
8338int i;
8339int
8340main ()
8341{
8342
8343  ;
8344  return 0;
8345}
8346_ACEOF
8347if ac_fn_c_try_link "$LINENO"; then :
8348  eval $cacheid=yes
8349else
8350  eval $cacheid=no
8351fi
8352rm -f core conftest.err conftest.$ac_objext \
8353    conftest$ac_exeext conftest.$ac_ext
8354fi
8355
8356
8357		CFLAGS="$xorg_testset_save_CFLAGS"
8358
8359		eval supported=\$$cacheid
8360		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8361$as_echo "$supported" >&6; }
8362		if test "$supported" = "yes" ; then
8363			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8364			found="yes"
8365		fi
8366	fi
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382xorg_testset_save_CFLAGS="$CFLAGS"
8383
8384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8385	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8386	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8387$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8388if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8389  $as_echo_n "(cached) " >&6
8390else
8391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8392/* end confdefs.h.  */
8393int i;
8394_ACEOF
8395if ac_fn_c_try_compile "$LINENO"; then :
8396  xorg_cv_cc_flag_unknown_warning_option=yes
8397else
8398  xorg_cv_cc_flag_unknown_warning_option=no
8399fi
8400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8401fi
8402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8403$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8404	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8405	CFLAGS="$xorg_testset_save_CFLAGS"
8406fi
8407
8408if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8409	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8410		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8411	fi
8412	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8413	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8414$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8415if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8416  $as_echo_n "(cached) " >&6
8417else
8418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419/* end confdefs.h.  */
8420int i;
8421_ACEOF
8422if ac_fn_c_try_compile "$LINENO"; then :
8423  xorg_cv_cc_flag_unused_command_line_argument=yes
8424else
8425  xorg_cv_cc_flag_unused_command_line_argument=no
8426fi
8427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428fi
8429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8430$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8431	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8432	CFLAGS="$xorg_testset_save_CFLAGS"
8433fi
8434
8435found="no"
8436
8437	if test $found = "no" ; then
8438		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8439			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8440		fi
8441
8442		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8443			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8444		fi
8445
8446		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8447
8448		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8449$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8450		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8451		if eval \${$cacheid+:} false; then :
8452  $as_echo_n "(cached) " >&6
8453else
8454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455/* end confdefs.h.  */
8456int i;
8457int
8458main ()
8459{
8460
8461  ;
8462  return 0;
8463}
8464_ACEOF
8465if ac_fn_c_try_link "$LINENO"; then :
8466  eval $cacheid=yes
8467else
8468  eval $cacheid=no
8469fi
8470rm -f core conftest.err conftest.$ac_objext \
8471    conftest$ac_exeext conftest.$ac_ext
8472fi
8473
8474
8475		CFLAGS="$xorg_testset_save_CFLAGS"
8476
8477		eval supported=\$$cacheid
8478		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8479$as_echo "$supported" >&6; }
8480		if test "$supported" = "yes" ; then
8481			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8482			found="yes"
8483		fi
8484	fi
8485
8486 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8487else
8488{ $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
8489$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;}
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503xorg_testset_save_CFLAGS="$CFLAGS"
8504
8505if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8506	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8507	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8508$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8509if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8510  $as_echo_n "(cached) " >&6
8511else
8512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513/* end confdefs.h.  */
8514int i;
8515_ACEOF
8516if ac_fn_c_try_compile "$LINENO"; then :
8517  xorg_cv_cc_flag_unknown_warning_option=yes
8518else
8519  xorg_cv_cc_flag_unknown_warning_option=no
8520fi
8521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8522fi
8523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8524$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8525	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8526	CFLAGS="$xorg_testset_save_CFLAGS"
8527fi
8528
8529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8530	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8531		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8532	fi
8533	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8534	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8535$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8536if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8537  $as_echo_n "(cached) " >&6
8538else
8539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8540/* end confdefs.h.  */
8541int i;
8542_ACEOF
8543if ac_fn_c_try_compile "$LINENO"; then :
8544  xorg_cv_cc_flag_unused_command_line_argument=yes
8545else
8546  xorg_cv_cc_flag_unused_command_line_argument=no
8547fi
8548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8549fi
8550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8551$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8552	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8553	CFLAGS="$xorg_testset_save_CFLAGS"
8554fi
8555
8556found="no"
8557
8558	if test $found = "no" ; then
8559		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8560			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8561		fi
8562
8563		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8564			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8565		fi
8566
8567		CFLAGS="$CFLAGS -Wimplicit"
8568
8569		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8570$as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8571		cacheid=xorg_cv_cc_flag__Wimplicit
8572		if eval \${$cacheid+:} false; then :
8573  $as_echo_n "(cached) " >&6
8574else
8575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576/* end confdefs.h.  */
8577int i;
8578int
8579main ()
8580{
8581
8582  ;
8583  return 0;
8584}
8585_ACEOF
8586if ac_fn_c_try_link "$LINENO"; then :
8587  eval $cacheid=yes
8588else
8589  eval $cacheid=no
8590fi
8591rm -f core conftest.err conftest.$ac_objext \
8592    conftest$ac_exeext conftest.$ac_ext
8593fi
8594
8595
8596		CFLAGS="$xorg_testset_save_CFLAGS"
8597
8598		eval supported=\$$cacheid
8599		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8600$as_echo "$supported" >&6; }
8601		if test "$supported" = "yes" ; then
8602			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8603			found="yes"
8604		fi
8605	fi
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621xorg_testset_save_CFLAGS="$CFLAGS"
8622
8623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8624	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8625	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8626$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8627if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8628  $as_echo_n "(cached) " >&6
8629else
8630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631/* end confdefs.h.  */
8632int i;
8633_ACEOF
8634if ac_fn_c_try_compile "$LINENO"; then :
8635  xorg_cv_cc_flag_unknown_warning_option=yes
8636else
8637  xorg_cv_cc_flag_unknown_warning_option=no
8638fi
8639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8640fi
8641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8642$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8643	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8644	CFLAGS="$xorg_testset_save_CFLAGS"
8645fi
8646
8647if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8648	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8649		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8650	fi
8651	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8652	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8653$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8654if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8655  $as_echo_n "(cached) " >&6
8656else
8657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658/* end confdefs.h.  */
8659int i;
8660_ACEOF
8661if ac_fn_c_try_compile "$LINENO"; then :
8662  xorg_cv_cc_flag_unused_command_line_argument=yes
8663else
8664  xorg_cv_cc_flag_unused_command_line_argument=no
8665fi
8666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8667fi
8668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8669$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8670	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8671	CFLAGS="$xorg_testset_save_CFLAGS"
8672fi
8673
8674found="no"
8675
8676	if test $found = "no" ; then
8677		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8678			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8679		fi
8680
8681		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8682			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8683		fi
8684
8685		CFLAGS="$CFLAGS -Wnonnull"
8686
8687		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8688$as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8689		cacheid=xorg_cv_cc_flag__Wnonnull
8690		if eval \${$cacheid+:} false; then :
8691  $as_echo_n "(cached) " >&6
8692else
8693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8694/* end confdefs.h.  */
8695int i;
8696int
8697main ()
8698{
8699
8700  ;
8701  return 0;
8702}
8703_ACEOF
8704if ac_fn_c_try_link "$LINENO"; then :
8705  eval $cacheid=yes
8706else
8707  eval $cacheid=no
8708fi
8709rm -f core conftest.err conftest.$ac_objext \
8710    conftest$ac_exeext conftest.$ac_ext
8711fi
8712
8713
8714		CFLAGS="$xorg_testset_save_CFLAGS"
8715
8716		eval supported=\$$cacheid
8717		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8718$as_echo "$supported" >&6; }
8719		if test "$supported" = "yes" ; then
8720			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8721			found="yes"
8722		fi
8723	fi
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739xorg_testset_save_CFLAGS="$CFLAGS"
8740
8741if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8742	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8743	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8744$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8745if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8746  $as_echo_n "(cached) " >&6
8747else
8748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749/* end confdefs.h.  */
8750int i;
8751_ACEOF
8752if ac_fn_c_try_compile "$LINENO"; then :
8753  xorg_cv_cc_flag_unknown_warning_option=yes
8754else
8755  xorg_cv_cc_flag_unknown_warning_option=no
8756fi
8757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8758fi
8759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8760$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8761	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8762	CFLAGS="$xorg_testset_save_CFLAGS"
8763fi
8764
8765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8766	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8767		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8768	fi
8769	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8770	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8771$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8772if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8773  $as_echo_n "(cached) " >&6
8774else
8775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8776/* end confdefs.h.  */
8777int i;
8778_ACEOF
8779if ac_fn_c_try_compile "$LINENO"; then :
8780  xorg_cv_cc_flag_unused_command_line_argument=yes
8781else
8782  xorg_cv_cc_flag_unused_command_line_argument=no
8783fi
8784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8785fi
8786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8787$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8788	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8789	CFLAGS="$xorg_testset_save_CFLAGS"
8790fi
8791
8792found="no"
8793
8794	if test $found = "no" ; then
8795		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8796			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8797		fi
8798
8799		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8800			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8801		fi
8802
8803		CFLAGS="$CFLAGS -Winit-self"
8804
8805		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8806$as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8807		cacheid=xorg_cv_cc_flag__Winit_self
8808		if eval \${$cacheid+:} false; then :
8809  $as_echo_n "(cached) " >&6
8810else
8811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812/* end confdefs.h.  */
8813int i;
8814int
8815main ()
8816{
8817
8818  ;
8819  return 0;
8820}
8821_ACEOF
8822if ac_fn_c_try_link "$LINENO"; then :
8823  eval $cacheid=yes
8824else
8825  eval $cacheid=no
8826fi
8827rm -f core conftest.err conftest.$ac_objext \
8828    conftest$ac_exeext conftest.$ac_ext
8829fi
8830
8831
8832		CFLAGS="$xorg_testset_save_CFLAGS"
8833
8834		eval supported=\$$cacheid
8835		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8836$as_echo "$supported" >&6; }
8837		if test "$supported" = "yes" ; then
8838			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8839			found="yes"
8840		fi
8841	fi
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857xorg_testset_save_CFLAGS="$CFLAGS"
8858
8859if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8860	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8861	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8862$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8863if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8864  $as_echo_n "(cached) " >&6
8865else
8866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867/* end confdefs.h.  */
8868int i;
8869_ACEOF
8870if ac_fn_c_try_compile "$LINENO"; then :
8871  xorg_cv_cc_flag_unknown_warning_option=yes
8872else
8873  xorg_cv_cc_flag_unknown_warning_option=no
8874fi
8875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8876fi
8877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8878$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8879	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8880	CFLAGS="$xorg_testset_save_CFLAGS"
8881fi
8882
8883if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8884	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8885		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8886	fi
8887	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8888	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8889$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8890if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8891  $as_echo_n "(cached) " >&6
8892else
8893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8894/* end confdefs.h.  */
8895int i;
8896_ACEOF
8897if ac_fn_c_try_compile "$LINENO"; then :
8898  xorg_cv_cc_flag_unused_command_line_argument=yes
8899else
8900  xorg_cv_cc_flag_unused_command_line_argument=no
8901fi
8902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8903fi
8904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8905$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8906	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8907	CFLAGS="$xorg_testset_save_CFLAGS"
8908fi
8909
8910found="no"
8911
8912	if test $found = "no" ; then
8913		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8914			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8915		fi
8916
8917		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8918			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8919		fi
8920
8921		CFLAGS="$CFLAGS -Wmain"
8922
8923		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8924$as_echo_n "checking if $CC supports-Wmain... " >&6; }
8925		cacheid=xorg_cv_cc_flag__Wmain
8926		if eval \${$cacheid+:} false; then :
8927  $as_echo_n "(cached) " >&6
8928else
8929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930/* end confdefs.h.  */
8931int i;
8932int
8933main ()
8934{
8935
8936  ;
8937  return 0;
8938}
8939_ACEOF
8940if ac_fn_c_try_link "$LINENO"; then :
8941  eval $cacheid=yes
8942else
8943  eval $cacheid=no
8944fi
8945rm -f core conftest.err conftest.$ac_objext \
8946    conftest$ac_exeext conftest.$ac_ext
8947fi
8948
8949
8950		CFLAGS="$xorg_testset_save_CFLAGS"
8951
8952		eval supported=\$$cacheid
8953		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8954$as_echo "$supported" >&6; }
8955		if test "$supported" = "yes" ; then
8956			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8957			found="yes"
8958		fi
8959	fi
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975xorg_testset_save_CFLAGS="$CFLAGS"
8976
8977if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8978	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8979	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8980$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8981if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8982  $as_echo_n "(cached) " >&6
8983else
8984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985/* end confdefs.h.  */
8986int i;
8987_ACEOF
8988if ac_fn_c_try_compile "$LINENO"; then :
8989  xorg_cv_cc_flag_unknown_warning_option=yes
8990else
8991  xorg_cv_cc_flag_unknown_warning_option=no
8992fi
8993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8994fi
8995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8996$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8997	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8998	CFLAGS="$xorg_testset_save_CFLAGS"
8999fi
9000
9001if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9002	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9003		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9004	fi
9005	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9006	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9007$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9008if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9009  $as_echo_n "(cached) " >&6
9010else
9011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9012/* end confdefs.h.  */
9013int i;
9014_ACEOF
9015if ac_fn_c_try_compile "$LINENO"; then :
9016  xorg_cv_cc_flag_unused_command_line_argument=yes
9017else
9018  xorg_cv_cc_flag_unused_command_line_argument=no
9019fi
9020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9021fi
9022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9023$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9024	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9025	CFLAGS="$xorg_testset_save_CFLAGS"
9026fi
9027
9028found="no"
9029
9030	if test $found = "no" ; then
9031		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9032			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9033		fi
9034
9035		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9036			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9037		fi
9038
9039		CFLAGS="$CFLAGS -Wmissing-braces"
9040
9041		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
9042$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
9043		cacheid=xorg_cv_cc_flag__Wmissing_braces
9044		if eval \${$cacheid+:} false; then :
9045  $as_echo_n "(cached) " >&6
9046else
9047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048/* end confdefs.h.  */
9049int i;
9050int
9051main ()
9052{
9053
9054  ;
9055  return 0;
9056}
9057_ACEOF
9058if ac_fn_c_try_link "$LINENO"; then :
9059  eval $cacheid=yes
9060else
9061  eval $cacheid=no
9062fi
9063rm -f core conftest.err conftest.$ac_objext \
9064    conftest$ac_exeext conftest.$ac_ext
9065fi
9066
9067
9068		CFLAGS="$xorg_testset_save_CFLAGS"
9069
9070		eval supported=\$$cacheid
9071		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9072$as_echo "$supported" >&6; }
9073		if test "$supported" = "yes" ; then
9074			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9075			found="yes"
9076		fi
9077	fi
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093xorg_testset_save_CFLAGS="$CFLAGS"
9094
9095if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9096	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9097	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9098$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9099if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9100  $as_echo_n "(cached) " >&6
9101else
9102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103/* end confdefs.h.  */
9104int i;
9105_ACEOF
9106if ac_fn_c_try_compile "$LINENO"; then :
9107  xorg_cv_cc_flag_unknown_warning_option=yes
9108else
9109  xorg_cv_cc_flag_unknown_warning_option=no
9110fi
9111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9112fi
9113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9114$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9115	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9116	CFLAGS="$xorg_testset_save_CFLAGS"
9117fi
9118
9119if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9120	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9121		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9122	fi
9123	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9124	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9125$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9126if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9127  $as_echo_n "(cached) " >&6
9128else
9129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130/* end confdefs.h.  */
9131int i;
9132_ACEOF
9133if ac_fn_c_try_compile "$LINENO"; then :
9134  xorg_cv_cc_flag_unused_command_line_argument=yes
9135else
9136  xorg_cv_cc_flag_unused_command_line_argument=no
9137fi
9138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9139fi
9140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9141$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9142	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9143	CFLAGS="$xorg_testset_save_CFLAGS"
9144fi
9145
9146found="no"
9147
9148	if test $found = "no" ; then
9149		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9150			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9151		fi
9152
9153		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9154			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9155		fi
9156
9157		CFLAGS="$CFLAGS -Wsequence-point"
9158
9159		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
9160$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
9161		cacheid=xorg_cv_cc_flag__Wsequence_point
9162		if eval \${$cacheid+:} false; then :
9163  $as_echo_n "(cached) " >&6
9164else
9165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166/* end confdefs.h.  */
9167int i;
9168int
9169main ()
9170{
9171
9172  ;
9173  return 0;
9174}
9175_ACEOF
9176if ac_fn_c_try_link "$LINENO"; then :
9177  eval $cacheid=yes
9178else
9179  eval $cacheid=no
9180fi
9181rm -f core conftest.err conftest.$ac_objext \
9182    conftest$ac_exeext conftest.$ac_ext
9183fi
9184
9185
9186		CFLAGS="$xorg_testset_save_CFLAGS"
9187
9188		eval supported=\$$cacheid
9189		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9190$as_echo "$supported" >&6; }
9191		if test "$supported" = "yes" ; then
9192			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9193			found="yes"
9194		fi
9195	fi
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211xorg_testset_save_CFLAGS="$CFLAGS"
9212
9213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9214	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9215	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9216$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9217if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9218  $as_echo_n "(cached) " >&6
9219else
9220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221/* end confdefs.h.  */
9222int i;
9223_ACEOF
9224if ac_fn_c_try_compile "$LINENO"; then :
9225  xorg_cv_cc_flag_unknown_warning_option=yes
9226else
9227  xorg_cv_cc_flag_unknown_warning_option=no
9228fi
9229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9230fi
9231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9232$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9233	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9234	CFLAGS="$xorg_testset_save_CFLAGS"
9235fi
9236
9237if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9238	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9239		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9240	fi
9241	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9242	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9243$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9244if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9245  $as_echo_n "(cached) " >&6
9246else
9247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9248/* end confdefs.h.  */
9249int i;
9250_ACEOF
9251if ac_fn_c_try_compile "$LINENO"; then :
9252  xorg_cv_cc_flag_unused_command_line_argument=yes
9253else
9254  xorg_cv_cc_flag_unused_command_line_argument=no
9255fi
9256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9257fi
9258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9259$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9260	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9261	CFLAGS="$xorg_testset_save_CFLAGS"
9262fi
9263
9264found="no"
9265
9266	if test $found = "no" ; then
9267		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9268			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9269		fi
9270
9271		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9272			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9273		fi
9274
9275		CFLAGS="$CFLAGS -Wreturn-type"
9276
9277		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9278$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9279		cacheid=xorg_cv_cc_flag__Wreturn_type
9280		if eval \${$cacheid+:} false; then :
9281  $as_echo_n "(cached) " >&6
9282else
9283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9284/* end confdefs.h.  */
9285int i;
9286int
9287main ()
9288{
9289
9290  ;
9291  return 0;
9292}
9293_ACEOF
9294if ac_fn_c_try_link "$LINENO"; then :
9295  eval $cacheid=yes
9296else
9297  eval $cacheid=no
9298fi
9299rm -f core conftest.err conftest.$ac_objext \
9300    conftest$ac_exeext conftest.$ac_ext
9301fi
9302
9303
9304		CFLAGS="$xorg_testset_save_CFLAGS"
9305
9306		eval supported=\$$cacheid
9307		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9308$as_echo "$supported" >&6; }
9309		if test "$supported" = "yes" ; then
9310			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9311			found="yes"
9312		fi
9313	fi
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329xorg_testset_save_CFLAGS="$CFLAGS"
9330
9331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9332	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9333	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9334$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9335if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9336  $as_echo_n "(cached) " >&6
9337else
9338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339/* end confdefs.h.  */
9340int i;
9341_ACEOF
9342if ac_fn_c_try_compile "$LINENO"; then :
9343  xorg_cv_cc_flag_unknown_warning_option=yes
9344else
9345  xorg_cv_cc_flag_unknown_warning_option=no
9346fi
9347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9348fi
9349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9350$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9351	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9352	CFLAGS="$xorg_testset_save_CFLAGS"
9353fi
9354
9355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9356	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9357		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9358	fi
9359	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9360	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9361$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9362if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9363  $as_echo_n "(cached) " >&6
9364else
9365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9366/* end confdefs.h.  */
9367int i;
9368_ACEOF
9369if ac_fn_c_try_compile "$LINENO"; then :
9370  xorg_cv_cc_flag_unused_command_line_argument=yes
9371else
9372  xorg_cv_cc_flag_unused_command_line_argument=no
9373fi
9374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9375fi
9376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9377$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9378	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9379	CFLAGS="$xorg_testset_save_CFLAGS"
9380fi
9381
9382found="no"
9383
9384	if test $found = "no" ; then
9385		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9386			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9387		fi
9388
9389		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9390			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9391		fi
9392
9393		CFLAGS="$CFLAGS -Wtrigraphs"
9394
9395		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9396$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9397		cacheid=xorg_cv_cc_flag__Wtrigraphs
9398		if eval \${$cacheid+:} false; then :
9399  $as_echo_n "(cached) " >&6
9400else
9401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9402/* end confdefs.h.  */
9403int i;
9404int
9405main ()
9406{
9407
9408  ;
9409  return 0;
9410}
9411_ACEOF
9412if ac_fn_c_try_link "$LINENO"; then :
9413  eval $cacheid=yes
9414else
9415  eval $cacheid=no
9416fi
9417rm -f core conftest.err conftest.$ac_objext \
9418    conftest$ac_exeext conftest.$ac_ext
9419fi
9420
9421
9422		CFLAGS="$xorg_testset_save_CFLAGS"
9423
9424		eval supported=\$$cacheid
9425		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9426$as_echo "$supported" >&6; }
9427		if test "$supported" = "yes" ; then
9428			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9429			found="yes"
9430		fi
9431	fi
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447xorg_testset_save_CFLAGS="$CFLAGS"
9448
9449if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9450	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9451	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9452$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9453if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9454  $as_echo_n "(cached) " >&6
9455else
9456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457/* end confdefs.h.  */
9458int i;
9459_ACEOF
9460if ac_fn_c_try_compile "$LINENO"; then :
9461  xorg_cv_cc_flag_unknown_warning_option=yes
9462else
9463  xorg_cv_cc_flag_unknown_warning_option=no
9464fi
9465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9466fi
9467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9468$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9469	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9470	CFLAGS="$xorg_testset_save_CFLAGS"
9471fi
9472
9473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9474	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9475		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9476	fi
9477	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9478	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9479$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9480if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9481  $as_echo_n "(cached) " >&6
9482else
9483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484/* end confdefs.h.  */
9485int i;
9486_ACEOF
9487if ac_fn_c_try_compile "$LINENO"; then :
9488  xorg_cv_cc_flag_unused_command_line_argument=yes
9489else
9490  xorg_cv_cc_flag_unused_command_line_argument=no
9491fi
9492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9493fi
9494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9495$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9496	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9497	CFLAGS="$xorg_testset_save_CFLAGS"
9498fi
9499
9500found="no"
9501
9502	if test $found = "no" ; then
9503		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9504			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9505		fi
9506
9507		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9508			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9509		fi
9510
9511		CFLAGS="$CFLAGS -Warray-bounds"
9512
9513		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9514$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9515		cacheid=xorg_cv_cc_flag__Warray_bounds
9516		if eval \${$cacheid+:} false; then :
9517  $as_echo_n "(cached) " >&6
9518else
9519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9520/* end confdefs.h.  */
9521int i;
9522int
9523main ()
9524{
9525
9526  ;
9527  return 0;
9528}
9529_ACEOF
9530if ac_fn_c_try_link "$LINENO"; then :
9531  eval $cacheid=yes
9532else
9533  eval $cacheid=no
9534fi
9535rm -f core conftest.err conftest.$ac_objext \
9536    conftest$ac_exeext conftest.$ac_ext
9537fi
9538
9539
9540		CFLAGS="$xorg_testset_save_CFLAGS"
9541
9542		eval supported=\$$cacheid
9543		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9544$as_echo "$supported" >&6; }
9545		if test "$supported" = "yes" ; then
9546			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9547			found="yes"
9548		fi
9549	fi
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565xorg_testset_save_CFLAGS="$CFLAGS"
9566
9567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9568	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9569	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9570$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9571if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9572  $as_echo_n "(cached) " >&6
9573else
9574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575/* end confdefs.h.  */
9576int i;
9577_ACEOF
9578if ac_fn_c_try_compile "$LINENO"; then :
9579  xorg_cv_cc_flag_unknown_warning_option=yes
9580else
9581  xorg_cv_cc_flag_unknown_warning_option=no
9582fi
9583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9584fi
9585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9586$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9587	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9588	CFLAGS="$xorg_testset_save_CFLAGS"
9589fi
9590
9591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9592	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9593		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9594	fi
9595	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9596	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9597$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9598if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9599  $as_echo_n "(cached) " >&6
9600else
9601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9602/* end confdefs.h.  */
9603int i;
9604_ACEOF
9605if ac_fn_c_try_compile "$LINENO"; then :
9606  xorg_cv_cc_flag_unused_command_line_argument=yes
9607else
9608  xorg_cv_cc_flag_unused_command_line_argument=no
9609fi
9610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9611fi
9612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9613$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9614	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9615	CFLAGS="$xorg_testset_save_CFLAGS"
9616fi
9617
9618found="no"
9619
9620	if test $found = "no" ; then
9621		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9622			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9623		fi
9624
9625		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9626			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9627		fi
9628
9629		CFLAGS="$CFLAGS -Wwrite-strings"
9630
9631		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9632$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9633		cacheid=xorg_cv_cc_flag__Wwrite_strings
9634		if eval \${$cacheid+:} false; then :
9635  $as_echo_n "(cached) " >&6
9636else
9637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9638/* end confdefs.h.  */
9639int i;
9640int
9641main ()
9642{
9643
9644  ;
9645  return 0;
9646}
9647_ACEOF
9648if ac_fn_c_try_link "$LINENO"; then :
9649  eval $cacheid=yes
9650else
9651  eval $cacheid=no
9652fi
9653rm -f core conftest.err conftest.$ac_objext \
9654    conftest$ac_exeext conftest.$ac_ext
9655fi
9656
9657
9658		CFLAGS="$xorg_testset_save_CFLAGS"
9659
9660		eval supported=\$$cacheid
9661		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9662$as_echo "$supported" >&6; }
9663		if test "$supported" = "yes" ; then
9664			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9665			found="yes"
9666		fi
9667	fi
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683xorg_testset_save_CFLAGS="$CFLAGS"
9684
9685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9686	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9687	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9688$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9689if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9690  $as_echo_n "(cached) " >&6
9691else
9692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693/* end confdefs.h.  */
9694int i;
9695_ACEOF
9696if ac_fn_c_try_compile "$LINENO"; then :
9697  xorg_cv_cc_flag_unknown_warning_option=yes
9698else
9699  xorg_cv_cc_flag_unknown_warning_option=no
9700fi
9701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9702fi
9703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9704$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9705	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9706	CFLAGS="$xorg_testset_save_CFLAGS"
9707fi
9708
9709if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9710	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9711		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9712	fi
9713	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9714	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9715$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9716if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9717  $as_echo_n "(cached) " >&6
9718else
9719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720/* end confdefs.h.  */
9721int i;
9722_ACEOF
9723if ac_fn_c_try_compile "$LINENO"; then :
9724  xorg_cv_cc_flag_unused_command_line_argument=yes
9725else
9726  xorg_cv_cc_flag_unused_command_line_argument=no
9727fi
9728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9729fi
9730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9731$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9732	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9733	CFLAGS="$xorg_testset_save_CFLAGS"
9734fi
9735
9736found="no"
9737
9738	if test $found = "no" ; then
9739		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9740			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9741		fi
9742
9743		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9744			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9745		fi
9746
9747		CFLAGS="$CFLAGS -Waddress"
9748
9749		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9750$as_echo_n "checking if $CC supports-Waddress... " >&6; }
9751		cacheid=xorg_cv_cc_flag__Waddress
9752		if eval \${$cacheid+:} false; then :
9753  $as_echo_n "(cached) " >&6
9754else
9755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9756/* end confdefs.h.  */
9757int i;
9758int
9759main ()
9760{
9761
9762  ;
9763  return 0;
9764}
9765_ACEOF
9766if ac_fn_c_try_link "$LINENO"; then :
9767  eval $cacheid=yes
9768else
9769  eval $cacheid=no
9770fi
9771rm -f core conftest.err conftest.$ac_objext \
9772    conftest$ac_exeext conftest.$ac_ext
9773fi
9774
9775
9776		CFLAGS="$xorg_testset_save_CFLAGS"
9777
9778		eval supported=\$$cacheid
9779		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9780$as_echo "$supported" >&6; }
9781		if test "$supported" = "yes" ; then
9782			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9783			found="yes"
9784		fi
9785	fi
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801xorg_testset_save_CFLAGS="$CFLAGS"
9802
9803if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9804	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9805	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9806$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9807if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9808  $as_echo_n "(cached) " >&6
9809else
9810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811/* end confdefs.h.  */
9812int i;
9813_ACEOF
9814if ac_fn_c_try_compile "$LINENO"; then :
9815  xorg_cv_cc_flag_unknown_warning_option=yes
9816else
9817  xorg_cv_cc_flag_unknown_warning_option=no
9818fi
9819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9820fi
9821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9822$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9823	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9824	CFLAGS="$xorg_testset_save_CFLAGS"
9825fi
9826
9827if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9828	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9829		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9830	fi
9831	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9832	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9833$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9834if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9835  $as_echo_n "(cached) " >&6
9836else
9837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838/* end confdefs.h.  */
9839int i;
9840_ACEOF
9841if ac_fn_c_try_compile "$LINENO"; then :
9842  xorg_cv_cc_flag_unused_command_line_argument=yes
9843else
9844  xorg_cv_cc_flag_unused_command_line_argument=no
9845fi
9846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9847fi
9848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9849$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9850	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9851	CFLAGS="$xorg_testset_save_CFLAGS"
9852fi
9853
9854found="no"
9855
9856	if test $found = "no" ; then
9857		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9858			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9859		fi
9860
9861		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9862			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9863		fi
9864
9865		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9866
9867		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9868$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9869		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9870		if eval \${$cacheid+:} false; then :
9871  $as_echo_n "(cached) " >&6
9872else
9873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874/* end confdefs.h.  */
9875int i;
9876int
9877main ()
9878{
9879
9880  ;
9881  return 0;
9882}
9883_ACEOF
9884if ac_fn_c_try_link "$LINENO"; then :
9885  eval $cacheid=yes
9886else
9887  eval $cacheid=no
9888fi
9889rm -f core conftest.err conftest.$ac_objext \
9890    conftest$ac_exeext conftest.$ac_ext
9891fi
9892
9893
9894		CFLAGS="$xorg_testset_save_CFLAGS"
9895
9896		eval supported=\$$cacheid
9897		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9898$as_echo "$supported" >&6; }
9899		if test "$supported" = "yes" ; then
9900			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9901			found="yes"
9902		fi
9903	fi
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919xorg_testset_save_CFLAGS="$CFLAGS"
9920
9921if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9922	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9923	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9924$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9925if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9926  $as_echo_n "(cached) " >&6
9927else
9928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9929/* end confdefs.h.  */
9930int i;
9931_ACEOF
9932if ac_fn_c_try_compile "$LINENO"; then :
9933  xorg_cv_cc_flag_unknown_warning_option=yes
9934else
9935  xorg_cv_cc_flag_unknown_warning_option=no
9936fi
9937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9938fi
9939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9940$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9941	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9942	CFLAGS="$xorg_testset_save_CFLAGS"
9943fi
9944
9945if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9946	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9947		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9948	fi
9949	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9950	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9951$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9952if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9953  $as_echo_n "(cached) " >&6
9954else
9955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956/* end confdefs.h.  */
9957int i;
9958_ACEOF
9959if ac_fn_c_try_compile "$LINENO"; then :
9960  xorg_cv_cc_flag_unused_command_line_argument=yes
9961else
9962  xorg_cv_cc_flag_unused_command_line_argument=no
9963fi
9964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9965fi
9966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9967$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9968	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9969	CFLAGS="$xorg_testset_save_CFLAGS"
9970fi
9971
9972found="no"
9973
9974	if test $found = "no" ; then
9975		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9976			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9977		fi
9978
9979		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9980			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9981		fi
9982
9983		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9984
9985		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9986$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9987		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9988		if eval \${$cacheid+:} false; then :
9989  $as_echo_n "(cached) " >&6
9990else
9991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9992/* end confdefs.h.  */
9993int i;
9994int
9995main ()
9996{
9997
9998  ;
9999  return 0;
10000}
10001_ACEOF
10002if ac_fn_c_try_link "$LINENO"; then :
10003  eval $cacheid=yes
10004else
10005  eval $cacheid=no
10006fi
10007rm -f core conftest.err conftest.$ac_objext \
10008    conftest$ac_exeext conftest.$ac_ext
10009fi
10010
10011
10012		CFLAGS="$xorg_testset_save_CFLAGS"
10013
10014		eval supported=\$$cacheid
10015		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10016$as_echo "$supported" >&6; }
10017		if test "$supported" = "yes" ; then
10018			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10019			found="yes"
10020		fi
10021	fi
10022
10023
10024fi
10025
10026
10027
10028
10029
10030
10031
10032		CWARNFLAGS="$BASE_CFLAGS"
10033		if  test "x$GCC" = xyes ; then
10034		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10035		fi
10036
10037
10038
10039
10040
10041
10042
10043
10044# Check whether --enable-strict-compilation was given.
10045if test "${enable_strict_compilation+set}" = set; then :
10046  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10047else
10048  STRICT_COMPILE=no
10049fi
10050
10051
10052
10053
10054
10055
10056STRICT_CFLAGS=""
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070xorg_testset_save_CFLAGS="$CFLAGS"
10071
10072if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10073	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10074	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10075$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10076if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10077  $as_echo_n "(cached) " >&6
10078else
10079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10080/* end confdefs.h.  */
10081int i;
10082_ACEOF
10083if ac_fn_c_try_compile "$LINENO"; then :
10084  xorg_cv_cc_flag_unknown_warning_option=yes
10085else
10086  xorg_cv_cc_flag_unknown_warning_option=no
10087fi
10088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10089fi
10090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10091$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10092	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10093	CFLAGS="$xorg_testset_save_CFLAGS"
10094fi
10095
10096if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10097	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10098		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10099	fi
10100	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10101	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10102$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10103if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10104  $as_echo_n "(cached) " >&6
10105else
10106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107/* end confdefs.h.  */
10108int i;
10109_ACEOF
10110if ac_fn_c_try_compile "$LINENO"; then :
10111  xorg_cv_cc_flag_unused_command_line_argument=yes
10112else
10113  xorg_cv_cc_flag_unused_command_line_argument=no
10114fi
10115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10116fi
10117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10118$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10119	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10120	CFLAGS="$xorg_testset_save_CFLAGS"
10121fi
10122
10123found="no"
10124
10125	if test $found = "no" ; then
10126		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10127			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10128		fi
10129
10130		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10131			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10132		fi
10133
10134		CFLAGS="$CFLAGS -pedantic"
10135
10136		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
10137$as_echo_n "checking if $CC supports-pedantic... " >&6; }
10138		cacheid=xorg_cv_cc_flag__pedantic
10139		if eval \${$cacheid+:} false; then :
10140  $as_echo_n "(cached) " >&6
10141else
10142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10143/* end confdefs.h.  */
10144int i;
10145int
10146main ()
10147{
10148
10149  ;
10150  return 0;
10151}
10152_ACEOF
10153if ac_fn_c_try_link "$LINENO"; then :
10154  eval $cacheid=yes
10155else
10156  eval $cacheid=no
10157fi
10158rm -f core conftest.err conftest.$ac_objext \
10159    conftest$ac_exeext conftest.$ac_ext
10160fi
10161
10162
10163		CFLAGS="$xorg_testset_save_CFLAGS"
10164
10165		eval supported=\$$cacheid
10166		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10167$as_echo "$supported" >&6; }
10168		if test "$supported" = "yes" ; then
10169			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10170			found="yes"
10171		fi
10172	fi
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188xorg_testset_save_CFLAGS="$CFLAGS"
10189
10190if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10191	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10192	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10193$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10194if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10195  $as_echo_n "(cached) " >&6
10196else
10197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198/* end confdefs.h.  */
10199int i;
10200_ACEOF
10201if ac_fn_c_try_compile "$LINENO"; then :
10202  xorg_cv_cc_flag_unknown_warning_option=yes
10203else
10204  xorg_cv_cc_flag_unknown_warning_option=no
10205fi
10206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10207fi
10208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10209$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10210	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10211	CFLAGS="$xorg_testset_save_CFLAGS"
10212fi
10213
10214if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10215	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10216		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10217	fi
10218	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10219	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10220$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10221if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10222  $as_echo_n "(cached) " >&6
10223else
10224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10225/* end confdefs.h.  */
10226int i;
10227_ACEOF
10228if ac_fn_c_try_compile "$LINENO"; then :
10229  xorg_cv_cc_flag_unused_command_line_argument=yes
10230else
10231  xorg_cv_cc_flag_unused_command_line_argument=no
10232fi
10233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10234fi
10235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10236$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10237	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10238	CFLAGS="$xorg_testset_save_CFLAGS"
10239fi
10240
10241found="no"
10242
10243	if test $found = "no" ; then
10244		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10245			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10246		fi
10247
10248		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10249			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10250		fi
10251
10252		CFLAGS="$CFLAGS -Werror"
10253
10254		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10255$as_echo_n "checking if $CC supports-Werror... " >&6; }
10256		cacheid=xorg_cv_cc_flag__Werror
10257		if eval \${$cacheid+:} false; then :
10258  $as_echo_n "(cached) " >&6
10259else
10260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261/* end confdefs.h.  */
10262int i;
10263int
10264main ()
10265{
10266
10267  ;
10268  return 0;
10269}
10270_ACEOF
10271if ac_fn_c_try_link "$LINENO"; then :
10272  eval $cacheid=yes
10273else
10274  eval $cacheid=no
10275fi
10276rm -f core conftest.err conftest.$ac_objext \
10277    conftest$ac_exeext conftest.$ac_ext
10278fi
10279
10280
10281		CFLAGS="$xorg_testset_save_CFLAGS"
10282
10283		eval supported=\$$cacheid
10284		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10285$as_echo "$supported" >&6; }
10286		if test "$supported" = "yes" ; then
10287			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10288			found="yes"
10289		fi
10290	fi
10291
10292	if test $found = "no" ; then
10293		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10294			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10295		fi
10296
10297		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10298			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10299		fi
10300
10301		CFLAGS="$CFLAGS -errwarn"
10302
10303		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10304$as_echo_n "checking if $CC supports-errwarn... " >&6; }
10305		cacheid=xorg_cv_cc_flag__errwarn
10306		if eval \${$cacheid+:} false; then :
10307  $as_echo_n "(cached) " >&6
10308else
10309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310/* end confdefs.h.  */
10311int i;
10312int
10313main ()
10314{
10315
10316  ;
10317  return 0;
10318}
10319_ACEOF
10320if ac_fn_c_try_link "$LINENO"; then :
10321  eval $cacheid=yes
10322else
10323  eval $cacheid=no
10324fi
10325rm -f core conftest.err conftest.$ac_objext \
10326    conftest$ac_exeext conftest.$ac_ext
10327fi
10328
10329
10330		CFLAGS="$xorg_testset_save_CFLAGS"
10331
10332		eval supported=\$$cacheid
10333		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10334$as_echo "$supported" >&6; }
10335		if test "$supported" = "yes" ; then
10336			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10337			found="yes"
10338		fi
10339	fi
10340
10341
10342
10343# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10344# activate it with -Werror, so we add it here explicitly.
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358xorg_testset_save_CFLAGS="$CFLAGS"
10359
10360if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10361	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10362	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10363$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10364if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10365  $as_echo_n "(cached) " >&6
10366else
10367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10368/* end confdefs.h.  */
10369int i;
10370_ACEOF
10371if ac_fn_c_try_compile "$LINENO"; then :
10372  xorg_cv_cc_flag_unknown_warning_option=yes
10373else
10374  xorg_cv_cc_flag_unknown_warning_option=no
10375fi
10376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10377fi
10378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10379$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10380	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10381	CFLAGS="$xorg_testset_save_CFLAGS"
10382fi
10383
10384if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10385	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10386		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10387	fi
10388	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10389	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10390$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10391if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10392  $as_echo_n "(cached) " >&6
10393else
10394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10395/* end confdefs.h.  */
10396int i;
10397_ACEOF
10398if ac_fn_c_try_compile "$LINENO"; then :
10399  xorg_cv_cc_flag_unused_command_line_argument=yes
10400else
10401  xorg_cv_cc_flag_unused_command_line_argument=no
10402fi
10403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10404fi
10405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10406$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10407	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10408	CFLAGS="$xorg_testset_save_CFLAGS"
10409fi
10410
10411found="no"
10412
10413	if test $found = "no" ; then
10414		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10415			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10416		fi
10417
10418		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10419			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10420		fi
10421
10422		CFLAGS="$CFLAGS -Werror=attributes"
10423
10424		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10425$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10426		cacheid=xorg_cv_cc_flag__Werror_attributes
10427		if eval \${$cacheid+:} false; then :
10428  $as_echo_n "(cached) " >&6
10429else
10430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10431/* end confdefs.h.  */
10432int i;
10433int
10434main ()
10435{
10436
10437  ;
10438  return 0;
10439}
10440_ACEOF
10441if ac_fn_c_try_link "$LINENO"; then :
10442  eval $cacheid=yes
10443else
10444  eval $cacheid=no
10445fi
10446rm -f core conftest.err conftest.$ac_objext \
10447    conftest$ac_exeext conftest.$ac_ext
10448fi
10449
10450
10451		CFLAGS="$xorg_testset_save_CFLAGS"
10452
10453		eval supported=\$$cacheid
10454		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10455$as_echo "$supported" >&6; }
10456		if test "$supported" = "yes" ; then
10457			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10458			found="yes"
10459		fi
10460	fi
10461
10462
10463
10464if test "x$STRICT_COMPILE" = "xyes"; then
10465    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10466    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10467fi
10468
10469
10470
10471
10472
10473
10474cat >>confdefs.h <<_ACEOF
10475#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10476_ACEOF
10477
10478	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10479	if test "x$PVM" = "x"; then
10480		PVM="0"
10481	fi
10482
10483cat >>confdefs.h <<_ACEOF
10484#define PACKAGE_VERSION_MINOR $PVM
10485_ACEOF
10486
10487	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10488	if test "x$PVP" = "x"; then
10489		PVP="0"
10490	fi
10491
10492cat >>confdefs.h <<_ACEOF
10493#define PACKAGE_VERSION_PATCHLEVEL $PVP
10494_ACEOF
10495
10496
10497
10498CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10499mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10500|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10501echo 'git directory not found: installing possibly empty changelog.' >&2)"
10502
10503
10504
10505
10506macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10507INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10508mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10509|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10510echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10511
10512
10513
10514
10515
10516
10517if test x$APP_MAN_SUFFIX = x    ; then
10518    APP_MAN_SUFFIX=1
10519fi
10520if test x$APP_MAN_DIR = x    ; then
10521    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10522fi
10523
10524if test x$LIB_MAN_SUFFIX = x    ; then
10525    LIB_MAN_SUFFIX=3
10526fi
10527if test x$LIB_MAN_DIR = x    ; then
10528    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10529fi
10530
10531if test x$FILE_MAN_SUFFIX = x    ; then
10532    case $host_os in
10533	solaris*)	FILE_MAN_SUFFIX=4  ;;
10534	*)		FILE_MAN_SUFFIX=5  ;;
10535    esac
10536fi
10537if test x$FILE_MAN_DIR = x    ; then
10538    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10539fi
10540
10541if test x$MISC_MAN_SUFFIX = x    ; then
10542    case $host_os in
10543	solaris*)	MISC_MAN_SUFFIX=5  ;;
10544	*)		MISC_MAN_SUFFIX=7  ;;
10545    esac
10546fi
10547if test x$MISC_MAN_DIR = x    ; then
10548    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10549fi
10550
10551if test x$DRIVER_MAN_SUFFIX = x    ; then
10552    case $host_os in
10553	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10554	*)		DRIVER_MAN_SUFFIX=4  ;;
10555    esac
10556fi
10557if test x$DRIVER_MAN_DIR = x    ; then
10558    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10559fi
10560
10561if test x$ADMIN_MAN_SUFFIX = x    ; then
10562    case $host_os in
10563	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10564	*)		ADMIN_MAN_SUFFIX=8  ;;
10565    esac
10566fi
10567if test x$ADMIN_MAN_DIR = x    ; then
10568    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10569fi
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585XORG_MAN_PAGE="X Version 11"
10586
10587MAN_SUBSTS="\
10588	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10589	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10590	-e 's|__xservername__|Xorg|g' \
10591	-e 's|__xconfigfile__|xorg.conf|g' \
10592	-e 's|__projectroot__|\$(prefix)|g' \
10593	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10594	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10595	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10596	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10597	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10598	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10599	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10600
10601
10602
10603# Check whether --enable-silent-rules was given.
10604if test "${enable_silent_rules+set}" = set; then :
10605  enableval=$enable_silent_rules;
10606fi
10607
10608case $enable_silent_rules in
10609yes) AM_DEFAULT_VERBOSITY=0;;
10610no)  AM_DEFAULT_VERBOSITY=1;;
10611*)   AM_DEFAULT_VERBOSITY=0;;
10612esac
10613am_make=${MAKE-make}
10614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10615$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10616if ${am_cv_make_support_nested_variables+:} false; then :
10617  $as_echo_n "(cached) " >&6
10618else
10619  if $as_echo 'TRUE=$(BAR$(V))
10620BAR0=false
10621BAR1=true
10622V=1
10623am__doit:
10624	@$(TRUE)
10625.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10626  am_cv_make_support_nested_variables=yes
10627else
10628  am_cv_make_support_nested_variables=no
10629fi
10630fi
10631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10632$as_echo "$am_cv_make_support_nested_variables" >&6; }
10633if test $am_cv_make_support_nested_variables = yes; then
10634    AM_V='$(V)'
10635  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10636else
10637  AM_V=$AM_DEFAULT_VERBOSITY
10638  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10639fi
10640AM_BACKSLASH='\'
10641
10642
10643
10644
10645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10646$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10647    # Check whether --enable-maintainer-mode was given.
10648if test "${enable_maintainer_mode+set}" = set; then :
10649  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10650else
10651  USE_MAINTAINER_MODE=no
10652fi
10653
10654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10655$as_echo "$USE_MAINTAINER_MODE" >&6; }
10656   if test $USE_MAINTAINER_MODE = yes; then
10657  MAINTAINER_MODE_TRUE=
10658  MAINTAINER_MODE_FALSE='#'
10659else
10660  MAINTAINER_MODE_TRUE='#'
10661  MAINTAINER_MODE_FALSE=
10662fi
10663
10664  MAINT=$MAINTAINER_MODE_TRUE
10665
10666
10667
10668# Initialize libtool
10669# Check whether --enable-static was given.
10670if test "${enable_static+set}" = set; then :
10671  enableval=$enable_static; p=${PACKAGE-default}
10672    case $enableval in
10673    yes) enable_static=yes ;;
10674    no) enable_static=no ;;
10675    *)
10676     enable_static=no
10677      # Look at the argument we got.  We use all the common list separators.
10678      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10679      for pkg in $enableval; do
10680	IFS="$lt_save_ifs"
10681	if test "X$pkg" = "X$p"; then
10682	  enable_static=yes
10683	fi
10684      done
10685      IFS="$lt_save_ifs"
10686      ;;
10687    esac
10688else
10689  enable_static=no
10690fi
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700case `pwd` in
10701  *\ * | *\	*)
10702    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10703$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10704esac
10705
10706
10707
10708macro_version='2.4.2'
10709macro_revision='1.3337'
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723ltmain="$ac_aux_dir/ltmain.sh"
10724
10725# Backslashify metacharacters that are still active within
10726# double-quoted strings.
10727sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10728
10729# Same as above, but do not quote variable references.
10730double_quote_subst='s/\(["`\\]\)/\\\1/g'
10731
10732# Sed substitution to delay expansion of an escaped shell variable in a
10733# double_quote_subst'ed string.
10734delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10735
10736# Sed substitution to delay expansion of an escaped single quote.
10737delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10738
10739# Sed substitution to avoid accidental globbing in evaled expressions
10740no_glob_subst='s/\*/\\\*/g'
10741
10742ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10743ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10744ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10745
10746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10747$as_echo_n "checking how to print strings... " >&6; }
10748# Test print first, because it will be a builtin if present.
10749if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10750   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10751  ECHO='print -r --'
10752elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10753  ECHO='printf %s\n'
10754else
10755  # Use this function as a fallback that always works.
10756  func_fallback_echo ()
10757  {
10758    eval 'cat <<_LTECHO_EOF
10759$1
10760_LTECHO_EOF'
10761  }
10762  ECHO='func_fallback_echo'
10763fi
10764
10765# func_echo_all arg...
10766# Invoke $ECHO with all args, space-separated.
10767func_echo_all ()
10768{
10769    $ECHO ""
10770}
10771
10772case "$ECHO" in
10773  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10774$as_echo "printf" >&6; } ;;
10775  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10776$as_echo "print -r" >&6; } ;;
10777  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10778$as_echo "cat" >&6; } ;;
10779esac
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10795$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10796if ${ac_cv_path_SED+:} false; then :
10797  $as_echo_n "(cached) " >&6
10798else
10799            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10800     for ac_i in 1 2 3 4 5 6 7; do
10801       ac_script="$ac_script$as_nl$ac_script"
10802     done
10803     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10804     { ac_script=; unset ac_script;}
10805     if test -z "$SED"; then
10806  ac_path_SED_found=false
10807  # Loop through the user's path and test for each of PROGNAME-LIST
10808  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10809for as_dir in $PATH
10810do
10811  IFS=$as_save_IFS
10812  test -z "$as_dir" && as_dir=.
10813    for ac_prog in sed gsed; do
10814    for ac_exec_ext in '' $ac_executable_extensions; do
10815      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10816      as_fn_executable_p "$ac_path_SED" || continue
10817# Check for GNU ac_path_SED and select it if it is found.
10818  # Check for GNU $ac_path_SED
10819case `"$ac_path_SED" --version 2>&1` in
10820*GNU*)
10821  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10822*)
10823  ac_count=0
10824  $as_echo_n 0123456789 >"conftest.in"
10825  while :
10826  do
10827    cat "conftest.in" "conftest.in" >"conftest.tmp"
10828    mv "conftest.tmp" "conftest.in"
10829    cp "conftest.in" "conftest.nl"
10830    $as_echo '' >> "conftest.nl"
10831    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10832    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10833    as_fn_arith $ac_count + 1 && ac_count=$as_val
10834    if test $ac_count -gt ${ac_path_SED_max-0}; then
10835      # Best one so far, save it but keep looking for a better one
10836      ac_cv_path_SED="$ac_path_SED"
10837      ac_path_SED_max=$ac_count
10838    fi
10839    # 10*(2^10) chars as input seems more than enough
10840    test $ac_count -gt 10 && break
10841  done
10842  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10843esac
10844
10845      $ac_path_SED_found && break 3
10846    done
10847  done
10848  done
10849IFS=$as_save_IFS
10850  if test -z "$ac_cv_path_SED"; then
10851    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10852  fi
10853else
10854  ac_cv_path_SED=$SED
10855fi
10856
10857fi
10858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10859$as_echo "$ac_cv_path_SED" >&6; }
10860 SED="$ac_cv_path_SED"
10861  rm -f conftest.sed
10862
10863test -z "$SED" && SED=sed
10864Xsed="$SED -e 1s/^X//"
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10877$as_echo_n "checking for fgrep... " >&6; }
10878if ${ac_cv_path_FGREP+:} false; then :
10879  $as_echo_n "(cached) " >&6
10880else
10881  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10882   then ac_cv_path_FGREP="$GREP -F"
10883   else
10884     if test -z "$FGREP"; then
10885  ac_path_FGREP_found=false
10886  # Loop through the user's path and test for each of PROGNAME-LIST
10887  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10888for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10889do
10890  IFS=$as_save_IFS
10891  test -z "$as_dir" && as_dir=.
10892    for ac_prog in fgrep; do
10893    for ac_exec_ext in '' $ac_executable_extensions; do
10894      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10895      as_fn_executable_p "$ac_path_FGREP" || continue
10896# Check for GNU ac_path_FGREP and select it if it is found.
10897  # Check for GNU $ac_path_FGREP
10898case `"$ac_path_FGREP" --version 2>&1` in
10899*GNU*)
10900  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10901*)
10902  ac_count=0
10903  $as_echo_n 0123456789 >"conftest.in"
10904  while :
10905  do
10906    cat "conftest.in" "conftest.in" >"conftest.tmp"
10907    mv "conftest.tmp" "conftest.in"
10908    cp "conftest.in" "conftest.nl"
10909    $as_echo 'FGREP' >> "conftest.nl"
10910    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10911    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10912    as_fn_arith $ac_count + 1 && ac_count=$as_val
10913    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10914      # Best one so far, save it but keep looking for a better one
10915      ac_cv_path_FGREP="$ac_path_FGREP"
10916      ac_path_FGREP_max=$ac_count
10917    fi
10918    # 10*(2^10) chars as input seems more than enough
10919    test $ac_count -gt 10 && break
10920  done
10921  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10922esac
10923
10924      $ac_path_FGREP_found && break 3
10925    done
10926  done
10927  done
10928IFS=$as_save_IFS
10929  if test -z "$ac_cv_path_FGREP"; then
10930    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10931  fi
10932else
10933  ac_cv_path_FGREP=$FGREP
10934fi
10935
10936   fi
10937fi
10938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10939$as_echo "$ac_cv_path_FGREP" >&6; }
10940 FGREP="$ac_cv_path_FGREP"
10941
10942
10943test -z "$GREP" && GREP=grep
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963# Check whether --with-gnu-ld was given.
10964if test "${with_gnu_ld+set}" = set; then :
10965  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10966else
10967  with_gnu_ld=no
10968fi
10969
10970ac_prog=ld
10971if test "$GCC" = yes; then
10972  # Check if gcc -print-prog-name=ld gives a path.
10973  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10974$as_echo_n "checking for ld used by $CC... " >&6; }
10975  case $host in
10976  *-*-mingw*)
10977    # gcc leaves a trailing carriage return which upsets mingw
10978    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10979  *)
10980    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10981  esac
10982  case $ac_prog in
10983    # Accept absolute paths.
10984    [\\/]* | ?:[\\/]*)
10985      re_direlt='/[^/][^/]*/\.\./'
10986      # Canonicalize the pathname of ld
10987      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10988      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10989	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10990      done
10991      test -z "$LD" && LD="$ac_prog"
10992      ;;
10993  "")
10994    # If it fails, then pretend we aren't using GCC.
10995    ac_prog=ld
10996    ;;
10997  *)
10998    # If it is relative, then search for the first ld in PATH.
10999    with_gnu_ld=unknown
11000    ;;
11001  esac
11002elif test "$with_gnu_ld" = yes; then
11003  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11004$as_echo_n "checking for GNU ld... " >&6; }
11005else
11006  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11007$as_echo_n "checking for non-GNU ld... " >&6; }
11008fi
11009if ${lt_cv_path_LD+:} false; then :
11010  $as_echo_n "(cached) " >&6
11011else
11012  if test -z "$LD"; then
11013  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11014  for ac_dir in $PATH; do
11015    IFS="$lt_save_ifs"
11016    test -z "$ac_dir" && ac_dir=.
11017    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11018      lt_cv_path_LD="$ac_dir/$ac_prog"
11019      # Check to see if the program is GNU ld.  I'd rather use --version,
11020      # but apparently some variants of GNU ld only accept -v.
11021      # Break only if it was the GNU/non-GNU ld that we prefer.
11022      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11023      *GNU* | *'with BFD'*)
11024	test "$with_gnu_ld" != no && break
11025	;;
11026      *)
11027	test "$with_gnu_ld" != yes && break
11028	;;
11029      esac
11030    fi
11031  done
11032  IFS="$lt_save_ifs"
11033else
11034  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11035fi
11036fi
11037
11038LD="$lt_cv_path_LD"
11039if test -n "$LD"; then
11040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11041$as_echo "$LD" >&6; }
11042else
11043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044$as_echo "no" >&6; }
11045fi
11046test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11048$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11049if ${lt_cv_prog_gnu_ld+:} false; then :
11050  $as_echo_n "(cached) " >&6
11051else
11052  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11053case `$LD -v 2>&1 </dev/null` in
11054*GNU* | *'with BFD'*)
11055  lt_cv_prog_gnu_ld=yes
11056  ;;
11057*)
11058  lt_cv_prog_gnu_ld=no
11059  ;;
11060esac
11061fi
11062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11063$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11064with_gnu_ld=$lt_cv_prog_gnu_ld
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11075$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11076if ${lt_cv_path_NM+:} false; then :
11077  $as_echo_n "(cached) " >&6
11078else
11079  if test -n "$NM"; then
11080  # Let the user override the test.
11081  lt_cv_path_NM="$NM"
11082else
11083  lt_nm_to_check="${ac_tool_prefix}nm"
11084  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11085    lt_nm_to_check="$lt_nm_to_check nm"
11086  fi
11087  for lt_tmp_nm in $lt_nm_to_check; do
11088    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11089    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11090      IFS="$lt_save_ifs"
11091      test -z "$ac_dir" && ac_dir=.
11092      tmp_nm="$ac_dir/$lt_tmp_nm"
11093      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11094	# Check to see if the nm accepts a BSD-compat flag.
11095	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
11096	#   nm: unknown option "B" ignored
11097	# Tru64's nm complains that /dev/null is an invalid object file
11098	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11099	*/dev/null* | *'Invalid file or object type'*)
11100	  lt_cv_path_NM="$tmp_nm -B"
11101	  break
11102	  ;;
11103	*)
11104	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11105	  */dev/null*)
11106	    lt_cv_path_NM="$tmp_nm -p"
11107	    break
11108	    ;;
11109	  *)
11110	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11111	    continue # so that we can try to find one that supports BSD flags
11112	    ;;
11113	  esac
11114	  ;;
11115	esac
11116      fi
11117    done
11118    IFS="$lt_save_ifs"
11119  done
11120  : ${lt_cv_path_NM=no}
11121fi
11122fi
11123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11124$as_echo "$lt_cv_path_NM" >&6; }
11125if test "$lt_cv_path_NM" != "no"; then
11126  NM="$lt_cv_path_NM"
11127else
11128  # Didn't find any BSD compatible name lister, look for dumpbin.
11129  if test -n "$DUMPBIN"; then :
11130    # Let the user override the test.
11131  else
11132    if test -n "$ac_tool_prefix"; then
11133  for ac_prog in dumpbin "link -dump"
11134  do
11135    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11136set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11138$as_echo_n "checking for $ac_word... " >&6; }
11139if ${ac_cv_prog_DUMPBIN+:} false; then :
11140  $as_echo_n "(cached) " >&6
11141else
11142  if test -n "$DUMPBIN"; then
11143  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11144else
11145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11146for as_dir in $PATH
11147do
11148  IFS=$as_save_IFS
11149  test -z "$as_dir" && as_dir=.
11150    for ac_exec_ext in '' $ac_executable_extensions; do
11151  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11152    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11154    break 2
11155  fi
11156done
11157  done
11158IFS=$as_save_IFS
11159
11160fi
11161fi
11162DUMPBIN=$ac_cv_prog_DUMPBIN
11163if test -n "$DUMPBIN"; then
11164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11165$as_echo "$DUMPBIN" >&6; }
11166else
11167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168$as_echo "no" >&6; }
11169fi
11170
11171
11172    test -n "$DUMPBIN" && break
11173  done
11174fi
11175if test -z "$DUMPBIN"; then
11176  ac_ct_DUMPBIN=$DUMPBIN
11177  for ac_prog in dumpbin "link -dump"
11178do
11179  # Extract the first word of "$ac_prog", so it can be a program name with args.
11180set dummy $ac_prog; ac_word=$2
11181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11182$as_echo_n "checking for $ac_word... " >&6; }
11183if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11184  $as_echo_n "(cached) " >&6
11185else
11186  if test -n "$ac_ct_DUMPBIN"; then
11187  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11188else
11189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11190for as_dir in $PATH
11191do
11192  IFS=$as_save_IFS
11193  test -z "$as_dir" && as_dir=.
11194    for ac_exec_ext in '' $ac_executable_extensions; do
11195  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11196    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11198    break 2
11199  fi
11200done
11201  done
11202IFS=$as_save_IFS
11203
11204fi
11205fi
11206ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11207if test -n "$ac_ct_DUMPBIN"; then
11208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11209$as_echo "$ac_ct_DUMPBIN" >&6; }
11210else
11211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11212$as_echo "no" >&6; }
11213fi
11214
11215
11216  test -n "$ac_ct_DUMPBIN" && break
11217done
11218
11219  if test "x$ac_ct_DUMPBIN" = x; then
11220    DUMPBIN=":"
11221  else
11222    case $cross_compiling:$ac_tool_warned in
11223yes:)
11224{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11226ac_tool_warned=yes ;;
11227esac
11228    DUMPBIN=$ac_ct_DUMPBIN
11229  fi
11230fi
11231
11232    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11233    *COFF*)
11234      DUMPBIN="$DUMPBIN -symbols"
11235      ;;
11236    *)
11237      DUMPBIN=:
11238      ;;
11239    esac
11240  fi
11241
11242  if test "$DUMPBIN" != ":"; then
11243    NM="$DUMPBIN"
11244  fi
11245fi
11246test -z "$NM" && NM=nm
11247
11248
11249
11250
11251
11252
11253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11254$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11255if ${lt_cv_nm_interface+:} false; then :
11256  $as_echo_n "(cached) " >&6
11257else
11258  lt_cv_nm_interface="BSD nm"
11259  echo "int some_variable = 0;" > conftest.$ac_ext
11260  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11261  (eval "$ac_compile" 2>conftest.err)
11262  cat conftest.err >&5
11263  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11264  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11265  cat conftest.err >&5
11266  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11267  cat conftest.out >&5
11268  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11269    lt_cv_nm_interface="MS dumpbin"
11270  fi
11271  rm -f conftest*
11272fi
11273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11274$as_echo "$lt_cv_nm_interface" >&6; }
11275
11276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11277$as_echo_n "checking whether ln -s works... " >&6; }
11278LN_S=$as_ln_s
11279if test "$LN_S" = "ln -s"; then
11280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11281$as_echo "yes" >&6; }
11282else
11283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11284$as_echo "no, using $LN_S" >&6; }
11285fi
11286
11287# find the maximum length of command line arguments
11288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11289$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11290if ${lt_cv_sys_max_cmd_len+:} false; then :
11291  $as_echo_n "(cached) " >&6
11292else
11293    i=0
11294  teststring="ABCD"
11295
11296  case $build_os in
11297  msdosdjgpp*)
11298    # On DJGPP, this test can blow up pretty badly due to problems in libc
11299    # (any single argument exceeding 2000 bytes causes a buffer overrun
11300    # during glob expansion).  Even if it were fixed, the result of this
11301    # check would be larger than it should be.
11302    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11303    ;;
11304
11305  gnu*)
11306    # Under GNU Hurd, this test is not required because there is
11307    # no limit to the length of command line arguments.
11308    # Libtool will interpret -1 as no limit whatsoever
11309    lt_cv_sys_max_cmd_len=-1;
11310    ;;
11311
11312  cygwin* | mingw* | cegcc*)
11313    # On Win9x/ME, this test blows up -- it succeeds, but takes
11314    # about 5 minutes as the teststring grows exponentially.
11315    # Worse, since 9x/ME are not pre-emptively multitasking,
11316    # you end up with a "frozen" computer, even though with patience
11317    # the test eventually succeeds (with a max line length of 256k).
11318    # Instead, let's just punt: use the minimum linelength reported by
11319    # all of the supported platforms: 8192 (on NT/2K/XP).
11320    lt_cv_sys_max_cmd_len=8192;
11321    ;;
11322
11323  mint*)
11324    # On MiNT this can take a long time and run out of memory.
11325    lt_cv_sys_max_cmd_len=8192;
11326    ;;
11327
11328  amigaos*)
11329    # On AmigaOS with pdksh, this test takes hours, literally.
11330    # So we just punt and use a minimum line length of 8192.
11331    lt_cv_sys_max_cmd_len=8192;
11332    ;;
11333
11334  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11335    # This has been around since 386BSD, at least.  Likely further.
11336    if test -x /sbin/sysctl; then
11337      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11338    elif test -x /usr/sbin/sysctl; then
11339      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11340    else
11341      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11342    fi
11343    # And add a safety zone
11344    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11345    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11346    ;;
11347
11348  interix*)
11349    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11350    lt_cv_sys_max_cmd_len=196608
11351    ;;
11352
11353  os2*)
11354    # The test takes a long time on OS/2.
11355    lt_cv_sys_max_cmd_len=8192
11356    ;;
11357
11358  osf*)
11359    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11360    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11361    # nice to cause kernel panics so lets avoid the loop below.
11362    # First set a reasonable default.
11363    lt_cv_sys_max_cmd_len=16384
11364    #
11365    if test -x /sbin/sysconfig; then
11366      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11367        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11368      esac
11369    fi
11370    ;;
11371  sco3.2v5*)
11372    lt_cv_sys_max_cmd_len=102400
11373    ;;
11374  sysv5* | sco5v6* | sysv4.2uw2*)
11375    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11376    if test -n "$kargmax"; then
11377      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11378    else
11379      lt_cv_sys_max_cmd_len=32768
11380    fi
11381    ;;
11382  *)
11383    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11384    if test -n "$lt_cv_sys_max_cmd_len" && \
11385	test undefined != "$lt_cv_sys_max_cmd_len"; then
11386      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11387      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11388    else
11389      # Make teststring a little bigger before we do anything with it.
11390      # a 1K string should be a reasonable start.
11391      for i in 1 2 3 4 5 6 7 8 ; do
11392        teststring=$teststring$teststring
11393      done
11394      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11395      # If test is not a shell built-in, we'll probably end up computing a
11396      # maximum length that is only half of the actual maximum length, but
11397      # we can't tell.
11398      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11399	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11400	      test $i != 17 # 1/2 MB should be enough
11401      do
11402        i=`expr $i + 1`
11403        teststring=$teststring$teststring
11404      done
11405      # Only check the string length outside the loop.
11406      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11407      teststring=
11408      # Add a significant safety factor because C++ compilers can tack on
11409      # massive amounts of additional arguments before passing them to the
11410      # linker.  It appears as though 1/2 is a usable value.
11411      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11412    fi
11413    ;;
11414  esac
11415
11416fi
11417
11418if test -n $lt_cv_sys_max_cmd_len ; then
11419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11420$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11421else
11422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11423$as_echo "none" >&6; }
11424fi
11425max_cmd_len=$lt_cv_sys_max_cmd_len
11426
11427
11428
11429
11430
11431
11432: ${CP="cp -f"}
11433: ${MV="mv -f"}
11434: ${RM="rm -f"}
11435
11436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11437$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11438# Try some XSI features
11439xsi_shell=no
11440( _lt_dummy="a/b/c"
11441  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11442      = c,a/b,b/c, \
11443    && eval 'test $(( 1 + 1 )) -eq 2 \
11444    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11445  && xsi_shell=yes
11446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11447$as_echo "$xsi_shell" >&6; }
11448
11449
11450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11451$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11452lt_shell_append=no
11453( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11454    >/dev/null 2>&1 \
11455  && lt_shell_append=yes
11456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11457$as_echo "$lt_shell_append" >&6; }
11458
11459
11460if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11461  lt_unset=unset
11462else
11463  lt_unset=false
11464fi
11465
11466
11467
11468
11469
11470# test EBCDIC or ASCII
11471case `echo X|tr X '\101'` in
11472 A) # ASCII based system
11473    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11474  lt_SP2NL='tr \040 \012'
11475  lt_NL2SP='tr \015\012 \040\040'
11476  ;;
11477 *) # EBCDIC based system
11478  lt_SP2NL='tr \100 \n'
11479  lt_NL2SP='tr \r\n \100\100'
11480  ;;
11481esac
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11492$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11493if ${lt_cv_to_host_file_cmd+:} false; then :
11494  $as_echo_n "(cached) " >&6
11495else
11496  case $host in
11497  *-*-mingw* )
11498    case $build in
11499      *-*-mingw* ) # actually msys
11500        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11501        ;;
11502      *-*-cygwin* )
11503        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11504        ;;
11505      * ) # otherwise, assume *nix
11506        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11507        ;;
11508    esac
11509    ;;
11510  *-*-cygwin* )
11511    case $build in
11512      *-*-mingw* ) # actually msys
11513        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11514        ;;
11515      *-*-cygwin* )
11516        lt_cv_to_host_file_cmd=func_convert_file_noop
11517        ;;
11518      * ) # otherwise, assume *nix
11519        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11520        ;;
11521    esac
11522    ;;
11523  * ) # unhandled hosts (and "normal" native builds)
11524    lt_cv_to_host_file_cmd=func_convert_file_noop
11525    ;;
11526esac
11527
11528fi
11529
11530to_host_file_cmd=$lt_cv_to_host_file_cmd
11531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11532$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11533
11534
11535
11536
11537
11538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11539$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11540if ${lt_cv_to_tool_file_cmd+:} false; then :
11541  $as_echo_n "(cached) " >&6
11542else
11543  #assume ordinary cross tools, or native build.
11544lt_cv_to_tool_file_cmd=func_convert_file_noop
11545case $host in
11546  *-*-mingw* )
11547    case $build in
11548      *-*-mingw* ) # actually msys
11549        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11550        ;;
11551    esac
11552    ;;
11553esac
11554
11555fi
11556
11557to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11559$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11560
11561
11562
11563
11564
11565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11566$as_echo_n "checking for $LD option to reload object files... " >&6; }
11567if ${lt_cv_ld_reload_flag+:} false; then :
11568  $as_echo_n "(cached) " >&6
11569else
11570  lt_cv_ld_reload_flag='-r'
11571fi
11572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11573$as_echo "$lt_cv_ld_reload_flag" >&6; }
11574reload_flag=$lt_cv_ld_reload_flag
11575case $reload_flag in
11576"" | " "*) ;;
11577*) reload_flag=" $reload_flag" ;;
11578esac
11579reload_cmds='$LD$reload_flag -o $output$reload_objs'
11580case $host_os in
11581  cygwin* | mingw* | pw32* | cegcc*)
11582    if test "$GCC" != yes; then
11583      reload_cmds=false
11584    fi
11585    ;;
11586  darwin*)
11587    if test "$GCC" = yes; then
11588      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11589    else
11590      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11591    fi
11592    ;;
11593esac
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603if test -n "$ac_tool_prefix"; then
11604  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11605set dummy ${ac_tool_prefix}objdump; ac_word=$2
11606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11607$as_echo_n "checking for $ac_word... " >&6; }
11608if ${ac_cv_prog_OBJDUMP+:} false; then :
11609  $as_echo_n "(cached) " >&6
11610else
11611  if test -n "$OBJDUMP"; then
11612  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11613else
11614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11615for as_dir in $PATH
11616do
11617  IFS=$as_save_IFS
11618  test -z "$as_dir" && as_dir=.
11619    for ac_exec_ext in '' $ac_executable_extensions; do
11620  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11621    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11623    break 2
11624  fi
11625done
11626  done
11627IFS=$as_save_IFS
11628
11629fi
11630fi
11631OBJDUMP=$ac_cv_prog_OBJDUMP
11632if test -n "$OBJDUMP"; then
11633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11634$as_echo "$OBJDUMP" >&6; }
11635else
11636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11637$as_echo "no" >&6; }
11638fi
11639
11640
11641fi
11642if test -z "$ac_cv_prog_OBJDUMP"; then
11643  ac_ct_OBJDUMP=$OBJDUMP
11644  # Extract the first word of "objdump", so it can be a program name with args.
11645set dummy objdump; ac_word=$2
11646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11647$as_echo_n "checking for $ac_word... " >&6; }
11648if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11649  $as_echo_n "(cached) " >&6
11650else
11651  if test -n "$ac_ct_OBJDUMP"; then
11652  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11653else
11654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655for as_dir in $PATH
11656do
11657  IFS=$as_save_IFS
11658  test -z "$as_dir" && as_dir=.
11659    for ac_exec_ext in '' $ac_executable_extensions; do
11660  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11661    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11662    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11663    break 2
11664  fi
11665done
11666  done
11667IFS=$as_save_IFS
11668
11669fi
11670fi
11671ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11672if test -n "$ac_ct_OBJDUMP"; then
11673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11674$as_echo "$ac_ct_OBJDUMP" >&6; }
11675else
11676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11677$as_echo "no" >&6; }
11678fi
11679
11680  if test "x$ac_ct_OBJDUMP" = x; then
11681    OBJDUMP="false"
11682  else
11683    case $cross_compiling:$ac_tool_warned in
11684yes:)
11685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11687ac_tool_warned=yes ;;
11688esac
11689    OBJDUMP=$ac_ct_OBJDUMP
11690  fi
11691else
11692  OBJDUMP="$ac_cv_prog_OBJDUMP"
11693fi
11694
11695test -z "$OBJDUMP" && OBJDUMP=objdump
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11706$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11707if ${lt_cv_deplibs_check_method+:} false; then :
11708  $as_echo_n "(cached) " >&6
11709else
11710  lt_cv_file_magic_cmd='$MAGIC_CMD'
11711lt_cv_file_magic_test_file=
11712lt_cv_deplibs_check_method='unknown'
11713# Need to set the preceding variable on all platforms that support
11714# interlibrary dependencies.
11715# 'none' -- dependencies not supported.
11716# `unknown' -- same as none, but documents that we really don't know.
11717# 'pass_all' -- all dependencies passed with no checks.
11718# 'test_compile' -- check by making test program.
11719# 'file_magic [[regex]]' -- check by looking for files in library path
11720# which responds to the $file_magic_cmd with a given extended regex.
11721# If you have `file' or equivalent on your system and you're not sure
11722# whether `pass_all' will *always* work, you probably want this one.
11723
11724case $host_os in
11725aix[4-9]*)
11726  lt_cv_deplibs_check_method=pass_all
11727  ;;
11728
11729beos*)
11730  lt_cv_deplibs_check_method=pass_all
11731  ;;
11732
11733bsdi[45]*)
11734  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11735  lt_cv_file_magic_cmd='/usr/bin/file -L'
11736  lt_cv_file_magic_test_file=/shlib/libc.so
11737  ;;
11738
11739cygwin*)
11740  # func_win32_libid is a shell function defined in ltmain.sh
11741  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11742  lt_cv_file_magic_cmd='func_win32_libid'
11743  ;;
11744
11745mingw* | pw32*)
11746  # Base MSYS/MinGW do not provide the 'file' command needed by
11747  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11748  # unless we find 'file', for example because we are cross-compiling.
11749  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11750  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11751    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11752    lt_cv_file_magic_cmd='func_win32_libid'
11753  else
11754    # Keep this pattern in sync with the one in func_win32_libid.
11755    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11756    lt_cv_file_magic_cmd='$OBJDUMP -f'
11757  fi
11758  ;;
11759
11760cegcc*)
11761  # use the weaker test based on 'objdump'. See mingw*.
11762  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11763  lt_cv_file_magic_cmd='$OBJDUMP -f'
11764  ;;
11765
11766darwin* | rhapsody*)
11767  lt_cv_deplibs_check_method=pass_all
11768  ;;
11769
11770freebsd* | dragonfly*)
11771  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11772    case $host_cpu in
11773    i*86 )
11774      # Not sure whether the presence of OpenBSD here was a mistake.
11775      # Let's accept both of them until this is cleared up.
11776      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11777      lt_cv_file_magic_cmd=/usr/bin/file
11778      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11779      ;;
11780    esac
11781  else
11782    lt_cv_deplibs_check_method=pass_all
11783  fi
11784  ;;
11785
11786haiku*)
11787  lt_cv_deplibs_check_method=pass_all
11788  ;;
11789
11790hpux10.20* | hpux11*)
11791  lt_cv_file_magic_cmd=/usr/bin/file
11792  case $host_cpu in
11793  ia64*)
11794    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11795    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11796    ;;
11797  hppa*64*)
11798    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]'
11799    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11800    ;;
11801  *)
11802    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11803    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11804    ;;
11805  esac
11806  ;;
11807
11808interix[3-9]*)
11809  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11810  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11811  ;;
11812
11813irix5* | irix6* | nonstopux*)
11814  case $LD in
11815  *-32|*"-32 ") libmagic=32-bit;;
11816  *-n32|*"-n32 ") libmagic=N32;;
11817  *-64|*"-64 ") libmagic=64-bit;;
11818  *) libmagic=never-match;;
11819  esac
11820  lt_cv_deplibs_check_method=pass_all
11821  ;;
11822
11823# This must be glibc/ELF.
11824linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11825  lt_cv_deplibs_check_method=pass_all
11826  ;;
11827
11828netbsd* | netbsdelf*-gnu)
11829  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11830    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11831  else
11832    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11833  fi
11834  ;;
11835
11836newos6*)
11837  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11838  lt_cv_file_magic_cmd=/usr/bin/file
11839  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11840  ;;
11841
11842*nto* | *qnx*)
11843  lt_cv_deplibs_check_method=pass_all
11844  ;;
11845
11846openbsd*)
11847  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11848    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11849  else
11850    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11851  fi
11852  ;;
11853
11854osf3* | osf4* | osf5*)
11855  lt_cv_deplibs_check_method=pass_all
11856  ;;
11857
11858rdos*)
11859  lt_cv_deplibs_check_method=pass_all
11860  ;;
11861
11862solaris*)
11863  lt_cv_deplibs_check_method=pass_all
11864  ;;
11865
11866sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11867  lt_cv_deplibs_check_method=pass_all
11868  ;;
11869
11870sysv4 | sysv4.3*)
11871  case $host_vendor in
11872  motorola)
11873    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]'
11874    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11875    ;;
11876  ncr)
11877    lt_cv_deplibs_check_method=pass_all
11878    ;;
11879  sequent)
11880    lt_cv_file_magic_cmd='/bin/file'
11881    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11882    ;;
11883  sni)
11884    lt_cv_file_magic_cmd='/bin/file'
11885    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11886    lt_cv_file_magic_test_file=/lib/libc.so
11887    ;;
11888  siemens)
11889    lt_cv_deplibs_check_method=pass_all
11890    ;;
11891  pc)
11892    lt_cv_deplibs_check_method=pass_all
11893    ;;
11894  esac
11895  ;;
11896
11897tpf*)
11898  lt_cv_deplibs_check_method=pass_all
11899  ;;
11900esac
11901
11902fi
11903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11904$as_echo "$lt_cv_deplibs_check_method" >&6; }
11905
11906file_magic_glob=
11907want_nocaseglob=no
11908if test "$build" = "$host"; then
11909  case $host_os in
11910  mingw* | pw32*)
11911    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11912      want_nocaseglob=yes
11913    else
11914      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11915    fi
11916    ;;
11917  esac
11918fi
11919
11920file_magic_cmd=$lt_cv_file_magic_cmd
11921deplibs_check_method=$lt_cv_deplibs_check_method
11922test -z "$deplibs_check_method" && deplibs_check_method=unknown
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945if test -n "$ac_tool_prefix"; then
11946  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11947set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949$as_echo_n "checking for $ac_word... " >&6; }
11950if ${ac_cv_prog_DLLTOOL+:} false; then :
11951  $as_echo_n "(cached) " >&6
11952else
11953  if test -n "$DLLTOOL"; then
11954  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11955else
11956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957for as_dir in $PATH
11958do
11959  IFS=$as_save_IFS
11960  test -z "$as_dir" && as_dir=.
11961    for ac_exec_ext in '' $ac_executable_extensions; do
11962  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11963    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11965    break 2
11966  fi
11967done
11968  done
11969IFS=$as_save_IFS
11970
11971fi
11972fi
11973DLLTOOL=$ac_cv_prog_DLLTOOL
11974if test -n "$DLLTOOL"; then
11975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11976$as_echo "$DLLTOOL" >&6; }
11977else
11978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979$as_echo "no" >&6; }
11980fi
11981
11982
11983fi
11984if test -z "$ac_cv_prog_DLLTOOL"; then
11985  ac_ct_DLLTOOL=$DLLTOOL
11986  # Extract the first word of "dlltool", so it can be a program name with args.
11987set dummy dlltool; ac_word=$2
11988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11989$as_echo_n "checking for $ac_word... " >&6; }
11990if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11991  $as_echo_n "(cached) " >&6
11992else
11993  if test -n "$ac_ct_DLLTOOL"; then
11994  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11995else
11996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11997for as_dir in $PATH
11998do
11999  IFS=$as_save_IFS
12000  test -z "$as_dir" && as_dir=.
12001    for ac_exec_ext in '' $ac_executable_extensions; do
12002  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12003    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12004    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12005    break 2
12006  fi
12007done
12008  done
12009IFS=$as_save_IFS
12010
12011fi
12012fi
12013ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12014if test -n "$ac_ct_DLLTOOL"; then
12015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12016$as_echo "$ac_ct_DLLTOOL" >&6; }
12017else
12018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12019$as_echo "no" >&6; }
12020fi
12021
12022  if test "x$ac_ct_DLLTOOL" = x; then
12023    DLLTOOL="false"
12024  else
12025    case $cross_compiling:$ac_tool_warned in
12026yes:)
12027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12029ac_tool_warned=yes ;;
12030esac
12031    DLLTOOL=$ac_ct_DLLTOOL
12032  fi
12033else
12034  DLLTOOL="$ac_cv_prog_DLLTOOL"
12035fi
12036
12037test -z "$DLLTOOL" && DLLTOOL=dlltool
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12049$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12050if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12051  $as_echo_n "(cached) " >&6
12052else
12053  lt_cv_sharedlib_from_linklib_cmd='unknown'
12054
12055case $host_os in
12056cygwin* | mingw* | pw32* | cegcc*)
12057  # two different shell functions defined in ltmain.sh
12058  # decide which to use based on capabilities of $DLLTOOL
12059  case `$DLLTOOL --help 2>&1` in
12060  *--identify-strict*)
12061    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12062    ;;
12063  *)
12064    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12065    ;;
12066  esac
12067  ;;
12068*)
12069  # fallback: assume linklib IS sharedlib
12070  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12071  ;;
12072esac
12073
12074fi
12075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12076$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12077sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12078test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12079
12080
12081
12082
12083
12084
12085
12086if test -n "$ac_tool_prefix"; then
12087  for ac_prog in ar
12088  do
12089    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12090set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12092$as_echo_n "checking for $ac_word... " >&6; }
12093if ${ac_cv_prog_AR+:} false; then :
12094  $as_echo_n "(cached) " >&6
12095else
12096  if test -n "$AR"; then
12097  ac_cv_prog_AR="$AR" # Let the user override the test.
12098else
12099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12100for as_dir in $PATH
12101do
12102  IFS=$as_save_IFS
12103  test -z "$as_dir" && as_dir=.
12104    for ac_exec_ext in '' $ac_executable_extensions; do
12105  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12106    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12107    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12108    break 2
12109  fi
12110done
12111  done
12112IFS=$as_save_IFS
12113
12114fi
12115fi
12116AR=$ac_cv_prog_AR
12117if test -n "$AR"; then
12118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12119$as_echo "$AR" >&6; }
12120else
12121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12122$as_echo "no" >&6; }
12123fi
12124
12125
12126    test -n "$AR" && break
12127  done
12128fi
12129if test -z "$AR"; then
12130  ac_ct_AR=$AR
12131  for ac_prog in ar
12132do
12133  # Extract the first word of "$ac_prog", so it can be a program name with args.
12134set dummy $ac_prog; ac_word=$2
12135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12136$as_echo_n "checking for $ac_word... " >&6; }
12137if ${ac_cv_prog_ac_ct_AR+:} false; then :
12138  $as_echo_n "(cached) " >&6
12139else
12140  if test -n "$ac_ct_AR"; then
12141  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12142else
12143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12144for as_dir in $PATH
12145do
12146  IFS=$as_save_IFS
12147  test -z "$as_dir" && as_dir=.
12148    for ac_exec_ext in '' $ac_executable_extensions; do
12149  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12150    ac_cv_prog_ac_ct_AR="$ac_prog"
12151    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12152    break 2
12153  fi
12154done
12155  done
12156IFS=$as_save_IFS
12157
12158fi
12159fi
12160ac_ct_AR=$ac_cv_prog_ac_ct_AR
12161if test -n "$ac_ct_AR"; then
12162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12163$as_echo "$ac_ct_AR" >&6; }
12164else
12165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12166$as_echo "no" >&6; }
12167fi
12168
12169
12170  test -n "$ac_ct_AR" && break
12171done
12172
12173  if test "x$ac_ct_AR" = x; then
12174    AR="false"
12175  else
12176    case $cross_compiling:$ac_tool_warned in
12177yes:)
12178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12180ac_tool_warned=yes ;;
12181esac
12182    AR=$ac_ct_AR
12183  fi
12184fi
12185
12186: ${AR=ar}
12187: ${AR_FLAGS=cru}
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12200$as_echo_n "checking for archiver @FILE support... " >&6; }
12201if ${lt_cv_ar_at_file+:} false; then :
12202  $as_echo_n "(cached) " >&6
12203else
12204  lt_cv_ar_at_file=no
12205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206/* end confdefs.h.  */
12207
12208int
12209main ()
12210{
12211
12212  ;
12213  return 0;
12214}
12215_ACEOF
12216if ac_fn_c_try_compile "$LINENO"; then :
12217  echo conftest.$ac_objext > conftest.lst
12218      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12219      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12220  (eval $lt_ar_try) 2>&5
12221  ac_status=$?
12222  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12223  test $ac_status = 0; }
12224      if test "$ac_status" -eq 0; then
12225	# Ensure the archiver fails upon bogus file names.
12226	rm -f conftest.$ac_objext libconftest.a
12227	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12228  (eval $lt_ar_try) 2>&5
12229  ac_status=$?
12230  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12231  test $ac_status = 0; }
12232	if test "$ac_status" -ne 0; then
12233          lt_cv_ar_at_file=@
12234        fi
12235      fi
12236      rm -f conftest.* libconftest.a
12237
12238fi
12239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12240
12241fi
12242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12243$as_echo "$lt_cv_ar_at_file" >&6; }
12244
12245if test "x$lt_cv_ar_at_file" = xno; then
12246  archiver_list_spec=
12247else
12248  archiver_list_spec=$lt_cv_ar_at_file
12249fi
12250
12251
12252
12253
12254
12255
12256
12257if test -n "$ac_tool_prefix"; then
12258  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12259set dummy ${ac_tool_prefix}strip; ac_word=$2
12260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12261$as_echo_n "checking for $ac_word... " >&6; }
12262if ${ac_cv_prog_STRIP+:} false; then :
12263  $as_echo_n "(cached) " >&6
12264else
12265  if test -n "$STRIP"; then
12266  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12267else
12268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12269for as_dir in $PATH
12270do
12271  IFS=$as_save_IFS
12272  test -z "$as_dir" && as_dir=.
12273    for ac_exec_ext in '' $ac_executable_extensions; do
12274  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12275    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12277    break 2
12278  fi
12279done
12280  done
12281IFS=$as_save_IFS
12282
12283fi
12284fi
12285STRIP=$ac_cv_prog_STRIP
12286if test -n "$STRIP"; then
12287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12288$as_echo "$STRIP" >&6; }
12289else
12290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12291$as_echo "no" >&6; }
12292fi
12293
12294
12295fi
12296if test -z "$ac_cv_prog_STRIP"; then
12297  ac_ct_STRIP=$STRIP
12298  # Extract the first word of "strip", so it can be a program name with args.
12299set dummy strip; ac_word=$2
12300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12301$as_echo_n "checking for $ac_word... " >&6; }
12302if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12303  $as_echo_n "(cached) " >&6
12304else
12305  if test -n "$ac_ct_STRIP"; then
12306  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12307else
12308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12309for as_dir in $PATH
12310do
12311  IFS=$as_save_IFS
12312  test -z "$as_dir" && as_dir=.
12313    for ac_exec_ext in '' $ac_executable_extensions; do
12314  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12315    ac_cv_prog_ac_ct_STRIP="strip"
12316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12317    break 2
12318  fi
12319done
12320  done
12321IFS=$as_save_IFS
12322
12323fi
12324fi
12325ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12326if test -n "$ac_ct_STRIP"; then
12327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12328$as_echo "$ac_ct_STRIP" >&6; }
12329else
12330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12331$as_echo "no" >&6; }
12332fi
12333
12334  if test "x$ac_ct_STRIP" = x; then
12335    STRIP=":"
12336  else
12337    case $cross_compiling:$ac_tool_warned in
12338yes:)
12339{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12340$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12341ac_tool_warned=yes ;;
12342esac
12343    STRIP=$ac_ct_STRIP
12344  fi
12345else
12346  STRIP="$ac_cv_prog_STRIP"
12347fi
12348
12349test -z "$STRIP" && STRIP=:
12350
12351
12352
12353
12354
12355
12356if test -n "$ac_tool_prefix"; then
12357  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12358set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12360$as_echo_n "checking for $ac_word... " >&6; }
12361if ${ac_cv_prog_RANLIB+:} false; then :
12362  $as_echo_n "(cached) " >&6
12363else
12364  if test -n "$RANLIB"; then
12365  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12366else
12367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368for as_dir in $PATH
12369do
12370  IFS=$as_save_IFS
12371  test -z "$as_dir" && as_dir=.
12372    for ac_exec_ext in '' $ac_executable_extensions; do
12373  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12374    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12375    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12376    break 2
12377  fi
12378done
12379  done
12380IFS=$as_save_IFS
12381
12382fi
12383fi
12384RANLIB=$ac_cv_prog_RANLIB
12385if test -n "$RANLIB"; then
12386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12387$as_echo "$RANLIB" >&6; }
12388else
12389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390$as_echo "no" >&6; }
12391fi
12392
12393
12394fi
12395if test -z "$ac_cv_prog_RANLIB"; then
12396  ac_ct_RANLIB=$RANLIB
12397  # Extract the first word of "ranlib", so it can be a program name with args.
12398set dummy ranlib; ac_word=$2
12399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12400$as_echo_n "checking for $ac_word... " >&6; }
12401if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12402  $as_echo_n "(cached) " >&6
12403else
12404  if test -n "$ac_ct_RANLIB"; then
12405  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12406else
12407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12408for as_dir in $PATH
12409do
12410  IFS=$as_save_IFS
12411  test -z "$as_dir" && as_dir=.
12412    for ac_exec_ext in '' $ac_executable_extensions; do
12413  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12414    ac_cv_prog_ac_ct_RANLIB="ranlib"
12415    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12416    break 2
12417  fi
12418done
12419  done
12420IFS=$as_save_IFS
12421
12422fi
12423fi
12424ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12425if test -n "$ac_ct_RANLIB"; then
12426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12427$as_echo "$ac_ct_RANLIB" >&6; }
12428else
12429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12430$as_echo "no" >&6; }
12431fi
12432
12433  if test "x$ac_ct_RANLIB" = x; then
12434    RANLIB=":"
12435  else
12436    case $cross_compiling:$ac_tool_warned in
12437yes:)
12438{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12440ac_tool_warned=yes ;;
12441esac
12442    RANLIB=$ac_ct_RANLIB
12443  fi
12444else
12445  RANLIB="$ac_cv_prog_RANLIB"
12446fi
12447
12448test -z "$RANLIB" && RANLIB=:
12449
12450
12451
12452
12453
12454
12455# Determine commands to create old-style static archives.
12456old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12457old_postinstall_cmds='chmod 644 $oldlib'
12458old_postuninstall_cmds=
12459
12460if test -n "$RANLIB"; then
12461  case $host_os in
12462  openbsd*)
12463    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12464    ;;
12465  *)
12466    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12467    ;;
12468  esac
12469  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12470fi
12471
12472case $host_os in
12473  darwin*)
12474    lock_old_archive_extraction=yes ;;
12475  *)
12476    lock_old_archive_extraction=no ;;
12477esac
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517# If no C compiler was specified, use CC.
12518LTCC=${LTCC-"$CC"}
12519
12520# If no C compiler flags were specified, use CFLAGS.
12521LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12522
12523# Allow CC to be a program name with arguments.
12524compiler=$CC
12525
12526
12527# Check for command to grab the raw symbol name followed by C symbol from nm.
12528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12529$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12530if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12531  $as_echo_n "(cached) " >&6
12532else
12533
12534# These are sane defaults that work on at least a few old systems.
12535# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12536
12537# Character class describing NM global symbol codes.
12538symcode='[BCDEGRST]'
12539
12540# Regexp to match symbols that can be accessed directly from C.
12541sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12542
12543# Define system-specific variables.
12544case $host_os in
12545aix*)
12546  symcode='[BCDT]'
12547  ;;
12548cygwin* | mingw* | pw32* | cegcc*)
12549  symcode='[ABCDGISTW]'
12550  ;;
12551hpux*)
12552  if test "$host_cpu" = ia64; then
12553    symcode='[ABCDEGRST]'
12554  fi
12555  ;;
12556irix* | nonstopux*)
12557  symcode='[BCDEGRST]'
12558  ;;
12559osf*)
12560  symcode='[BCDEGQRST]'
12561  ;;
12562solaris*)
12563  symcode='[BDRT]'
12564  ;;
12565sco3.2v5*)
12566  symcode='[DT]'
12567  ;;
12568sysv4.2uw2*)
12569  symcode='[DT]'
12570  ;;
12571sysv5* | sco5v6* | unixware* | OpenUNIX*)
12572  symcode='[ABDT]'
12573  ;;
12574sysv4)
12575  symcode='[DFNSTU]'
12576  ;;
12577esac
12578
12579# If we're using GNU nm, then use its standard symbol codes.
12580case `$NM -V 2>&1` in
12581*GNU* | *'with BFD'*)
12582  symcode='[ABCDGIRSTW]' ;;
12583esac
12584
12585# Transform an extracted symbol line into a proper C declaration.
12586# Some systems (esp. on ia64) link data and code symbols differently,
12587# so use this general approach.
12588lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12589
12590# Transform an extracted symbol line into symbol name and symbol address
12591lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12592lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
12593
12594# Handle CRLF in mingw tool chain
12595opt_cr=
12596case $build_os in
12597mingw*)
12598  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12599  ;;
12600esac
12601
12602# Try without a prefix underscore, then with it.
12603for ac_symprfx in "" "_"; do
12604
12605  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12606  symxfrm="\\1 $ac_symprfx\\2 \\2"
12607
12608  # Write the raw and C identifiers.
12609  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12610    # Fake it for dumpbin and say T for any non-static function
12611    # and D for any global variable.
12612    # Also find C++ and __fastcall symbols from MSVC++,
12613    # which start with @ or ?.
12614    lt_cv_sys_global_symbol_pipe="$AWK '"\
12615"     {last_section=section; section=\$ 3};"\
12616"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12617"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12618"     \$ 0!~/External *\|/{next};"\
12619"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12620"     {if(hide[section]) next};"\
12621"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12622"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12623"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12624"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12625"     ' prfx=^$ac_symprfx"
12626  else
12627    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12628  fi
12629  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12630
12631  # Check to see that the pipe works correctly.
12632  pipe_works=no
12633
12634  rm -f conftest*
12635  cat > conftest.$ac_ext <<_LT_EOF
12636#ifdef __cplusplus
12637extern "C" {
12638#endif
12639char nm_test_var;
12640void nm_test_func(void);
12641void nm_test_func(void){}
12642#ifdef __cplusplus
12643}
12644#endif
12645int main(){nm_test_var='a';nm_test_func();return(0);}
12646_LT_EOF
12647
12648  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12649  (eval $ac_compile) 2>&5
12650  ac_status=$?
12651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12652  test $ac_status = 0; }; then
12653    # Now try to grab the symbols.
12654    nlist=conftest.nm
12655    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12656  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12657  ac_status=$?
12658  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12659  test $ac_status = 0; } && test -s "$nlist"; then
12660      # Try sorting and uniquifying the output.
12661      if sort "$nlist" | uniq > "$nlist"T; then
12662	mv -f "$nlist"T "$nlist"
12663      else
12664	rm -f "$nlist"T
12665      fi
12666
12667      # Make sure that we snagged all the symbols we need.
12668      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12669	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12670	  cat <<_LT_EOF > conftest.$ac_ext
12671/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12672#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12673/* DATA imports from DLLs on WIN32 con't be const, because runtime
12674   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12675# define LT_DLSYM_CONST
12676#elif defined(__osf__)
12677/* This system does not cope well with relocations in const data.  */
12678# define LT_DLSYM_CONST
12679#else
12680# define LT_DLSYM_CONST const
12681#endif
12682
12683#ifdef __cplusplus
12684extern "C" {
12685#endif
12686
12687_LT_EOF
12688	  # Now generate the symbol file.
12689	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12690
12691	  cat <<_LT_EOF >> conftest.$ac_ext
12692
12693/* The mapping between symbol names and symbols.  */
12694LT_DLSYM_CONST struct {
12695  const char *name;
12696  void       *address;
12697}
12698lt__PROGRAM__LTX_preloaded_symbols[] =
12699{
12700  { "@PROGRAM@", (void *) 0 },
12701_LT_EOF
12702	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12703	  cat <<\_LT_EOF >> conftest.$ac_ext
12704  {0, (void *) 0}
12705};
12706
12707/* This works around a problem in FreeBSD linker */
12708#ifdef FREEBSD_WORKAROUND
12709static const void *lt_preloaded_setup() {
12710  return lt__PROGRAM__LTX_preloaded_symbols;
12711}
12712#endif
12713
12714#ifdef __cplusplus
12715}
12716#endif
12717_LT_EOF
12718	  # Now try linking the two files.
12719	  mv conftest.$ac_objext conftstm.$ac_objext
12720	  lt_globsym_save_LIBS=$LIBS
12721	  lt_globsym_save_CFLAGS=$CFLAGS
12722	  LIBS="conftstm.$ac_objext"
12723	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12724	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12725  (eval $ac_link) 2>&5
12726  ac_status=$?
12727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12728  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12729	    pipe_works=yes
12730	  fi
12731	  LIBS=$lt_globsym_save_LIBS
12732	  CFLAGS=$lt_globsym_save_CFLAGS
12733	else
12734	  echo "cannot find nm_test_func in $nlist" >&5
12735	fi
12736      else
12737	echo "cannot find nm_test_var in $nlist" >&5
12738      fi
12739    else
12740      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12741    fi
12742  else
12743    echo "$progname: failed program was:" >&5
12744    cat conftest.$ac_ext >&5
12745  fi
12746  rm -rf conftest* conftst*
12747
12748  # Do not use the global_symbol_pipe unless it works.
12749  if test "$pipe_works" = yes; then
12750    break
12751  else
12752    lt_cv_sys_global_symbol_pipe=
12753  fi
12754done
12755
12756fi
12757
12758if test -z "$lt_cv_sys_global_symbol_pipe"; then
12759  lt_cv_sys_global_symbol_to_cdecl=
12760fi
12761if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12763$as_echo "failed" >&6; }
12764else
12765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12766$as_echo "ok" >&6; }
12767fi
12768
12769# Response file support.
12770if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12771  nm_file_list_spec='@'
12772elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12773  nm_file_list_spec='@'
12774fi
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12803$as_echo_n "checking for sysroot... " >&6; }
12804
12805# Check whether --with-sysroot was given.
12806if test "${with_sysroot+set}" = set; then :
12807  withval=$with_sysroot;
12808else
12809  with_sysroot=no
12810fi
12811
12812
12813lt_sysroot=
12814case ${with_sysroot} in #(
12815 yes)
12816   if test "$GCC" = yes; then
12817     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12818   fi
12819   ;; #(
12820 /*)
12821   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12822   ;; #(
12823 no|'')
12824   ;; #(
12825 *)
12826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12827$as_echo "${with_sysroot}" >&6; }
12828   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12829   ;;
12830esac
12831
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12833$as_echo "${lt_sysroot:-no}" >&6; }
12834
12835
12836
12837
12838
12839# Check whether --enable-libtool-lock was given.
12840if test "${enable_libtool_lock+set}" = set; then :
12841  enableval=$enable_libtool_lock;
12842fi
12843
12844test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12845
12846# Some flags need to be propagated to the compiler or linker for good
12847# libtool support.
12848case $host in
12849ia64-*-hpux*)
12850  # Find out which ABI we are using.
12851  echo 'int i;' > conftest.$ac_ext
12852  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12853  (eval $ac_compile) 2>&5
12854  ac_status=$?
12855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12856  test $ac_status = 0; }; then
12857    case `/usr/bin/file conftest.$ac_objext` in
12858      *ELF-32*)
12859	HPUX_IA64_MODE="32"
12860	;;
12861      *ELF-64*)
12862	HPUX_IA64_MODE="64"
12863	;;
12864    esac
12865  fi
12866  rm -rf conftest*
12867  ;;
12868*-*-irix6*)
12869  # Find out which ABI we are using.
12870  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12871  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12872  (eval $ac_compile) 2>&5
12873  ac_status=$?
12874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12875  test $ac_status = 0; }; then
12876    if test "$lt_cv_prog_gnu_ld" = yes; then
12877      case `/usr/bin/file conftest.$ac_objext` in
12878	*32-bit*)
12879	  LD="${LD-ld} -melf32bsmip"
12880	  ;;
12881	*N32*)
12882	  LD="${LD-ld} -melf32bmipn32"
12883	  ;;
12884	*64-bit*)
12885	  LD="${LD-ld} -melf64bmip"
12886	;;
12887      esac
12888    else
12889      case `/usr/bin/file conftest.$ac_objext` in
12890	*32-bit*)
12891	  LD="${LD-ld} -32"
12892	  ;;
12893	*N32*)
12894	  LD="${LD-ld} -n32"
12895	  ;;
12896	*64-bit*)
12897	  LD="${LD-ld} -64"
12898	  ;;
12899      esac
12900    fi
12901  fi
12902  rm -rf conftest*
12903  ;;
12904
12905x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12906s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12907  # Find out which ABI we are using.
12908  echo 'int i;' > conftest.$ac_ext
12909  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12910  (eval $ac_compile) 2>&5
12911  ac_status=$?
12912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12913  test $ac_status = 0; }; then
12914    case `/usr/bin/file conftest.o` in
12915      *32-bit*)
12916	case $host in
12917	  x86_64-*kfreebsd*-gnu)
12918	    LD="${LD-ld} -m elf_i386_fbsd"
12919	    ;;
12920	  x86_64-*linux*)
12921	    case `/usr/bin/file conftest.o` in
12922	      *x86-64*)
12923		LD="${LD-ld} -m elf32_x86_64"
12924		;;
12925	      *)
12926		LD="${LD-ld} -m elf_i386"
12927		;;
12928	    esac
12929	    ;;
12930	  ppc64-*linux*|powerpc64-*linux*)
12931	    LD="${LD-ld} -m elf32ppclinux"
12932	    ;;
12933	  s390x-*linux*)
12934	    LD="${LD-ld} -m elf_s390"
12935	    ;;
12936	  sparc64-*linux*)
12937	    LD="${LD-ld} -m elf32_sparc"
12938	    ;;
12939	esac
12940	;;
12941      *64-bit*)
12942	case $host in
12943	  x86_64-*kfreebsd*-gnu)
12944	    LD="${LD-ld} -m elf_x86_64_fbsd"
12945	    ;;
12946	  x86_64-*linux*)
12947	    LD="${LD-ld} -m elf_x86_64"
12948	    ;;
12949	  ppc*-*linux*|powerpc*-*linux*)
12950	    LD="${LD-ld} -m elf64ppc"
12951	    ;;
12952	  s390*-*linux*|s390*-*tpf*)
12953	    LD="${LD-ld} -m elf64_s390"
12954	    ;;
12955	  sparc*-*linux*)
12956	    LD="${LD-ld} -m elf64_sparc"
12957	    ;;
12958	esac
12959	;;
12960    esac
12961  fi
12962  rm -rf conftest*
12963  ;;
12964
12965*-*-sco3.2v5*)
12966  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12967  SAVE_CFLAGS="$CFLAGS"
12968  CFLAGS="$CFLAGS -belf"
12969  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12970$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12971if ${lt_cv_cc_needs_belf+:} false; then :
12972  $as_echo_n "(cached) " >&6
12973else
12974  ac_ext=c
12975ac_cpp='$CPP $CPPFLAGS'
12976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12978ac_compiler_gnu=$ac_cv_c_compiler_gnu
12979
12980     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981/* end confdefs.h.  */
12982
12983int
12984main ()
12985{
12986
12987  ;
12988  return 0;
12989}
12990_ACEOF
12991if ac_fn_c_try_link "$LINENO"; then :
12992  lt_cv_cc_needs_belf=yes
12993else
12994  lt_cv_cc_needs_belf=no
12995fi
12996rm -f core conftest.err conftest.$ac_objext \
12997    conftest$ac_exeext conftest.$ac_ext
12998     ac_ext=c
12999ac_cpp='$CPP $CPPFLAGS'
13000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13002ac_compiler_gnu=$ac_cv_c_compiler_gnu
13003
13004fi
13005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13006$as_echo "$lt_cv_cc_needs_belf" >&6; }
13007  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13008    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13009    CFLAGS="$SAVE_CFLAGS"
13010  fi
13011  ;;
13012*-*solaris*)
13013  # Find out which ABI we are using.
13014  echo 'int i;' > conftest.$ac_ext
13015  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13016  (eval $ac_compile) 2>&5
13017  ac_status=$?
13018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13019  test $ac_status = 0; }; then
13020    case `/usr/bin/file conftest.o` in
13021    *64-bit*)
13022      case $lt_cv_prog_gnu_ld in
13023      yes*)
13024        case $host in
13025        i?86-*-solaris*)
13026          LD="${LD-ld} -m elf_x86_64"
13027          ;;
13028        sparc*-*-solaris*)
13029          LD="${LD-ld} -m elf64_sparc"
13030          ;;
13031        esac
13032        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13033        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13034          LD="${LD-ld}_sol2"
13035        fi
13036        ;;
13037      *)
13038	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13039	  LD="${LD-ld} -64"
13040	fi
13041	;;
13042      esac
13043      ;;
13044    esac
13045  fi
13046  rm -rf conftest*
13047  ;;
13048esac
13049
13050need_locks="$enable_libtool_lock"
13051
13052if test -n "$ac_tool_prefix"; then
13053  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13054set dummy ${ac_tool_prefix}mt; ac_word=$2
13055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13056$as_echo_n "checking for $ac_word... " >&6; }
13057if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13058  $as_echo_n "(cached) " >&6
13059else
13060  if test -n "$MANIFEST_TOOL"; then
13061  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13062else
13063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13064for as_dir in $PATH
13065do
13066  IFS=$as_save_IFS
13067  test -z "$as_dir" && as_dir=.
13068    for ac_exec_ext in '' $ac_executable_extensions; do
13069  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13070    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13071    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13072    break 2
13073  fi
13074done
13075  done
13076IFS=$as_save_IFS
13077
13078fi
13079fi
13080MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13081if test -n "$MANIFEST_TOOL"; then
13082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13083$as_echo "$MANIFEST_TOOL" >&6; }
13084else
13085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13086$as_echo "no" >&6; }
13087fi
13088
13089
13090fi
13091if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13092  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13093  # Extract the first word of "mt", so it can be a program name with args.
13094set dummy mt; ac_word=$2
13095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13096$as_echo_n "checking for $ac_word... " >&6; }
13097if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13098  $as_echo_n "(cached) " >&6
13099else
13100  if test -n "$ac_ct_MANIFEST_TOOL"; then
13101  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13102else
13103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13104for as_dir in $PATH
13105do
13106  IFS=$as_save_IFS
13107  test -z "$as_dir" && as_dir=.
13108    for ac_exec_ext in '' $ac_executable_extensions; do
13109  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13110    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13111    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13112    break 2
13113  fi
13114done
13115  done
13116IFS=$as_save_IFS
13117
13118fi
13119fi
13120ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13121if test -n "$ac_ct_MANIFEST_TOOL"; then
13122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13123$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13124else
13125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13126$as_echo "no" >&6; }
13127fi
13128
13129  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13130    MANIFEST_TOOL=":"
13131  else
13132    case $cross_compiling:$ac_tool_warned in
13133yes:)
13134{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13135$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13136ac_tool_warned=yes ;;
13137esac
13138    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13139  fi
13140else
13141  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13142fi
13143
13144test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13146$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13147if ${lt_cv_path_mainfest_tool+:} false; then :
13148  $as_echo_n "(cached) " >&6
13149else
13150  lt_cv_path_mainfest_tool=no
13151  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13152  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13153  cat conftest.err >&5
13154  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13155    lt_cv_path_mainfest_tool=yes
13156  fi
13157  rm -f conftest*
13158fi
13159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13160$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13161if test "x$lt_cv_path_mainfest_tool" != xyes; then
13162  MANIFEST_TOOL=:
13163fi
13164
13165
13166
13167
13168
13169
13170  case $host_os in
13171    rhapsody* | darwin*)
13172    if test -n "$ac_tool_prefix"; then
13173  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13174set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13176$as_echo_n "checking for $ac_word... " >&6; }
13177if ${ac_cv_prog_DSYMUTIL+:} false; then :
13178  $as_echo_n "(cached) " >&6
13179else
13180  if test -n "$DSYMUTIL"; then
13181  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13182else
13183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13184for as_dir in $PATH
13185do
13186  IFS=$as_save_IFS
13187  test -z "$as_dir" && as_dir=.
13188    for ac_exec_ext in '' $ac_executable_extensions; do
13189  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13190    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13192    break 2
13193  fi
13194done
13195  done
13196IFS=$as_save_IFS
13197
13198fi
13199fi
13200DSYMUTIL=$ac_cv_prog_DSYMUTIL
13201if test -n "$DSYMUTIL"; then
13202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13203$as_echo "$DSYMUTIL" >&6; }
13204else
13205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13206$as_echo "no" >&6; }
13207fi
13208
13209
13210fi
13211if test -z "$ac_cv_prog_DSYMUTIL"; then
13212  ac_ct_DSYMUTIL=$DSYMUTIL
13213  # Extract the first word of "dsymutil", so it can be a program name with args.
13214set dummy dsymutil; ac_word=$2
13215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13216$as_echo_n "checking for $ac_word... " >&6; }
13217if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13218  $as_echo_n "(cached) " >&6
13219else
13220  if test -n "$ac_ct_DSYMUTIL"; then
13221  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13222else
13223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13224for as_dir in $PATH
13225do
13226  IFS=$as_save_IFS
13227  test -z "$as_dir" && as_dir=.
13228    for ac_exec_ext in '' $ac_executable_extensions; do
13229  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13230    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13231    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13232    break 2
13233  fi
13234done
13235  done
13236IFS=$as_save_IFS
13237
13238fi
13239fi
13240ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13241if test -n "$ac_ct_DSYMUTIL"; then
13242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13243$as_echo "$ac_ct_DSYMUTIL" >&6; }
13244else
13245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13246$as_echo "no" >&6; }
13247fi
13248
13249  if test "x$ac_ct_DSYMUTIL" = x; then
13250    DSYMUTIL=":"
13251  else
13252    case $cross_compiling:$ac_tool_warned in
13253yes:)
13254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13256ac_tool_warned=yes ;;
13257esac
13258    DSYMUTIL=$ac_ct_DSYMUTIL
13259  fi
13260else
13261  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13262fi
13263
13264    if test -n "$ac_tool_prefix"; then
13265  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13266set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13268$as_echo_n "checking for $ac_word... " >&6; }
13269if ${ac_cv_prog_NMEDIT+:} false; then :
13270  $as_echo_n "(cached) " >&6
13271else
13272  if test -n "$NMEDIT"; then
13273  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13274else
13275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13276for as_dir in $PATH
13277do
13278  IFS=$as_save_IFS
13279  test -z "$as_dir" && as_dir=.
13280    for ac_exec_ext in '' $ac_executable_extensions; do
13281  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13282    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13283    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13284    break 2
13285  fi
13286done
13287  done
13288IFS=$as_save_IFS
13289
13290fi
13291fi
13292NMEDIT=$ac_cv_prog_NMEDIT
13293if test -n "$NMEDIT"; then
13294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13295$as_echo "$NMEDIT" >&6; }
13296else
13297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298$as_echo "no" >&6; }
13299fi
13300
13301
13302fi
13303if test -z "$ac_cv_prog_NMEDIT"; then
13304  ac_ct_NMEDIT=$NMEDIT
13305  # Extract the first word of "nmedit", so it can be a program name with args.
13306set dummy nmedit; ac_word=$2
13307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13308$as_echo_n "checking for $ac_word... " >&6; }
13309if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13310  $as_echo_n "(cached) " >&6
13311else
13312  if test -n "$ac_ct_NMEDIT"; then
13313  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13314else
13315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13316for as_dir in $PATH
13317do
13318  IFS=$as_save_IFS
13319  test -z "$as_dir" && as_dir=.
13320    for ac_exec_ext in '' $ac_executable_extensions; do
13321  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13322    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13323    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13324    break 2
13325  fi
13326done
13327  done
13328IFS=$as_save_IFS
13329
13330fi
13331fi
13332ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13333if test -n "$ac_ct_NMEDIT"; then
13334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13335$as_echo "$ac_ct_NMEDIT" >&6; }
13336else
13337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13338$as_echo "no" >&6; }
13339fi
13340
13341  if test "x$ac_ct_NMEDIT" = x; then
13342    NMEDIT=":"
13343  else
13344    case $cross_compiling:$ac_tool_warned in
13345yes:)
13346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13348ac_tool_warned=yes ;;
13349esac
13350    NMEDIT=$ac_ct_NMEDIT
13351  fi
13352else
13353  NMEDIT="$ac_cv_prog_NMEDIT"
13354fi
13355
13356    if test -n "$ac_tool_prefix"; then
13357  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13358set dummy ${ac_tool_prefix}lipo; ac_word=$2
13359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13360$as_echo_n "checking for $ac_word... " >&6; }
13361if ${ac_cv_prog_LIPO+:} false; then :
13362  $as_echo_n "(cached) " >&6
13363else
13364  if test -n "$LIPO"; then
13365  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13366else
13367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13368for as_dir in $PATH
13369do
13370  IFS=$as_save_IFS
13371  test -z "$as_dir" && as_dir=.
13372    for ac_exec_ext in '' $ac_executable_extensions; do
13373  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13374    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13375    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13376    break 2
13377  fi
13378done
13379  done
13380IFS=$as_save_IFS
13381
13382fi
13383fi
13384LIPO=$ac_cv_prog_LIPO
13385if test -n "$LIPO"; then
13386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13387$as_echo "$LIPO" >&6; }
13388else
13389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13390$as_echo "no" >&6; }
13391fi
13392
13393
13394fi
13395if test -z "$ac_cv_prog_LIPO"; then
13396  ac_ct_LIPO=$LIPO
13397  # Extract the first word of "lipo", so it can be a program name with args.
13398set dummy lipo; ac_word=$2
13399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13400$as_echo_n "checking for $ac_word... " >&6; }
13401if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13402  $as_echo_n "(cached) " >&6
13403else
13404  if test -n "$ac_ct_LIPO"; then
13405  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13406else
13407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13408for as_dir in $PATH
13409do
13410  IFS=$as_save_IFS
13411  test -z "$as_dir" && as_dir=.
13412    for ac_exec_ext in '' $ac_executable_extensions; do
13413  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13414    ac_cv_prog_ac_ct_LIPO="lipo"
13415    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13416    break 2
13417  fi
13418done
13419  done
13420IFS=$as_save_IFS
13421
13422fi
13423fi
13424ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13425if test -n "$ac_ct_LIPO"; then
13426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13427$as_echo "$ac_ct_LIPO" >&6; }
13428else
13429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13430$as_echo "no" >&6; }
13431fi
13432
13433  if test "x$ac_ct_LIPO" = x; then
13434    LIPO=":"
13435  else
13436    case $cross_compiling:$ac_tool_warned in
13437yes:)
13438{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13440ac_tool_warned=yes ;;
13441esac
13442    LIPO=$ac_ct_LIPO
13443  fi
13444else
13445  LIPO="$ac_cv_prog_LIPO"
13446fi
13447
13448    if test -n "$ac_tool_prefix"; then
13449  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13450set dummy ${ac_tool_prefix}otool; ac_word=$2
13451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13452$as_echo_n "checking for $ac_word... " >&6; }
13453if ${ac_cv_prog_OTOOL+:} false; then :
13454  $as_echo_n "(cached) " >&6
13455else
13456  if test -n "$OTOOL"; then
13457  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13458else
13459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13460for as_dir in $PATH
13461do
13462  IFS=$as_save_IFS
13463  test -z "$as_dir" && as_dir=.
13464    for ac_exec_ext in '' $ac_executable_extensions; do
13465  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13466    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13467    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13468    break 2
13469  fi
13470done
13471  done
13472IFS=$as_save_IFS
13473
13474fi
13475fi
13476OTOOL=$ac_cv_prog_OTOOL
13477if test -n "$OTOOL"; then
13478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13479$as_echo "$OTOOL" >&6; }
13480else
13481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13482$as_echo "no" >&6; }
13483fi
13484
13485
13486fi
13487if test -z "$ac_cv_prog_OTOOL"; then
13488  ac_ct_OTOOL=$OTOOL
13489  # Extract the first word of "otool", so it can be a program name with args.
13490set dummy otool; ac_word=$2
13491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13492$as_echo_n "checking for $ac_word... " >&6; }
13493if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13494  $as_echo_n "(cached) " >&6
13495else
13496  if test -n "$ac_ct_OTOOL"; then
13497  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13498else
13499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13500for as_dir in $PATH
13501do
13502  IFS=$as_save_IFS
13503  test -z "$as_dir" && as_dir=.
13504    for ac_exec_ext in '' $ac_executable_extensions; do
13505  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13506    ac_cv_prog_ac_ct_OTOOL="otool"
13507    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13508    break 2
13509  fi
13510done
13511  done
13512IFS=$as_save_IFS
13513
13514fi
13515fi
13516ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13517if test -n "$ac_ct_OTOOL"; then
13518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13519$as_echo "$ac_ct_OTOOL" >&6; }
13520else
13521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13522$as_echo "no" >&6; }
13523fi
13524
13525  if test "x$ac_ct_OTOOL" = x; then
13526    OTOOL=":"
13527  else
13528    case $cross_compiling:$ac_tool_warned in
13529yes:)
13530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13532ac_tool_warned=yes ;;
13533esac
13534    OTOOL=$ac_ct_OTOOL
13535  fi
13536else
13537  OTOOL="$ac_cv_prog_OTOOL"
13538fi
13539
13540    if test -n "$ac_tool_prefix"; then
13541  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13542set dummy ${ac_tool_prefix}otool64; ac_word=$2
13543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13544$as_echo_n "checking for $ac_word... " >&6; }
13545if ${ac_cv_prog_OTOOL64+:} false; then :
13546  $as_echo_n "(cached) " >&6
13547else
13548  if test -n "$OTOOL64"; then
13549  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13550else
13551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13552for as_dir in $PATH
13553do
13554  IFS=$as_save_IFS
13555  test -z "$as_dir" && as_dir=.
13556    for ac_exec_ext in '' $ac_executable_extensions; do
13557  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13558    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13559    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13560    break 2
13561  fi
13562done
13563  done
13564IFS=$as_save_IFS
13565
13566fi
13567fi
13568OTOOL64=$ac_cv_prog_OTOOL64
13569if test -n "$OTOOL64"; then
13570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13571$as_echo "$OTOOL64" >&6; }
13572else
13573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13574$as_echo "no" >&6; }
13575fi
13576
13577
13578fi
13579if test -z "$ac_cv_prog_OTOOL64"; then
13580  ac_ct_OTOOL64=$OTOOL64
13581  # Extract the first word of "otool64", so it can be a program name with args.
13582set dummy otool64; ac_word=$2
13583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13584$as_echo_n "checking for $ac_word... " >&6; }
13585if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13586  $as_echo_n "(cached) " >&6
13587else
13588  if test -n "$ac_ct_OTOOL64"; then
13589  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13590else
13591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13592for as_dir in $PATH
13593do
13594  IFS=$as_save_IFS
13595  test -z "$as_dir" && as_dir=.
13596    for ac_exec_ext in '' $ac_executable_extensions; do
13597  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13598    ac_cv_prog_ac_ct_OTOOL64="otool64"
13599    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13600    break 2
13601  fi
13602done
13603  done
13604IFS=$as_save_IFS
13605
13606fi
13607fi
13608ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13609if test -n "$ac_ct_OTOOL64"; then
13610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13611$as_echo "$ac_ct_OTOOL64" >&6; }
13612else
13613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13614$as_echo "no" >&6; }
13615fi
13616
13617  if test "x$ac_ct_OTOOL64" = x; then
13618    OTOOL64=":"
13619  else
13620    case $cross_compiling:$ac_tool_warned in
13621yes:)
13622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13624ac_tool_warned=yes ;;
13625esac
13626    OTOOL64=$ac_ct_OTOOL64
13627  fi
13628else
13629  OTOOL64="$ac_cv_prog_OTOOL64"
13630fi
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13659$as_echo_n "checking for -single_module linker flag... " >&6; }
13660if ${lt_cv_apple_cc_single_mod+:} false; then :
13661  $as_echo_n "(cached) " >&6
13662else
13663  lt_cv_apple_cc_single_mod=no
13664      if test -z "${LT_MULTI_MODULE}"; then
13665	# By default we will add the -single_module flag. You can override
13666	# by either setting the environment variable LT_MULTI_MODULE
13667	# non-empty at configure time, or by adding -multi_module to the
13668	# link flags.
13669	rm -rf libconftest.dylib*
13670	echo "int foo(void){return 1;}" > conftest.c
13671	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13672-dynamiclib -Wl,-single_module conftest.c" >&5
13673	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13674	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13675        _lt_result=$?
13676	# If there is a non-empty error log, and "single_module"
13677	# appears in it, assume the flag caused a linker warning
13678        if test -s conftest.err && $GREP single_module conftest.err; then
13679	  cat conftest.err >&5
13680	# Otherwise, if the output was created with a 0 exit code from
13681	# the compiler, it worked.
13682	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13683	  lt_cv_apple_cc_single_mod=yes
13684	else
13685	  cat conftest.err >&5
13686	fi
13687	rm -rf libconftest.dylib*
13688	rm -f conftest.*
13689      fi
13690fi
13691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13692$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13693
13694    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13695$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13696if ${lt_cv_ld_exported_symbols_list+:} false; then :
13697  $as_echo_n "(cached) " >&6
13698else
13699  lt_cv_ld_exported_symbols_list=no
13700      save_LDFLAGS=$LDFLAGS
13701      echo "_main" > conftest.sym
13702      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13703      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13704/* end confdefs.h.  */
13705
13706int
13707main ()
13708{
13709
13710  ;
13711  return 0;
13712}
13713_ACEOF
13714if ac_fn_c_try_link "$LINENO"; then :
13715  lt_cv_ld_exported_symbols_list=yes
13716else
13717  lt_cv_ld_exported_symbols_list=no
13718fi
13719rm -f core conftest.err conftest.$ac_objext \
13720    conftest$ac_exeext conftest.$ac_ext
13721	LDFLAGS="$save_LDFLAGS"
13722
13723fi
13724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13725$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13726
13727    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13728$as_echo_n "checking for -force_load linker flag... " >&6; }
13729if ${lt_cv_ld_force_load+:} false; then :
13730  $as_echo_n "(cached) " >&6
13731else
13732  lt_cv_ld_force_load=no
13733      cat > conftest.c << _LT_EOF
13734int forced_loaded() { return 2;}
13735_LT_EOF
13736      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13737      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13738      echo "$AR cru libconftest.a conftest.o" >&5
13739      $AR cru libconftest.a conftest.o 2>&5
13740      echo "$RANLIB libconftest.a" >&5
13741      $RANLIB libconftest.a 2>&5
13742      cat > conftest.c << _LT_EOF
13743int main() { return 0;}
13744_LT_EOF
13745      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13746      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13747      _lt_result=$?
13748      if test -s conftest.err && $GREP force_load conftest.err; then
13749	cat conftest.err >&5
13750      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13751	lt_cv_ld_force_load=yes
13752      else
13753	cat conftest.err >&5
13754      fi
13755        rm -f conftest.err libconftest.a conftest conftest.c
13756        rm -rf conftest.dSYM
13757
13758fi
13759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13760$as_echo "$lt_cv_ld_force_load" >&6; }
13761    case $host_os in
13762    rhapsody* | darwin1.[012])
13763      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13764    darwin1.*)
13765      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13766    darwin*) # darwin 5.x on
13767      # if running on 10.5 or later, the deployment target defaults
13768      # to the OS version, if on x86, and 10.4, the deployment
13769      # target defaults to 10.4. Don't you love it?
13770      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13771	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13772	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13773	10.[012]*)
13774	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13775	10.*)
13776	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13777      esac
13778    ;;
13779  esac
13780    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13781      _lt_dar_single_mod='$single_module'
13782    fi
13783    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13784      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13785    else
13786      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13787    fi
13788    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13789      _lt_dsymutil='~$DSYMUTIL $lib || :'
13790    else
13791      _lt_dsymutil=
13792    fi
13793    ;;
13794  esac
13795
13796for ac_header in dlfcn.h
13797do :
13798  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13799"
13800if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13801  cat >>confdefs.h <<_ACEOF
13802#define HAVE_DLFCN_H 1
13803_ACEOF
13804
13805fi
13806
13807done
13808
13809
13810
13811
13812
13813# Set options
13814
13815
13816
13817        enable_dlopen=no
13818
13819
13820  enable_win32_dll=no
13821
13822
13823            # Check whether --enable-shared was given.
13824if test "${enable_shared+set}" = set; then :
13825  enableval=$enable_shared; p=${PACKAGE-default}
13826    case $enableval in
13827    yes) enable_shared=yes ;;
13828    no) enable_shared=no ;;
13829    *)
13830      enable_shared=no
13831      # Look at the argument we got.  We use all the common list separators.
13832      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13833      for pkg in $enableval; do
13834	IFS="$lt_save_ifs"
13835	if test "X$pkg" = "X$p"; then
13836	  enable_shared=yes
13837	fi
13838      done
13839      IFS="$lt_save_ifs"
13840      ;;
13841    esac
13842else
13843  enable_shared=yes
13844fi
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856# Check whether --with-pic was given.
13857if test "${with_pic+set}" = set; then :
13858  withval=$with_pic; lt_p=${PACKAGE-default}
13859    case $withval in
13860    yes|no) pic_mode=$withval ;;
13861    *)
13862      pic_mode=default
13863      # Look at the argument we got.  We use all the common list separators.
13864      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13865      for lt_pkg in $withval; do
13866	IFS="$lt_save_ifs"
13867	if test "X$lt_pkg" = "X$lt_p"; then
13868	  pic_mode=yes
13869	fi
13870      done
13871      IFS="$lt_save_ifs"
13872      ;;
13873    esac
13874else
13875  pic_mode=default
13876fi
13877
13878
13879test -z "$pic_mode" && pic_mode=default
13880
13881
13882
13883
13884
13885
13886
13887  # Check whether --enable-fast-install was given.
13888if test "${enable_fast_install+set}" = set; then :
13889  enableval=$enable_fast_install; p=${PACKAGE-default}
13890    case $enableval in
13891    yes) enable_fast_install=yes ;;
13892    no) enable_fast_install=no ;;
13893    *)
13894      enable_fast_install=no
13895      # Look at the argument we got.  We use all the common list separators.
13896      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13897      for pkg in $enableval; do
13898	IFS="$lt_save_ifs"
13899	if test "X$pkg" = "X$p"; then
13900	  enable_fast_install=yes
13901	fi
13902      done
13903      IFS="$lt_save_ifs"
13904      ;;
13905    esac
13906else
13907  enable_fast_install=yes
13908fi
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920# This can be used to rebuild libtool when needed
13921LIBTOOL_DEPS="$ltmain"
13922
13923# Always use our own libtool.
13924LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955test -z "$LN_S" && LN_S="ln -s"
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970if test -n "${ZSH_VERSION+set}" ; then
13971   setopt NO_GLOB_SUBST
13972fi
13973
13974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13975$as_echo_n "checking for objdir... " >&6; }
13976if ${lt_cv_objdir+:} false; then :
13977  $as_echo_n "(cached) " >&6
13978else
13979  rm -f .libs 2>/dev/null
13980mkdir .libs 2>/dev/null
13981if test -d .libs; then
13982  lt_cv_objdir=.libs
13983else
13984  # MS-DOS does not allow filenames that begin with a dot.
13985  lt_cv_objdir=_libs
13986fi
13987rmdir .libs 2>/dev/null
13988fi
13989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13990$as_echo "$lt_cv_objdir" >&6; }
13991objdir=$lt_cv_objdir
13992
13993
13994
13995
13996
13997cat >>confdefs.h <<_ACEOF
13998#define LT_OBJDIR "$lt_cv_objdir/"
13999_ACEOF
14000
14001
14002
14003
14004case $host_os in
14005aix3*)
14006  # AIX sometimes has problems with the GCC collect2 program.  For some
14007  # reason, if we set the COLLECT_NAMES environment variable, the problems
14008  # vanish in a puff of smoke.
14009  if test "X${COLLECT_NAMES+set}" != Xset; then
14010    COLLECT_NAMES=
14011    export COLLECT_NAMES
14012  fi
14013  ;;
14014esac
14015
14016# Global variables:
14017ofile=libtool
14018can_build_shared=yes
14019
14020# All known linkers require a `.a' archive for static linking (except MSVC,
14021# which needs '.lib').
14022libext=a
14023
14024with_gnu_ld="$lt_cv_prog_gnu_ld"
14025
14026old_CC="$CC"
14027old_CFLAGS="$CFLAGS"
14028
14029# Set sane defaults for various variables
14030test -z "$CC" && CC=cc
14031test -z "$LTCC" && LTCC=$CC
14032test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14033test -z "$LD" && LD=ld
14034test -z "$ac_objext" && ac_objext=o
14035
14036for cc_temp in $compiler""; do
14037  case $cc_temp in
14038    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14039    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14040    \-*) ;;
14041    *) break;;
14042  esac
14043done
14044cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14045
14046
14047# Only perform the check for file, if the check method requires it
14048test -z "$MAGIC_CMD" && MAGIC_CMD=file
14049case $deplibs_check_method in
14050file_magic*)
14051  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14052    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14053$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14054if ${lt_cv_path_MAGIC_CMD+:} false; then :
14055  $as_echo_n "(cached) " >&6
14056else
14057  case $MAGIC_CMD in
14058[\\/*] |  ?:[\\/]*)
14059  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14060  ;;
14061*)
14062  lt_save_MAGIC_CMD="$MAGIC_CMD"
14063  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14064  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14065  for ac_dir in $ac_dummy; do
14066    IFS="$lt_save_ifs"
14067    test -z "$ac_dir" && ac_dir=.
14068    if test -f $ac_dir/${ac_tool_prefix}file; then
14069      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14070      if test -n "$file_magic_test_file"; then
14071	case $deplibs_check_method in
14072	"file_magic "*)
14073	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14074	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14075	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14076	    $EGREP "$file_magic_regex" > /dev/null; then
14077	    :
14078	  else
14079	    cat <<_LT_EOF 1>&2
14080
14081*** Warning: the command libtool uses to detect shared libraries,
14082*** $file_magic_cmd, produces output that libtool cannot recognize.
14083*** The result is that libtool may fail to recognize shared libraries
14084*** as such.  This will affect the creation of libtool libraries that
14085*** depend on shared libraries, but programs linked with such libtool
14086*** libraries will work regardless of this problem.  Nevertheless, you
14087*** may want to report the problem to your system manager and/or to
14088*** bug-libtool@gnu.org
14089
14090_LT_EOF
14091	  fi ;;
14092	esac
14093      fi
14094      break
14095    fi
14096  done
14097  IFS="$lt_save_ifs"
14098  MAGIC_CMD="$lt_save_MAGIC_CMD"
14099  ;;
14100esac
14101fi
14102
14103MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14104if test -n "$MAGIC_CMD"; then
14105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14106$as_echo "$MAGIC_CMD" >&6; }
14107else
14108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14109$as_echo "no" >&6; }
14110fi
14111
14112
14113
14114
14115
14116if test -z "$lt_cv_path_MAGIC_CMD"; then
14117  if test -n "$ac_tool_prefix"; then
14118    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14119$as_echo_n "checking for file... " >&6; }
14120if ${lt_cv_path_MAGIC_CMD+:} false; then :
14121  $as_echo_n "(cached) " >&6
14122else
14123  case $MAGIC_CMD in
14124[\\/*] |  ?:[\\/]*)
14125  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14126  ;;
14127*)
14128  lt_save_MAGIC_CMD="$MAGIC_CMD"
14129  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14130  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14131  for ac_dir in $ac_dummy; do
14132    IFS="$lt_save_ifs"
14133    test -z "$ac_dir" && ac_dir=.
14134    if test -f $ac_dir/file; then
14135      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14136      if test -n "$file_magic_test_file"; then
14137	case $deplibs_check_method in
14138	"file_magic "*)
14139	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14140	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14141	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14142	    $EGREP "$file_magic_regex" > /dev/null; then
14143	    :
14144	  else
14145	    cat <<_LT_EOF 1>&2
14146
14147*** Warning: the command libtool uses to detect shared libraries,
14148*** $file_magic_cmd, produces output that libtool cannot recognize.
14149*** The result is that libtool may fail to recognize shared libraries
14150*** as such.  This will affect the creation of libtool libraries that
14151*** depend on shared libraries, but programs linked with such libtool
14152*** libraries will work regardless of this problem.  Nevertheless, you
14153*** may want to report the problem to your system manager and/or to
14154*** bug-libtool@gnu.org
14155
14156_LT_EOF
14157	  fi ;;
14158	esac
14159      fi
14160      break
14161    fi
14162  done
14163  IFS="$lt_save_ifs"
14164  MAGIC_CMD="$lt_save_MAGIC_CMD"
14165  ;;
14166esac
14167fi
14168
14169MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14170if test -n "$MAGIC_CMD"; then
14171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14172$as_echo "$MAGIC_CMD" >&6; }
14173else
14174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14175$as_echo "no" >&6; }
14176fi
14177
14178
14179  else
14180    MAGIC_CMD=:
14181  fi
14182fi
14183
14184  fi
14185  ;;
14186esac
14187
14188# Use C for the default configuration in the libtool script
14189
14190lt_save_CC="$CC"
14191ac_ext=c
14192ac_cpp='$CPP $CPPFLAGS'
14193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14195ac_compiler_gnu=$ac_cv_c_compiler_gnu
14196
14197
14198# Source file extension for C test sources.
14199ac_ext=c
14200
14201# Object file extension for compiled C test sources.
14202objext=o
14203objext=$objext
14204
14205# Code to be used in simple compile tests
14206lt_simple_compile_test_code="int some_variable = 0;"
14207
14208# Code to be used in simple link tests
14209lt_simple_link_test_code='int main(){return(0);}'
14210
14211
14212
14213
14214
14215
14216
14217# If no C compiler was specified, use CC.
14218LTCC=${LTCC-"$CC"}
14219
14220# If no C compiler flags were specified, use CFLAGS.
14221LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14222
14223# Allow CC to be a program name with arguments.
14224compiler=$CC
14225
14226# Save the default compiler, since it gets overwritten when the other
14227# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14228compiler_DEFAULT=$CC
14229
14230# save warnings/boilerplate of simple test code
14231ac_outfile=conftest.$ac_objext
14232echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14233eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14234_lt_compiler_boilerplate=`cat conftest.err`
14235$RM conftest*
14236
14237ac_outfile=conftest.$ac_objext
14238echo "$lt_simple_link_test_code" >conftest.$ac_ext
14239eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14240_lt_linker_boilerplate=`cat conftest.err`
14241$RM -r conftest*
14242
14243
14244if test -n "$compiler"; then
14245
14246lt_prog_compiler_no_builtin_flag=
14247
14248if test "$GCC" = yes; then
14249  case $cc_basename in
14250  nvcc*)
14251    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14252  *)
14253    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14254  esac
14255
14256  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14257$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14258if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14259  $as_echo_n "(cached) " >&6
14260else
14261  lt_cv_prog_compiler_rtti_exceptions=no
14262   ac_outfile=conftest.$ac_objext
14263   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14264   lt_compiler_flag="-fno-rtti -fno-exceptions"
14265   # Insert the option either (1) after the last *FLAGS variable, or
14266   # (2) before a word containing "conftest.", or (3) at the end.
14267   # Note that $ac_compile itself does not contain backslashes and begins
14268   # with a dollar sign (not a hyphen), so the echo should work correctly.
14269   # The option is referenced via a variable to avoid confusing sed.
14270   lt_compile=`echo "$ac_compile" | $SED \
14271   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14272   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14273   -e 's:$: $lt_compiler_flag:'`
14274   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14275   (eval "$lt_compile" 2>conftest.err)
14276   ac_status=$?
14277   cat conftest.err >&5
14278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279   if (exit $ac_status) && test -s "$ac_outfile"; then
14280     # The compiler can only warn and ignore the option if not recognized
14281     # So say no if there are warnings other than the usual output.
14282     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14283     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14284     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14285       lt_cv_prog_compiler_rtti_exceptions=yes
14286     fi
14287   fi
14288   $RM conftest*
14289
14290fi
14291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14292$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14293
14294if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14295    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14296else
14297    :
14298fi
14299
14300fi
14301
14302
14303
14304
14305
14306
14307  lt_prog_compiler_wl=
14308lt_prog_compiler_pic=
14309lt_prog_compiler_static=
14310
14311
14312  if test "$GCC" = yes; then
14313    lt_prog_compiler_wl='-Wl,'
14314    lt_prog_compiler_static='-static'
14315
14316    case $host_os in
14317      aix*)
14318      # All AIX code is PIC.
14319      if test "$host_cpu" = ia64; then
14320	# AIX 5 now supports IA64 processor
14321	lt_prog_compiler_static='-Bstatic'
14322      fi
14323      ;;
14324
14325    amigaos*)
14326      case $host_cpu in
14327      powerpc)
14328            # see comment about AmigaOS4 .so support
14329            lt_prog_compiler_pic='-fPIC'
14330        ;;
14331      m68k)
14332            # FIXME: we need at least 68020 code to build shared libraries, but
14333            # adding the `-m68020' flag to GCC prevents building anything better,
14334            # like `-m68040'.
14335            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14336        ;;
14337      esac
14338      ;;
14339
14340    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14341      # PIC is the default for these OSes.
14342      ;;
14343
14344    mingw* | cygwin* | pw32* | os2* | cegcc*)
14345      # This hack is so that the source file can tell whether it is being
14346      # built for inclusion in a dll (and should export symbols for example).
14347      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14348      # (--disable-auto-import) libraries
14349      lt_prog_compiler_pic='-DDLL_EXPORT'
14350      ;;
14351
14352    darwin* | rhapsody*)
14353      # PIC is the default on this platform
14354      # Common symbols not allowed in MH_DYLIB files
14355      lt_prog_compiler_pic='-fno-common'
14356      ;;
14357
14358    haiku*)
14359      # PIC is the default for Haiku.
14360      # The "-static" flag exists, but is broken.
14361      lt_prog_compiler_static=
14362      ;;
14363
14364    hpux*)
14365      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14366      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14367      # sets the default TLS model and affects inlining.
14368      case $host_cpu in
14369      hppa*64*)
14370	# +Z the default
14371	;;
14372      *)
14373	lt_prog_compiler_pic='-fPIC'
14374	;;
14375      esac
14376      ;;
14377
14378    interix[3-9]*)
14379      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14380      # Instead, we relocate shared libraries at runtime.
14381      ;;
14382
14383    msdosdjgpp*)
14384      # Just because we use GCC doesn't mean we suddenly get shared libraries
14385      # on systems that don't support them.
14386      lt_prog_compiler_can_build_shared=no
14387      enable_shared=no
14388      ;;
14389
14390    *nto* | *qnx*)
14391      # QNX uses GNU C++, but need to define -shared option too, otherwise
14392      # it will coredump.
14393      lt_prog_compiler_pic='-fPIC -shared'
14394      ;;
14395
14396    sysv4*MP*)
14397      if test -d /usr/nec; then
14398	lt_prog_compiler_pic=-Kconform_pic
14399      fi
14400      ;;
14401
14402    *)
14403      lt_prog_compiler_pic='-fPIC'
14404      ;;
14405    esac
14406
14407    case $cc_basename in
14408    nvcc*) # Cuda Compiler Driver 2.2
14409      lt_prog_compiler_wl='-Xlinker '
14410      if test -n "$lt_prog_compiler_pic"; then
14411        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14412      fi
14413      ;;
14414    esac
14415  else
14416    # PORTME Check for flag to pass linker flags through the system compiler.
14417    case $host_os in
14418    aix*)
14419      lt_prog_compiler_wl='-Wl,'
14420      if test "$host_cpu" = ia64; then
14421	# AIX 5 now supports IA64 processor
14422	lt_prog_compiler_static='-Bstatic'
14423      else
14424	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14425      fi
14426      ;;
14427
14428    mingw* | cygwin* | pw32* | os2* | cegcc*)
14429      # This hack is so that the source file can tell whether it is being
14430      # built for inclusion in a dll (and should export symbols for example).
14431      lt_prog_compiler_pic='-DDLL_EXPORT'
14432      ;;
14433
14434    hpux9* | hpux10* | hpux11*)
14435      lt_prog_compiler_wl='-Wl,'
14436      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14437      # not for PA HP-UX.
14438      case $host_cpu in
14439      hppa*64*|ia64*)
14440	# +Z the default
14441	;;
14442      *)
14443	lt_prog_compiler_pic='+Z'
14444	;;
14445      esac
14446      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14447      lt_prog_compiler_static='${wl}-a ${wl}archive'
14448      ;;
14449
14450    irix5* | irix6* | nonstopux*)
14451      lt_prog_compiler_wl='-Wl,'
14452      # PIC (with -KPIC) is the default.
14453      lt_prog_compiler_static='-non_shared'
14454      ;;
14455
14456    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14457      case $cc_basename in
14458      # old Intel for x86_64 which still supported -KPIC.
14459      ecc*)
14460	lt_prog_compiler_wl='-Wl,'
14461	lt_prog_compiler_pic='-KPIC'
14462	lt_prog_compiler_static='-static'
14463        ;;
14464      # icc used to be incompatible with GCC.
14465      # ICC 10 doesn't accept -KPIC any more.
14466      icc* | ifort*)
14467	lt_prog_compiler_wl='-Wl,'
14468	lt_prog_compiler_pic='-fPIC'
14469	lt_prog_compiler_static='-static'
14470        ;;
14471      # Lahey Fortran 8.1.
14472      lf95*)
14473	lt_prog_compiler_wl='-Wl,'
14474	lt_prog_compiler_pic='--shared'
14475	lt_prog_compiler_static='--static'
14476	;;
14477      nagfor*)
14478	# NAG Fortran compiler
14479	lt_prog_compiler_wl='-Wl,-Wl,,'
14480	lt_prog_compiler_pic='-PIC'
14481	lt_prog_compiler_static='-Bstatic'
14482	;;
14483      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14484        # Portland Group compilers (*not* the Pentium gcc compiler,
14485	# which looks to be a dead project)
14486	lt_prog_compiler_wl='-Wl,'
14487	lt_prog_compiler_pic='-fpic'
14488	lt_prog_compiler_static='-Bstatic'
14489        ;;
14490      ccc*)
14491        lt_prog_compiler_wl='-Wl,'
14492        # All Alpha code is PIC.
14493        lt_prog_compiler_static='-non_shared'
14494        ;;
14495      xl* | bgxl* | bgf* | mpixl*)
14496	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14497	lt_prog_compiler_wl='-Wl,'
14498	lt_prog_compiler_pic='-qpic'
14499	lt_prog_compiler_static='-qstaticlink'
14500	;;
14501      *)
14502	case `$CC -V 2>&1 | sed 5q` in
14503	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14504	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14505	  lt_prog_compiler_pic='-KPIC'
14506	  lt_prog_compiler_static='-Bstatic'
14507	  lt_prog_compiler_wl=''
14508	  ;;
14509	*Sun\ F* | *Sun*Fortran*)
14510	  lt_prog_compiler_pic='-KPIC'
14511	  lt_prog_compiler_static='-Bstatic'
14512	  lt_prog_compiler_wl='-Qoption ld '
14513	  ;;
14514	*Sun\ C*)
14515	  # Sun C 5.9
14516	  lt_prog_compiler_pic='-KPIC'
14517	  lt_prog_compiler_static='-Bstatic'
14518	  lt_prog_compiler_wl='-Wl,'
14519	  ;;
14520        *Intel*\ [CF]*Compiler*)
14521	  lt_prog_compiler_wl='-Wl,'
14522	  lt_prog_compiler_pic='-fPIC'
14523	  lt_prog_compiler_static='-static'
14524	  ;;
14525	*Portland\ Group*)
14526	  lt_prog_compiler_wl='-Wl,'
14527	  lt_prog_compiler_pic='-fpic'
14528	  lt_prog_compiler_static='-Bstatic'
14529	  ;;
14530	esac
14531	;;
14532      esac
14533      ;;
14534
14535    newsos6)
14536      lt_prog_compiler_pic='-KPIC'
14537      lt_prog_compiler_static='-Bstatic'
14538      ;;
14539
14540    *nto* | *qnx*)
14541      # QNX uses GNU C++, but need to define -shared option too, otherwise
14542      # it will coredump.
14543      lt_prog_compiler_pic='-fPIC -shared'
14544      ;;
14545
14546    osf3* | osf4* | osf5*)
14547      lt_prog_compiler_wl='-Wl,'
14548      # All OSF/1 code is PIC.
14549      lt_prog_compiler_static='-non_shared'
14550      ;;
14551
14552    rdos*)
14553      lt_prog_compiler_static='-non_shared'
14554      ;;
14555
14556    solaris*)
14557      lt_prog_compiler_pic='-KPIC'
14558      lt_prog_compiler_static='-Bstatic'
14559      case $cc_basename in
14560      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14561	lt_prog_compiler_wl='-Qoption ld ';;
14562      *)
14563	lt_prog_compiler_wl='-Wl,';;
14564      esac
14565      ;;
14566
14567    sunos4*)
14568      lt_prog_compiler_wl='-Qoption ld '
14569      lt_prog_compiler_pic='-PIC'
14570      lt_prog_compiler_static='-Bstatic'
14571      ;;
14572
14573    sysv4 | sysv4.2uw2* | sysv4.3*)
14574      lt_prog_compiler_wl='-Wl,'
14575      lt_prog_compiler_pic='-KPIC'
14576      lt_prog_compiler_static='-Bstatic'
14577      ;;
14578
14579    sysv4*MP*)
14580      if test -d /usr/nec ;then
14581	lt_prog_compiler_pic='-Kconform_pic'
14582	lt_prog_compiler_static='-Bstatic'
14583      fi
14584      ;;
14585
14586    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14587      lt_prog_compiler_wl='-Wl,'
14588      lt_prog_compiler_pic='-KPIC'
14589      lt_prog_compiler_static='-Bstatic'
14590      ;;
14591
14592    unicos*)
14593      lt_prog_compiler_wl='-Wl,'
14594      lt_prog_compiler_can_build_shared=no
14595      ;;
14596
14597    uts4*)
14598      lt_prog_compiler_pic='-pic'
14599      lt_prog_compiler_static='-Bstatic'
14600      ;;
14601
14602    *)
14603      lt_prog_compiler_can_build_shared=no
14604      ;;
14605    esac
14606  fi
14607
14608case $host_os in
14609  # For platforms which do not support PIC, -DPIC is meaningless:
14610  *djgpp*)
14611    lt_prog_compiler_pic=
14612    ;;
14613  *)
14614    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14615    ;;
14616esac
14617
14618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14619$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14620if ${lt_cv_prog_compiler_pic+:} false; then :
14621  $as_echo_n "(cached) " >&6
14622else
14623  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14624fi
14625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14626$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14627lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14628
14629#
14630# Check to make sure the PIC flag actually works.
14631#
14632if test -n "$lt_prog_compiler_pic"; then
14633  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14634$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14635if ${lt_cv_prog_compiler_pic_works+:} false; then :
14636  $as_echo_n "(cached) " >&6
14637else
14638  lt_cv_prog_compiler_pic_works=no
14639   ac_outfile=conftest.$ac_objext
14640   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14641   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14642   # Insert the option either (1) after the last *FLAGS variable, or
14643   # (2) before a word containing "conftest.", or (3) at the end.
14644   # Note that $ac_compile itself does not contain backslashes and begins
14645   # with a dollar sign (not a hyphen), so the echo should work correctly.
14646   # The option is referenced via a variable to avoid confusing sed.
14647   lt_compile=`echo "$ac_compile" | $SED \
14648   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14649   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14650   -e 's:$: $lt_compiler_flag:'`
14651   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14652   (eval "$lt_compile" 2>conftest.err)
14653   ac_status=$?
14654   cat conftest.err >&5
14655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656   if (exit $ac_status) && test -s "$ac_outfile"; then
14657     # The compiler can only warn and ignore the option if not recognized
14658     # So say no if there are warnings other than the usual output.
14659     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14660     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14661     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14662       lt_cv_prog_compiler_pic_works=yes
14663     fi
14664   fi
14665   $RM conftest*
14666
14667fi
14668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14669$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14670
14671if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14672    case $lt_prog_compiler_pic in
14673     "" | " "*) ;;
14674     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14675     esac
14676else
14677    lt_prog_compiler_pic=
14678     lt_prog_compiler_can_build_shared=no
14679fi
14680
14681fi
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693#
14694# Check to make sure the static flag actually works.
14695#
14696wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14698$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14699if ${lt_cv_prog_compiler_static_works+:} false; then :
14700  $as_echo_n "(cached) " >&6
14701else
14702  lt_cv_prog_compiler_static_works=no
14703   save_LDFLAGS="$LDFLAGS"
14704   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14705   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14706   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14707     # The linker can only warn and ignore the option if not recognized
14708     # So say no if there are warnings
14709     if test -s conftest.err; then
14710       # Append any errors to the config.log.
14711       cat conftest.err 1>&5
14712       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14713       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14714       if diff conftest.exp conftest.er2 >/dev/null; then
14715         lt_cv_prog_compiler_static_works=yes
14716       fi
14717     else
14718       lt_cv_prog_compiler_static_works=yes
14719     fi
14720   fi
14721   $RM -r conftest*
14722   LDFLAGS="$save_LDFLAGS"
14723
14724fi
14725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14726$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14727
14728if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14729    :
14730else
14731    lt_prog_compiler_static=
14732fi
14733
14734
14735
14736
14737
14738
14739
14740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14741$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14742if ${lt_cv_prog_compiler_c_o+:} false; then :
14743  $as_echo_n "(cached) " >&6
14744else
14745  lt_cv_prog_compiler_c_o=no
14746   $RM -r conftest 2>/dev/null
14747   mkdir conftest
14748   cd conftest
14749   mkdir out
14750   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14751
14752   lt_compiler_flag="-o out/conftest2.$ac_objext"
14753   # Insert the option either (1) after the last *FLAGS variable, or
14754   # (2) before a word containing "conftest.", or (3) at the end.
14755   # Note that $ac_compile itself does not contain backslashes and begins
14756   # with a dollar sign (not a hyphen), so the echo should work correctly.
14757   lt_compile=`echo "$ac_compile" | $SED \
14758   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14759   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14760   -e 's:$: $lt_compiler_flag:'`
14761   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14762   (eval "$lt_compile" 2>out/conftest.err)
14763   ac_status=$?
14764   cat out/conftest.err >&5
14765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14767   then
14768     # The compiler can only warn and ignore the option if not recognized
14769     # So say no if there are warnings
14770     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14771     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14772     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14773       lt_cv_prog_compiler_c_o=yes
14774     fi
14775   fi
14776   chmod u+w . 2>&5
14777   $RM conftest*
14778   # SGI C++ compiler will create directory out/ii_files/ for
14779   # template instantiation
14780   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14781   $RM out/* && rmdir out
14782   cd ..
14783   $RM -r conftest
14784   $RM conftest*
14785
14786fi
14787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14788$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14789
14790
14791
14792
14793
14794
14795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14796$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14797if ${lt_cv_prog_compiler_c_o+:} false; then :
14798  $as_echo_n "(cached) " >&6
14799else
14800  lt_cv_prog_compiler_c_o=no
14801   $RM -r conftest 2>/dev/null
14802   mkdir conftest
14803   cd conftest
14804   mkdir out
14805   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14806
14807   lt_compiler_flag="-o out/conftest2.$ac_objext"
14808   # Insert the option either (1) after the last *FLAGS variable, or
14809   # (2) before a word containing "conftest.", or (3) at the end.
14810   # Note that $ac_compile itself does not contain backslashes and begins
14811   # with a dollar sign (not a hyphen), so the echo should work correctly.
14812   lt_compile=`echo "$ac_compile" | $SED \
14813   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14814   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14815   -e 's:$: $lt_compiler_flag:'`
14816   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14817   (eval "$lt_compile" 2>out/conftest.err)
14818   ac_status=$?
14819   cat out/conftest.err >&5
14820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14822   then
14823     # The compiler can only warn and ignore the option if not recognized
14824     # So say no if there are warnings
14825     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14826     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14827     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14828       lt_cv_prog_compiler_c_o=yes
14829     fi
14830   fi
14831   chmod u+w . 2>&5
14832   $RM conftest*
14833   # SGI C++ compiler will create directory out/ii_files/ for
14834   # template instantiation
14835   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14836   $RM out/* && rmdir out
14837   cd ..
14838   $RM -r conftest
14839   $RM conftest*
14840
14841fi
14842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14843$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14844
14845
14846
14847
14848hard_links="nottested"
14849if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14850  # do not overwrite the value of need_locks provided by the user
14851  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14852$as_echo_n "checking if we can lock with hard links... " >&6; }
14853  hard_links=yes
14854  $RM conftest*
14855  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14856  touch conftest.a
14857  ln conftest.a conftest.b 2>&5 || hard_links=no
14858  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14860$as_echo "$hard_links" >&6; }
14861  if test "$hard_links" = no; then
14862    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14863$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14864    need_locks=warn
14865  fi
14866else
14867  need_locks=no
14868fi
14869
14870
14871
14872
14873
14874
14875  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14876$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14877
14878  runpath_var=
14879  allow_undefined_flag=
14880  always_export_symbols=no
14881  archive_cmds=
14882  archive_expsym_cmds=
14883  compiler_needs_object=no
14884  enable_shared_with_static_runtimes=no
14885  export_dynamic_flag_spec=
14886  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14887  hardcode_automatic=no
14888  hardcode_direct=no
14889  hardcode_direct_absolute=no
14890  hardcode_libdir_flag_spec=
14891  hardcode_libdir_separator=
14892  hardcode_minus_L=no
14893  hardcode_shlibpath_var=unsupported
14894  inherit_rpath=no
14895  link_all_deplibs=unknown
14896  module_cmds=
14897  module_expsym_cmds=
14898  old_archive_from_new_cmds=
14899  old_archive_from_expsyms_cmds=
14900  thread_safe_flag_spec=
14901  whole_archive_flag_spec=
14902  # include_expsyms should be a list of space-separated symbols to be *always*
14903  # included in the symbol list
14904  include_expsyms=
14905  # exclude_expsyms can be an extended regexp of symbols to exclude
14906  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14907  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14908  # as well as any symbol that contains `d'.
14909  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14910  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14911  # platforms (ab)use it in PIC code, but their linkers get confused if
14912  # the symbol is explicitly referenced.  Since portable code cannot
14913  # rely on this symbol name, it's probably fine to never include it in
14914  # preloaded symbol tables.
14915  # Exclude shared library initialization/finalization symbols.
14916  extract_expsyms_cmds=
14917
14918  case $host_os in
14919  cygwin* | mingw* | pw32* | cegcc*)
14920    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14921    # When not using gcc, we currently assume that we are using
14922    # Microsoft Visual C++.
14923    if test "$GCC" != yes; then
14924      with_gnu_ld=no
14925    fi
14926    ;;
14927  interix*)
14928    # we just hope/assume this is gcc and not c89 (= MSVC++)
14929    with_gnu_ld=yes
14930    ;;
14931  openbsd*)
14932    with_gnu_ld=no
14933    ;;
14934  linux* | k*bsd*-gnu | gnu*)
14935    link_all_deplibs=no
14936    ;;
14937  esac
14938
14939  ld_shlibs=yes
14940
14941  # On some targets, GNU ld is compatible enough with the native linker
14942  # that we're better off using the native interface for both.
14943  lt_use_gnu_ld_interface=no
14944  if test "$with_gnu_ld" = yes; then
14945    case $host_os in
14946      aix*)
14947	# The AIX port of GNU ld has always aspired to compatibility
14948	# with the native linker.  However, as the warning in the GNU ld
14949	# block says, versions before 2.19.5* couldn't really create working
14950	# shared libraries, regardless of the interface used.
14951	case `$LD -v 2>&1` in
14952	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14953	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14954	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14955	  *)
14956	    lt_use_gnu_ld_interface=yes
14957	    ;;
14958	esac
14959	;;
14960      *)
14961	lt_use_gnu_ld_interface=yes
14962	;;
14963    esac
14964  fi
14965
14966  if test "$lt_use_gnu_ld_interface" = yes; then
14967    # If archive_cmds runs LD, not CC, wlarc should be empty
14968    wlarc='${wl}'
14969
14970    # Set some defaults for GNU ld with shared library support. These
14971    # are reset later if shared libraries are not supported. Putting them
14972    # here allows them to be overridden if necessary.
14973    runpath_var=LD_RUN_PATH
14974    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14975    export_dynamic_flag_spec='${wl}--export-dynamic'
14976    # ancient GNU ld didn't support --whole-archive et. al.
14977    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14978      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14979    else
14980      whole_archive_flag_spec=
14981    fi
14982    supports_anon_versioning=no
14983    case `$LD -v 2>&1` in
14984      *GNU\ gold*) supports_anon_versioning=yes ;;
14985      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14986      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14987      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14988      *\ 2.11.*) ;; # other 2.11 versions
14989      *) supports_anon_versioning=yes ;;
14990    esac
14991
14992    # See if GNU ld supports shared libraries.
14993    case $host_os in
14994    aix[3-9]*)
14995      # On AIX/PPC, the GNU linker is very broken
14996      if test "$host_cpu" != ia64; then
14997	ld_shlibs=no
14998	cat <<_LT_EOF 1>&2
14999
15000*** Warning: the GNU linker, at least up to release 2.19, is reported
15001*** to be unable to reliably create shared libraries on AIX.
15002*** Therefore, libtool is disabling shared libraries support.  If you
15003*** really care for shared libraries, you may want to install binutils
15004*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15005*** You will then need to restart the configuration process.
15006
15007_LT_EOF
15008      fi
15009      ;;
15010
15011    amigaos*)
15012      case $host_cpu in
15013      powerpc)
15014            # see comment about AmigaOS4 .so support
15015            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15016            archive_expsym_cmds=''
15017        ;;
15018      m68k)
15019            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)'
15020            hardcode_libdir_flag_spec='-L$libdir'
15021            hardcode_minus_L=yes
15022        ;;
15023      esac
15024      ;;
15025
15026    beos*)
15027      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15028	allow_undefined_flag=unsupported
15029	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15030	# support --undefined.  This deserves some investigation.  FIXME
15031	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15032      else
15033	ld_shlibs=no
15034      fi
15035      ;;
15036
15037    cygwin* | mingw* | pw32* | cegcc*)
15038      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15039      # as there is no search path for DLLs.
15040      hardcode_libdir_flag_spec='-L$libdir'
15041      export_dynamic_flag_spec='${wl}--export-all-symbols'
15042      allow_undefined_flag=unsupported
15043      always_export_symbols=no
15044      enable_shared_with_static_runtimes=yes
15045      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'
15046      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15047
15048      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15049        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15050	# If the export-symbols file already is a .def file (1st line
15051	# is EXPORTS), use it as is; otherwise, prepend...
15052	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15053	  cp $export_symbols $output_objdir/$soname.def;
15054	else
15055	  echo EXPORTS > $output_objdir/$soname.def;
15056	  cat $export_symbols >> $output_objdir/$soname.def;
15057	fi~
15058	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15059      else
15060	ld_shlibs=no
15061      fi
15062      ;;
15063
15064    haiku*)
15065      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15066      link_all_deplibs=yes
15067      ;;
15068
15069    interix[3-9]*)
15070      hardcode_direct=no
15071      hardcode_shlibpath_var=no
15072      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15073      export_dynamic_flag_spec='${wl}-E'
15074      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15075      # Instead, shared libraries are loaded at an image base (0x10000000 by
15076      # default) and relocated if they conflict, which is a slow very memory
15077      # consuming and fragmenting process.  To avoid this, we pick a random,
15078      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15079      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15080      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15081      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'
15082      ;;
15083
15084    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15085      tmp_diet=no
15086      if test "$host_os" = linux-dietlibc; then
15087	case $cc_basename in
15088	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15089	esac
15090      fi
15091      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15092	 && test "$tmp_diet" = no
15093      then
15094	tmp_addflag=' $pic_flag'
15095	tmp_sharedflag='-shared'
15096	case $cc_basename,$host_cpu in
15097        pgcc*)				# Portland Group C compiler
15098	  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'
15099	  tmp_addflag=' $pic_flag'
15100	  ;;
15101	pgf77* | pgf90* | pgf95* | pgfortran*)
15102					# Portland Group f77 and f90 compilers
15103	  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'
15104	  tmp_addflag=' $pic_flag -Mnomain' ;;
15105	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15106	  tmp_addflag=' -i_dynamic' ;;
15107	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15108	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15109	ifc* | ifort*)			# Intel Fortran compiler
15110	  tmp_addflag=' -nofor_main' ;;
15111	lf95*)				# Lahey Fortran 8.1
15112	  whole_archive_flag_spec=
15113	  tmp_sharedflag='--shared' ;;
15114	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15115	  tmp_sharedflag='-qmkshrobj'
15116	  tmp_addflag= ;;
15117	nvcc*)	# Cuda Compiler Driver 2.2
15118	  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'
15119	  compiler_needs_object=yes
15120	  ;;
15121	esac
15122	case `$CC -V 2>&1 | sed 5q` in
15123	*Sun\ C*)			# Sun C 5.9
15124	  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'
15125	  compiler_needs_object=yes
15126	  tmp_sharedflag='-G' ;;
15127	*Sun\ F*)			# Sun Fortran 8.3
15128	  tmp_sharedflag='-G' ;;
15129	esac
15130	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15131
15132        if test "x$supports_anon_versioning" = xyes; then
15133          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15134	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15135	    echo "local: *; };" >> $output_objdir/$libname.ver~
15136	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15137        fi
15138
15139	case $cc_basename in
15140	xlf* | bgf* | bgxlf* | mpixlf*)
15141	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15142	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15143	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15144	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15145	  if test "x$supports_anon_versioning" = xyes; then
15146	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15147	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15148	      echo "local: *; };" >> $output_objdir/$libname.ver~
15149	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15150	  fi
15151	  ;;
15152	esac
15153      else
15154        ld_shlibs=no
15155      fi
15156      ;;
15157
15158    netbsd* | netbsdelf*-gnu)
15159      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15160	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15161	wlarc=
15162      else
15163	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15164	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15165      fi
15166      ;;
15167
15168    solaris*)
15169      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15170	ld_shlibs=no
15171	cat <<_LT_EOF 1>&2
15172
15173*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15174*** create shared libraries on Solaris systems.  Therefore, libtool
15175*** is disabling shared libraries support.  We urge you to upgrade GNU
15176*** binutils to release 2.9.1 or newer.  Another option is to modify
15177*** your PATH or compiler configuration so that the native linker is
15178*** used, and then restart.
15179
15180_LT_EOF
15181      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15182	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15183	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15184      else
15185	ld_shlibs=no
15186      fi
15187      ;;
15188
15189    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15190      case `$LD -v 2>&1` in
15191        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15192	ld_shlibs=no
15193	cat <<_LT_EOF 1>&2
15194
15195*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15196*** reliably create shared libraries on SCO systems.  Therefore, libtool
15197*** is disabling shared libraries support.  We urge you to upgrade GNU
15198*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15199*** your PATH or compiler configuration so that the native linker is
15200*** used, and then restart.
15201
15202_LT_EOF
15203	;;
15204	*)
15205	  # For security reasons, it is highly recommended that you always
15206	  # use absolute paths for naming shared libraries, and exclude the
15207	  # DT_RUNPATH tag from executables and libraries.  But doing so
15208	  # requires that you compile everything twice, which is a pain.
15209	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15210	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15211	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15212	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15213	  else
15214	    ld_shlibs=no
15215	  fi
15216	;;
15217      esac
15218      ;;
15219
15220    sunos4*)
15221      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15222      wlarc=
15223      hardcode_direct=yes
15224      hardcode_shlibpath_var=no
15225      ;;
15226
15227    *)
15228      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15229	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15230	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15231      else
15232	ld_shlibs=no
15233      fi
15234      ;;
15235    esac
15236
15237    if test "$ld_shlibs" = no; then
15238      runpath_var=
15239      hardcode_libdir_flag_spec=
15240      export_dynamic_flag_spec=
15241      whole_archive_flag_spec=
15242    fi
15243  else
15244    # PORTME fill in a description of your system's linker (not GNU ld)
15245    case $host_os in
15246    aix3*)
15247      allow_undefined_flag=unsupported
15248      always_export_symbols=yes
15249      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'
15250      # Note: this linker hardcodes the directories in LIBPATH if there
15251      # are no directories specified by -L.
15252      hardcode_minus_L=yes
15253      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15254	# Neither direct hardcoding nor static linking is supported with a
15255	# broken collect2.
15256	hardcode_direct=unsupported
15257      fi
15258      ;;
15259
15260    aix[4-9]*)
15261      if test "$host_cpu" = ia64; then
15262	# On IA64, the linker does run time linking by default, so we don't
15263	# have to do anything special.
15264	aix_use_runtimelinking=no
15265	exp_sym_flag='-Bexport'
15266	no_entry_flag=""
15267      else
15268	# If we're using GNU nm, then we don't want the "-C" option.
15269	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15270	# Also, AIX nm treats weak defined symbols like other global
15271	# defined symbols, whereas GNU nm marks them as "W".
15272	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15273	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15274	else
15275	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15276	fi
15277	aix_use_runtimelinking=no
15278
15279	# Test if we are trying to use run time linking or normal
15280	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15281	# need to do runtime linking.
15282	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15283	  for ld_flag in $LDFLAGS; do
15284	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15285	    aix_use_runtimelinking=yes
15286	    break
15287	  fi
15288	  done
15289	  ;;
15290	esac
15291
15292	exp_sym_flag='-bexport'
15293	no_entry_flag='-bnoentry'
15294      fi
15295
15296      # When large executables or shared objects are built, AIX ld can
15297      # have problems creating the table of contents.  If linking a library
15298      # or program results in "error TOC overflow" add -mminimal-toc to
15299      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15300      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15301
15302      archive_cmds=''
15303      hardcode_direct=yes
15304      hardcode_direct_absolute=yes
15305      hardcode_libdir_separator=':'
15306      link_all_deplibs=yes
15307      file_list_spec='${wl}-f,'
15308
15309      if test "$GCC" = yes; then
15310	case $host_os in aix4.[012]|aix4.[012].*)
15311	# We only want to do this on AIX 4.2 and lower, the check
15312	# below for broken collect2 doesn't work under 4.3+
15313	  collect2name=`${CC} -print-prog-name=collect2`
15314	  if test -f "$collect2name" &&
15315	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15316	  then
15317	  # We have reworked collect2
15318	  :
15319	  else
15320	  # We have old collect2
15321	  hardcode_direct=unsupported
15322	  # It fails to find uninstalled libraries when the uninstalled
15323	  # path is not listed in the libpath.  Setting hardcode_minus_L
15324	  # to unsupported forces relinking
15325	  hardcode_minus_L=yes
15326	  hardcode_libdir_flag_spec='-L$libdir'
15327	  hardcode_libdir_separator=
15328	  fi
15329	  ;;
15330	esac
15331	shared_flag='-shared'
15332	if test "$aix_use_runtimelinking" = yes; then
15333	  shared_flag="$shared_flag "'${wl}-G'
15334	fi
15335	link_all_deplibs=no
15336      else
15337	# not using gcc
15338	if test "$host_cpu" = ia64; then
15339	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15340	# chokes on -Wl,-G. The following line is correct:
15341	  shared_flag='-G'
15342	else
15343	  if test "$aix_use_runtimelinking" = yes; then
15344	    shared_flag='${wl}-G'
15345	  else
15346	    shared_flag='${wl}-bM:SRE'
15347	  fi
15348	fi
15349      fi
15350
15351      export_dynamic_flag_spec='${wl}-bexpall'
15352      # It seems that -bexpall does not export symbols beginning with
15353      # underscore (_), so it is better to generate a list of symbols to export.
15354      always_export_symbols=yes
15355      if test "$aix_use_runtimelinking" = yes; then
15356	# Warning - without using the other runtime loading flags (-brtl),
15357	# -berok will link without error, but may produce a broken library.
15358	allow_undefined_flag='-berok'
15359        # Determine the default libpath from the value encoded in an
15360        # empty executable.
15361        if test "${lt_cv_aix_libpath+set}" = set; then
15362  aix_libpath=$lt_cv_aix_libpath
15363else
15364  if ${lt_cv_aix_libpath_+:} false; then :
15365  $as_echo_n "(cached) " >&6
15366else
15367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15368/* end confdefs.h.  */
15369
15370int
15371main ()
15372{
15373
15374  ;
15375  return 0;
15376}
15377_ACEOF
15378if ac_fn_c_try_link "$LINENO"; then :
15379
15380  lt_aix_libpath_sed='
15381      /Import File Strings/,/^$/ {
15382	  /^0/ {
15383	      s/^0  *\([^ ]*\) *$/\1/
15384	      p
15385	  }
15386      }'
15387  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15388  # Check for a 64-bit object if we didn't find anything.
15389  if test -z "$lt_cv_aix_libpath_"; then
15390    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15391  fi
15392fi
15393rm -f core conftest.err conftest.$ac_objext \
15394    conftest$ac_exeext conftest.$ac_ext
15395  if test -z "$lt_cv_aix_libpath_"; then
15396    lt_cv_aix_libpath_="/usr/lib:/lib"
15397  fi
15398
15399fi
15400
15401  aix_libpath=$lt_cv_aix_libpath_
15402fi
15403
15404        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15405        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15406      else
15407	if test "$host_cpu" = ia64; then
15408	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15409	  allow_undefined_flag="-z nodefs"
15410	  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"
15411	else
15412	 # Determine the default libpath from the value encoded in an
15413	 # empty executable.
15414	 if test "${lt_cv_aix_libpath+set}" = set; then
15415  aix_libpath=$lt_cv_aix_libpath
15416else
15417  if ${lt_cv_aix_libpath_+:} false; then :
15418  $as_echo_n "(cached) " >&6
15419else
15420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15421/* end confdefs.h.  */
15422
15423int
15424main ()
15425{
15426
15427  ;
15428  return 0;
15429}
15430_ACEOF
15431if ac_fn_c_try_link "$LINENO"; then :
15432
15433  lt_aix_libpath_sed='
15434      /Import File Strings/,/^$/ {
15435	  /^0/ {
15436	      s/^0  *\([^ ]*\) *$/\1/
15437	      p
15438	  }
15439      }'
15440  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15441  # Check for a 64-bit object if we didn't find anything.
15442  if test -z "$lt_cv_aix_libpath_"; then
15443    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15444  fi
15445fi
15446rm -f core conftest.err conftest.$ac_objext \
15447    conftest$ac_exeext conftest.$ac_ext
15448  if test -z "$lt_cv_aix_libpath_"; then
15449    lt_cv_aix_libpath_="/usr/lib:/lib"
15450  fi
15451
15452fi
15453
15454  aix_libpath=$lt_cv_aix_libpath_
15455fi
15456
15457	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15458	  # Warning - without using the other run time loading flags,
15459	  # -berok will link without error, but may produce a broken library.
15460	  no_undefined_flag=' ${wl}-bernotok'
15461	  allow_undefined_flag=' ${wl}-berok'
15462	  if test "$with_gnu_ld" = yes; then
15463	    # We only use this code for GNU lds that support --whole-archive.
15464	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15465	  else
15466	    # Exported symbols can be pulled into shared objects from archives
15467	    whole_archive_flag_spec='$convenience'
15468	  fi
15469	  archive_cmds_need_lc=yes
15470	  # This is similar to how AIX traditionally builds its shared libraries.
15471	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15472	fi
15473      fi
15474      ;;
15475
15476    amigaos*)
15477      case $host_cpu in
15478      powerpc)
15479            # see comment about AmigaOS4 .so support
15480            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15481            archive_expsym_cmds=''
15482        ;;
15483      m68k)
15484            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)'
15485            hardcode_libdir_flag_spec='-L$libdir'
15486            hardcode_minus_L=yes
15487        ;;
15488      esac
15489      ;;
15490
15491    bsdi[45]*)
15492      export_dynamic_flag_spec=-rdynamic
15493      ;;
15494
15495    cygwin* | mingw* | pw32* | cegcc*)
15496      # When not using gcc, we currently assume that we are using
15497      # Microsoft Visual C++.
15498      # hardcode_libdir_flag_spec is actually meaningless, as there is
15499      # no search path for DLLs.
15500      case $cc_basename in
15501      cl*)
15502	# Native MSVC
15503	hardcode_libdir_flag_spec=' '
15504	allow_undefined_flag=unsupported
15505	always_export_symbols=yes
15506	file_list_spec='@'
15507	# Tell ltmain to make .lib files, not .a files.
15508	libext=lib
15509	# Tell ltmain to make .dll files, not .so files.
15510	shrext_cmds=".dll"
15511	# FIXME: Setting linknames here is a bad hack.
15512	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15513	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15514	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15515	  else
15516	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15517	  fi~
15518	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15519	  linknames='
15520	# The linker will not automatically build a static lib if we build a DLL.
15521	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15522	enable_shared_with_static_runtimes=yes
15523	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15524	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15525	# Don't use ranlib
15526	old_postinstall_cmds='chmod 644 $oldlib'
15527	postlink_cmds='lt_outputfile="@OUTPUT@"~
15528	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15529	  case $lt_outputfile in
15530	    *.exe|*.EXE) ;;
15531	    *)
15532	      lt_outputfile="$lt_outputfile.exe"
15533	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15534	      ;;
15535	  esac~
15536	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15537	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15538	    $RM "$lt_outputfile.manifest";
15539	  fi'
15540	;;
15541      *)
15542	# Assume MSVC wrapper
15543	hardcode_libdir_flag_spec=' '
15544	allow_undefined_flag=unsupported
15545	# Tell ltmain to make .lib files, not .a files.
15546	libext=lib
15547	# Tell ltmain to make .dll files, not .so files.
15548	shrext_cmds=".dll"
15549	# FIXME: Setting linknames here is a bad hack.
15550	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15551	# The linker will automatically build a .lib file if we build a DLL.
15552	old_archive_from_new_cmds='true'
15553	# FIXME: Should let the user specify the lib program.
15554	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15555	enable_shared_with_static_runtimes=yes
15556	;;
15557      esac
15558      ;;
15559
15560    darwin* | rhapsody*)
15561
15562
15563  archive_cmds_need_lc=no
15564  hardcode_direct=no
15565  hardcode_automatic=yes
15566  hardcode_shlibpath_var=unsupported
15567  if test "$lt_cv_ld_force_load" = "yes"; then
15568    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\"`'
15569
15570  else
15571    whole_archive_flag_spec=''
15572  fi
15573  link_all_deplibs=yes
15574  allow_undefined_flag="$_lt_dar_allow_undefined"
15575  case $cc_basename in
15576     ifort*) _lt_dar_can_shared=yes ;;
15577     *) _lt_dar_can_shared=$GCC ;;
15578  esac
15579  if test "$_lt_dar_can_shared" = "yes"; then
15580    output_verbose_link_cmd=func_echo_all
15581    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15582    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15583    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}"
15584    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}"
15585
15586  else
15587  ld_shlibs=no
15588  fi
15589
15590      ;;
15591
15592    dgux*)
15593      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15594      hardcode_libdir_flag_spec='-L$libdir'
15595      hardcode_shlibpath_var=no
15596      ;;
15597
15598    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15599    # support.  Future versions do this automatically, but an explicit c++rt0.o
15600    # does not break anything, and helps significantly (at the cost of a little
15601    # extra space).
15602    freebsd2.2*)
15603      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15604      hardcode_libdir_flag_spec='-R$libdir'
15605      hardcode_direct=yes
15606      hardcode_shlibpath_var=no
15607      ;;
15608
15609    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15610    freebsd2.*)
15611      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15612      hardcode_direct=yes
15613      hardcode_minus_L=yes
15614      hardcode_shlibpath_var=no
15615      ;;
15616
15617    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15618    freebsd* | dragonfly*)
15619      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15620      hardcode_libdir_flag_spec='-R$libdir'
15621      hardcode_direct=yes
15622      hardcode_shlibpath_var=no
15623      ;;
15624
15625    hpux9*)
15626      if test "$GCC" = yes; then
15627	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15628      else
15629	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15630      fi
15631      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15632      hardcode_libdir_separator=:
15633      hardcode_direct=yes
15634
15635      # hardcode_minus_L: Not really in the search PATH,
15636      # but as the default location of the library.
15637      hardcode_minus_L=yes
15638      export_dynamic_flag_spec='${wl}-E'
15639      ;;
15640
15641    hpux10*)
15642      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15643	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15644      else
15645	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15646      fi
15647      if test "$with_gnu_ld" = no; then
15648	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15649	hardcode_libdir_separator=:
15650	hardcode_direct=yes
15651	hardcode_direct_absolute=yes
15652	export_dynamic_flag_spec='${wl}-E'
15653	# hardcode_minus_L: Not really in the search PATH,
15654	# but as the default location of the library.
15655	hardcode_minus_L=yes
15656      fi
15657      ;;
15658
15659    hpux11*)
15660      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15661	case $host_cpu in
15662	hppa*64*)
15663	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15664	  ;;
15665	ia64*)
15666	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15667	  ;;
15668	*)
15669	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15670	  ;;
15671	esac
15672      else
15673	case $host_cpu in
15674	hppa*64*)
15675	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15676	  ;;
15677	ia64*)
15678	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15679	  ;;
15680	*)
15681
15682	  # Older versions of the 11.00 compiler do not understand -b yet
15683	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15684	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15685$as_echo_n "checking if $CC understands -b... " >&6; }
15686if ${lt_cv_prog_compiler__b+:} false; then :
15687  $as_echo_n "(cached) " >&6
15688else
15689  lt_cv_prog_compiler__b=no
15690   save_LDFLAGS="$LDFLAGS"
15691   LDFLAGS="$LDFLAGS -b"
15692   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15693   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15694     # The linker can only warn and ignore the option if not recognized
15695     # So say no if there are warnings
15696     if test -s conftest.err; then
15697       # Append any errors to the config.log.
15698       cat conftest.err 1>&5
15699       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15700       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15701       if diff conftest.exp conftest.er2 >/dev/null; then
15702         lt_cv_prog_compiler__b=yes
15703       fi
15704     else
15705       lt_cv_prog_compiler__b=yes
15706     fi
15707   fi
15708   $RM -r conftest*
15709   LDFLAGS="$save_LDFLAGS"
15710
15711fi
15712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15713$as_echo "$lt_cv_prog_compiler__b" >&6; }
15714
15715if test x"$lt_cv_prog_compiler__b" = xyes; then
15716    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15717else
15718    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15719fi
15720
15721	  ;;
15722	esac
15723      fi
15724      if test "$with_gnu_ld" = no; then
15725	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15726	hardcode_libdir_separator=:
15727
15728	case $host_cpu in
15729	hppa*64*|ia64*)
15730	  hardcode_direct=no
15731	  hardcode_shlibpath_var=no
15732	  ;;
15733	*)
15734	  hardcode_direct=yes
15735	  hardcode_direct_absolute=yes
15736	  export_dynamic_flag_spec='${wl}-E'
15737
15738	  # hardcode_minus_L: Not really in the search PATH,
15739	  # but as the default location of the library.
15740	  hardcode_minus_L=yes
15741	  ;;
15742	esac
15743      fi
15744      ;;
15745
15746    irix5* | irix6* | nonstopux*)
15747      if test "$GCC" = yes; then
15748	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'
15749	# Try to use the -exported_symbol ld option, if it does not
15750	# work, assume that -exports_file does not work either and
15751	# implicitly export all symbols.
15752	# This should be the same for all languages, so no per-tag cache variable.
15753	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15754$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15755if ${lt_cv_irix_exported_symbol+:} false; then :
15756  $as_echo_n "(cached) " >&6
15757else
15758  save_LDFLAGS="$LDFLAGS"
15759	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15760	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15761/* end confdefs.h.  */
15762int foo (void) { return 0; }
15763_ACEOF
15764if ac_fn_c_try_link "$LINENO"; then :
15765  lt_cv_irix_exported_symbol=yes
15766else
15767  lt_cv_irix_exported_symbol=no
15768fi
15769rm -f core conftest.err conftest.$ac_objext \
15770    conftest$ac_exeext conftest.$ac_ext
15771           LDFLAGS="$save_LDFLAGS"
15772fi
15773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15774$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15775	if test "$lt_cv_irix_exported_symbol" = yes; then
15776          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'
15777	fi
15778      else
15779	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'
15780	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'
15781      fi
15782      archive_cmds_need_lc='no'
15783      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15784      hardcode_libdir_separator=:
15785      inherit_rpath=yes
15786      link_all_deplibs=yes
15787      ;;
15788
15789    netbsd* | netbsdelf*-gnu)
15790      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15791	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15792      else
15793	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15794      fi
15795      hardcode_libdir_flag_spec='-R$libdir'
15796      hardcode_direct=yes
15797      hardcode_shlibpath_var=no
15798      ;;
15799
15800    newsos6)
15801      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15802      hardcode_direct=yes
15803      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15804      hardcode_libdir_separator=:
15805      hardcode_shlibpath_var=no
15806      ;;
15807
15808    *nto* | *qnx*)
15809      ;;
15810
15811    openbsd*)
15812      if test -f /usr/libexec/ld.so; then
15813	hardcode_direct=yes
15814	hardcode_shlibpath_var=no
15815	hardcode_direct_absolute=yes
15816	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15817	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15818	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15819	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15820	  export_dynamic_flag_spec='${wl}-E'
15821	else
15822	  case $host_os in
15823	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15824	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15825	     hardcode_libdir_flag_spec='-R$libdir'
15826	     ;;
15827	   *)
15828	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15829	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15830	     ;;
15831	  esac
15832	fi
15833      else
15834	ld_shlibs=no
15835      fi
15836      ;;
15837
15838    os2*)
15839      hardcode_libdir_flag_spec='-L$libdir'
15840      hardcode_minus_L=yes
15841      allow_undefined_flag=unsupported
15842      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15843      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15844      ;;
15845
15846    osf3*)
15847      if test "$GCC" = yes; then
15848	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15849	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'
15850      else
15851	allow_undefined_flag=' -expect_unresolved \*'
15852	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'
15853      fi
15854      archive_cmds_need_lc='no'
15855      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15856      hardcode_libdir_separator=:
15857      ;;
15858
15859    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15860      if test "$GCC" = yes; then
15861	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15862	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'
15863	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15864      else
15865	allow_undefined_flag=' -expect_unresolved \*'
15866	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'
15867	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~
15868	$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'
15869
15870	# Both c and cxx compiler support -rpath directly
15871	hardcode_libdir_flag_spec='-rpath $libdir'
15872      fi
15873      archive_cmds_need_lc='no'
15874      hardcode_libdir_separator=:
15875      ;;
15876
15877    solaris*)
15878      no_undefined_flag=' -z defs'
15879      if test "$GCC" = yes; then
15880	wlarc='${wl}'
15881	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15882	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15883	  $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'
15884      else
15885	case `$CC -V 2>&1` in
15886	*"Compilers 5.0"*)
15887	  wlarc=''
15888	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15889	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15890	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15891	  ;;
15892	*)
15893	  wlarc='${wl}'
15894	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15895	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15896	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15897	  ;;
15898	esac
15899      fi
15900      hardcode_libdir_flag_spec='-R$libdir'
15901      hardcode_shlibpath_var=no
15902      case $host_os in
15903      solaris2.[0-5] | solaris2.[0-5].*) ;;
15904      *)
15905	# The compiler driver will combine and reorder linker options,
15906	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15907	# but is careful enough not to reorder.
15908	# Supported since Solaris 2.6 (maybe 2.5.1?)
15909	if test "$GCC" = yes; then
15910	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15911	else
15912	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15913	fi
15914	;;
15915      esac
15916      link_all_deplibs=yes
15917      ;;
15918
15919    sunos4*)
15920      if test "x$host_vendor" = xsequent; then
15921	# Use $CC to link under sequent, because it throws in some extra .o
15922	# files that make .init and .fini sections work.
15923	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15924      else
15925	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15926      fi
15927      hardcode_libdir_flag_spec='-L$libdir'
15928      hardcode_direct=yes
15929      hardcode_minus_L=yes
15930      hardcode_shlibpath_var=no
15931      ;;
15932
15933    sysv4)
15934      case $host_vendor in
15935	sni)
15936	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15937	  hardcode_direct=yes # is this really true???
15938	;;
15939	siemens)
15940	  ## LD is ld it makes a PLAMLIB
15941	  ## CC just makes a GrossModule.
15942	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15943	  reload_cmds='$CC -r -o $output$reload_objs'
15944	  hardcode_direct=no
15945        ;;
15946	motorola)
15947	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15948	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15949	;;
15950      esac
15951      runpath_var='LD_RUN_PATH'
15952      hardcode_shlibpath_var=no
15953      ;;
15954
15955    sysv4.3*)
15956      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15957      hardcode_shlibpath_var=no
15958      export_dynamic_flag_spec='-Bexport'
15959      ;;
15960
15961    sysv4*MP*)
15962      if test -d /usr/nec; then
15963	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15964	hardcode_shlibpath_var=no
15965	runpath_var=LD_RUN_PATH
15966	hardcode_runpath_var=yes
15967	ld_shlibs=yes
15968      fi
15969      ;;
15970
15971    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15972      no_undefined_flag='${wl}-z,text'
15973      archive_cmds_need_lc=no
15974      hardcode_shlibpath_var=no
15975      runpath_var='LD_RUN_PATH'
15976
15977      if test "$GCC" = yes; then
15978	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15979	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15980      else
15981	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15982	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15983      fi
15984      ;;
15985
15986    sysv5* | sco3.2v5* | sco5v6*)
15987      # Note: We can NOT use -z defs as we might desire, because we do not
15988      # link with -lc, and that would cause any symbols used from libc to
15989      # always be unresolved, which means just about no library would
15990      # ever link correctly.  If we're not using GNU ld we use -z text
15991      # though, which does catch some bad symbols but isn't as heavy-handed
15992      # as -z defs.
15993      no_undefined_flag='${wl}-z,text'
15994      allow_undefined_flag='${wl}-z,nodefs'
15995      archive_cmds_need_lc=no
15996      hardcode_shlibpath_var=no
15997      hardcode_libdir_flag_spec='${wl}-R,$libdir'
15998      hardcode_libdir_separator=':'
15999      link_all_deplibs=yes
16000      export_dynamic_flag_spec='${wl}-Bexport'
16001      runpath_var='LD_RUN_PATH'
16002
16003      if test "$GCC" = yes; then
16004	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16005	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16006      else
16007	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16008	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16009      fi
16010      ;;
16011
16012    uts4*)
16013      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16014      hardcode_libdir_flag_spec='-L$libdir'
16015      hardcode_shlibpath_var=no
16016      ;;
16017
16018    *)
16019      ld_shlibs=no
16020      ;;
16021    esac
16022
16023    if test x$host_vendor = xsni; then
16024      case $host in
16025      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16026	export_dynamic_flag_spec='${wl}-Blargedynsym'
16027	;;
16028      esac
16029    fi
16030  fi
16031
16032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16033$as_echo "$ld_shlibs" >&6; }
16034test "$ld_shlibs" = no && can_build_shared=no
16035
16036with_gnu_ld=$with_gnu_ld
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052#
16053# Do we need to explicitly link libc?
16054#
16055case "x$archive_cmds_need_lc" in
16056x|xyes)
16057  # Assume -lc should be added
16058  archive_cmds_need_lc=yes
16059
16060  if test "$enable_shared" = yes && test "$GCC" = yes; then
16061    case $archive_cmds in
16062    *'~'*)
16063      # FIXME: we may have to deal with multi-command sequences.
16064      ;;
16065    '$CC '*)
16066      # Test whether the compiler implicitly links with -lc since on some
16067      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16068      # to ld, don't add -lc before -lgcc.
16069      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16070$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16071if ${lt_cv_archive_cmds_need_lc+:} false; then :
16072  $as_echo_n "(cached) " >&6
16073else
16074  $RM conftest*
16075	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16076
16077	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16078  (eval $ac_compile) 2>&5
16079  ac_status=$?
16080  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16081  test $ac_status = 0; } 2>conftest.err; then
16082	  soname=conftest
16083	  lib=conftest
16084	  libobjs=conftest.$ac_objext
16085	  deplibs=
16086	  wl=$lt_prog_compiler_wl
16087	  pic_flag=$lt_prog_compiler_pic
16088	  compiler_flags=-v
16089	  linker_flags=-v
16090	  verstring=
16091	  output_objdir=.
16092	  libname=conftest
16093	  lt_save_allow_undefined_flag=$allow_undefined_flag
16094	  allow_undefined_flag=
16095	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16096  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16097  ac_status=$?
16098  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16099  test $ac_status = 0; }
16100	  then
16101	    lt_cv_archive_cmds_need_lc=no
16102	  else
16103	    lt_cv_archive_cmds_need_lc=yes
16104	  fi
16105	  allow_undefined_flag=$lt_save_allow_undefined_flag
16106	else
16107	  cat conftest.err 1>&5
16108	fi
16109	$RM conftest*
16110
16111fi
16112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16113$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16114      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16115      ;;
16116    esac
16117  fi
16118  ;;
16119esac
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16273$as_echo_n "checking dynamic linker characteristics... " >&6; }
16274
16275if test "$GCC" = yes; then
16276  case $host_os in
16277    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16278    *) lt_awk_arg="/^libraries:/" ;;
16279  esac
16280  case $host_os in
16281    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16282    *) lt_sed_strip_eq="s,=/,/,g" ;;
16283  esac
16284  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16285  case $lt_search_path_spec in
16286  *\;*)
16287    # if the path contains ";" then we assume it to be the separator
16288    # otherwise default to the standard path separator (i.e. ":") - it is
16289    # assumed that no part of a normal pathname contains ";" but that should
16290    # okay in the real world where ";" in dirpaths is itself problematic.
16291    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16292    ;;
16293  *)
16294    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16295    ;;
16296  esac
16297  # Ok, now we have the path, separated by spaces, we can step through it
16298  # and add multilib dir if necessary.
16299  lt_tmp_lt_search_path_spec=
16300  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16301  for lt_sys_path in $lt_search_path_spec; do
16302    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16303      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16304    else
16305      test -d "$lt_sys_path" && \
16306	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16307    fi
16308  done
16309  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16310BEGIN {RS=" "; FS="/|\n";} {
16311  lt_foo="";
16312  lt_count=0;
16313  for (lt_i = NF; lt_i > 0; lt_i--) {
16314    if ($lt_i != "" && $lt_i != ".") {
16315      if ($lt_i == "..") {
16316        lt_count++;
16317      } else {
16318        if (lt_count == 0) {
16319          lt_foo="/" $lt_i lt_foo;
16320        } else {
16321          lt_count--;
16322        }
16323      }
16324    }
16325  }
16326  if (lt_foo != "") { lt_freq[lt_foo]++; }
16327  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16328}'`
16329  # AWK program above erroneously prepends '/' to C:/dos/paths
16330  # for these hosts.
16331  case $host_os in
16332    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16333      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16334  esac
16335  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16336else
16337  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16338fi
16339library_names_spec=
16340libname_spec='lib$name'
16341soname_spec=
16342shrext_cmds=".so"
16343postinstall_cmds=
16344postuninstall_cmds=
16345finish_cmds=
16346finish_eval=
16347shlibpath_var=
16348shlibpath_overrides_runpath=unknown
16349version_type=none
16350dynamic_linker="$host_os ld.so"
16351sys_lib_dlsearch_path_spec="/lib /usr/lib"
16352need_lib_prefix=unknown
16353hardcode_into_libs=no
16354
16355# when you set need_version to no, make sure it does not cause -set_version
16356# flags to be left without arguments
16357need_version=unknown
16358
16359case $host_os in
16360aix3*)
16361  version_type=linux # correct to gnu/linux during the next big refactor
16362  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16363  shlibpath_var=LIBPATH
16364
16365  # AIX 3 has no versioning support, so we append a major version to the name.
16366  soname_spec='${libname}${release}${shared_ext}$major'
16367  ;;
16368
16369aix[4-9]*)
16370  version_type=linux # correct to gnu/linux during the next big refactor
16371  need_lib_prefix=no
16372  need_version=no
16373  hardcode_into_libs=yes
16374  if test "$host_cpu" = ia64; then
16375    # AIX 5 supports IA64
16376    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16377    shlibpath_var=LD_LIBRARY_PATH
16378  else
16379    # With GCC up to 2.95.x, collect2 would create an import file
16380    # for dependence libraries.  The import file would start with
16381    # the line `#! .'.  This would cause the generated library to
16382    # depend on `.', always an invalid library.  This was fixed in
16383    # development snapshots of GCC prior to 3.0.
16384    case $host_os in
16385      aix4 | aix4.[01] | aix4.[01].*)
16386      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16387	   echo ' yes '
16388	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16389	:
16390      else
16391	can_build_shared=no
16392      fi
16393      ;;
16394    esac
16395    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16396    # soname into executable. Probably we can add versioning support to
16397    # collect2, so additional links can be useful in future.
16398    if test "$aix_use_runtimelinking" = yes; then
16399      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16400      # instead of lib<name>.a to let people know that these are not
16401      # typical AIX shared libraries.
16402      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16403    else
16404      # We preserve .a as extension for shared libraries through AIX4.2
16405      # and later when we are not doing run time linking.
16406      library_names_spec='${libname}${release}.a $libname.a'
16407      soname_spec='${libname}${release}${shared_ext}$major'
16408    fi
16409    shlibpath_var=LIBPATH
16410  fi
16411  ;;
16412
16413amigaos*)
16414  case $host_cpu in
16415  powerpc)
16416    # Since July 2007 AmigaOS4 officially supports .so libraries.
16417    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16418    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16419    ;;
16420  m68k)
16421    library_names_spec='$libname.ixlibrary $libname.a'
16422    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16423    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16424    ;;
16425  esac
16426  ;;
16427
16428beos*)
16429  library_names_spec='${libname}${shared_ext}'
16430  dynamic_linker="$host_os ld.so"
16431  shlibpath_var=LIBRARY_PATH
16432  ;;
16433
16434bsdi[45]*)
16435  version_type=linux # correct to gnu/linux during the next big refactor
16436  need_version=no
16437  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16438  soname_spec='${libname}${release}${shared_ext}$major'
16439  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16440  shlibpath_var=LD_LIBRARY_PATH
16441  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16442  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16443  # the default ld.so.conf also contains /usr/contrib/lib and
16444  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16445  # libtool to hard-code these into programs
16446  ;;
16447
16448cygwin* | mingw* | pw32* | cegcc*)
16449  version_type=windows
16450  shrext_cmds=".dll"
16451  need_version=no
16452  need_lib_prefix=no
16453
16454  case $GCC,$cc_basename in
16455  yes,*)
16456    # gcc
16457    library_names_spec='$libname.dll.a'
16458    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16459    postinstall_cmds='base_file=`basename \${file}`~
16460      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16461      dldir=$destdir/`dirname \$dlpath`~
16462      test -d \$dldir || mkdir -p \$dldir~
16463      $install_prog $dir/$dlname \$dldir/$dlname~
16464      chmod a+x \$dldir/$dlname~
16465      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16466        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16467      fi'
16468    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16469      dlpath=$dir/\$dldll~
16470       $RM \$dlpath'
16471    shlibpath_overrides_runpath=yes
16472
16473    case $host_os in
16474    cygwin*)
16475      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16476      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16477
16478      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16479      ;;
16480    mingw* | cegcc*)
16481      # MinGW DLLs use traditional 'lib' prefix
16482      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16483      ;;
16484    pw32*)
16485      # pw32 DLLs use 'pw' prefix rather than 'lib'
16486      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16487      ;;
16488    esac
16489    dynamic_linker='Win32 ld.exe'
16490    ;;
16491
16492  *,cl*)
16493    # Native MSVC
16494    libname_spec='$name'
16495    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16496    library_names_spec='${libname}.dll.lib'
16497
16498    case $build_os in
16499    mingw*)
16500      sys_lib_search_path_spec=
16501      lt_save_ifs=$IFS
16502      IFS=';'
16503      for lt_path in $LIB
16504      do
16505        IFS=$lt_save_ifs
16506        # Let DOS variable expansion print the short 8.3 style file name.
16507        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16508        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16509      done
16510      IFS=$lt_save_ifs
16511      # Convert to MSYS style.
16512      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16513      ;;
16514    cygwin*)
16515      # Convert to unix form, then to dos form, then back to unix form
16516      # but this time dos style (no spaces!) so that the unix form looks
16517      # like /cygdrive/c/PROGRA~1:/cygdr...
16518      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16519      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16520      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16521      ;;
16522    *)
16523      sys_lib_search_path_spec="$LIB"
16524      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16525        # It is most probably a Windows format PATH.
16526        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16527      else
16528        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16529      fi
16530      # FIXME: find the short name or the path components, as spaces are
16531      # common. (e.g. "Program Files" -> "PROGRA~1")
16532      ;;
16533    esac
16534
16535    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16536    postinstall_cmds='base_file=`basename \${file}`~
16537      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16538      dldir=$destdir/`dirname \$dlpath`~
16539      test -d \$dldir || mkdir -p \$dldir~
16540      $install_prog $dir/$dlname \$dldir/$dlname'
16541    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16542      dlpath=$dir/\$dldll~
16543       $RM \$dlpath'
16544    shlibpath_overrides_runpath=yes
16545    dynamic_linker='Win32 link.exe'
16546    ;;
16547
16548  *)
16549    # Assume MSVC wrapper
16550    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16551    dynamic_linker='Win32 ld.exe'
16552    ;;
16553  esac
16554  # FIXME: first we should search . and the directory the executable is in
16555  shlibpath_var=PATH
16556  ;;
16557
16558darwin* | rhapsody*)
16559  dynamic_linker="$host_os dyld"
16560  version_type=darwin
16561  need_lib_prefix=no
16562  need_version=no
16563  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16564  soname_spec='${libname}${release}${major}$shared_ext'
16565  shlibpath_overrides_runpath=yes
16566  shlibpath_var=DYLD_LIBRARY_PATH
16567  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16568
16569  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16570  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16571  ;;
16572
16573dgux*)
16574  version_type=linux # correct to gnu/linux during the next big refactor
16575  need_lib_prefix=no
16576  need_version=no
16577  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16578  soname_spec='${libname}${release}${shared_ext}$major'
16579  shlibpath_var=LD_LIBRARY_PATH
16580  ;;
16581
16582freebsd* | dragonfly*)
16583  # DragonFly does not have aout.  When/if they implement a new
16584  # versioning mechanism, adjust this.
16585  if test -x /usr/bin/objformat; then
16586    objformat=`/usr/bin/objformat`
16587  else
16588    case $host_os in
16589    freebsd[23].*) objformat=aout ;;
16590    *) objformat=elf ;;
16591    esac
16592  fi
16593  version_type=freebsd-$objformat
16594  case $version_type in
16595    freebsd-elf*)
16596      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16597      need_version=no
16598      need_lib_prefix=no
16599      ;;
16600    freebsd-*)
16601      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16602      need_version=yes
16603      ;;
16604  esac
16605  shlibpath_var=LD_LIBRARY_PATH
16606  case $host_os in
16607  freebsd2.*)
16608    shlibpath_overrides_runpath=yes
16609    ;;
16610  freebsd3.[01]* | freebsdelf3.[01]*)
16611    shlibpath_overrides_runpath=yes
16612    hardcode_into_libs=yes
16613    ;;
16614  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16615  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16616    shlibpath_overrides_runpath=no
16617    hardcode_into_libs=yes
16618    ;;
16619  *) # from 4.6 on, and DragonFly
16620    shlibpath_overrides_runpath=yes
16621    hardcode_into_libs=yes
16622    ;;
16623  esac
16624  ;;
16625
16626haiku*)
16627  version_type=linux # correct to gnu/linux during the next big refactor
16628  need_lib_prefix=no
16629  need_version=no
16630  dynamic_linker="$host_os runtime_loader"
16631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16632  soname_spec='${libname}${release}${shared_ext}$major'
16633  shlibpath_var=LIBRARY_PATH
16634  shlibpath_overrides_runpath=yes
16635  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16636  hardcode_into_libs=yes
16637  ;;
16638
16639hpux9* | hpux10* | hpux11*)
16640  # Give a soname corresponding to the major version so that dld.sl refuses to
16641  # link against other versions.
16642  version_type=sunos
16643  need_lib_prefix=no
16644  need_version=no
16645  case $host_cpu in
16646  ia64*)
16647    shrext_cmds='.so'
16648    hardcode_into_libs=yes
16649    dynamic_linker="$host_os dld.so"
16650    shlibpath_var=LD_LIBRARY_PATH
16651    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16652    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16653    soname_spec='${libname}${release}${shared_ext}$major'
16654    if test "X$HPUX_IA64_MODE" = X32; then
16655      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16656    else
16657      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16658    fi
16659    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16660    ;;
16661  hppa*64*)
16662    shrext_cmds='.sl'
16663    hardcode_into_libs=yes
16664    dynamic_linker="$host_os dld.sl"
16665    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16666    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16667    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16668    soname_spec='${libname}${release}${shared_ext}$major'
16669    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16670    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16671    ;;
16672  *)
16673    shrext_cmds='.sl'
16674    dynamic_linker="$host_os dld.sl"
16675    shlibpath_var=SHLIB_PATH
16676    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16677    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16678    soname_spec='${libname}${release}${shared_ext}$major'
16679    ;;
16680  esac
16681  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16682  postinstall_cmds='chmod 555 $lib'
16683  # or fails outright, so override atomically:
16684  install_override_mode=555
16685  ;;
16686
16687interix[3-9]*)
16688  version_type=linux # correct to gnu/linux during the next big refactor
16689  need_lib_prefix=no
16690  need_version=no
16691  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16692  soname_spec='${libname}${release}${shared_ext}$major'
16693  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16694  shlibpath_var=LD_LIBRARY_PATH
16695  shlibpath_overrides_runpath=no
16696  hardcode_into_libs=yes
16697  ;;
16698
16699irix5* | irix6* | nonstopux*)
16700  case $host_os in
16701    nonstopux*) version_type=nonstopux ;;
16702    *)
16703	if test "$lt_cv_prog_gnu_ld" = yes; then
16704		version_type=linux # correct to gnu/linux during the next big refactor
16705	else
16706		version_type=irix
16707	fi ;;
16708  esac
16709  need_lib_prefix=no
16710  need_version=no
16711  soname_spec='${libname}${release}${shared_ext}$major'
16712  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16713  case $host_os in
16714  irix5* | nonstopux*)
16715    libsuff= shlibsuff=
16716    ;;
16717  *)
16718    case $LD in # libtool.m4 will add one of these switches to LD
16719    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16720      libsuff= shlibsuff= libmagic=32-bit;;
16721    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16722      libsuff=32 shlibsuff=N32 libmagic=N32;;
16723    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16724      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16725    *) libsuff= shlibsuff= libmagic=never-match;;
16726    esac
16727    ;;
16728  esac
16729  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16730  shlibpath_overrides_runpath=no
16731  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16732  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16733  hardcode_into_libs=yes
16734  ;;
16735
16736# No shared lib support for Linux oldld, aout, or coff.
16737linux*oldld* | linux*aout* | linux*coff*)
16738  dynamic_linker=no
16739  ;;
16740
16741# This must be glibc/ELF.
16742linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16743  version_type=linux # correct to gnu/linux during the next big refactor
16744  need_lib_prefix=no
16745  need_version=no
16746  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16747  soname_spec='${libname}${release}${shared_ext}$major'
16748  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16749  shlibpath_var=LD_LIBRARY_PATH
16750  shlibpath_overrides_runpath=no
16751
16752  # Some binutils ld are patched to set DT_RUNPATH
16753  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16754  $as_echo_n "(cached) " >&6
16755else
16756  lt_cv_shlibpath_overrides_runpath=no
16757    save_LDFLAGS=$LDFLAGS
16758    save_libdir=$libdir
16759    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16760	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16761    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16762/* end confdefs.h.  */
16763
16764int
16765main ()
16766{
16767
16768  ;
16769  return 0;
16770}
16771_ACEOF
16772if ac_fn_c_try_link "$LINENO"; then :
16773  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16774  lt_cv_shlibpath_overrides_runpath=yes
16775fi
16776fi
16777rm -f core conftest.err conftest.$ac_objext \
16778    conftest$ac_exeext conftest.$ac_ext
16779    LDFLAGS=$save_LDFLAGS
16780    libdir=$save_libdir
16781
16782fi
16783
16784  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16785
16786  # This implies no fast_install, which is unacceptable.
16787  # Some rework will be needed to allow for fast_install
16788  # before this can be enabled.
16789  hardcode_into_libs=yes
16790
16791  # Append ld.so.conf contents to the search path
16792  if test -f /etc/ld.so.conf; then
16793    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' ' '`
16794    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16795  fi
16796
16797  # We used to test for /lib/ld.so.1 and disable shared libraries on
16798  # powerpc, because MkLinux only supported shared libraries with the
16799  # GNU dynamic linker.  Since this was broken with cross compilers,
16800  # most powerpc-linux boxes support dynamic linking these days and
16801  # people can always --disable-shared, the test was removed, and we
16802  # assume the GNU/Linux dynamic linker is in use.
16803  dynamic_linker='GNU/Linux ld.so'
16804  ;;
16805
16806netbsdelf*-gnu)
16807  version_type=linux
16808  need_lib_prefix=no
16809  need_version=no
16810  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16811  soname_spec='${libname}${release}${shared_ext}$major'
16812  shlibpath_var=LD_LIBRARY_PATH
16813  shlibpath_overrides_runpath=no
16814  hardcode_into_libs=yes
16815  dynamic_linker='NetBSD ld.elf_so'
16816  ;;
16817
16818netbsd*)
16819  version_type=sunos
16820  need_lib_prefix=no
16821  need_version=no
16822  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16823    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16824    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16825    dynamic_linker='NetBSD (a.out) ld.so'
16826  else
16827    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16828    soname_spec='${libname}${release}${shared_ext}$major'
16829    dynamic_linker='NetBSD ld.elf_so'
16830  fi
16831  shlibpath_var=LD_LIBRARY_PATH
16832  shlibpath_overrides_runpath=yes
16833  hardcode_into_libs=yes
16834  ;;
16835
16836newsos6)
16837  version_type=linux # correct to gnu/linux during the next big refactor
16838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16839  shlibpath_var=LD_LIBRARY_PATH
16840  shlibpath_overrides_runpath=yes
16841  ;;
16842
16843*nto* | *qnx*)
16844  version_type=qnx
16845  need_lib_prefix=no
16846  need_version=no
16847  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16848  soname_spec='${libname}${release}${shared_ext}$major'
16849  shlibpath_var=LD_LIBRARY_PATH
16850  shlibpath_overrides_runpath=no
16851  hardcode_into_libs=yes
16852  dynamic_linker='ldqnx.so'
16853  ;;
16854
16855openbsd*)
16856  version_type=sunos
16857  sys_lib_dlsearch_path_spec="/usr/lib"
16858  need_lib_prefix=no
16859  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16860  case $host_os in
16861    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16862    *)				need_version=no  ;;
16863  esac
16864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16865  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16866  shlibpath_var=LD_LIBRARY_PATH
16867  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16868    case $host_os in
16869      openbsd2.[89] | openbsd2.[89].*)
16870	shlibpath_overrides_runpath=no
16871	;;
16872      *)
16873	shlibpath_overrides_runpath=yes
16874	;;
16875      esac
16876  else
16877    shlibpath_overrides_runpath=yes
16878  fi
16879  ;;
16880
16881os2*)
16882  libname_spec='$name'
16883  shrext_cmds=".dll"
16884  need_lib_prefix=no
16885  library_names_spec='$libname${shared_ext} $libname.a'
16886  dynamic_linker='OS/2 ld.exe'
16887  shlibpath_var=LIBPATH
16888  ;;
16889
16890osf3* | osf4* | osf5*)
16891  version_type=osf
16892  need_lib_prefix=no
16893  need_version=no
16894  soname_spec='${libname}${release}${shared_ext}$major'
16895  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16896  shlibpath_var=LD_LIBRARY_PATH
16897  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16898  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16899  ;;
16900
16901rdos*)
16902  dynamic_linker=no
16903  ;;
16904
16905solaris*)
16906  version_type=linux # correct to gnu/linux during the next big refactor
16907  need_lib_prefix=no
16908  need_version=no
16909  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16910  soname_spec='${libname}${release}${shared_ext}$major'
16911  shlibpath_var=LD_LIBRARY_PATH
16912  shlibpath_overrides_runpath=yes
16913  hardcode_into_libs=yes
16914  # ldd complains unless libraries are executable
16915  postinstall_cmds='chmod +x $lib'
16916  ;;
16917
16918sunos4*)
16919  version_type=sunos
16920  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16921  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16922  shlibpath_var=LD_LIBRARY_PATH
16923  shlibpath_overrides_runpath=yes
16924  if test "$with_gnu_ld" = yes; then
16925    need_lib_prefix=no
16926  fi
16927  need_version=yes
16928  ;;
16929
16930sysv4 | sysv4.3*)
16931  version_type=linux # correct to gnu/linux during the next big refactor
16932  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16933  soname_spec='${libname}${release}${shared_ext}$major'
16934  shlibpath_var=LD_LIBRARY_PATH
16935  case $host_vendor in
16936    sni)
16937      shlibpath_overrides_runpath=no
16938      need_lib_prefix=no
16939      runpath_var=LD_RUN_PATH
16940      ;;
16941    siemens)
16942      need_lib_prefix=no
16943      ;;
16944    motorola)
16945      need_lib_prefix=no
16946      need_version=no
16947      shlibpath_overrides_runpath=no
16948      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16949      ;;
16950  esac
16951  ;;
16952
16953sysv4*MP*)
16954  if test -d /usr/nec ;then
16955    version_type=linux # correct to gnu/linux during the next big refactor
16956    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16957    soname_spec='$libname${shared_ext}.$major'
16958    shlibpath_var=LD_LIBRARY_PATH
16959  fi
16960  ;;
16961
16962sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16963  version_type=freebsd-elf
16964  need_lib_prefix=no
16965  need_version=no
16966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16967  soname_spec='${libname}${release}${shared_ext}$major'
16968  shlibpath_var=LD_LIBRARY_PATH
16969  shlibpath_overrides_runpath=yes
16970  hardcode_into_libs=yes
16971  if test "$with_gnu_ld" = yes; then
16972    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16973  else
16974    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16975    case $host_os in
16976      sco3.2v5*)
16977        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16978	;;
16979    esac
16980  fi
16981  sys_lib_dlsearch_path_spec='/usr/lib'
16982  ;;
16983
16984tpf*)
16985  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16986  version_type=linux # correct to gnu/linux during the next big refactor
16987  need_lib_prefix=no
16988  need_version=no
16989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16990  shlibpath_var=LD_LIBRARY_PATH
16991  shlibpath_overrides_runpath=no
16992  hardcode_into_libs=yes
16993  ;;
16994
16995uts4*)
16996  version_type=linux # correct to gnu/linux during the next big refactor
16997  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16998  soname_spec='${libname}${release}${shared_ext}$major'
16999  shlibpath_var=LD_LIBRARY_PATH
17000  ;;
17001
17002*)
17003  dynamic_linker=no
17004  ;;
17005esac
17006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17007$as_echo "$dynamic_linker" >&6; }
17008test "$dynamic_linker" = no && can_build_shared=no
17009
17010variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17011if test "$GCC" = yes; then
17012  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17013fi
17014
17015if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17016  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17017fi
17018if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17019  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17020fi
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17114$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17115hardcode_action=
17116if test -n "$hardcode_libdir_flag_spec" ||
17117   test -n "$runpath_var" ||
17118   test "X$hardcode_automatic" = "Xyes" ; then
17119
17120  # We can hardcode non-existent directories.
17121  if test "$hardcode_direct" != no &&
17122     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17123     # have to relink, otherwise we might link with an installed library
17124     # when we should be linking with a yet-to-be-installed one
17125     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17126     test "$hardcode_minus_L" != no; then
17127    # Linking always hardcodes the temporary library directory.
17128    hardcode_action=relink
17129  else
17130    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17131    hardcode_action=immediate
17132  fi
17133else
17134  # We cannot hardcode anything, or else we can only hardcode existing
17135  # directories.
17136  hardcode_action=unsupported
17137fi
17138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17139$as_echo "$hardcode_action" >&6; }
17140
17141if test "$hardcode_action" = relink ||
17142   test "$inherit_rpath" = yes; then
17143  # Fast installation is not supported
17144  enable_fast_install=no
17145elif test "$shlibpath_overrides_runpath" = yes ||
17146     test "$enable_shared" = no; then
17147  # Fast installation is not necessary
17148  enable_fast_install=needless
17149fi
17150
17151
17152
17153
17154
17155
17156  if test "x$enable_dlopen" != xyes; then
17157  enable_dlopen=unknown
17158  enable_dlopen_self=unknown
17159  enable_dlopen_self_static=unknown
17160else
17161  lt_cv_dlopen=no
17162  lt_cv_dlopen_libs=
17163
17164  case $host_os in
17165  beos*)
17166    lt_cv_dlopen="load_add_on"
17167    lt_cv_dlopen_libs=
17168    lt_cv_dlopen_self=yes
17169    ;;
17170
17171  mingw* | pw32* | cegcc*)
17172    lt_cv_dlopen="LoadLibrary"
17173    lt_cv_dlopen_libs=
17174    ;;
17175
17176  cygwin*)
17177    lt_cv_dlopen="dlopen"
17178    lt_cv_dlopen_libs=
17179    ;;
17180
17181  darwin*)
17182  # if libdl is installed we need to link against it
17183    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17184$as_echo_n "checking for dlopen in -ldl... " >&6; }
17185if ${ac_cv_lib_dl_dlopen+:} false; then :
17186  $as_echo_n "(cached) " >&6
17187else
17188  ac_check_lib_save_LIBS=$LIBS
17189LIBS="-ldl  $LIBS"
17190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17191/* end confdefs.h.  */
17192
17193/* Override any GCC internal prototype to avoid an error.
17194   Use char because int might match the return type of a GCC
17195   builtin and then its argument prototype would still apply.  */
17196#ifdef __cplusplus
17197extern "C"
17198#endif
17199char dlopen ();
17200int
17201main ()
17202{
17203return dlopen ();
17204  ;
17205  return 0;
17206}
17207_ACEOF
17208if ac_fn_c_try_link "$LINENO"; then :
17209  ac_cv_lib_dl_dlopen=yes
17210else
17211  ac_cv_lib_dl_dlopen=no
17212fi
17213rm -f core conftest.err conftest.$ac_objext \
17214    conftest$ac_exeext conftest.$ac_ext
17215LIBS=$ac_check_lib_save_LIBS
17216fi
17217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17218$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17219if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17220  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17221else
17222
17223    lt_cv_dlopen="dyld"
17224    lt_cv_dlopen_libs=
17225    lt_cv_dlopen_self=yes
17226
17227fi
17228
17229    ;;
17230
17231  *)
17232    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17233if test "x$ac_cv_func_shl_load" = xyes; then :
17234  lt_cv_dlopen="shl_load"
17235else
17236  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17237$as_echo_n "checking for shl_load in -ldld... " >&6; }
17238if ${ac_cv_lib_dld_shl_load+:} false; then :
17239  $as_echo_n "(cached) " >&6
17240else
17241  ac_check_lib_save_LIBS=$LIBS
17242LIBS="-ldld  $LIBS"
17243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244/* end confdefs.h.  */
17245
17246/* Override any GCC internal prototype to avoid an error.
17247   Use char because int might match the return type of a GCC
17248   builtin and then its argument prototype would still apply.  */
17249#ifdef __cplusplus
17250extern "C"
17251#endif
17252char shl_load ();
17253int
17254main ()
17255{
17256return shl_load ();
17257  ;
17258  return 0;
17259}
17260_ACEOF
17261if ac_fn_c_try_link "$LINENO"; then :
17262  ac_cv_lib_dld_shl_load=yes
17263else
17264  ac_cv_lib_dld_shl_load=no
17265fi
17266rm -f core conftest.err conftest.$ac_objext \
17267    conftest$ac_exeext conftest.$ac_ext
17268LIBS=$ac_check_lib_save_LIBS
17269fi
17270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17271$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17272if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17273  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17274else
17275  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17276if test "x$ac_cv_func_dlopen" = xyes; then :
17277  lt_cv_dlopen="dlopen"
17278else
17279  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17280$as_echo_n "checking for dlopen in -ldl... " >&6; }
17281if ${ac_cv_lib_dl_dlopen+:} false; then :
17282  $as_echo_n "(cached) " >&6
17283else
17284  ac_check_lib_save_LIBS=$LIBS
17285LIBS="-ldl  $LIBS"
17286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17287/* end confdefs.h.  */
17288
17289/* Override any GCC internal prototype to avoid an error.
17290   Use char because int might match the return type of a GCC
17291   builtin and then its argument prototype would still apply.  */
17292#ifdef __cplusplus
17293extern "C"
17294#endif
17295char dlopen ();
17296int
17297main ()
17298{
17299return dlopen ();
17300  ;
17301  return 0;
17302}
17303_ACEOF
17304if ac_fn_c_try_link "$LINENO"; then :
17305  ac_cv_lib_dl_dlopen=yes
17306else
17307  ac_cv_lib_dl_dlopen=no
17308fi
17309rm -f core conftest.err conftest.$ac_objext \
17310    conftest$ac_exeext conftest.$ac_ext
17311LIBS=$ac_check_lib_save_LIBS
17312fi
17313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17314$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17315if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17316  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17317else
17318  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17319$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17320if ${ac_cv_lib_svld_dlopen+:} false; then :
17321  $as_echo_n "(cached) " >&6
17322else
17323  ac_check_lib_save_LIBS=$LIBS
17324LIBS="-lsvld  $LIBS"
17325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17326/* end confdefs.h.  */
17327
17328/* Override any GCC internal prototype to avoid an error.
17329   Use char because int might match the return type of a GCC
17330   builtin and then its argument prototype would still apply.  */
17331#ifdef __cplusplus
17332extern "C"
17333#endif
17334char dlopen ();
17335int
17336main ()
17337{
17338return dlopen ();
17339  ;
17340  return 0;
17341}
17342_ACEOF
17343if ac_fn_c_try_link "$LINENO"; then :
17344  ac_cv_lib_svld_dlopen=yes
17345else
17346  ac_cv_lib_svld_dlopen=no
17347fi
17348rm -f core conftest.err conftest.$ac_objext \
17349    conftest$ac_exeext conftest.$ac_ext
17350LIBS=$ac_check_lib_save_LIBS
17351fi
17352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17353$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17354if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17355  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17356else
17357  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17358$as_echo_n "checking for dld_link in -ldld... " >&6; }
17359if ${ac_cv_lib_dld_dld_link+:} false; then :
17360  $as_echo_n "(cached) " >&6
17361else
17362  ac_check_lib_save_LIBS=$LIBS
17363LIBS="-ldld  $LIBS"
17364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17365/* end confdefs.h.  */
17366
17367/* Override any GCC internal prototype to avoid an error.
17368   Use char because int might match the return type of a GCC
17369   builtin and then its argument prototype would still apply.  */
17370#ifdef __cplusplus
17371extern "C"
17372#endif
17373char dld_link ();
17374int
17375main ()
17376{
17377return dld_link ();
17378  ;
17379  return 0;
17380}
17381_ACEOF
17382if ac_fn_c_try_link "$LINENO"; then :
17383  ac_cv_lib_dld_dld_link=yes
17384else
17385  ac_cv_lib_dld_dld_link=no
17386fi
17387rm -f core conftest.err conftest.$ac_objext \
17388    conftest$ac_exeext conftest.$ac_ext
17389LIBS=$ac_check_lib_save_LIBS
17390fi
17391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17392$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17393if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17394  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17395fi
17396
17397
17398fi
17399
17400
17401fi
17402
17403
17404fi
17405
17406
17407fi
17408
17409
17410fi
17411
17412    ;;
17413  esac
17414
17415  if test "x$lt_cv_dlopen" != xno; then
17416    enable_dlopen=yes
17417  else
17418    enable_dlopen=no
17419  fi
17420
17421  case $lt_cv_dlopen in
17422  dlopen)
17423    save_CPPFLAGS="$CPPFLAGS"
17424    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17425
17426    save_LDFLAGS="$LDFLAGS"
17427    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17428
17429    save_LIBS="$LIBS"
17430    LIBS="$lt_cv_dlopen_libs $LIBS"
17431
17432    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17433$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17434if ${lt_cv_dlopen_self+:} false; then :
17435  $as_echo_n "(cached) " >&6
17436else
17437  	  if test "$cross_compiling" = yes; then :
17438  lt_cv_dlopen_self=cross
17439else
17440  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17441  lt_status=$lt_dlunknown
17442  cat > conftest.$ac_ext <<_LT_EOF
17443#line $LINENO "configure"
17444#include "confdefs.h"
17445
17446#if HAVE_DLFCN_H
17447#include <dlfcn.h>
17448#endif
17449
17450#include <stdio.h>
17451
17452#ifdef RTLD_GLOBAL
17453#  define LT_DLGLOBAL		RTLD_GLOBAL
17454#else
17455#  ifdef DL_GLOBAL
17456#    define LT_DLGLOBAL		DL_GLOBAL
17457#  else
17458#    define LT_DLGLOBAL		0
17459#  endif
17460#endif
17461
17462/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17463   find out it does not work in some platform. */
17464#ifndef LT_DLLAZY_OR_NOW
17465#  ifdef RTLD_LAZY
17466#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17467#  else
17468#    ifdef DL_LAZY
17469#      define LT_DLLAZY_OR_NOW		DL_LAZY
17470#    else
17471#      ifdef RTLD_NOW
17472#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17473#      else
17474#        ifdef DL_NOW
17475#          define LT_DLLAZY_OR_NOW	DL_NOW
17476#        else
17477#          define LT_DLLAZY_OR_NOW	0
17478#        endif
17479#      endif
17480#    endif
17481#  endif
17482#endif
17483
17484/* When -fvisbility=hidden is used, assume the code has been annotated
17485   correspondingly for the symbols needed.  */
17486#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17487int fnord () __attribute__((visibility("default")));
17488#endif
17489
17490int fnord () { return 42; }
17491int main ()
17492{
17493  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17494  int status = $lt_dlunknown;
17495
17496  if (self)
17497    {
17498      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17499      else
17500        {
17501	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17502          else puts (dlerror ());
17503	}
17504      /* dlclose (self); */
17505    }
17506  else
17507    puts (dlerror ());
17508
17509  return status;
17510}
17511_LT_EOF
17512  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17513  (eval $ac_link) 2>&5
17514  ac_status=$?
17515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17516  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17517    (./conftest; exit; ) >&5 2>/dev/null
17518    lt_status=$?
17519    case x$lt_status in
17520      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17521      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17522      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17523    esac
17524  else :
17525    # compilation failed
17526    lt_cv_dlopen_self=no
17527  fi
17528fi
17529rm -fr conftest*
17530
17531
17532fi
17533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17534$as_echo "$lt_cv_dlopen_self" >&6; }
17535
17536    if test "x$lt_cv_dlopen_self" = xyes; then
17537      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17538      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17539$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17540if ${lt_cv_dlopen_self_static+:} false; then :
17541  $as_echo_n "(cached) " >&6
17542else
17543  	  if test "$cross_compiling" = yes; then :
17544  lt_cv_dlopen_self_static=cross
17545else
17546  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17547  lt_status=$lt_dlunknown
17548  cat > conftest.$ac_ext <<_LT_EOF
17549#line $LINENO "configure"
17550#include "confdefs.h"
17551
17552#if HAVE_DLFCN_H
17553#include <dlfcn.h>
17554#endif
17555
17556#include <stdio.h>
17557
17558#ifdef RTLD_GLOBAL
17559#  define LT_DLGLOBAL		RTLD_GLOBAL
17560#else
17561#  ifdef DL_GLOBAL
17562#    define LT_DLGLOBAL		DL_GLOBAL
17563#  else
17564#    define LT_DLGLOBAL		0
17565#  endif
17566#endif
17567
17568/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17569   find out it does not work in some platform. */
17570#ifndef LT_DLLAZY_OR_NOW
17571#  ifdef RTLD_LAZY
17572#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17573#  else
17574#    ifdef DL_LAZY
17575#      define LT_DLLAZY_OR_NOW		DL_LAZY
17576#    else
17577#      ifdef RTLD_NOW
17578#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17579#      else
17580#        ifdef DL_NOW
17581#          define LT_DLLAZY_OR_NOW	DL_NOW
17582#        else
17583#          define LT_DLLAZY_OR_NOW	0
17584#        endif
17585#      endif
17586#    endif
17587#  endif
17588#endif
17589
17590/* When -fvisbility=hidden is used, assume the code has been annotated
17591   correspondingly for the symbols needed.  */
17592#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17593int fnord () __attribute__((visibility("default")));
17594#endif
17595
17596int fnord () { return 42; }
17597int main ()
17598{
17599  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17600  int status = $lt_dlunknown;
17601
17602  if (self)
17603    {
17604      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17605      else
17606        {
17607	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17608          else puts (dlerror ());
17609	}
17610      /* dlclose (self); */
17611    }
17612  else
17613    puts (dlerror ());
17614
17615  return status;
17616}
17617_LT_EOF
17618  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17619  (eval $ac_link) 2>&5
17620  ac_status=$?
17621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17622  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17623    (./conftest; exit; ) >&5 2>/dev/null
17624    lt_status=$?
17625    case x$lt_status in
17626      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17627      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17628      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17629    esac
17630  else :
17631    # compilation failed
17632    lt_cv_dlopen_self_static=no
17633  fi
17634fi
17635rm -fr conftest*
17636
17637
17638fi
17639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17640$as_echo "$lt_cv_dlopen_self_static" >&6; }
17641    fi
17642
17643    CPPFLAGS="$save_CPPFLAGS"
17644    LDFLAGS="$save_LDFLAGS"
17645    LIBS="$save_LIBS"
17646    ;;
17647  esac
17648
17649  case $lt_cv_dlopen_self in
17650  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17651  *) enable_dlopen_self=unknown ;;
17652  esac
17653
17654  case $lt_cv_dlopen_self_static in
17655  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17656  *) enable_dlopen_self_static=unknown ;;
17657  esac
17658fi
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676striplib=
17677old_striplib=
17678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17679$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17680if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17681  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17682  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17684$as_echo "yes" >&6; }
17685else
17686# FIXME - insert some real tests, host_os isn't really good enough
17687  case $host_os in
17688  darwin*)
17689    if test -n "$STRIP" ; then
17690      striplib="$STRIP -x"
17691      old_striplib="$STRIP -S"
17692      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17693$as_echo "yes" >&6; }
17694    else
17695      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17696$as_echo "no" >&6; }
17697    fi
17698    ;;
17699  *)
17700    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17701$as_echo "no" >&6; }
17702    ;;
17703  esac
17704fi
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717  # Report which library types will actually be built
17718  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17719$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17721$as_echo "$can_build_shared" >&6; }
17722
17723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17724$as_echo_n "checking whether to build shared libraries... " >&6; }
17725  test "$can_build_shared" = "no" && enable_shared=no
17726
17727  # On AIX, shared libraries and static libraries use the same namespace, and
17728  # are all built from PIC.
17729  case $host_os in
17730  aix3*)
17731    test "$enable_shared" = yes && enable_static=no
17732    if test -n "$RANLIB"; then
17733      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17734      postinstall_cmds='$RANLIB $lib'
17735    fi
17736    ;;
17737
17738  aix[4-9]*)
17739    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17740      test "$enable_shared" = yes && enable_static=no
17741    fi
17742    ;;
17743  esac
17744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17745$as_echo "$enable_shared" >&6; }
17746
17747  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17748$as_echo_n "checking whether to build static libraries... " >&6; }
17749  # Make sure either enable_shared or enable_static is yes.
17750  test "$enable_shared" = yes || enable_static=yes
17751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17752$as_echo "$enable_static" >&6; }
17753
17754
17755
17756
17757fi
17758ac_ext=c
17759ac_cpp='$CPP $CPPFLAGS'
17760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17762ac_compiler_gnu=$ac_cv_c_compiler_gnu
17763
17764CC="$lt_save_CC"
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780        ac_config_commands="$ac_config_commands libtool"
17781
17782
17783
17784
17785# Only expand once:
17786
17787
17788
17789if test "x$GCC" = "xyes"; then
17790	CPPFLAGS="$CPPFLAGS -Wall"
17791fi
17792
17793
17794
17795# Define a configure option for an alternate module directory
17796
17797# Check whether --with-xorg-module-dir was given.
17798if test "${with_xorg_module_dir+set}" = set; then :
17799  withval=$with_xorg_module_dir; moduledir="$withval"
17800else
17801  moduledir="$libdir/xorg/modules"
17802fi
17803
17804
17805# Check whether --enable-dri was given.
17806if test "${enable_dri+set}" = set; then :
17807  enableval=$enable_dri; DRI="$enableval"
17808else
17809  DRI=auto
17810fi
17811
17812
17813# Check whether --enable-exa was given.
17814if test "${enable_exa+set}" = set; then :
17815  enableval=$enable_exa; EXA="$enableval"
17816else
17817  EXA=yes
17818fi
17819
17820
17821# Store the list of server defined optional extensions in REQUIRED_MODULES
17822
17823
17824	SAVE_CFLAGS="$CFLAGS"
17825	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17826	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17827/* end confdefs.h.  */
17828
17829#include "xorg-server.h"
17830#if !defined RANDR
17831#error RANDR not defined
17832#endif
17833
17834int
17835main ()
17836{
17837
17838  ;
17839  return 0;
17840}
17841_ACEOF
17842if ac_fn_c_try_compile "$LINENO"; then :
17843  _EXT_CHECK=yes
17844else
17845  _EXT_CHECK=no
17846fi
17847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17848	CFLAGS="$SAVE_CFLAGS"
17849	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17850$as_echo_n "checking if RANDR is defined... " >&6; }
17851	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17852$as_echo "$_EXT_CHECK" >&6; }
17853	if test "$_EXT_CHECK" != no; then
17854		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17855	fi
17856
17857
17858
17859	SAVE_CFLAGS="$CFLAGS"
17860	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17861	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17862/* end confdefs.h.  */
17863
17864#include "xorg-server.h"
17865#if !defined RENDER
17866#error RENDER not defined
17867#endif
17868
17869int
17870main ()
17871{
17872
17873  ;
17874  return 0;
17875}
17876_ACEOF
17877if ac_fn_c_try_compile "$LINENO"; then :
17878  _EXT_CHECK=yes
17879else
17880  _EXT_CHECK=no
17881fi
17882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17883	CFLAGS="$SAVE_CFLAGS"
17884	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17885$as_echo_n "checking if RENDER is defined... " >&6; }
17886	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17887$as_echo "$_EXT_CHECK" >&6; }
17888	if test "$_EXT_CHECK" != no; then
17889		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17890	fi
17891
17892
17893
17894	SAVE_CFLAGS="$CFLAGS"
17895	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17896	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17897/* end confdefs.h.  */
17898
17899#include "xorg-server.h"
17900#if !defined XV
17901#error XV not defined
17902#endif
17903
17904int
17905main ()
17906{
17907
17908  ;
17909  return 0;
17910}
17911_ACEOF
17912if ac_fn_c_try_compile "$LINENO"; then :
17913  _EXT_CHECK=yes
17914else
17915  _EXT_CHECK=no
17916fi
17917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17918	CFLAGS="$SAVE_CFLAGS"
17919	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
17920$as_echo_n "checking if XV is defined... " >&6; }
17921	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17922$as_echo "$_EXT_CHECK" >&6; }
17923	if test "$_EXT_CHECK" != no; then
17924		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
17925	fi
17926
17927
17928
17929	SAVE_CFLAGS="$CFLAGS"
17930	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17931	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17932/* end confdefs.h.  */
17933
17934#include "xorg-server.h"
17935#if !defined XF86MISC
17936#error XF86MISC not defined
17937#endif
17938
17939int
17940main ()
17941{
17942
17943  ;
17944  return 0;
17945}
17946_ACEOF
17947if ac_fn_c_try_compile "$LINENO"; then :
17948  _EXT_CHECK=yes
17949else
17950  _EXT_CHECK=no
17951fi
17952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17953	CFLAGS="$SAVE_CFLAGS"
17954	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XF86MISC is defined" >&5
17955$as_echo_n "checking if XF86MISC is defined... " >&6; }
17956	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17957$as_echo "$_EXT_CHECK" >&6; }
17958	if test "$_EXT_CHECK" != no; then
17959		REQUIRED_MODULES="$REQUIRED_MODULES xf86miscproto"
17960	fi
17961
17962
17963
17964	SAVE_CFLAGS="$CFLAGS"
17965	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17966	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17967/* end confdefs.h.  */
17968
17969#include "xorg-server.h"
17970#if !defined DPMSExtension
17971#error DPMSExtension not defined
17972#endif
17973
17974int
17975main ()
17976{
17977
17978  ;
17979  return 0;
17980}
17981_ACEOF
17982if ac_fn_c_try_compile "$LINENO"; then :
17983  _EXT_CHECK=yes
17984else
17985  _EXT_CHECK=no
17986fi
17987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17988	CFLAGS="$SAVE_CFLAGS"
17989	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17990$as_echo_n "checking if DPMSExtension is defined... " >&6; }
17991	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17992$as_echo "$_EXT_CHECK" >&6; }
17993	if test "$_EXT_CHECK" != no; then
17994		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17995	fi
17996
17997
17998# Obtain compiler/linker options for the driver dependencies
17999
18000pkg_failed=no
18001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18002$as_echo_n "checking for XORG... " >&6; }
18003
18004if test -n "$XORG_CFLAGS"; then
18005    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18006 elif test -n "$PKG_CONFIG"; then
18007    if test -n "$PKG_CONFIG" && \
18008    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18009  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5
18010  ac_status=$?
18011  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18012  test $ac_status = 0; }; then
18013  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18014		      test "x$?" != "x0" && pkg_failed=yes
18015else
18016  pkg_failed=yes
18017fi
18018 else
18019    pkg_failed=untried
18020fi
18021if test -n "$XORG_LIBS"; then
18022    pkg_cv_XORG_LIBS="$XORG_LIBS"
18023 elif test -n "$PKG_CONFIG"; then
18024    if test -n "$PKG_CONFIG" && \
18025    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18026  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5
18027  ac_status=$?
18028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18029  test $ac_status = 0; }; then
18030  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18031		      test "x$?" != "x0" && pkg_failed=yes
18032else
18033  pkg_failed=yes
18034fi
18035 else
18036    pkg_failed=untried
18037fi
18038
18039
18040
18041if test $pkg_failed = yes; then
18042   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18043$as_echo "no" >&6; }
18044
18045if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18046        _pkg_short_errors_supported=yes
18047else
18048        _pkg_short_errors_supported=no
18049fi
18050        if test $_pkg_short_errors_supported = yes; then
18051	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18052        else
18053	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18054        fi
18055	# Put the nasty error message in config.log where it belongs
18056	echo "$XORG_PKG_ERRORS" >&5
18057
18058	as_fn_error $? "Package requirements (xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES) were not met:
18059
18060$XORG_PKG_ERRORS
18061
18062Consider adjusting the PKG_CONFIG_PATH environment variable if you
18063installed software in a non-standard prefix.
18064
18065Alternatively, you may set the environment variables XORG_CFLAGS
18066and XORG_LIBS to avoid the need to call pkg-config.
18067See the pkg-config man page for more details." "$LINENO" 5
18068elif test $pkg_failed = untried; then
18069     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18070$as_echo "no" >&6; }
18071	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18073as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18074is in your PATH or set the PKG_CONFIG environment variable to the full
18075path to pkg-config.
18076
18077Alternatively, you may set the environment variables XORG_CFLAGS
18078and XORG_LIBS to avoid the need to call pkg-config.
18079See the pkg-config man page for more details.
18080
18081To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18082See \`config.log' for more details" "$LINENO" 5; }
18083else
18084	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18085	XORG_LIBS=$pkg_cv_XORG_LIBS
18086        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18087$as_echo "yes" >&6; }
18088
18089fi
18090
18091pkg_failed=no
18092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18093$as_echo_n "checking for XEXT... " >&6; }
18094
18095if test -n "$XEXT_CFLAGS"; then
18096    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18097 elif test -n "$PKG_CONFIG"; then
18098    if test -n "$PKG_CONFIG" && \
18099    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18100  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18101  ac_status=$?
18102  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18103  test $ac_status = 0; }; then
18104  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18105		      test "x$?" != "x0" && pkg_failed=yes
18106else
18107  pkg_failed=yes
18108fi
18109 else
18110    pkg_failed=untried
18111fi
18112if test -n "$XEXT_LIBS"; then
18113    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18114 elif test -n "$PKG_CONFIG"; then
18115    if test -n "$PKG_CONFIG" && \
18116    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18117  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18118  ac_status=$?
18119  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18120  test $ac_status = 0; }; then
18121  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18122		      test "x$?" != "x0" && pkg_failed=yes
18123else
18124  pkg_failed=yes
18125fi
18126 else
18127    pkg_failed=untried
18128fi
18129
18130
18131
18132if test $pkg_failed = yes; then
18133   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18134$as_echo "no" >&6; }
18135
18136if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18137        _pkg_short_errors_supported=yes
18138else
18139        _pkg_short_errors_supported=no
18140fi
18141        if test $_pkg_short_errors_supported = yes; then
18142	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18143        else
18144	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18145        fi
18146	# Put the nasty error message in config.log where it belongs
18147	echo "$XEXT_PKG_ERRORS" >&5
18148
18149	HAVE_XEXTPROTO_71="no"
18150elif test $pkg_failed = untried; then
18151     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18152$as_echo "no" >&6; }
18153	HAVE_XEXTPROTO_71="no"
18154else
18155	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18156	XEXT_LIBS=$pkg_cv_XEXT_LIBS
18157        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18158$as_echo "yes" >&6; }
18159	HAVE_XEXTPROTO_71="yes";
18160$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18161
18162fi
18163 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
18164  HAVE_XEXTPROTO_71_TRUE=
18165  HAVE_XEXTPROTO_71_FALSE='#'
18166else
18167  HAVE_XEXTPROTO_71_TRUE='#'
18168  HAVE_XEXTPROTO_71_FALSE=
18169fi
18170
18171sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
18172
18173# Checks for libraries.
18174
18175if test "$DRI" != no; then
18176	as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
18177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
18178$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
18179if eval \${$as_ac_File+:} false; then :
18180  $as_echo_n "(cached) " >&6
18181else
18182  test "$cross_compiling" = yes &&
18183  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18184if test -r "${sdkdir}/dri.h"; then
18185  eval "$as_ac_File=yes"
18186else
18187  eval "$as_ac_File=no"
18188fi
18189fi
18190eval ac_res=\$$as_ac_File
18191	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18192$as_echo "$ac_res" >&6; }
18193if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18194  have_dri_h="yes"
18195else
18196  have_dri_h="no"
18197fi
18198
18199	as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
18200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
18201$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
18202if eval \${$as_ac_File+:} false; then :
18203  $as_echo_n "(cached) " >&6
18204else
18205  test "$cross_compiling" = yes &&
18206  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18207if test -r "${sdkdir}/sarea.h"; then
18208  eval "$as_ac_File=yes"
18209else
18210  eval "$as_ac_File=no"
18211fi
18212fi
18213eval ac_res=\$$as_ac_File
18214	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18215$as_echo "$ac_res" >&6; }
18216if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18217  have_sarea_h="yes"
18218else
18219  have_sarea_h="no"
18220fi
18221
18222	as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
18223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
18224$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
18225if eval \${$as_ac_File+:} false; then :
18226  $as_echo_n "(cached) " >&6
18227else
18228  test "$cross_compiling" = yes &&
18229  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18230if test -r "${sdkdir}/dristruct.h"; then
18231  eval "$as_ac_File=yes"
18232else
18233  eval "$as_ac_File=no"
18234fi
18235fi
18236eval ac_res=\$$as_ac_File
18237	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18238$as_echo "$ac_res" >&6; }
18239if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18240  have_dristruct_h="yes"
18241else
18242  have_dristruct_h="no"
18243fi
18244
18245	as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/damage.h" | $as_tr_sh`
18246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/damage.h" >&5
18247$as_echo_n "checking for ${sdkdir}/damage.h... " >&6; }
18248if eval \${$as_ac_File+:} false; then :
18249  $as_echo_n "(cached) " >&6
18250else
18251  test "$cross_compiling" = yes &&
18252  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18253if test -r "${sdkdir}/damage.h"; then
18254  eval "$as_ac_File=yes"
18255else
18256  eval "$as_ac_File=no"
18257fi
18258fi
18259eval ac_res=\$$as_ac_File
18260	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18261$as_echo "$ac_res" >&6; }
18262if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18263  have_damage_h="yes"
18264else
18265  have_damage_h="no"
18266fi
18267
18268fi
18269
18270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
18271$as_echo_n "checking whether to include DRI support... " >&6; }
18272if test x$DRI = xauto; then
18273	if test "$have_dri_h" = yes -a \
18274                "$have_sarea_h" = yes -a \
18275                "$have_dristruct_h" = yes; then
18276		DRI="yes"
18277	else
18278		DRI="no"
18279	fi
18280fi
18281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
18282$as_echo "$DRI" >&6; }
18283
18284 if test x$DRI = xyes; then
18285  DRI_TRUE=
18286  DRI_FALSE='#'
18287else
18288  DRI_TRUE='#'
18289  DRI_FALSE=
18290fi
18291
18292if test "$DRI" = yes; then
18293
18294pkg_failed=no
18295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
18296$as_echo_n "checking for DRI... " >&6; }
18297
18298if test -n "$DRI_CFLAGS"; then
18299    pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
18300 elif test -n "$PKG_CONFIG"; then
18301    if test -n "$PKG_CONFIG" && \
18302    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
18303  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
18304  ac_status=$?
18305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18306  test $ac_status = 0; }; then
18307  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.2 xf86driproto" 2>/dev/null`
18308		      test "x$?" != "x0" && pkg_failed=yes
18309else
18310  pkg_failed=yes
18311fi
18312 else
18313    pkg_failed=untried
18314fi
18315if test -n "$DRI_LIBS"; then
18316    pkg_cv_DRI_LIBS="$DRI_LIBS"
18317 elif test -n "$PKG_CONFIG"; then
18318    if test -n "$PKG_CONFIG" && \
18319    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
18320  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
18321  ac_status=$?
18322  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18323  test $ac_status = 0; }; then
18324  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.2 xf86driproto" 2>/dev/null`
18325		      test "x$?" != "x0" && pkg_failed=yes
18326else
18327  pkg_failed=yes
18328fi
18329 else
18330    pkg_failed=untried
18331fi
18332
18333
18334
18335if test $pkg_failed = yes; then
18336   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18337$as_echo "no" >&6; }
18338
18339if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18340        _pkg_short_errors_supported=yes
18341else
18342        _pkg_short_errors_supported=no
18343fi
18344        if test $_pkg_short_errors_supported = yes; then
18345	        DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.2 xf86driproto" 2>&1`
18346        else
18347	        DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.2 xf86driproto" 2>&1`
18348        fi
18349	# Put the nasty error message in config.log where it belongs
18350	echo "$DRI_PKG_ERRORS" >&5
18351
18352	as_fn_error $? "Package requirements (libdrm >= 2.2 xf86driproto) were not met:
18353
18354$DRI_PKG_ERRORS
18355
18356Consider adjusting the PKG_CONFIG_PATH environment variable if you
18357installed software in a non-standard prefix.
18358
18359Alternatively, you may set the environment variables DRI_CFLAGS
18360and DRI_LIBS to avoid the need to call pkg-config.
18361See the pkg-config man page for more details." "$LINENO" 5
18362elif test $pkg_failed = untried; then
18363     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18364$as_echo "no" >&6; }
18365	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18367as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18368is in your PATH or set the PKG_CONFIG environment variable to the full
18369path to pkg-config.
18370
18371Alternatively, you may set the environment variables DRI_CFLAGS
18372and DRI_LIBS to avoid the need to call pkg-config.
18373See the pkg-config man page for more details.
18374
18375To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18376See \`config.log' for more details" "$LINENO" 5; }
18377else
18378	DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
18379	DRI_LIBS=$pkg_cv_DRI_LIBS
18380        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18381$as_echo "yes" >&6; }
18382
18383fi
18384
18385$as_echo "#define R128DRI 1" >>confdefs.h
18386
18387
18388$as_echo "#define R128DRI_DEVEL 1" >>confdefs.h
18389
18390fi
18391
18392SAVE_CPPFLAGS="$CPPFLAGS"
18393CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18394# Properly handle EXA.
18395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5
18396$as_echo_n "checking whether to enable EXA support... " >&6; }
18397if test "x$EXA" = xyes; then
18398        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18399$as_echo "yes" >&6; }
18400
18401        SAVE_CPPFLAGS="$CPPFLAGS"
18402        CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18403        ac_fn_c_check_header_mongrel "$LINENO" "exa.h" "ac_cv_header_exa_h" "$ac_includes_default"
18404if test "x$ac_cv_header_exa_h" = xyes; then :
18405  have_exa_h="yes"
18406else
18407  have_exa_h="no"
18408fi
18409
18410
18411        CPPFLAGS="$SAVE_CPPFLAGS"
18412else
18413        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18414$as_echo "no" >&6; }
18415fi
18416
18417SAVE_CPPFLAGS="$CPPFLAGS"
18418CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18419if test "x$have_exa_h" = xyes; then
18420        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5
18421$as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; }
18422        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18423/* end confdefs.h.  */
18424
18425#include "exa.h"
18426#if EXA_VERSION_MAJOR < 2
18427#error OLD EXA!
18428#endif
18429
18430int
18431main ()
18432{
18433
18434  ;
18435  return 0;
18436}
18437_ACEOF
18438if ac_fn_c_try_cpp "$LINENO"; then :
18439  USE_EXA=yes
18440else
18441  USE_EXA=no
18442fi
18443rm -f conftest.err conftest.i conftest.$ac_ext
18444        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5
18445$as_echo "$USE_EXA" >&6; }
18446
18447        if test "x$USE_EXA" = xyes; then
18448
18449$as_echo "#define USE_EXA 1" >>confdefs.h
18450
18451        fi
18452fi
18453
18454ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18455"
18456if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18457  XSERVER_LIBPCIACCESS=yes
18458else
18459  XSERVER_LIBPCIACCESS=no
18460fi
18461
18462CPPFLAGS="$SAVE_CPPFLAGS"
18463
18464# Check whether --enable-xaa was given.
18465if test "${enable_xaa+set}" = set; then :
18466  enableval=$enable_xaa; XAA="$enableval"
18467else
18468  XAA=auto
18469fi
18470
18471if test "x$XAA" != xno; then
18472        save_CFLAGS=$CFLAGS
18473        save_CPPFLAGS=$CPPFLAGS
18474        CFLAGS=$XORG_CFLAGS
18475        CPPFLAGS="$XORG_CFLAGS"
18476        for ac_header in xaa.h
18477do :
18478  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18479if test "x$ac_cv_header_xaa_h" = xyes; then :
18480  cat >>confdefs.h <<_ACEOF
18481#define HAVE_XAA_H 1
18482_ACEOF
18483 XAA=yes
18484else
18485  XAA=no
18486fi
18487
18488done
18489
18490        CFLAGS=$save_CFLAGS
18491        CPPFLAGS=$save_CPPFLAGS
18492fi
18493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18494$as_echo_n "checking whether to include XAA support... " >&6; }
18495 if test "x$XAA" = xyes; then
18496  XAA_TRUE=
18497  XAA_FALSE='#'
18498else
18499  XAA_TRUE='#'
18500  XAA_FALSE=
18501fi
18502
18503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18504$as_echo "$XAA" >&6; }
18505
18506 if test "x$USE_EXA" = xyes; then
18507  USE_EXA_TRUE=
18508  USE_EXA_FALSE='#'
18509else
18510  USE_EXA_TRUE='#'
18511  USE_EXA_FALSE=
18512fi
18513
18514
18515if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18516
18517pkg_failed=no
18518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18519$as_echo_n "checking for PCIACCESS... " >&6; }
18520
18521if test -n "$PCIACCESS_CFLAGS"; then
18522    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18523 elif test -n "$PKG_CONFIG"; then
18524    if test -n "$PKG_CONFIG" && \
18525    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18526  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18527  ac_status=$?
18528  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18529  test $ac_status = 0; }; then
18530  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18531		      test "x$?" != "x0" && pkg_failed=yes
18532else
18533  pkg_failed=yes
18534fi
18535 else
18536    pkg_failed=untried
18537fi
18538if test -n "$PCIACCESS_LIBS"; then
18539    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18540 elif test -n "$PKG_CONFIG"; then
18541    if test -n "$PKG_CONFIG" && \
18542    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18543  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18544  ac_status=$?
18545  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18546  test $ac_status = 0; }; then
18547  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18548		      test "x$?" != "x0" && pkg_failed=yes
18549else
18550  pkg_failed=yes
18551fi
18552 else
18553    pkg_failed=untried
18554fi
18555
18556
18557
18558if test $pkg_failed = yes; then
18559   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18560$as_echo "no" >&6; }
18561
18562if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18563        _pkg_short_errors_supported=yes
18564else
18565        _pkg_short_errors_supported=no
18566fi
18567        if test $_pkg_short_errors_supported = yes; then
18568	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18569        else
18570	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18571        fi
18572	# Put the nasty error message in config.log where it belongs
18573	echo "$PCIACCESS_PKG_ERRORS" >&5
18574
18575	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18576
18577$PCIACCESS_PKG_ERRORS
18578
18579Consider adjusting the PKG_CONFIG_PATH environment variable if you
18580installed software in a non-standard prefix.
18581
18582Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18583and PCIACCESS_LIBS to avoid the need to call pkg-config.
18584See the pkg-config man page for more details." "$LINENO" 5
18585elif test $pkg_failed = untried; then
18586     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18587$as_echo "no" >&6; }
18588	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18590as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18591is in your PATH or set the PKG_CONFIG environment variable to the full
18592path to pkg-config.
18593
18594Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18595and PCIACCESS_LIBS to avoid the need to call pkg-config.
18596See the pkg-config man page for more details.
18597
18598To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18599See \`config.log' for more details" "$LINENO" 5; }
18600else
18601	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18602	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18603        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18604$as_echo "yes" >&6; }
18605
18606fi
18607    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18608fi
18609 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18610  XSERVER_LIBPCIACCESS_TRUE=
18611  XSERVER_LIBPCIACCESS_FALSE='#'
18612else
18613  XSERVER_LIBPCIACCESS_TRUE='#'
18614  XSERVER_LIBPCIACCESS_FALSE=
18615fi
18616
18617
18618# Checks for headers/macros for byte swapping
18619# Known variants:
18620#	<byteswap.h> bswap_16, bswap_32, bswap_64  (glibc)
18621#	<sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
18622#	<sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
18623#	and a fallback to local macros if none of the above are found
18624
18625# if <byteswap.h> is found, assume it's the correct version
18626for ac_header in byteswap.h
18627do :
18628  ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
18629if test "x$ac_cv_header_byteswap_h" = xyes; then :
18630  cat >>confdefs.h <<_ACEOF
18631#define HAVE_BYTESWAP_H 1
18632_ACEOF
18633
18634fi
18635
18636done
18637
18638
18639# if <sys/endian.h> is found, have to check which version
18640ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
18641if test "x$ac_cv_header_sys_endian_h" = xyes; then :
18642  HAVE_SYS_ENDIAN_H="yes"
18643else
18644  HAVE_SYS_ENDIAN_H="no"
18645fi
18646
18647
18648
18649if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
18650	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
18651$as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
18652	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18653/* end confdefs.h.  */
18654
18655#include <sys/types.h>
18656#include <sys/endian.h>
18657
18658int
18659main ()
18660{
18661
18662int a = 1, b;
18663b = __swap16(a);
18664
18665  ;
18666  return 0;
18667}
18668
18669_ACEOF
18670if ac_fn_c_try_link "$LINENO"; then :
18671  SYS_ENDIAN__SWAP='yes'
18672else
18673  SYS_ENDIAN__SWAP='no'
18674fi
18675rm -f core conftest.err conftest.$ac_objext \
18676    conftest$ac_exeext conftest.$ac_ext
18677	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5
18678$as_echo "$SYS_ENDIAN__SWAP" >&6; }
18679
18680	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
18681$as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
18682	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18683/* end confdefs.h.  */
18684
18685#include <sys/types.h>
18686#include <sys/endian.h>
18687
18688int
18689main ()
18690{
18691
18692int a = 1, b;
18693b = bswap16(a);
18694
18695  ;
18696  return 0;
18697}
18698
18699_ACEOF
18700if ac_fn_c_try_link "$LINENO"; then :
18701  SYS_ENDIAN_BSWAP='yes'
18702else
18703  SYS_ENDIAN_BSWAP='no'
18704fi
18705rm -f core conftest.err conftest.$ac_objext \
18706    conftest$ac_exeext conftest.$ac_ext
18707	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5
18708$as_echo "$SYS_ENDIAN_BSWAP" >&6; }
18709
18710	if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
18711		USE_SYS_ENDIAN_H=yes
18712		BSWAP=bswap
18713	else
18714		if test "$SYS_ENDIAN__SWAP" = "yes" ; then
18715			USE_SYS_ENDIAN_H=yes
18716			BSWAP=__swap
18717		else
18718			USE_SYS_ENDIAN_H=no
18719		fi
18720	fi
18721
18722	if test "$USE_SYS_ENDIAN_H" = "yes" ; then
18723
18724$as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h
18725
18726
18727cat >>confdefs.h <<_ACEOF
18728#define bswap_16 ${BSWAP}16
18729_ACEOF
18730
18731
18732cat >>confdefs.h <<_ACEOF
18733#define bswap_32 ${BSWAP}32
18734_ACEOF
18735
18736
18737cat >>confdefs.h <<_ACEOF
18738#define bswap_64 ${BSWAP}64
18739_ACEOF
18740
18741	fi
18742fi
18743
18744
18745
18746DRIVER_NAME=r128
18747
18748
18749{ $as_echo "$as_me:${as_lineno-$LINENO}: Please change the Driver line in xorg.conf from \"ati\" to \"r128\" or install
18750the ati wrapper as well:
18751    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
18752" >&5
18753$as_echo "$as_me: Please change the Driver line in xorg.conf from \"ati\" to \"r128\" or install
18754the ati wrapper as well:
18755    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
18756" >&6;}
18757
18758ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18759
18760cat >confcache <<\_ACEOF
18761# This file is a shell script that caches the results of configure
18762# tests run on this system so they can be shared between configure
18763# scripts and configure runs, see configure's option --config-cache.
18764# It is not useful on other systems.  If it contains results you don't
18765# want to keep, you may remove or edit it.
18766#
18767# config.status only pays attention to the cache file if you give it
18768# the --recheck option to rerun configure.
18769#
18770# `ac_cv_env_foo' variables (set or unset) will be overridden when
18771# loading this file, other *unset* `ac_cv_foo' will be assigned the
18772# following values.
18773
18774_ACEOF
18775
18776# The following way of writing the cache mishandles newlines in values,
18777# but we know of no workaround that is simple, portable, and efficient.
18778# So, we kill variables containing newlines.
18779# Ultrix sh set writes to stderr and can't be redirected directly,
18780# and sets the high bit in the cache file unless we assign to the vars.
18781(
18782  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18783    eval ac_val=\$$ac_var
18784    case $ac_val in #(
18785    *${as_nl}*)
18786      case $ac_var in #(
18787      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18788$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18789      esac
18790      case $ac_var in #(
18791      _ | IFS | as_nl) ;; #(
18792      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18793      *) { eval $ac_var=; unset $ac_var;} ;;
18794      esac ;;
18795    esac
18796  done
18797
18798  (set) 2>&1 |
18799    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18800    *${as_nl}ac_space=\ *)
18801      # `set' does not quote correctly, so add quotes: double-quote
18802      # substitution turns \\\\ into \\, and sed turns \\ into \.
18803      sed -n \
18804	"s/'/'\\\\''/g;
18805	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18806      ;; #(
18807    *)
18808      # `set' quotes correctly as required by POSIX, so do not add quotes.
18809      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18810      ;;
18811    esac |
18812    sort
18813) |
18814  sed '
18815     /^ac_cv_env_/b end
18816     t clear
18817     :clear
18818     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18819     t end
18820     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18821     :end' >>confcache
18822if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18823  if test -w "$cache_file"; then
18824    if test "x$cache_file" != "x/dev/null"; then
18825      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18826$as_echo "$as_me: updating cache $cache_file" >&6;}
18827      if test ! -f "$cache_file" || test -h "$cache_file"; then
18828	cat confcache >"$cache_file"
18829      else
18830        case $cache_file in #(
18831        */* | ?:*)
18832	  mv -f confcache "$cache_file"$$ &&
18833	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18834        *)
18835	  mv -f confcache "$cache_file" ;;
18836	esac
18837      fi
18838    fi
18839  else
18840    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18841$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18842  fi
18843fi
18844rm -f confcache
18845
18846test "x$prefix" = xNONE && prefix=$ac_default_prefix
18847# Let make expand exec_prefix.
18848test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18849
18850DEFS=-DHAVE_CONFIG_H
18851
18852ac_libobjs=
18853ac_ltlibobjs=
18854U=
18855for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18856  # 1. Remove the extension, and $U if already installed.
18857  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18858  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18859  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18860  #    will be set to the directory where LIBOBJS objects are built.
18861  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18862  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18863done
18864LIBOBJS=$ac_libobjs
18865
18866LTLIBOBJS=$ac_ltlibobjs
18867
18868
18869 if test -n "$EXEEXT"; then
18870  am__EXEEXT_TRUE=
18871  am__EXEEXT_FALSE='#'
18872else
18873  am__EXEEXT_TRUE='#'
18874  am__EXEEXT_FALSE=
18875fi
18876
18877if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18878  as_fn_error $? "conditional \"AMDEP\" was never defined.
18879Usually this means the macro was only invoked conditionally." "$LINENO" 5
18880fi
18881if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18882  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18883Usually this means the macro was only invoked conditionally." "$LINENO" 5
18884fi
18885if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18886  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18887Usually this means the macro was only invoked conditionally." "$LINENO" 5
18888fi
18889if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
18890  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
18891Usually this means the macro was only invoked conditionally." "$LINENO" 5
18892fi
18893if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
18894  as_fn_error $? "conditional \"DRI\" was never defined.
18895Usually this means the macro was only invoked conditionally." "$LINENO" 5
18896fi
18897if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
18898  as_fn_error $? "conditional \"XAA\" was never defined.
18899Usually this means the macro was only invoked conditionally." "$LINENO" 5
18900fi
18901if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
18902  as_fn_error $? "conditional \"USE_EXA\" was never defined.
18903Usually this means the macro was only invoked conditionally." "$LINENO" 5
18904fi
18905if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18906  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18907Usually this means the macro was only invoked conditionally." "$LINENO" 5
18908fi
18909
18910: "${CONFIG_STATUS=./config.status}"
18911ac_write_fail=0
18912ac_clean_files_save=$ac_clean_files
18913ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18914{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18915$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18916as_write_fail=0
18917cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18918#! $SHELL
18919# Generated by $as_me.
18920# Run this file to recreate the current configuration.
18921# Compiler output produced by configure, useful for debugging
18922# configure, is in config.log if it exists.
18923
18924debug=false
18925ac_cs_recheck=false
18926ac_cs_silent=false
18927
18928SHELL=\${CONFIG_SHELL-$SHELL}
18929export SHELL
18930_ASEOF
18931cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18932## -------------------- ##
18933## M4sh Initialization. ##
18934## -------------------- ##
18935
18936# Be more Bourne compatible
18937DUALCASE=1; export DUALCASE # for MKS sh
18938if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18939  emulate sh
18940  NULLCMD=:
18941  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18942  # is contrary to our usage.  Disable this feature.
18943  alias -g '${1+"$@"}'='"$@"'
18944  setopt NO_GLOB_SUBST
18945else
18946  case `(set -o) 2>/dev/null` in #(
18947  *posix*) :
18948    set -o posix ;; #(
18949  *) :
18950     ;;
18951esac
18952fi
18953
18954
18955as_nl='
18956'
18957export as_nl
18958# Printing a long string crashes Solaris 7 /usr/bin/printf.
18959as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18960as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18961as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18962# Prefer a ksh shell builtin over an external printf program on Solaris,
18963# but without wasting forks for bash or zsh.
18964if test -z "$BASH_VERSION$ZSH_VERSION" \
18965    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18966  as_echo='print -r --'
18967  as_echo_n='print -rn --'
18968elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18969  as_echo='printf %s\n'
18970  as_echo_n='printf %s'
18971else
18972  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18973    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18974    as_echo_n='/usr/ucb/echo -n'
18975  else
18976    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18977    as_echo_n_body='eval
18978      arg=$1;
18979      case $arg in #(
18980      *"$as_nl"*)
18981	expr "X$arg" : "X\\(.*\\)$as_nl";
18982	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18983      esac;
18984      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18985    '
18986    export as_echo_n_body
18987    as_echo_n='sh -c $as_echo_n_body as_echo'
18988  fi
18989  export as_echo_body
18990  as_echo='sh -c $as_echo_body as_echo'
18991fi
18992
18993# The user is always right.
18994if test "${PATH_SEPARATOR+set}" != set; then
18995  PATH_SEPARATOR=:
18996  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18997    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18998      PATH_SEPARATOR=';'
18999  }
19000fi
19001
19002
19003# IFS
19004# We need space, tab and new line, in precisely that order.  Quoting is
19005# there to prevent editors from complaining about space-tab.
19006# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19007# splitting by setting IFS to empty value.)
19008IFS=" ""	$as_nl"
19009
19010# Find who we are.  Look in the path if we contain no directory separator.
19011as_myself=
19012case $0 in #((
19013  *[\\/]* ) as_myself=$0 ;;
19014  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19015for as_dir in $PATH
19016do
19017  IFS=$as_save_IFS
19018  test -z "$as_dir" && as_dir=.
19019    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19020  done
19021IFS=$as_save_IFS
19022
19023     ;;
19024esac
19025# We did not find ourselves, most probably we were run as `sh COMMAND'
19026# in which case we are not to be found in the path.
19027if test "x$as_myself" = x; then
19028  as_myself=$0
19029fi
19030if test ! -f "$as_myself"; then
19031  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19032  exit 1
19033fi
19034
19035# Unset variables that we do not need and which cause bugs (e.g. in
19036# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19037# suppresses any "Segmentation fault" message there.  '((' could
19038# trigger a bug in pdksh 5.2.14.
19039for as_var in BASH_ENV ENV MAIL MAILPATH
19040do eval test x\${$as_var+set} = xset \
19041  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19042done
19043PS1='$ '
19044PS2='> '
19045PS4='+ '
19046
19047# NLS nuisances.
19048LC_ALL=C
19049export LC_ALL
19050LANGUAGE=C
19051export LANGUAGE
19052
19053# CDPATH.
19054(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19055
19056
19057# as_fn_error STATUS ERROR [LINENO LOG_FD]
19058# ----------------------------------------
19059# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19060# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19061# script with STATUS, using 1 if that was 0.
19062as_fn_error ()
19063{
19064  as_status=$1; test $as_status -eq 0 && as_status=1
19065  if test "$4"; then
19066    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19067    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19068  fi
19069  $as_echo "$as_me: error: $2" >&2
19070  as_fn_exit $as_status
19071} # as_fn_error
19072
19073
19074# as_fn_set_status STATUS
19075# -----------------------
19076# Set $? to STATUS, without forking.
19077as_fn_set_status ()
19078{
19079  return $1
19080} # as_fn_set_status
19081
19082# as_fn_exit STATUS
19083# -----------------
19084# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19085as_fn_exit ()
19086{
19087  set +e
19088  as_fn_set_status $1
19089  exit $1
19090} # as_fn_exit
19091
19092# as_fn_unset VAR
19093# ---------------
19094# Portably unset VAR.
19095as_fn_unset ()
19096{
19097  { eval $1=; unset $1;}
19098}
19099as_unset=as_fn_unset
19100# as_fn_append VAR VALUE
19101# ----------------------
19102# Append the text in VALUE to the end of the definition contained in VAR. Take
19103# advantage of any shell optimizations that allow amortized linear growth over
19104# repeated appends, instead of the typical quadratic growth present in naive
19105# implementations.
19106if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19107  eval 'as_fn_append ()
19108  {
19109    eval $1+=\$2
19110  }'
19111else
19112  as_fn_append ()
19113  {
19114    eval $1=\$$1\$2
19115  }
19116fi # as_fn_append
19117
19118# as_fn_arith ARG...
19119# ------------------
19120# Perform arithmetic evaluation on the ARGs, and store the result in the
19121# global $as_val. Take advantage of shells that can avoid forks. The arguments
19122# must be portable across $(()) and expr.
19123if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19124  eval 'as_fn_arith ()
19125  {
19126    as_val=$(( $* ))
19127  }'
19128else
19129  as_fn_arith ()
19130  {
19131    as_val=`expr "$@" || test $? -eq 1`
19132  }
19133fi # as_fn_arith
19134
19135
19136if expr a : '\(a\)' >/dev/null 2>&1 &&
19137   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19138  as_expr=expr
19139else
19140  as_expr=false
19141fi
19142
19143if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19144  as_basename=basename
19145else
19146  as_basename=false
19147fi
19148
19149if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19150  as_dirname=dirname
19151else
19152  as_dirname=false
19153fi
19154
19155as_me=`$as_basename -- "$0" ||
19156$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19157	 X"$0" : 'X\(//\)$' \| \
19158	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19159$as_echo X/"$0" |
19160    sed '/^.*\/\([^/][^/]*\)\/*$/{
19161	    s//\1/
19162	    q
19163	  }
19164	  /^X\/\(\/\/\)$/{
19165	    s//\1/
19166	    q
19167	  }
19168	  /^X\/\(\/\).*/{
19169	    s//\1/
19170	    q
19171	  }
19172	  s/.*/./; q'`
19173
19174# Avoid depending upon Character Ranges.
19175as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19176as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19177as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19178as_cr_digits='0123456789'
19179as_cr_alnum=$as_cr_Letters$as_cr_digits
19180
19181ECHO_C= ECHO_N= ECHO_T=
19182case `echo -n x` in #(((((
19183-n*)
19184  case `echo 'xy\c'` in
19185  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19186  xy)  ECHO_C='\c';;
19187  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19188       ECHO_T='	';;
19189  esac;;
19190*)
19191  ECHO_N='-n';;
19192esac
19193
19194rm -f conf$$ conf$$.exe conf$$.file
19195if test -d conf$$.dir; then
19196  rm -f conf$$.dir/conf$$.file
19197else
19198  rm -f conf$$.dir
19199  mkdir conf$$.dir 2>/dev/null
19200fi
19201if (echo >conf$$.file) 2>/dev/null; then
19202  if ln -s conf$$.file conf$$ 2>/dev/null; then
19203    as_ln_s='ln -s'
19204    # ... but there are two gotchas:
19205    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19206    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19207    # In both cases, we have to default to `cp -pR'.
19208    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19209      as_ln_s='cp -pR'
19210  elif ln conf$$.file conf$$ 2>/dev/null; then
19211    as_ln_s=ln
19212  else
19213    as_ln_s='cp -pR'
19214  fi
19215else
19216  as_ln_s='cp -pR'
19217fi
19218rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19219rmdir conf$$.dir 2>/dev/null
19220
19221
19222# as_fn_mkdir_p
19223# -------------
19224# Create "$as_dir" as a directory, including parents if necessary.
19225as_fn_mkdir_p ()
19226{
19227
19228  case $as_dir in #(
19229  -*) as_dir=./$as_dir;;
19230  esac
19231  test -d "$as_dir" || eval $as_mkdir_p || {
19232    as_dirs=
19233    while :; do
19234      case $as_dir in #(
19235      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19236      *) as_qdir=$as_dir;;
19237      esac
19238      as_dirs="'$as_qdir' $as_dirs"
19239      as_dir=`$as_dirname -- "$as_dir" ||
19240$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19241	 X"$as_dir" : 'X\(//\)[^/]' \| \
19242	 X"$as_dir" : 'X\(//\)$' \| \
19243	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19244$as_echo X"$as_dir" |
19245    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19246	    s//\1/
19247	    q
19248	  }
19249	  /^X\(\/\/\)[^/].*/{
19250	    s//\1/
19251	    q
19252	  }
19253	  /^X\(\/\/\)$/{
19254	    s//\1/
19255	    q
19256	  }
19257	  /^X\(\/\).*/{
19258	    s//\1/
19259	    q
19260	  }
19261	  s/.*/./; q'`
19262      test -d "$as_dir" && break
19263    done
19264    test -z "$as_dirs" || eval "mkdir $as_dirs"
19265  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19266
19267
19268} # as_fn_mkdir_p
19269if mkdir -p . 2>/dev/null; then
19270  as_mkdir_p='mkdir -p "$as_dir"'
19271else
19272  test -d ./-p && rmdir ./-p
19273  as_mkdir_p=false
19274fi
19275
19276
19277# as_fn_executable_p FILE
19278# -----------------------
19279# Test if FILE is an executable regular file.
19280as_fn_executable_p ()
19281{
19282  test -f "$1" && test -x "$1"
19283} # as_fn_executable_p
19284as_test_x='test -x'
19285as_executable_p=as_fn_executable_p
19286
19287# Sed expression to map a string onto a valid CPP name.
19288as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19289
19290# Sed expression to map a string onto a valid variable name.
19291as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19292
19293
19294exec 6>&1
19295## ----------------------------------- ##
19296## Main body of $CONFIG_STATUS script. ##
19297## ----------------------------------- ##
19298_ASEOF
19299test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19300
19301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19302# Save the log message, to keep $0 and so on meaningful, and to
19303# report actual input values of CONFIG_FILES etc. instead of their
19304# values after options handling.
19305ac_log="
19306This file was extended by xf86-video-r128 $as_me 6.9.2, which was
19307generated by GNU Autoconf 2.69.  Invocation command line was
19308
19309  CONFIG_FILES    = $CONFIG_FILES
19310  CONFIG_HEADERS  = $CONFIG_HEADERS
19311  CONFIG_LINKS    = $CONFIG_LINKS
19312  CONFIG_COMMANDS = $CONFIG_COMMANDS
19313  $ $0 $@
19314
19315on `(hostname || uname -n) 2>/dev/null | sed 1q`
19316"
19317
19318_ACEOF
19319
19320case $ac_config_files in *"
19321"*) set x $ac_config_files; shift; ac_config_files=$*;;
19322esac
19323
19324case $ac_config_headers in *"
19325"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19326esac
19327
19328
19329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19330# Files that config.status was made for.
19331config_files="$ac_config_files"
19332config_headers="$ac_config_headers"
19333config_commands="$ac_config_commands"
19334
19335_ACEOF
19336
19337cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19338ac_cs_usage="\
19339\`$as_me' instantiates files and other configuration actions
19340from templates according to the current configuration.  Unless the files
19341and actions are specified as TAGs, all are instantiated by default.
19342
19343Usage: $0 [OPTION]... [TAG]...
19344
19345  -h, --help       print this help, then exit
19346  -V, --version    print version number and configuration settings, then exit
19347      --config     print configuration, then exit
19348  -q, --quiet, --silent
19349                   do not print progress messages
19350  -d, --debug      don't remove temporary files
19351      --recheck    update $as_me by reconfiguring in the same conditions
19352      --file=FILE[:TEMPLATE]
19353                   instantiate the configuration file FILE
19354      --header=FILE[:TEMPLATE]
19355                   instantiate the configuration header FILE
19356
19357Configuration files:
19358$config_files
19359
19360Configuration headers:
19361$config_headers
19362
19363Configuration commands:
19364$config_commands
19365
19366Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19367
19368_ACEOF
19369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19370ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19371ac_cs_version="\\
19372xf86-video-r128 config.status 6.9.2
19373configured by $0, generated by GNU Autoconf 2.69,
19374  with options \\"\$ac_cs_config\\"
19375
19376Copyright (C) 2012 Free Software Foundation, Inc.
19377This config.status script is free software; the Free Software Foundation
19378gives unlimited permission to copy, distribute and modify it."
19379
19380ac_pwd='$ac_pwd'
19381srcdir='$srcdir'
19382INSTALL='$INSTALL'
19383MKDIR_P='$MKDIR_P'
19384AWK='$AWK'
19385test -n "\$AWK" || AWK=awk
19386_ACEOF
19387
19388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19389# The default lists apply if the user does not specify any file.
19390ac_need_defaults=:
19391while test $# != 0
19392do
19393  case $1 in
19394  --*=?*)
19395    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19396    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19397    ac_shift=:
19398    ;;
19399  --*=)
19400    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19401    ac_optarg=
19402    ac_shift=:
19403    ;;
19404  *)
19405    ac_option=$1
19406    ac_optarg=$2
19407    ac_shift=shift
19408    ;;
19409  esac
19410
19411  case $ac_option in
19412  # Handling of the options.
19413  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19414    ac_cs_recheck=: ;;
19415  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19416    $as_echo "$ac_cs_version"; exit ;;
19417  --config | --confi | --conf | --con | --co | --c )
19418    $as_echo "$ac_cs_config"; exit ;;
19419  --debug | --debu | --deb | --de | --d | -d )
19420    debug=: ;;
19421  --file | --fil | --fi | --f )
19422    $ac_shift
19423    case $ac_optarg in
19424    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19425    '') as_fn_error $? "missing file argument" ;;
19426    esac
19427    as_fn_append CONFIG_FILES " '$ac_optarg'"
19428    ac_need_defaults=false;;
19429  --header | --heade | --head | --hea )
19430    $ac_shift
19431    case $ac_optarg in
19432    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19433    esac
19434    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19435    ac_need_defaults=false;;
19436  --he | --h)
19437    # Conflict between --help and --header
19438    as_fn_error $? "ambiguous option: \`$1'
19439Try \`$0 --help' for more information.";;
19440  --help | --hel | -h )
19441    $as_echo "$ac_cs_usage"; exit ;;
19442  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19443  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19444    ac_cs_silent=: ;;
19445
19446  # This is an error.
19447  -*) as_fn_error $? "unrecognized option: \`$1'
19448Try \`$0 --help' for more information." ;;
19449
19450  *) as_fn_append ac_config_targets " $1"
19451     ac_need_defaults=false ;;
19452
19453  esac
19454  shift
19455done
19456
19457ac_configure_extra_args=
19458
19459if $ac_cs_silent; then
19460  exec 6>/dev/null
19461  ac_configure_extra_args="$ac_configure_extra_args --silent"
19462fi
19463
19464_ACEOF
19465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19466if \$ac_cs_recheck; then
19467  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19468  shift
19469  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19470  CONFIG_SHELL='$SHELL'
19471  export CONFIG_SHELL
19472  exec "\$@"
19473fi
19474
19475_ACEOF
19476cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19477exec 5>>config.log
19478{
19479  echo
19480  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19481## Running $as_me. ##
19482_ASBOX
19483  $as_echo "$ac_log"
19484} >&5
19485
19486_ACEOF
19487cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19488#
19489# INIT-COMMANDS
19490#
19491AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19492
19493
19494# The HP-UX ksh and POSIX shell print the target directory to stdout
19495# if CDPATH is set.
19496(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19497
19498sed_quote_subst='$sed_quote_subst'
19499double_quote_subst='$double_quote_subst'
19500delay_variable_subst='$delay_variable_subst'
19501enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19502macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19503macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19504enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19505pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19506enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19507SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19508ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19509PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19510host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19511host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19512host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19513build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19514build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19515build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19516SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19517Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19518GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19519EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19520FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19521LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19522NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19523LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19524max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19525ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19526exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19527lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19528lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19529lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19530lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19531lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19532reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19533reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19534OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19535deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19536file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19537file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19538want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19539DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19540sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19541AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19542AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19543archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19544STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19545RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19546old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19547old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19548old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19549lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19550CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19551CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19552compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19553GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19554lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19555lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19556lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19557lt_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"`'
19558nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19559lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19560objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19561MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19562lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19563lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19564lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19565lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19566lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19567need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19568MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19569DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19570NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19571LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19572OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19573OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19574libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19575shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19576extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19577archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19578enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19579export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19580whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19581compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19582old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19583old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19584archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19585archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19586module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19587module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19588with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19589allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19590no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19591hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19592hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19593hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19594hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19595hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19596hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19597hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19598inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19599link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19600always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19601export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19602exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19603include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19604prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19605postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19606file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19607variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19608need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19609need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19610version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19611runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19612shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19613shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19614libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19615library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19616soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19617install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19618postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19619postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19620finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19621finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19622hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19623sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19624sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19625hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19626enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19627enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19628enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19629old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19630striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19631
19632LTCC='$LTCC'
19633LTCFLAGS='$LTCFLAGS'
19634compiler='$compiler_DEFAULT'
19635
19636# A function that is used when there is no print builtin or printf.
19637func_fallback_echo ()
19638{
19639  eval 'cat <<_LTECHO_EOF
19640\$1
19641_LTECHO_EOF'
19642}
19643
19644# Quote evaled strings.
19645for var in SHELL \
19646ECHO \
19647PATH_SEPARATOR \
19648SED \
19649GREP \
19650EGREP \
19651FGREP \
19652LD \
19653NM \
19654LN_S \
19655lt_SP2NL \
19656lt_NL2SP \
19657reload_flag \
19658OBJDUMP \
19659deplibs_check_method \
19660file_magic_cmd \
19661file_magic_glob \
19662want_nocaseglob \
19663DLLTOOL \
19664sharedlib_from_linklib_cmd \
19665AR \
19666AR_FLAGS \
19667archiver_list_spec \
19668STRIP \
19669RANLIB \
19670CC \
19671CFLAGS \
19672compiler \
19673lt_cv_sys_global_symbol_pipe \
19674lt_cv_sys_global_symbol_to_cdecl \
19675lt_cv_sys_global_symbol_to_c_name_address \
19676lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19677nm_file_list_spec \
19678lt_prog_compiler_no_builtin_flag \
19679lt_prog_compiler_pic \
19680lt_prog_compiler_wl \
19681lt_prog_compiler_static \
19682lt_cv_prog_compiler_c_o \
19683need_locks \
19684MANIFEST_TOOL \
19685DSYMUTIL \
19686NMEDIT \
19687LIPO \
19688OTOOL \
19689OTOOL64 \
19690shrext_cmds \
19691export_dynamic_flag_spec \
19692whole_archive_flag_spec \
19693compiler_needs_object \
19694with_gnu_ld \
19695allow_undefined_flag \
19696no_undefined_flag \
19697hardcode_libdir_flag_spec \
19698hardcode_libdir_separator \
19699exclude_expsyms \
19700include_expsyms \
19701file_list_spec \
19702variables_saved_for_relink \
19703libname_spec \
19704library_names_spec \
19705soname_spec \
19706install_override_mode \
19707finish_eval \
19708old_striplib \
19709striplib; do
19710    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19711    *[\\\\\\\`\\"\\\$]*)
19712      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19713      ;;
19714    *)
19715      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19716      ;;
19717    esac
19718done
19719
19720# Double-quote double-evaled strings.
19721for var in reload_cmds \
19722old_postinstall_cmds \
19723old_postuninstall_cmds \
19724old_archive_cmds \
19725extract_expsyms_cmds \
19726old_archive_from_new_cmds \
19727old_archive_from_expsyms_cmds \
19728archive_cmds \
19729archive_expsym_cmds \
19730module_cmds \
19731module_expsym_cmds \
19732export_symbols_cmds \
19733prelink_cmds \
19734postlink_cmds \
19735postinstall_cmds \
19736postuninstall_cmds \
19737finish_cmds \
19738sys_lib_search_path_spec \
19739sys_lib_dlsearch_path_spec; do
19740    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19741    *[\\\\\\\`\\"\\\$]*)
19742      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19743      ;;
19744    *)
19745      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19746      ;;
19747    esac
19748done
19749
19750ac_aux_dir='$ac_aux_dir'
19751xsi_shell='$xsi_shell'
19752lt_shell_append='$lt_shell_append'
19753
19754# See if we are running on zsh, and set the options which allow our
19755# commands through without removal of \ escapes INIT.
19756if test -n "\${ZSH_VERSION+set}" ; then
19757   setopt NO_GLOB_SUBST
19758fi
19759
19760
19761    PACKAGE='$PACKAGE'
19762    VERSION='$VERSION'
19763    TIMESTAMP='$TIMESTAMP'
19764    RM='$RM'
19765    ofile='$ofile'
19766
19767
19768
19769
19770_ACEOF
19771
19772cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19773
19774# Handling of arguments.
19775for ac_config_target in $ac_config_targets
19776do
19777  case $ac_config_target in
19778    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19779    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19780    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19781    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19782    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19783    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19784
19785  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19786  esac
19787done
19788
19789
19790# If the user did not use the arguments to specify the items to instantiate,
19791# then the envvar interface is used.  Set only those that are not.
19792# We use the long form for the default assignment because of an extremely
19793# bizarre bug on SunOS 4.1.3.
19794if $ac_need_defaults; then
19795  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19796  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19797  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19798fi
19799
19800# Have a temporary directory for convenience.  Make it in the build tree
19801# simply because there is no reason against having it here, and in addition,
19802# creating and moving files from /tmp can sometimes cause problems.
19803# Hook for its removal unless debugging.
19804# Note that there is a small window in which the directory will not be cleaned:
19805# after its creation but before its name has been assigned to `$tmp'.
19806$debug ||
19807{
19808  tmp= ac_tmp=
19809  trap 'exit_status=$?
19810  : "${ac_tmp:=$tmp}"
19811  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19812' 0
19813  trap 'as_fn_exit 1' 1 2 13 15
19814}
19815# Create a (secure) tmp directory for tmp files.
19816
19817{
19818  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19819  test -d "$tmp"
19820}  ||
19821{
19822  tmp=./conf$$-$RANDOM
19823  (umask 077 && mkdir "$tmp")
19824} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19825ac_tmp=$tmp
19826
19827# Set up the scripts for CONFIG_FILES section.
19828# No need to generate them if there are no CONFIG_FILES.
19829# This happens for instance with `./config.status config.h'.
19830if test -n "$CONFIG_FILES"; then
19831
19832
19833ac_cr=`echo X | tr X '\015'`
19834# On cygwin, bash can eat \r inside `` if the user requested igncr.
19835# But we know of no other shell where ac_cr would be empty at this
19836# point, so we can use a bashism as a fallback.
19837if test "x$ac_cr" = x; then
19838  eval ac_cr=\$\'\\r\'
19839fi
19840ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19841if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19842  ac_cs_awk_cr='\\r'
19843else
19844  ac_cs_awk_cr=$ac_cr
19845fi
19846
19847echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19848_ACEOF
19849
19850
19851{
19852  echo "cat >conf$$subs.awk <<_ACEOF" &&
19853  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19854  echo "_ACEOF"
19855} >conf$$subs.sh ||
19856  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19857ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19858ac_delim='%!_!# '
19859for ac_last_try in false false false false false :; do
19860  . ./conf$$subs.sh ||
19861    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19862
19863  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19864  if test $ac_delim_n = $ac_delim_num; then
19865    break
19866  elif $ac_last_try; then
19867    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19868  else
19869    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19870  fi
19871done
19872rm -f conf$$subs.sh
19873
19874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19875cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19876_ACEOF
19877sed -n '
19878h
19879s/^/S["/; s/!.*/"]=/
19880p
19881g
19882s/^[^!]*!//
19883:repl
19884t repl
19885s/'"$ac_delim"'$//
19886t delim
19887:nl
19888h
19889s/\(.\{148\}\)..*/\1/
19890t more1
19891s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19892p
19893n
19894b repl
19895:more1
19896s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19897p
19898g
19899s/.\{148\}//
19900t nl
19901:delim
19902h
19903s/\(.\{148\}\)..*/\1/
19904t more2
19905s/["\\]/\\&/g; s/^/"/; s/$/"/
19906p
19907b
19908:more2
19909s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19910p
19911g
19912s/.\{148\}//
19913t delim
19914' <conf$$subs.awk | sed '
19915/^[^""]/{
19916  N
19917  s/\n//
19918}
19919' >>$CONFIG_STATUS || ac_write_fail=1
19920rm -f conf$$subs.awk
19921cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19922_ACAWK
19923cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19924  for (key in S) S_is_set[key] = 1
19925  FS = ""
19926
19927}
19928{
19929  line = $ 0
19930  nfields = split(line, field, "@")
19931  substed = 0
19932  len = length(field[1])
19933  for (i = 2; i < nfields; i++) {
19934    key = field[i]
19935    keylen = length(key)
19936    if (S_is_set[key]) {
19937      value = S[key]
19938      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19939      len += length(value) + length(field[++i])
19940      substed = 1
19941    } else
19942      len += 1 + keylen
19943  }
19944
19945  print line
19946}
19947
19948_ACAWK
19949_ACEOF
19950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19951if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19952  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19953else
19954  cat
19955fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19956  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19957_ACEOF
19958
19959# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19960# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19961# trailing colons and then remove the whole line if VPATH becomes empty
19962# (actually we leave an empty line to preserve line numbers).
19963if test "x$srcdir" = x.; then
19964  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19965h
19966s///
19967s/^/:/
19968s/[	 ]*$/:/
19969s/:\$(srcdir):/:/g
19970s/:\${srcdir}:/:/g
19971s/:@srcdir@:/:/g
19972s/^:*//
19973s/:*$//
19974x
19975s/\(=[	 ]*\).*/\1/
19976G
19977s/\n//
19978s/^[^=]*=[	 ]*$//
19979}'
19980fi
19981
19982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19983fi # test -n "$CONFIG_FILES"
19984
19985# Set up the scripts for CONFIG_HEADERS section.
19986# No need to generate them if there are no CONFIG_HEADERS.
19987# This happens for instance with `./config.status Makefile'.
19988if test -n "$CONFIG_HEADERS"; then
19989cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19990BEGIN {
19991_ACEOF
19992
19993# Transform confdefs.h into an awk script `defines.awk', embedded as
19994# here-document in config.status, that substitutes the proper values into
19995# config.h.in to produce config.h.
19996
19997# Create a delimiter string that does not exist in confdefs.h, to ease
19998# handling of long lines.
19999ac_delim='%!_!# '
20000for ac_last_try in false false :; do
20001  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20002  if test -z "$ac_tt"; then
20003    break
20004  elif $ac_last_try; then
20005    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20006  else
20007    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20008  fi
20009done
20010
20011# For the awk script, D is an array of macro values keyed by name,
20012# likewise P contains macro parameters if any.  Preserve backslash
20013# newline sequences.
20014
20015ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20016sed -n '
20017s/.\{148\}/&'"$ac_delim"'/g
20018t rset
20019:rset
20020s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20021t def
20022d
20023:def
20024s/\\$//
20025t bsnl
20026s/["\\]/\\&/g
20027s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20028D["\1"]=" \3"/p
20029s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20030d
20031:bsnl
20032s/["\\]/\\&/g
20033s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20034D["\1"]=" \3\\\\\\n"\\/p
20035t cont
20036s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20037t cont
20038d
20039:cont
20040n
20041s/.\{148\}/&'"$ac_delim"'/g
20042t clear
20043:clear
20044s/\\$//
20045t bsnlc
20046s/["\\]/\\&/g; s/^/"/; s/$/"/p
20047d
20048:bsnlc
20049s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20050b cont
20051' <confdefs.h | sed '
20052s/'"$ac_delim"'/"\\\
20053"/g' >>$CONFIG_STATUS || ac_write_fail=1
20054
20055cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20056  for (key in D) D_is_set[key] = 1
20057  FS = ""
20058}
20059/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20060  line = \$ 0
20061  split(line, arg, " ")
20062  if (arg[1] == "#") {
20063    defundef = arg[2]
20064    mac1 = arg[3]
20065  } else {
20066    defundef = substr(arg[1], 2)
20067    mac1 = arg[2]
20068  }
20069  split(mac1, mac2, "(") #)
20070  macro = mac2[1]
20071  prefix = substr(line, 1, index(line, defundef) - 1)
20072  if (D_is_set[macro]) {
20073    # Preserve the white space surrounding the "#".
20074    print prefix "define", macro P[macro] D[macro]
20075    next
20076  } else {
20077    # Replace #undef with comments.  This is necessary, for example,
20078    # in the case of _POSIX_SOURCE, which is predefined and required
20079    # on some systems where configure will not decide to define it.
20080    if (defundef == "undef") {
20081      print "/*", prefix defundef, macro, "*/"
20082      next
20083    }
20084  }
20085}
20086{ print }
20087_ACAWK
20088_ACEOF
20089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20090  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20091fi # test -n "$CONFIG_HEADERS"
20092
20093
20094eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20095shift
20096for ac_tag
20097do
20098  case $ac_tag in
20099  :[FHLC]) ac_mode=$ac_tag; continue;;
20100  esac
20101  case $ac_mode$ac_tag in
20102  :[FHL]*:*);;
20103  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20104  :[FH]-) ac_tag=-:-;;
20105  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20106  esac
20107  ac_save_IFS=$IFS
20108  IFS=:
20109  set x $ac_tag
20110  IFS=$ac_save_IFS
20111  shift
20112  ac_file=$1
20113  shift
20114
20115  case $ac_mode in
20116  :L) ac_source=$1;;
20117  :[FH])
20118    ac_file_inputs=
20119    for ac_f
20120    do
20121      case $ac_f in
20122      -) ac_f="$ac_tmp/stdin";;
20123      *) # Look for the file first in the build tree, then in the source tree
20124	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20125	 # because $ac_f cannot contain `:'.
20126	 test -f "$ac_f" ||
20127	   case $ac_f in
20128	   [\\/$]*) false;;
20129	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20130	   esac ||
20131	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20132      esac
20133      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20134      as_fn_append ac_file_inputs " '$ac_f'"
20135    done
20136
20137    # Let's still pretend it is `configure' which instantiates (i.e., don't
20138    # use $as_me), people would be surprised to read:
20139    #    /* config.h.  Generated by config.status.  */
20140    configure_input='Generated from '`
20141	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20142	`' by configure.'
20143    if test x"$ac_file" != x-; then
20144      configure_input="$ac_file.  $configure_input"
20145      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20146$as_echo "$as_me: creating $ac_file" >&6;}
20147    fi
20148    # Neutralize special characters interpreted by sed in replacement strings.
20149    case $configure_input in #(
20150    *\&* | *\|* | *\\* )
20151       ac_sed_conf_input=`$as_echo "$configure_input" |
20152       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20153    *) ac_sed_conf_input=$configure_input;;
20154    esac
20155
20156    case $ac_tag in
20157    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20158      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20159    esac
20160    ;;
20161  esac
20162
20163  ac_dir=`$as_dirname -- "$ac_file" ||
20164$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20165	 X"$ac_file" : 'X\(//\)[^/]' \| \
20166	 X"$ac_file" : 'X\(//\)$' \| \
20167	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20168$as_echo X"$ac_file" |
20169    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20170	    s//\1/
20171	    q
20172	  }
20173	  /^X\(\/\/\)[^/].*/{
20174	    s//\1/
20175	    q
20176	  }
20177	  /^X\(\/\/\)$/{
20178	    s//\1/
20179	    q
20180	  }
20181	  /^X\(\/\).*/{
20182	    s//\1/
20183	    q
20184	  }
20185	  s/.*/./; q'`
20186  as_dir="$ac_dir"; as_fn_mkdir_p
20187  ac_builddir=.
20188
20189case "$ac_dir" in
20190.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20191*)
20192  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20193  # A ".." for each directory in $ac_dir_suffix.
20194  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20195  case $ac_top_builddir_sub in
20196  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20197  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20198  esac ;;
20199esac
20200ac_abs_top_builddir=$ac_pwd
20201ac_abs_builddir=$ac_pwd$ac_dir_suffix
20202# for backward compatibility:
20203ac_top_builddir=$ac_top_build_prefix
20204
20205case $srcdir in
20206  .)  # We are building in place.
20207    ac_srcdir=.
20208    ac_top_srcdir=$ac_top_builddir_sub
20209    ac_abs_top_srcdir=$ac_pwd ;;
20210  [\\/]* | ?:[\\/]* )  # Absolute name.
20211    ac_srcdir=$srcdir$ac_dir_suffix;
20212    ac_top_srcdir=$srcdir
20213    ac_abs_top_srcdir=$srcdir ;;
20214  *) # Relative name.
20215    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20216    ac_top_srcdir=$ac_top_build_prefix$srcdir
20217    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20218esac
20219ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20220
20221
20222  case $ac_mode in
20223  :F)
20224  #
20225  # CONFIG_FILE
20226  #
20227
20228  case $INSTALL in
20229  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20230  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20231  esac
20232  ac_MKDIR_P=$MKDIR_P
20233  case $MKDIR_P in
20234  [\\/$]* | ?:[\\/]* ) ;;
20235  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20236  esac
20237_ACEOF
20238
20239cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20240# If the template does not know about datarootdir, expand it.
20241# FIXME: This hack should be removed a few years after 2.60.
20242ac_datarootdir_hack=; ac_datarootdir_seen=
20243ac_sed_dataroot='
20244/datarootdir/ {
20245  p
20246  q
20247}
20248/@datadir@/p
20249/@docdir@/p
20250/@infodir@/p
20251/@localedir@/p
20252/@mandir@/p'
20253case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20254*datarootdir*) ac_datarootdir_seen=yes;;
20255*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20256  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20257$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20258_ACEOF
20259cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20260  ac_datarootdir_hack='
20261  s&@datadir@&$datadir&g
20262  s&@docdir@&$docdir&g
20263  s&@infodir@&$infodir&g
20264  s&@localedir@&$localedir&g
20265  s&@mandir@&$mandir&g
20266  s&\\\${datarootdir}&$datarootdir&g' ;;
20267esac
20268_ACEOF
20269
20270# Neutralize VPATH when `$srcdir' = `.'.
20271# Shell code in configure.ac might set extrasub.
20272# FIXME: do we really want to maintain this feature?
20273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20274ac_sed_extra="$ac_vpsub
20275$extrasub
20276_ACEOF
20277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20278:t
20279/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20280s|@configure_input@|$ac_sed_conf_input|;t t
20281s&@top_builddir@&$ac_top_builddir_sub&;t t
20282s&@top_build_prefix@&$ac_top_build_prefix&;t t
20283s&@srcdir@&$ac_srcdir&;t t
20284s&@abs_srcdir@&$ac_abs_srcdir&;t t
20285s&@top_srcdir@&$ac_top_srcdir&;t t
20286s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20287s&@builddir@&$ac_builddir&;t t
20288s&@abs_builddir@&$ac_abs_builddir&;t t
20289s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20290s&@INSTALL@&$ac_INSTALL&;t t
20291s&@MKDIR_P@&$ac_MKDIR_P&;t t
20292$ac_datarootdir_hack
20293"
20294eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20295  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20296
20297test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20298  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20299  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20300      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20301  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20302which seems to be undefined.  Please make sure it is defined" >&5
20303$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20304which seems to be undefined.  Please make sure it is defined" >&2;}
20305
20306  rm -f "$ac_tmp/stdin"
20307  case $ac_file in
20308  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20309  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20310  esac \
20311  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20312 ;;
20313  :H)
20314  #
20315  # CONFIG_HEADER
20316  #
20317  if test x"$ac_file" != x-; then
20318    {
20319      $as_echo "/* $configure_input  */" \
20320      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20321    } >"$ac_tmp/config.h" \
20322      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20323    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20324      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20325$as_echo "$as_me: $ac_file is unchanged" >&6;}
20326    else
20327      rm -f "$ac_file"
20328      mv "$ac_tmp/config.h" "$ac_file" \
20329	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20330    fi
20331  else
20332    $as_echo "/* $configure_input  */" \
20333      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20334      || as_fn_error $? "could not create -" "$LINENO" 5
20335  fi
20336# Compute "$ac_file"'s index in $config_headers.
20337_am_arg="$ac_file"
20338_am_stamp_count=1
20339for _am_header in $config_headers :; do
20340  case $_am_header in
20341    $_am_arg | $_am_arg:* )
20342      break ;;
20343    * )
20344      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20345  esac
20346done
20347echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20348$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20349	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20350	 X"$_am_arg" : 'X\(//\)$' \| \
20351	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20352$as_echo X"$_am_arg" |
20353    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20354	    s//\1/
20355	    q
20356	  }
20357	  /^X\(\/\/\)[^/].*/{
20358	    s//\1/
20359	    q
20360	  }
20361	  /^X\(\/\/\)$/{
20362	    s//\1/
20363	    q
20364	  }
20365	  /^X\(\/\).*/{
20366	    s//\1/
20367	    q
20368	  }
20369	  s/.*/./; q'`/stamp-h$_am_stamp_count
20370 ;;
20371
20372  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20373$as_echo "$as_me: executing $ac_file commands" >&6;}
20374 ;;
20375  esac
20376
20377
20378  case $ac_file$ac_mode in
20379    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20380  # Autoconf 2.62 quotes --file arguments for eval, but not when files
20381  # are listed without --file.  Let's play safe and only enable the eval
20382  # if we detect the quoting.
20383  case $CONFIG_FILES in
20384  *\'*) eval set x "$CONFIG_FILES" ;;
20385  *)   set x $CONFIG_FILES ;;
20386  esac
20387  shift
20388  for mf
20389  do
20390    # Strip MF so we end up with the name of the file.
20391    mf=`echo "$mf" | sed -e 's/:.*$//'`
20392    # Check whether this is an Automake generated Makefile or not.
20393    # We used to match only the files named `Makefile.in', but
20394    # some people rename them; so instead we look at the file content.
20395    # Grep'ing the first line is not enough: some people post-process
20396    # each Makefile.in and add a new line on top of each file to say so.
20397    # Grep'ing the whole file is not good either: AIX grep has a line
20398    # limit of 2048, but all sed's we know have understand at least 4000.
20399    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20400      dirpart=`$as_dirname -- "$mf" ||
20401$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20402	 X"$mf" : 'X\(//\)[^/]' \| \
20403	 X"$mf" : 'X\(//\)$' \| \
20404	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20405$as_echo X"$mf" |
20406    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20407	    s//\1/
20408	    q
20409	  }
20410	  /^X\(\/\/\)[^/].*/{
20411	    s//\1/
20412	    q
20413	  }
20414	  /^X\(\/\/\)$/{
20415	    s//\1/
20416	    q
20417	  }
20418	  /^X\(\/\).*/{
20419	    s//\1/
20420	    q
20421	  }
20422	  s/.*/./; q'`
20423    else
20424      continue
20425    fi
20426    # Extract the definition of DEPDIR, am__include, and am__quote
20427    # from the Makefile without running `make'.
20428    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20429    test -z "$DEPDIR" && continue
20430    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20431    test -z "am__include" && continue
20432    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20433    # When using ansi2knr, U may be empty or an underscore; expand it
20434    U=`sed -n 's/^U = //p' < "$mf"`
20435    # Find all dependency output files, they are included files with
20436    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20437    # simplest approach to changing $(DEPDIR) to its actual value in the
20438    # expansion.
20439    for file in `sed -n "
20440      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20441	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20442      # Make sure the directory exists.
20443      test -f "$dirpart/$file" && continue
20444      fdir=`$as_dirname -- "$file" ||
20445$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20446	 X"$file" : 'X\(//\)[^/]' \| \
20447	 X"$file" : 'X\(//\)$' \| \
20448	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20449$as_echo X"$file" |
20450    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20451	    s//\1/
20452	    q
20453	  }
20454	  /^X\(\/\/\)[^/].*/{
20455	    s//\1/
20456	    q
20457	  }
20458	  /^X\(\/\/\)$/{
20459	    s//\1/
20460	    q
20461	  }
20462	  /^X\(\/\).*/{
20463	    s//\1/
20464	    q
20465	  }
20466	  s/.*/./; q'`
20467      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20468      # echo "creating $dirpart/$file"
20469      echo '# dummy' > "$dirpart/$file"
20470    done
20471  done
20472}
20473 ;;
20474    "libtool":C)
20475
20476    # See if we are running on zsh, and set the options which allow our
20477    # commands through without removal of \ escapes.
20478    if test -n "${ZSH_VERSION+set}" ; then
20479      setopt NO_GLOB_SUBST
20480    fi
20481
20482    cfgfile="${ofile}T"
20483    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20484    $RM "$cfgfile"
20485
20486    cat <<_LT_EOF >> "$cfgfile"
20487#! $SHELL
20488
20489# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20490# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20491# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20492# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20493#
20494#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20495#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20496#                 Foundation, Inc.
20497#   Written by Gordon Matzigkeit, 1996
20498#
20499#   This file is part of GNU Libtool.
20500#
20501# GNU Libtool is free software; you can redistribute it and/or
20502# modify it under the terms of the GNU General Public License as
20503# published by the Free Software Foundation; either version 2 of
20504# the License, or (at your option) any later version.
20505#
20506# As a special exception to the GNU General Public License,
20507# if you distribute this file as part of a program or library that
20508# is built using GNU Libtool, you may include this file under the
20509# same distribution terms that you use for the rest of that program.
20510#
20511# GNU Libtool is distributed in the hope that it will be useful,
20512# but WITHOUT ANY WARRANTY; without even the implied warranty of
20513# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20514# GNU General Public License for more details.
20515#
20516# You should have received a copy of the GNU General Public License
20517# along with GNU Libtool; see the file COPYING.  If not, a copy
20518# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20519# obtained by writing to the Free Software Foundation, Inc.,
20520# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20521
20522
20523# The names of the tagged configurations supported by this script.
20524available_tags=""
20525
20526# ### BEGIN LIBTOOL CONFIG
20527
20528# Whether or not to build static libraries.
20529build_old_libs=$enable_static
20530
20531# Which release of libtool.m4 was used?
20532macro_version=$macro_version
20533macro_revision=$macro_revision
20534
20535# Whether or not to build shared libraries.
20536build_libtool_libs=$enable_shared
20537
20538# What type of objects to build.
20539pic_mode=$pic_mode
20540
20541# Whether or not to optimize for fast installation.
20542fast_install=$enable_fast_install
20543
20544# Shell to use when invoking shell scripts.
20545SHELL=$lt_SHELL
20546
20547# An echo program that protects backslashes.
20548ECHO=$lt_ECHO
20549
20550# The PATH separator for the build system.
20551PATH_SEPARATOR=$lt_PATH_SEPARATOR
20552
20553# The host system.
20554host_alias=$host_alias
20555host=$host
20556host_os=$host_os
20557
20558# The build system.
20559build_alias=$build_alias
20560build=$build
20561build_os=$build_os
20562
20563# A sed program that does not truncate output.
20564SED=$lt_SED
20565
20566# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20567Xsed="\$SED -e 1s/^X//"
20568
20569# A grep program that handles long lines.
20570GREP=$lt_GREP
20571
20572# An ERE matcher.
20573EGREP=$lt_EGREP
20574
20575# A literal string matcher.
20576FGREP=$lt_FGREP
20577
20578# A BSD- or MS-compatible name lister.
20579NM=$lt_NM
20580
20581# Whether we need soft or hard links.
20582LN_S=$lt_LN_S
20583
20584# What is the maximum length of a command?
20585max_cmd_len=$max_cmd_len
20586
20587# Object file suffix (normally "o").
20588objext=$ac_objext
20589
20590# Executable file suffix (normally "").
20591exeext=$exeext
20592
20593# whether the shell understands "unset".
20594lt_unset=$lt_unset
20595
20596# turn spaces into newlines.
20597SP2NL=$lt_lt_SP2NL
20598
20599# turn newlines into spaces.
20600NL2SP=$lt_lt_NL2SP
20601
20602# convert \$build file names to \$host format.
20603to_host_file_cmd=$lt_cv_to_host_file_cmd
20604
20605# convert \$build files to toolchain format.
20606to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20607
20608# An object symbol dumper.
20609OBJDUMP=$lt_OBJDUMP
20610
20611# Method to check whether dependent libraries are shared objects.
20612deplibs_check_method=$lt_deplibs_check_method
20613
20614# Command to use when deplibs_check_method = "file_magic".
20615file_magic_cmd=$lt_file_magic_cmd
20616
20617# How to find potential files when deplibs_check_method = "file_magic".
20618file_magic_glob=$lt_file_magic_glob
20619
20620# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20621want_nocaseglob=$lt_want_nocaseglob
20622
20623# DLL creation program.
20624DLLTOOL=$lt_DLLTOOL
20625
20626# Command to associate shared and link libraries.
20627sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20628
20629# The archiver.
20630AR=$lt_AR
20631
20632# Flags to create an archive.
20633AR_FLAGS=$lt_AR_FLAGS
20634
20635# How to feed a file listing to the archiver.
20636archiver_list_spec=$lt_archiver_list_spec
20637
20638# A symbol stripping program.
20639STRIP=$lt_STRIP
20640
20641# Commands used to install an old-style archive.
20642RANLIB=$lt_RANLIB
20643old_postinstall_cmds=$lt_old_postinstall_cmds
20644old_postuninstall_cmds=$lt_old_postuninstall_cmds
20645
20646# Whether to use a lock for old archive extraction.
20647lock_old_archive_extraction=$lock_old_archive_extraction
20648
20649# A C compiler.
20650LTCC=$lt_CC
20651
20652# LTCC compiler flags.
20653LTCFLAGS=$lt_CFLAGS
20654
20655# Take the output of nm and produce a listing of raw symbols and C names.
20656global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20657
20658# Transform the output of nm in a proper C declaration.
20659global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20660
20661# Transform the output of nm in a C name address pair.
20662global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20663
20664# Transform the output of nm in a C name address pair when lib prefix is needed.
20665global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20666
20667# Specify filename containing input files for \$NM.
20668nm_file_list_spec=$lt_nm_file_list_spec
20669
20670# The root where to search for dependent libraries,and in which our libraries should be installed.
20671lt_sysroot=$lt_sysroot
20672
20673# The name of the directory that contains temporary libtool files.
20674objdir=$objdir
20675
20676# Used to examine libraries when file_magic_cmd begins with "file".
20677MAGIC_CMD=$MAGIC_CMD
20678
20679# Must we lock files when doing compilation?
20680need_locks=$lt_need_locks
20681
20682# Manifest tool.
20683MANIFEST_TOOL=$lt_MANIFEST_TOOL
20684
20685# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20686DSYMUTIL=$lt_DSYMUTIL
20687
20688# Tool to change global to local symbols on Mac OS X.
20689NMEDIT=$lt_NMEDIT
20690
20691# Tool to manipulate fat objects and archives on Mac OS X.
20692LIPO=$lt_LIPO
20693
20694# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20695OTOOL=$lt_OTOOL
20696
20697# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20698OTOOL64=$lt_OTOOL64
20699
20700# Old archive suffix (normally "a").
20701libext=$libext
20702
20703# Shared library suffix (normally ".so").
20704shrext_cmds=$lt_shrext_cmds
20705
20706# The commands to extract the exported symbol list from a shared archive.
20707extract_expsyms_cmds=$lt_extract_expsyms_cmds
20708
20709# Variables whose values should be saved in libtool wrapper scripts and
20710# restored at link time.
20711variables_saved_for_relink=$lt_variables_saved_for_relink
20712
20713# Do we need the "lib" prefix for modules?
20714need_lib_prefix=$need_lib_prefix
20715
20716# Do we need a version for libraries?
20717need_version=$need_version
20718
20719# Library versioning type.
20720version_type=$version_type
20721
20722# Shared library runtime path variable.
20723runpath_var=$runpath_var
20724
20725# Shared library path variable.
20726shlibpath_var=$shlibpath_var
20727
20728# Is shlibpath searched before the hard-coded library search path?
20729shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20730
20731# Format of library name prefix.
20732libname_spec=$lt_libname_spec
20733
20734# List of archive names.  First name is the real one, the rest are links.
20735# The last name is the one that the linker finds with -lNAME
20736library_names_spec=$lt_library_names_spec
20737
20738# The coded name of the library, if different from the real name.
20739soname_spec=$lt_soname_spec
20740
20741# Permission mode override for installation of shared libraries.
20742install_override_mode=$lt_install_override_mode
20743
20744# Command to use after installation of a shared archive.
20745postinstall_cmds=$lt_postinstall_cmds
20746
20747# Command to use after uninstallation of a shared archive.
20748postuninstall_cmds=$lt_postuninstall_cmds
20749
20750# Commands used to finish a libtool library installation in a directory.
20751finish_cmds=$lt_finish_cmds
20752
20753# As "finish_cmds", except a single script fragment to be evaled but
20754# not shown.
20755finish_eval=$lt_finish_eval
20756
20757# Whether we should hardcode library paths into libraries.
20758hardcode_into_libs=$hardcode_into_libs
20759
20760# Compile-time system search path for libraries.
20761sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20762
20763# Run-time system search path for libraries.
20764sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20765
20766# Whether dlopen is supported.
20767dlopen_support=$enable_dlopen
20768
20769# Whether dlopen of programs is supported.
20770dlopen_self=$enable_dlopen_self
20771
20772# Whether dlopen of statically linked programs is supported.
20773dlopen_self_static=$enable_dlopen_self_static
20774
20775# Commands to strip libraries.
20776old_striplib=$lt_old_striplib
20777striplib=$lt_striplib
20778
20779
20780# The linker used to build libraries.
20781LD=$lt_LD
20782
20783# How to create reloadable object files.
20784reload_flag=$lt_reload_flag
20785reload_cmds=$lt_reload_cmds
20786
20787# Commands used to build an old-style archive.
20788old_archive_cmds=$lt_old_archive_cmds
20789
20790# A language specific compiler.
20791CC=$lt_compiler
20792
20793# Is the compiler the GNU compiler?
20794with_gcc=$GCC
20795
20796# Compiler flag to turn off builtin functions.
20797no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20798
20799# Additional compiler flags for building library objects.
20800pic_flag=$lt_lt_prog_compiler_pic
20801
20802# How to pass a linker flag through the compiler.
20803wl=$lt_lt_prog_compiler_wl
20804
20805# Compiler flag to prevent dynamic linking.
20806link_static_flag=$lt_lt_prog_compiler_static
20807
20808# Does compiler simultaneously support -c and -o options?
20809compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20810
20811# Whether or not to add -lc for building shared libraries.
20812build_libtool_need_lc=$archive_cmds_need_lc
20813
20814# Whether or not to disallow shared libs when runtime libs are static.
20815allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20816
20817# Compiler flag to allow reflexive dlopens.
20818export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20819
20820# Compiler flag to generate shared objects directly from archives.
20821whole_archive_flag_spec=$lt_whole_archive_flag_spec
20822
20823# Whether the compiler copes with passing no objects directly.
20824compiler_needs_object=$lt_compiler_needs_object
20825
20826# Create an old-style archive from a shared archive.
20827old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20828
20829# Create a temporary old-style archive to link instead of a shared archive.
20830old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20831
20832# Commands used to build a shared archive.
20833archive_cmds=$lt_archive_cmds
20834archive_expsym_cmds=$lt_archive_expsym_cmds
20835
20836# Commands used to build a loadable module if different from building
20837# a shared archive.
20838module_cmds=$lt_module_cmds
20839module_expsym_cmds=$lt_module_expsym_cmds
20840
20841# Whether we are building with GNU ld or not.
20842with_gnu_ld=$lt_with_gnu_ld
20843
20844# Flag that allows shared libraries with undefined symbols to be built.
20845allow_undefined_flag=$lt_allow_undefined_flag
20846
20847# Flag that enforces no undefined symbols.
20848no_undefined_flag=$lt_no_undefined_flag
20849
20850# Flag to hardcode \$libdir into a binary during linking.
20851# This must work even if \$libdir does not exist
20852hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20853
20854# Whether we need a single "-rpath" flag with a separated argument.
20855hardcode_libdir_separator=$lt_hardcode_libdir_separator
20856
20857# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20858# DIR into the resulting binary.
20859hardcode_direct=$hardcode_direct
20860
20861# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20862# DIR into the resulting binary and the resulting library dependency is
20863# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20864# library is relocated.
20865hardcode_direct_absolute=$hardcode_direct_absolute
20866
20867# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20868# into the resulting binary.
20869hardcode_minus_L=$hardcode_minus_L
20870
20871# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20872# into the resulting binary.
20873hardcode_shlibpath_var=$hardcode_shlibpath_var
20874
20875# Set to "yes" if building a shared library automatically hardcodes DIR
20876# into the library and all subsequent libraries and executables linked
20877# against it.
20878hardcode_automatic=$hardcode_automatic
20879
20880# Set to yes if linker adds runtime paths of dependent libraries
20881# to runtime path list.
20882inherit_rpath=$inherit_rpath
20883
20884# Whether libtool must link a program against all its dependency libraries.
20885link_all_deplibs=$link_all_deplibs
20886
20887# Set to "yes" if exported symbols are required.
20888always_export_symbols=$always_export_symbols
20889
20890# The commands to list exported symbols.
20891export_symbols_cmds=$lt_export_symbols_cmds
20892
20893# Symbols that should not be listed in the preloaded symbols.
20894exclude_expsyms=$lt_exclude_expsyms
20895
20896# Symbols that must always be exported.
20897include_expsyms=$lt_include_expsyms
20898
20899# Commands necessary for linking programs (against libraries) with templates.
20900prelink_cmds=$lt_prelink_cmds
20901
20902# Commands necessary for finishing linking programs.
20903postlink_cmds=$lt_postlink_cmds
20904
20905# Specify filename containing input files.
20906file_list_spec=$lt_file_list_spec
20907
20908# How to hardcode a shared library path into an executable.
20909hardcode_action=$hardcode_action
20910
20911# ### END LIBTOOL CONFIG
20912
20913_LT_EOF
20914
20915  case $host_os in
20916  aix3*)
20917    cat <<\_LT_EOF >> "$cfgfile"
20918# AIX sometimes has problems with the GCC collect2 program.  For some
20919# reason, if we set the COLLECT_NAMES environment variable, the problems
20920# vanish in a puff of smoke.
20921if test "X${COLLECT_NAMES+set}" != Xset; then
20922  COLLECT_NAMES=
20923  export COLLECT_NAMES
20924fi
20925_LT_EOF
20926    ;;
20927  esac
20928
20929
20930ltmain="$ac_aux_dir/ltmain.sh"
20931
20932
20933  # We use sed instead of cat because bash on DJGPP gets confused if
20934  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20935  # text mode, it properly converts lines to CR/LF.  This bash problem
20936  # is reportedly fixed, but why not run on old versions too?
20937  sed '$q' "$ltmain" >> "$cfgfile" \
20938     || (rm -f "$cfgfile"; exit 1)
20939
20940  if test x"$xsi_shell" = xyes; then
20941  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20942func_dirname ()\
20943{\
20944\    case ${1} in\
20945\      */*) func_dirname_result="${1%/*}${2}" ;;\
20946\      *  ) func_dirname_result="${3}" ;;\
20947\    esac\
20948} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20949  && mv -f "$cfgfile.tmp" "$cfgfile" \
20950    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20951test 0 -eq $? || _lt_function_replace_fail=:
20952
20953
20954  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20955func_basename ()\
20956{\
20957\    func_basename_result="${1##*/}"\
20958} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20959  && mv -f "$cfgfile.tmp" "$cfgfile" \
20960    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20961test 0 -eq $? || _lt_function_replace_fail=:
20962
20963
20964  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20965func_dirname_and_basename ()\
20966{\
20967\    case ${1} in\
20968\      */*) func_dirname_result="${1%/*}${2}" ;;\
20969\      *  ) func_dirname_result="${3}" ;;\
20970\    esac\
20971\    func_basename_result="${1##*/}"\
20972} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20973  && mv -f "$cfgfile.tmp" "$cfgfile" \
20974    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20975test 0 -eq $? || _lt_function_replace_fail=:
20976
20977
20978  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20979func_stripname ()\
20980{\
20981\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20982\    # positional parameters, so assign one to ordinary parameter first.\
20983\    func_stripname_result=${3}\
20984\    func_stripname_result=${func_stripname_result#"${1}"}\
20985\    func_stripname_result=${func_stripname_result%"${2}"}\
20986} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20987  && mv -f "$cfgfile.tmp" "$cfgfile" \
20988    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20989test 0 -eq $? || _lt_function_replace_fail=:
20990
20991
20992  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20993func_split_long_opt ()\
20994{\
20995\    func_split_long_opt_name=${1%%=*}\
20996\    func_split_long_opt_arg=${1#*=}\
20997} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20998  && mv -f "$cfgfile.tmp" "$cfgfile" \
20999    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21000test 0 -eq $? || _lt_function_replace_fail=:
21001
21002
21003  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21004func_split_short_opt ()\
21005{\
21006\    func_split_short_opt_arg=${1#??}\
21007\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21008} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21009  && mv -f "$cfgfile.tmp" "$cfgfile" \
21010    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21011test 0 -eq $? || _lt_function_replace_fail=:
21012
21013
21014  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21015func_lo2o ()\
21016{\
21017\    case ${1} in\
21018\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21019\      *)    func_lo2o_result=${1} ;;\
21020\    esac\
21021} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21022  && mv -f "$cfgfile.tmp" "$cfgfile" \
21023    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21024test 0 -eq $? || _lt_function_replace_fail=:
21025
21026
21027  sed -e '/^func_xform ()$/,/^} # func_xform /c\
21028func_xform ()\
21029{\
21030    func_xform_result=${1%.*}.lo\
21031} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21032  && mv -f "$cfgfile.tmp" "$cfgfile" \
21033    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21034test 0 -eq $? || _lt_function_replace_fail=:
21035
21036
21037  sed -e '/^func_arith ()$/,/^} # func_arith /c\
21038func_arith ()\
21039{\
21040    func_arith_result=$(( $* ))\
21041} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21042  && mv -f "$cfgfile.tmp" "$cfgfile" \
21043    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21044test 0 -eq $? || _lt_function_replace_fail=:
21045
21046
21047  sed -e '/^func_len ()$/,/^} # func_len /c\
21048func_len ()\
21049{\
21050    func_len_result=${#1}\
21051} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21052  && mv -f "$cfgfile.tmp" "$cfgfile" \
21053    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21054test 0 -eq $? || _lt_function_replace_fail=:
21055
21056fi
21057
21058if test x"$lt_shell_append" = xyes; then
21059  sed -e '/^func_append ()$/,/^} # func_append /c\
21060func_append ()\
21061{\
21062    eval "${1}+=\\${2}"\
21063} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21064  && mv -f "$cfgfile.tmp" "$cfgfile" \
21065    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21066test 0 -eq $? || _lt_function_replace_fail=:
21067
21068
21069  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21070func_append_quoted ()\
21071{\
21072\    func_quote_for_eval "${2}"\
21073\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21074} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21075  && mv -f "$cfgfile.tmp" "$cfgfile" \
21076    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21077test 0 -eq $? || _lt_function_replace_fail=:
21078
21079
21080  # Save a `func_append' function call where possible by direct use of '+='
21081  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21082    && mv -f "$cfgfile.tmp" "$cfgfile" \
21083      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21084  test 0 -eq $? || _lt_function_replace_fail=:
21085else
21086  # Save a `func_append' function call even when '+=' is not available
21087  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21088    && mv -f "$cfgfile.tmp" "$cfgfile" \
21089      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21090  test 0 -eq $? || _lt_function_replace_fail=:
21091fi
21092
21093if test x"$_lt_function_replace_fail" = x":"; then
21094  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21095$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21096fi
21097
21098
21099   mv -f "$cfgfile" "$ofile" ||
21100    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21101  chmod +x "$ofile"
21102
21103 ;;
21104
21105  esac
21106done # for ac_tag
21107
21108
21109as_fn_exit 0
21110_ACEOF
21111ac_clean_files=$ac_clean_files_save
21112
21113test $ac_write_fail = 0 ||
21114  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21115
21116
21117# configure is writing to config.log, and then calls config.status.
21118# config.status does its own redirection, appending to config.log.
21119# Unfortunately, on DOS this fails, as config.log is still kept open
21120# by configure, so config.status won't be able to write to it; its
21121# output is simply discarded.  So we exec the FD to /dev/null,
21122# effectively closing config.log, so it can be properly (re)opened and
21123# appended to by config.status.  When coming back to configure, we
21124# need to make the FD available again.
21125if test "$no_create" != yes; then
21126  ac_cs_success=:
21127  ac_config_status_args=
21128  test "$silent" = yes &&
21129    ac_config_status_args="$ac_config_status_args --quiet"
21130  exec 5>/dev/null
21131  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21132  exec 5>>config.log
21133  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21134  # would make configure fail if this is the last instruction.
21135  $ac_cs_success || as_fn_exit 1
21136fi
21137if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21138  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21139$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21140fi
21141
21142