configure revision 19b15abd
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-video-geode 2.11.19.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver%2Fgeode>.
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
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || 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&component=Driver%2Fgeode
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-geode'
593PACKAGE_TARNAME='xf86-video-geode'
594PACKAGE_VERSION='2.11.19'
595PACKAGE_STRING='xf86-video-geode 2.11.19'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver%2Fgeode'
597PACKAGE_URL='http://www.x.org/wiki/GeodeDriver'
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
640PCIACCESS_LIBS
641PCIACCESS_CFLAGS
642XEXT_LIBS
643XEXT_CFLAGS
644XORG_LIBS
645XORG_CFLAGS
646M32_CFLAGS
647BUILD_ZTV_FALSE
648BUILD_ZTV_TRUE
649PANEL_CPPFLAGS
650moduledir
651MAN_SUBSTS
652XORG_MAN_PAGE
653ADMIN_MAN_DIR
654DRIVER_MAN_DIR
655MISC_MAN_DIR
656FILE_MAN_DIR
657LIB_MAN_DIR
658APP_MAN_DIR
659ADMIN_MAN_SUFFIX
660DRIVER_MAN_SUFFIX
661MISC_MAN_SUFFIX
662FILE_MAN_SUFFIX
663LIB_MAN_SUFFIX
664APP_MAN_SUFFIX
665INSTALL_CMD
666PKG_CONFIG_LIBDIR
667PKG_CONFIG_PATH
668PKG_CONFIG
669CHANGELOG_CMD
670STRICT_CFLAGS
671CWARNFLAGS
672BASE_CFLAGS
673CPP
674OTOOL64
675OTOOL
676LIPO
677NMEDIT
678DSYMUTIL
679MANIFEST_TOOL
680RANLIB
681ac_ct_AR
682AR
683DLLTOOL
684OBJDUMP
685LN_S
686NM
687ac_ct_DUMPBIN
688DUMPBIN
689LD
690FGREP
691EGREP
692GREP
693SED
694am__fastdepCC_FALSE
695am__fastdepCC_TRUE
696CCDEPMODE
697am__nodep
698AMDEPBACKSLASH
699AMDEP_FALSE
700AMDEP_TRUE
701am__quote
702am__include
703DEPDIR
704OBJEXT
705EXEEXT
706ac_ct_CC
707CPPFLAGS
708LDFLAGS
709CFLAGS
710CC
711host_os
712host_vendor
713host_cpu
714host
715build_os
716build_vendor
717build_cpu
718build
719LIBTOOL
720MAINT
721MAINTAINER_MODE_FALSE
722MAINTAINER_MODE_TRUE
723AM_BACKSLASH
724AM_DEFAULT_VERBOSITY
725AM_DEFAULT_V
726AM_V
727am__untar
728am__tar
729AMTAR
730am__leading_dot
731SET_MAKE
732AWK
733mkdir_p
734MKDIR_P
735INSTALL_STRIP_PROGRAM
736STRIP
737install_sh
738MAKEINFO
739AUTOHEADER
740AUTOMAKE
741AUTOCONF
742ACLOCAL
743VERSION
744PACKAGE
745CYGPATH_W
746am__isrc
747INSTALL_DATA
748INSTALL_SCRIPT
749INSTALL_PROGRAM
750target_alias
751host_alias
752build_alias
753LIBS
754ECHO_T
755ECHO_N
756ECHO_C
757DEFS
758mandir
759localedir
760libdir
761psdir
762pdfdir
763dvidir
764htmldir
765infodir
766docdir
767oldincludedir
768includedir
769localstatedir
770sharedstatedir
771sysconfdir
772datadir
773datarootdir
774libexecdir
775sbindir
776bindir
777program_transform_name
778prefix
779exec_prefix
780PACKAGE_URL
781PACKAGE_BUGREPORT
782PACKAGE_STRING
783PACKAGE_VERSION
784PACKAGE_TARNAME
785PACKAGE_NAME
786PATH_SEPARATOR
787SHELL'
788ac_subst_files=''
789ac_user_opts='
790enable_option_checking
791enable_silent_rules
792enable_maintainer_mode
793enable_static
794enable_shared
795with_pic
796enable_fast_install
797enable_dependency_tracking
798with_gnu_ld
799with_sysroot
800enable_libtool_lock
801enable_selective_werror
802enable_strict_compilation
803with_xorg_module_dir
804enable_geodegx_panel
805enable_ztv
806enable_xaa
807'
808      ac_precious_vars='build_alias
809host_alias
810target_alias
811CC
812CFLAGS
813LDFLAGS
814LIBS
815CPPFLAGS
816CPP
817PKG_CONFIG
818PKG_CONFIG_PATH
819PKG_CONFIG_LIBDIR
820XORG_CFLAGS
821XORG_LIBS
822XEXT_CFLAGS
823XEXT_LIBS
824PCIACCESS_CFLAGS
825PCIACCESS_LIBS'
826
827
828# Initialize some variables set by options.
829ac_init_help=
830ac_init_version=false
831ac_unrecognized_opts=
832ac_unrecognized_sep=
833# The variables have the same names as the options, with
834# dashes changed to underlines.
835cache_file=/dev/null
836exec_prefix=NONE
837no_create=
838no_recursion=
839prefix=NONE
840program_prefix=NONE
841program_suffix=NONE
842program_transform_name=s,x,x,
843silent=
844site=
845srcdir=
846verbose=
847x_includes=NONE
848x_libraries=NONE
849
850# Installation directory options.
851# These are left unexpanded so users can "make install exec_prefix=/foo"
852# and all the variables that are supposed to be based on exec_prefix
853# by default will actually change.
854# Use braces instead of parens because sh, perl, etc. also accept them.
855# (The list follows the same order as the GNU Coding Standards.)
856bindir='${exec_prefix}/bin'
857sbindir='${exec_prefix}/sbin'
858libexecdir='${exec_prefix}/libexec'
859datarootdir='${prefix}/share'
860datadir='${datarootdir}'
861sysconfdir='${prefix}/etc'
862sharedstatedir='${prefix}/com'
863localstatedir='${prefix}/var'
864includedir='${prefix}/include'
865oldincludedir='/usr/include'
866docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867infodir='${datarootdir}/info'
868htmldir='${docdir}'
869dvidir='${docdir}'
870pdfdir='${docdir}'
871psdir='${docdir}'
872libdir='${exec_prefix}/lib'
873localedir='${datarootdir}/locale'
874mandir='${datarootdir}/man'
875
876ac_prev=
877ac_dashdash=
878for ac_option
879do
880  # If the previous option needs an argument, assign it.
881  if test -n "$ac_prev"; then
882    eval $ac_prev=\$ac_option
883    ac_prev=
884    continue
885  fi
886
887  case $ac_option in
888  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889  *=)   ac_optarg= ;;
890  *)    ac_optarg=yes ;;
891  esac
892
893  # Accept the important Cygnus configure options, so we can diagnose typos.
894
895  case $ac_dashdash$ac_option in
896  --)
897    ac_dashdash=yes ;;
898
899  -bindir | --bindir | --bindi | --bind | --bin | --bi)
900    ac_prev=bindir ;;
901  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902    bindir=$ac_optarg ;;
903
904  -build | --build | --buil | --bui | --bu)
905    ac_prev=build_alias ;;
906  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907    build_alias=$ac_optarg ;;
908
909  -cache-file | --cache-file | --cache-fil | --cache-fi \
910  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911    ac_prev=cache_file ;;
912  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914    cache_file=$ac_optarg ;;
915
916  --config-cache | -C)
917    cache_file=config.cache ;;
918
919  -datadir | --datadir | --datadi | --datad)
920    ac_prev=datadir ;;
921  -datadir=* | --datadir=* | --datadi=* | --datad=*)
922    datadir=$ac_optarg ;;
923
924  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925  | --dataroo | --dataro | --datar)
926    ac_prev=datarootdir ;;
927  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929    datarootdir=$ac_optarg ;;
930
931  -disable-* | --disable-*)
932    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933    # Reject names that are not valid shell variable names.
934    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935      as_fn_error $? "invalid feature name: $ac_useropt"
936    ac_useropt_orig=$ac_useropt
937    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938    case $ac_user_opts in
939      *"
940"enable_$ac_useropt"
941"*) ;;
942      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943	 ac_unrecognized_sep=', ';;
944    esac
945    eval enable_$ac_useropt=no ;;
946
947  -docdir | --docdir | --docdi | --doc | --do)
948    ac_prev=docdir ;;
949  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950    docdir=$ac_optarg ;;
951
952  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953    ac_prev=dvidir ;;
954  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955    dvidir=$ac_optarg ;;
956
957  -enable-* | --enable-*)
958    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959    # Reject names that are not valid shell variable names.
960    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961      as_fn_error $? "invalid feature name: $ac_useropt"
962    ac_useropt_orig=$ac_useropt
963    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964    case $ac_user_opts in
965      *"
966"enable_$ac_useropt"
967"*) ;;
968      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969	 ac_unrecognized_sep=', ';;
970    esac
971    eval enable_$ac_useropt=\$ac_optarg ;;
972
973  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975  | --exec | --exe | --ex)
976    ac_prev=exec_prefix ;;
977  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979  | --exec=* | --exe=* | --ex=*)
980    exec_prefix=$ac_optarg ;;
981
982  -gas | --gas | --ga | --g)
983    # Obsolete; use --with-gas.
984    with_gas=yes ;;
985
986  -help | --help | --hel | --he | -h)
987    ac_init_help=long ;;
988  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989    ac_init_help=recursive ;;
990  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991    ac_init_help=short ;;
992
993  -host | --host | --hos | --ho)
994    ac_prev=host_alias ;;
995  -host=* | --host=* | --hos=* | --ho=*)
996    host_alias=$ac_optarg ;;
997
998  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999    ac_prev=htmldir ;;
1000  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001  | --ht=*)
1002    htmldir=$ac_optarg ;;
1003
1004  -includedir | --includedir | --includedi | --included | --include \
1005  | --includ | --inclu | --incl | --inc)
1006    ac_prev=includedir ;;
1007  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008  | --includ=* | --inclu=* | --incl=* | --inc=*)
1009    includedir=$ac_optarg ;;
1010
1011  -infodir | --infodir | --infodi | --infod | --info | --inf)
1012    ac_prev=infodir ;;
1013  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1014    infodir=$ac_optarg ;;
1015
1016  -libdir | --libdir | --libdi | --libd)
1017    ac_prev=libdir ;;
1018  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1019    libdir=$ac_optarg ;;
1020
1021  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022  | --libexe | --libex | --libe)
1023    ac_prev=libexecdir ;;
1024  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025  | --libexe=* | --libex=* | --libe=*)
1026    libexecdir=$ac_optarg ;;
1027
1028  -localedir | --localedir | --localedi | --localed | --locale)
1029    ac_prev=localedir ;;
1030  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031    localedir=$ac_optarg ;;
1032
1033  -localstatedir | --localstatedir | --localstatedi | --localstated \
1034  | --localstate | --localstat | --localsta | --localst | --locals)
1035    ac_prev=localstatedir ;;
1036  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1037  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1038    localstatedir=$ac_optarg ;;
1039
1040  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041    ac_prev=mandir ;;
1042  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1043    mandir=$ac_optarg ;;
1044
1045  -nfp | --nfp | --nf)
1046    # Obsolete; use --without-fp.
1047    with_fp=no ;;
1048
1049  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1050  | --no-cr | --no-c | -n)
1051    no_create=yes ;;
1052
1053  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055    no_recursion=yes ;;
1056
1057  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059  | --oldin | --oldi | --old | --ol | --o)
1060    ac_prev=oldincludedir ;;
1061  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1064    oldincludedir=$ac_optarg ;;
1065
1066  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067    ac_prev=prefix ;;
1068  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1069    prefix=$ac_optarg ;;
1070
1071  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072  | --program-pre | --program-pr | --program-p)
1073    ac_prev=program_prefix ;;
1074  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1076    program_prefix=$ac_optarg ;;
1077
1078  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079  | --program-suf | --program-su | --program-s)
1080    ac_prev=program_suffix ;;
1081  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1083    program_suffix=$ac_optarg ;;
1084
1085  -program-transform-name | --program-transform-name \
1086  | --program-transform-nam | --program-transform-na \
1087  | --program-transform-n | --program-transform- \
1088  | --program-transform | --program-transfor \
1089  | --program-transfo | --program-transf \
1090  | --program-trans | --program-tran \
1091  | --progr-tra | --program-tr | --program-t)
1092    ac_prev=program_transform_name ;;
1093  -program-transform-name=* | --program-transform-name=* \
1094  | --program-transform-nam=* | --program-transform-na=* \
1095  | --program-transform-n=* | --program-transform-=* \
1096  | --program-transform=* | --program-transfor=* \
1097  | --program-transfo=* | --program-transf=* \
1098  | --program-trans=* | --program-tran=* \
1099  | --progr-tra=* | --program-tr=* | --program-t=*)
1100    program_transform_name=$ac_optarg ;;
1101
1102  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103    ac_prev=pdfdir ;;
1104  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105    pdfdir=$ac_optarg ;;
1106
1107  -psdir | --psdir | --psdi | --psd | --ps)
1108    ac_prev=psdir ;;
1109  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110    psdir=$ac_optarg ;;
1111
1112  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113  | -silent | --silent | --silen | --sile | --sil)
1114    silent=yes ;;
1115
1116  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117    ac_prev=sbindir ;;
1118  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119  | --sbi=* | --sb=*)
1120    sbindir=$ac_optarg ;;
1121
1122  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124  | --sharedst | --shareds | --shared | --share | --shar \
1125  | --sha | --sh)
1126    ac_prev=sharedstatedir ;;
1127  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130  | --sha=* | --sh=*)
1131    sharedstatedir=$ac_optarg ;;
1132
1133  -site | --site | --sit)
1134    ac_prev=site ;;
1135  -site=* | --site=* | --sit=*)
1136    site=$ac_optarg ;;
1137
1138  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139    ac_prev=srcdir ;;
1140  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141    srcdir=$ac_optarg ;;
1142
1143  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144  | --syscon | --sysco | --sysc | --sys | --sy)
1145    ac_prev=sysconfdir ;;
1146  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148    sysconfdir=$ac_optarg ;;
1149
1150  -target | --target | --targe | --targ | --tar | --ta | --t)
1151    ac_prev=target_alias ;;
1152  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153    target_alias=$ac_optarg ;;
1154
1155  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156    verbose=yes ;;
1157
1158  -version | --version | --versio | --versi | --vers | -V)
1159    ac_init_version=: ;;
1160
1161  -with-* | --with-*)
1162    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163    # Reject names that are not valid shell variable names.
1164    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165      as_fn_error $? "invalid package name: $ac_useropt"
1166    ac_useropt_orig=$ac_useropt
1167    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168    case $ac_user_opts in
1169      *"
1170"with_$ac_useropt"
1171"*) ;;
1172      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173	 ac_unrecognized_sep=', ';;
1174    esac
1175    eval with_$ac_useropt=\$ac_optarg ;;
1176
1177  -without-* | --without-*)
1178    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1179    # Reject names that are not valid shell variable names.
1180    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181      as_fn_error $? "invalid package name: $ac_useropt"
1182    ac_useropt_orig=$ac_useropt
1183    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184    case $ac_user_opts in
1185      *"
1186"with_$ac_useropt"
1187"*) ;;
1188      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189	 ac_unrecognized_sep=', ';;
1190    esac
1191    eval with_$ac_useropt=no ;;
1192
1193  --x)
1194    # Obsolete; use --with-x.
1195    with_x=yes ;;
1196
1197  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198  | --x-incl | --x-inc | --x-in | --x-i)
1199    ac_prev=x_includes ;;
1200  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202    x_includes=$ac_optarg ;;
1203
1204  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206    ac_prev=x_libraries ;;
1207  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209    x_libraries=$ac_optarg ;;
1210
1211  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1212Try \`$0 --help' for more information"
1213    ;;
1214
1215  *=*)
1216    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217    # Reject names that are not valid shell variable names.
1218    case $ac_envvar in #(
1219      '' | [0-9]* | *[!_$as_cr_alnum]* )
1220      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1221    esac
1222    eval $ac_envvar=\$ac_optarg
1223    export $ac_envvar ;;
1224
1225  *)
1226    # FIXME: should be removed in autoconf 3.0.
1227    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1231    ;;
1232
1233  esac
1234done
1235
1236if test -n "$ac_prev"; then
1237  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238  as_fn_error $? "missing argument to $ac_option"
1239fi
1240
1241if test -n "$ac_unrecognized_opts"; then
1242  case $enable_option_checking in
1243    no) ;;
1244    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1245    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246  esac
1247fi
1248
1249# Check all directory arguments for consistency.
1250for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251		datadir sysconfdir sharedstatedir localstatedir includedir \
1252		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253		libdir localedir mandir
1254do
1255  eval ac_val=\$$ac_var
1256  # Remove trailing slashes.
1257  case $ac_val in
1258    */ )
1259      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260      eval $ac_var=\$ac_val;;
1261  esac
1262  # Be sure to have absolute directory names.
1263  case $ac_val in
1264    [\\/$]* | ?:[\\/]* )  continue;;
1265    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1266  esac
1267  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1268done
1269
1270# There might be people who depend on the old broken behavior: `$host'
1271# used to hold the argument of --host etc.
1272# FIXME: To remove some day.
1273build=$build_alias
1274host=$host_alias
1275target=$target_alias
1276
1277# FIXME: To remove some day.
1278if test "x$host_alias" != x; then
1279  if test "x$build_alias" = x; then
1280    cross_compiling=maybe
1281  elif test "x$build_alias" != "x$host_alias"; then
1282    cross_compiling=yes
1283  fi
1284fi
1285
1286ac_tool_prefix=
1287test -n "$host_alias" && ac_tool_prefix=$host_alias-
1288
1289test "$silent" = yes && exec 6>/dev/null
1290
1291
1292ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293ac_ls_di=`ls -di .` &&
1294ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295  as_fn_error $? "working directory cannot be determined"
1296test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297  as_fn_error $? "pwd does not report name of working directory"
1298
1299
1300# Find the source files, if location was not specified.
1301if test -z "$srcdir"; then
1302  ac_srcdir_defaulted=yes
1303  # Try the directory containing this script, then the parent directory.
1304  ac_confdir=`$as_dirname -- "$as_myself" ||
1305$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306	 X"$as_myself" : 'X\(//\)[^/]' \| \
1307	 X"$as_myself" : 'X\(//\)$' \| \
1308	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309$as_echo X"$as_myself" |
1310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311	    s//\1/
1312	    q
1313	  }
1314	  /^X\(\/\/\)[^/].*/{
1315	    s//\1/
1316	    q
1317	  }
1318	  /^X\(\/\/\)$/{
1319	    s//\1/
1320	    q
1321	  }
1322	  /^X\(\/\).*/{
1323	    s//\1/
1324	    q
1325	  }
1326	  s/.*/./; q'`
1327  srcdir=$ac_confdir
1328  if test ! -r "$srcdir/$ac_unique_file"; then
1329    srcdir=..
1330  fi
1331else
1332  ac_srcdir_defaulted=no
1333fi
1334if test ! -r "$srcdir/$ac_unique_file"; then
1335  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1337fi
1338ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1339ac_abs_confdir=`(
1340	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1341	pwd)`
1342# When building in place, set srcdir=.
1343if test "$ac_abs_confdir" = "$ac_pwd"; then
1344  srcdir=.
1345fi
1346# Remove unnecessary trailing slashes from srcdir.
1347# Double slashes in file names in object file debugging info
1348# mess up M-x gdb in Emacs.
1349case $srcdir in
1350*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1351esac
1352for ac_var in $ac_precious_vars; do
1353  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1354  eval ac_env_${ac_var}_value=\$${ac_var}
1355  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1356  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1357done
1358
1359#
1360# Report the --help message.
1361#
1362if test "$ac_init_help" = "long"; then
1363  # Omit some internal or obsolete options to make the list less imposing.
1364  # This message is too long to be a string in the A/UX 3.1 sh.
1365  cat <<_ACEOF
1366\`configure' configures xf86-video-geode 2.11.19 to adapt to many kinds of systems.
1367
1368Usage: $0 [OPTION]... [VAR=VALUE]...
1369
1370To assign environment variables (e.g., CC, CFLAGS...), specify them as
1371VAR=VALUE.  See below for descriptions of some of the useful variables.
1372
1373Defaults for the options are specified in brackets.
1374
1375Configuration:
1376  -h, --help              display this help and exit
1377      --help=short        display options specific to this package
1378      --help=recursive    display the short help of all the included packages
1379  -V, --version           display version information and exit
1380  -q, --quiet, --silent   do not print \`checking ...' messages
1381      --cache-file=FILE   cache test results in FILE [disabled]
1382  -C, --config-cache      alias for \`--cache-file=config.cache'
1383  -n, --no-create         do not create output files
1384      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1385
1386Installation directories:
1387  --prefix=PREFIX         install architecture-independent files in PREFIX
1388                          [$ac_default_prefix]
1389  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1390                          [PREFIX]
1391
1392By default, \`make install' will install all the files in
1393\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1394an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1395for instance \`--prefix=\$HOME'.
1396
1397For better control, use the options below.
1398
1399Fine tuning of the installation directories:
1400  --bindir=DIR            user executables [EPREFIX/bin]
1401  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1402  --libexecdir=DIR        program executables [EPREFIX/libexec]
1403  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1404  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1405  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1406  --libdir=DIR            object code libraries [EPREFIX/lib]
1407  --includedir=DIR        C header files [PREFIX/include]
1408  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1409  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1410  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1411  --infodir=DIR           info documentation [DATAROOTDIR/info]
1412  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1413  --mandir=DIR            man documentation [DATAROOTDIR/man]
1414  --docdir=DIR            documentation root
1415                          [DATAROOTDIR/doc/xf86-video-geode]
1416  --htmldir=DIR           html documentation [DOCDIR]
1417  --dvidir=DIR            dvi documentation [DOCDIR]
1418  --pdfdir=DIR            pdf documentation [DOCDIR]
1419  --psdir=DIR             ps documentation [DOCDIR]
1420_ACEOF
1421
1422  cat <<\_ACEOF
1423
1424Program names:
1425  --program-prefix=PREFIX            prepend PREFIX to installed program names
1426  --program-suffix=SUFFIX            append SUFFIX to installed program names
1427  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1428
1429System types:
1430  --build=BUILD     configure for building on BUILD [guessed]
1431  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1432_ACEOF
1433fi
1434
1435if test -n "$ac_init_help"; then
1436  case $ac_init_help in
1437     short | recursive ) echo "Configuration of xf86-video-geode 2.11.19:";;
1438   esac
1439  cat <<\_ACEOF
1440
1441Optional Features:
1442  --disable-option-checking  ignore unrecognized --enable/--with options
1443  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1444  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1445  --enable-silent-rules   less verbose build output (undo: "make V=1")
1446  --disable-silent-rules  verbose build output (undo: "make V=0")
1447  --enable-maintainer-mode
1448                          enable make rules and dependencies not useful (and
1449                          sometimes confusing) to the casual installer
1450  --enable-static[=PKGS]  build static libraries [default=no]
1451  --enable-shared[=PKGS]  build shared libraries [default=yes]
1452  --enable-fast-install[=PKGS]
1453                          optimize for fast installation [default=yes]
1454  --enable-dependency-tracking
1455                          do not reject slow dependency extractors
1456  --disable-dependency-tracking
1457                          speeds up one-time build
1458  --disable-libtool-lock  avoid locking (might break parallel builds)
1459  --disable-selective-werror
1460                          Turn off selective compiler errors. (default:
1461                          enabled)
1462  --enable-strict-compilation
1463                          Enable all warnings from compiler and make them
1464                          errors (default: disabled)
1465  --disable-geodegx-panel Disable support for flatpanels with the Geode GX
1466  --enable-ztv            Enable Video For Linux based ZTV driver (default:
1467                          auto-detected)
1468  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1469                          [default=auto]
1470
1471Optional Packages:
1472  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1473  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1474  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1475                          both]
1476  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1477  --with-sysroot=DIR Search for dependent libraries within DIR
1478                        (or the compiler's sysroot if not specified).
1479  --with-xorg-module-dir=DIR
1480                          Default xorg module directory
1481                          [[default=$libdir/xorg/modules]]
1482
1483Some influential environment variables:
1484  CC          C compiler command
1485  CFLAGS      C compiler flags
1486  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1487              nonstandard directory <lib dir>
1488  LIBS        libraries to pass to the linker, e.g. -l<library>
1489  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1490              you have headers in a nonstandard directory <include dir>
1491  CPP         C preprocessor
1492  PKG_CONFIG  path to pkg-config utility
1493  PKG_CONFIG_PATH
1494              directories to add to pkg-config's search path
1495  PKG_CONFIG_LIBDIR
1496              path overriding pkg-config's built-in search path
1497  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1498  XORG_LIBS   linker flags for XORG, overriding pkg-config
1499  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1500  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1501  PCIACCESS_CFLAGS
1502              C compiler flags for PCIACCESS, overriding pkg-config
1503  PCIACCESS_LIBS
1504              linker flags for PCIACCESS, overriding pkg-config
1505
1506Use these variables to override the choices made by `configure' or to help
1507it to find libraries and programs with nonstandard names/locations.
1508
1509Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver%2Fgeode>.
1510xf86-video-geode home page: <http://www.x.org/wiki/GeodeDriver>.
1511_ACEOF
1512ac_status=$?
1513fi
1514
1515if test "$ac_init_help" = "recursive"; then
1516  # If there are subdirs, report their specific --help.
1517  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518    test -d "$ac_dir" ||
1519      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1520      continue
1521    ac_builddir=.
1522
1523case "$ac_dir" in
1524.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525*)
1526  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1527  # A ".." for each directory in $ac_dir_suffix.
1528  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1529  case $ac_top_builddir_sub in
1530  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1532  esac ;;
1533esac
1534ac_abs_top_builddir=$ac_pwd
1535ac_abs_builddir=$ac_pwd$ac_dir_suffix
1536# for backward compatibility:
1537ac_top_builddir=$ac_top_build_prefix
1538
1539case $srcdir in
1540  .)  # We are building in place.
1541    ac_srcdir=.
1542    ac_top_srcdir=$ac_top_builddir_sub
1543    ac_abs_top_srcdir=$ac_pwd ;;
1544  [\\/]* | ?:[\\/]* )  # Absolute name.
1545    ac_srcdir=$srcdir$ac_dir_suffix;
1546    ac_top_srcdir=$srcdir
1547    ac_abs_top_srcdir=$srcdir ;;
1548  *) # Relative name.
1549    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1550    ac_top_srcdir=$ac_top_build_prefix$srcdir
1551    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1552esac
1553ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1554
1555    cd "$ac_dir" || { ac_status=$?; continue; }
1556    # Check for guested configure.
1557    if test -f "$ac_srcdir/configure.gnu"; then
1558      echo &&
1559      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1560    elif test -f "$ac_srcdir/configure"; then
1561      echo &&
1562      $SHELL "$ac_srcdir/configure" --help=recursive
1563    else
1564      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1565    fi || ac_status=$?
1566    cd "$ac_pwd" || { ac_status=$?; break; }
1567  done
1568fi
1569
1570test -n "$ac_init_help" && exit $ac_status
1571if $ac_init_version; then
1572  cat <<\_ACEOF
1573xf86-video-geode configure 2.11.19
1574generated by GNU Autoconf 2.69
1575
1576Copyright (C) 2012 Free Software Foundation, Inc.
1577This configure script is free software; the Free Software Foundation
1578gives unlimited permission to copy, distribute and modify it.
1579_ACEOF
1580  exit
1581fi
1582
1583## ------------------------ ##
1584## Autoconf initialization. ##
1585## ------------------------ ##
1586
1587# ac_fn_c_try_compile LINENO
1588# --------------------------
1589# Try to compile conftest.$ac_ext, and return whether this succeeded.
1590ac_fn_c_try_compile ()
1591{
1592  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593  rm -f conftest.$ac_objext
1594  if { { ac_try="$ac_compile"
1595case "(($ac_try" in
1596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597  *) ac_try_echo=$ac_try;;
1598esac
1599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600$as_echo "$ac_try_echo"; } >&5
1601  (eval "$ac_compile") 2>conftest.err
1602  ac_status=$?
1603  if test -s conftest.err; then
1604    grep -v '^ *+' conftest.err >conftest.er1
1605    cat conftest.er1 >&5
1606    mv -f conftest.er1 conftest.err
1607  fi
1608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609  test $ac_status = 0; } && {
1610	 test -z "$ac_c_werror_flag" ||
1611	 test ! -s conftest.err
1612       } && test -s conftest.$ac_objext; then :
1613  ac_retval=0
1614else
1615  $as_echo "$as_me: failed program was:" >&5
1616sed 's/^/| /' conftest.$ac_ext >&5
1617
1618	ac_retval=1
1619fi
1620  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621  as_fn_set_status $ac_retval
1622
1623} # ac_fn_c_try_compile
1624
1625# ac_fn_c_try_link LINENO
1626# -----------------------
1627# Try to link conftest.$ac_ext, and return whether this succeeded.
1628ac_fn_c_try_link ()
1629{
1630  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631  rm -f conftest.$ac_objext conftest$ac_exeext
1632  if { { ac_try="$ac_link"
1633case "(($ac_try" in
1634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635  *) ac_try_echo=$ac_try;;
1636esac
1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638$as_echo "$ac_try_echo"; } >&5
1639  (eval "$ac_link") 2>conftest.err
1640  ac_status=$?
1641  if test -s conftest.err; then
1642    grep -v '^ *+' conftest.err >conftest.er1
1643    cat conftest.er1 >&5
1644    mv -f conftest.er1 conftest.err
1645  fi
1646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647  test $ac_status = 0; } && {
1648	 test -z "$ac_c_werror_flag" ||
1649	 test ! -s conftest.err
1650       } && test -s conftest$ac_exeext && {
1651	 test "$cross_compiling" = yes ||
1652	 test -x conftest$ac_exeext
1653       }; then :
1654  ac_retval=0
1655else
1656  $as_echo "$as_me: failed program was:" >&5
1657sed 's/^/| /' conftest.$ac_ext >&5
1658
1659	ac_retval=1
1660fi
1661  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1662  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1663  # interfere with the next link command; also delete a directory that is
1664  # left behind by Apple's compiler.  We do this before executing the actions.
1665  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1666  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667  as_fn_set_status $ac_retval
1668
1669} # ac_fn_c_try_link
1670
1671# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1672# -------------------------------------------------------
1673# Tests whether HEADER exists and can be compiled using the include files in
1674# INCLUDES, setting the cache variable VAR accordingly.
1675ac_fn_c_check_header_compile ()
1676{
1677  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1679$as_echo_n "checking for $2... " >&6; }
1680if eval \${$3+:} false; then :
1681  $as_echo_n "(cached) " >&6
1682else
1683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684/* end confdefs.h.  */
1685$4
1686#include <$2>
1687_ACEOF
1688if ac_fn_c_try_compile "$LINENO"; then :
1689  eval "$3=yes"
1690else
1691  eval "$3=no"
1692fi
1693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1694fi
1695eval ac_res=\$$3
1696	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697$as_echo "$ac_res" >&6; }
1698  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699
1700} # ac_fn_c_check_header_compile
1701
1702# ac_fn_c_try_cpp LINENO
1703# ----------------------
1704# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1705ac_fn_c_try_cpp ()
1706{
1707  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708  if { { ac_try="$ac_cpp conftest.$ac_ext"
1709case "(($ac_try" in
1710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711  *) ac_try_echo=$ac_try;;
1712esac
1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714$as_echo "$ac_try_echo"; } >&5
1715  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1716  ac_status=$?
1717  if test -s conftest.err; then
1718    grep -v '^ *+' conftest.err >conftest.er1
1719    cat conftest.er1 >&5
1720    mv -f conftest.er1 conftest.err
1721  fi
1722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723  test $ac_status = 0; } > conftest.i && {
1724	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1725	 test ! -s conftest.err
1726       }; then :
1727  ac_retval=0
1728else
1729  $as_echo "$as_me: failed program was:" >&5
1730sed 's/^/| /' conftest.$ac_ext >&5
1731
1732    ac_retval=1
1733fi
1734  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735  as_fn_set_status $ac_retval
1736
1737} # ac_fn_c_try_cpp
1738
1739# ac_fn_c_try_run LINENO
1740# ----------------------
1741# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1742# that executables *can* be run.
1743ac_fn_c_try_run ()
1744{
1745  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746  if { { ac_try="$ac_link"
1747case "(($ac_try" in
1748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749  *) ac_try_echo=$ac_try;;
1750esac
1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752$as_echo "$ac_try_echo"; } >&5
1753  (eval "$ac_link") 2>&5
1754  ac_status=$?
1755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1757  { { case "(($ac_try" in
1758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759  *) ac_try_echo=$ac_try;;
1760esac
1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762$as_echo "$ac_try_echo"; } >&5
1763  (eval "$ac_try") 2>&5
1764  ac_status=$?
1765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766  test $ac_status = 0; }; }; then :
1767  ac_retval=0
1768else
1769  $as_echo "$as_me: program exited with status $ac_status" >&5
1770       $as_echo "$as_me: failed program was:" >&5
1771sed 's/^/| /' conftest.$ac_ext >&5
1772
1773       ac_retval=$ac_status
1774fi
1775  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1776  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777  as_fn_set_status $ac_retval
1778
1779} # ac_fn_c_try_run
1780
1781# ac_fn_c_check_func LINENO FUNC VAR
1782# ----------------------------------
1783# Tests whether FUNC exists, setting the cache variable VAR accordingly
1784ac_fn_c_check_func ()
1785{
1786  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788$as_echo_n "checking for $2... " >&6; }
1789if eval \${$3+:} false; then :
1790  $as_echo_n "(cached) " >&6
1791else
1792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793/* end confdefs.h.  */
1794/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1795   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1796#define $2 innocuous_$2
1797
1798/* System header to define __stub macros and hopefully few prototypes,
1799    which can conflict with char $2 (); below.
1800    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1801    <limits.h> exists even on freestanding compilers.  */
1802
1803#ifdef __STDC__
1804# include <limits.h>
1805#else
1806# include <assert.h>
1807#endif
1808
1809#undef $2
1810
1811/* Override any GCC internal prototype to avoid an error.
1812   Use char because int might match the return type of a GCC
1813   builtin and then its argument prototype would still apply.  */
1814#ifdef __cplusplus
1815extern "C"
1816#endif
1817char $2 ();
1818/* The GNU C library defines this for functions which it implements
1819    to always fail with ENOSYS.  Some functions are actually named
1820    something starting with __ and the normal name is an alias.  */
1821#if defined __stub_$2 || defined __stub___$2
1822choke me
1823#endif
1824
1825int
1826main ()
1827{
1828return $2 ();
1829  ;
1830  return 0;
1831}
1832_ACEOF
1833if ac_fn_c_try_link "$LINENO"; then :
1834  eval "$3=yes"
1835else
1836  eval "$3=no"
1837fi
1838rm -f core conftest.err conftest.$ac_objext \
1839    conftest$ac_exeext conftest.$ac_ext
1840fi
1841eval ac_res=\$$3
1842	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843$as_echo "$ac_res" >&6; }
1844  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845
1846} # ac_fn_c_check_func
1847
1848# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1849# ---------------------------------------------
1850# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1851# accordingly.
1852ac_fn_c_check_decl ()
1853{
1854  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855  as_decl_name=`echo $2|sed 's/ *(.*//'`
1856  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1857  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1858$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1859if eval \${$3+:} false; then :
1860  $as_echo_n "(cached) " >&6
1861else
1862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863/* end confdefs.h.  */
1864$4
1865int
1866main ()
1867{
1868#ifndef $as_decl_name
1869#ifdef __cplusplus
1870  (void) $as_decl_use;
1871#else
1872  (void) $as_decl_name;
1873#endif
1874#endif
1875
1876  ;
1877  return 0;
1878}
1879_ACEOF
1880if ac_fn_c_try_compile "$LINENO"; then :
1881  eval "$3=yes"
1882else
1883  eval "$3=no"
1884fi
1885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886fi
1887eval ac_res=\$$3
1888	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889$as_echo "$ac_res" >&6; }
1890  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891
1892} # ac_fn_c_check_decl
1893
1894# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1895# -------------------------------------------------------
1896# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1897# the include files in INCLUDES and setting the cache variable VAR
1898# accordingly.
1899ac_fn_c_check_header_mongrel ()
1900{
1901  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902  if eval \${$3+:} false; then :
1903  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904$as_echo_n "checking for $2... " >&6; }
1905if eval \${$3+:} false; then :
1906  $as_echo_n "(cached) " >&6
1907fi
1908eval ac_res=\$$3
1909	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910$as_echo "$ac_res" >&6; }
1911else
1912  # Is the header compilable?
1913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1914$as_echo_n "checking $2 usability... " >&6; }
1915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916/* end confdefs.h.  */
1917$4
1918#include <$2>
1919_ACEOF
1920if ac_fn_c_try_compile "$LINENO"; then :
1921  ac_header_compiler=yes
1922else
1923  ac_header_compiler=no
1924fi
1925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1927$as_echo "$ac_header_compiler" >&6; }
1928
1929# Is the header present?
1930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1931$as_echo_n "checking $2 presence... " >&6; }
1932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933/* end confdefs.h.  */
1934#include <$2>
1935_ACEOF
1936if ac_fn_c_try_cpp "$LINENO"; then :
1937  ac_header_preproc=yes
1938else
1939  ac_header_preproc=no
1940fi
1941rm -f conftest.err conftest.i conftest.$ac_ext
1942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1943$as_echo "$ac_header_preproc" >&6; }
1944
1945# So?  What about this header?
1946case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1947  yes:no: )
1948    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1949$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1950    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1951$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1952    ;;
1953  no:yes:* )
1954    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1955$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1956    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1957$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1958    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1959$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1960    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1961$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1962    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1963$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1964( $as_echo "## ----------------------------------------------------------------------------------------------- ##
1965## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver%2Fgeode ##
1966## ----------------------------------------------------------------------------------------------- ##"
1967     ) | sed "s/^/$as_me: WARNING:     /" >&2
1968    ;;
1969esac
1970  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1971$as_echo_n "checking for $2... " >&6; }
1972if eval \${$3+:} false; then :
1973  $as_echo_n "(cached) " >&6
1974else
1975  eval "$3=\$ac_header_compiler"
1976fi
1977eval ac_res=\$$3
1978	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979$as_echo "$ac_res" >&6; }
1980fi
1981  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982
1983} # ac_fn_c_check_header_mongrel
1984cat >config.log <<_ACEOF
1985This file contains any messages produced by compilers while
1986running configure, to aid debugging if configure makes a mistake.
1987
1988It was created by xf86-video-geode $as_me 2.11.19, which was
1989generated by GNU Autoconf 2.69.  Invocation command line was
1990
1991  $ $0 $@
1992
1993_ACEOF
1994exec 5>>config.log
1995{
1996cat <<_ASUNAME
1997## --------- ##
1998## Platform. ##
1999## --------- ##
2000
2001hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2002uname -m = `(uname -m) 2>/dev/null || echo unknown`
2003uname -r = `(uname -r) 2>/dev/null || echo unknown`
2004uname -s = `(uname -s) 2>/dev/null || echo unknown`
2005uname -v = `(uname -v) 2>/dev/null || echo unknown`
2006
2007/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2008/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2009
2010/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2011/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2012/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2013/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2014/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2015/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2016/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2017
2018_ASUNAME
2019
2020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021for as_dir in $PATH
2022do
2023  IFS=$as_save_IFS
2024  test -z "$as_dir" && as_dir=.
2025    $as_echo "PATH: $as_dir"
2026  done
2027IFS=$as_save_IFS
2028
2029} >&5
2030
2031cat >&5 <<_ACEOF
2032
2033
2034## ----------- ##
2035## Core tests. ##
2036## ----------- ##
2037
2038_ACEOF
2039
2040
2041# Keep a trace of the command line.
2042# Strip out --no-create and --no-recursion so they do not pile up.
2043# Strip out --silent because we don't want to record it for future runs.
2044# Also quote any args containing shell meta-characters.
2045# Make two passes to allow for proper duplicate-argument suppression.
2046ac_configure_args=
2047ac_configure_args0=
2048ac_configure_args1=
2049ac_must_keep_next=false
2050for ac_pass in 1 2
2051do
2052  for ac_arg
2053  do
2054    case $ac_arg in
2055    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2056    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2057    | -silent | --silent | --silen | --sile | --sil)
2058      continue ;;
2059    *\'*)
2060      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2061    esac
2062    case $ac_pass in
2063    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2064    2)
2065      as_fn_append ac_configure_args1 " '$ac_arg'"
2066      if test $ac_must_keep_next = true; then
2067	ac_must_keep_next=false # Got value, back to normal.
2068      else
2069	case $ac_arg in
2070	  *=* | --config-cache | -C | -disable-* | --disable-* \
2071	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2072	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2073	  | -with-* | --with-* | -without-* | --without-* | --x)
2074	    case "$ac_configure_args0 " in
2075	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2076	    esac
2077	    ;;
2078	  -* ) ac_must_keep_next=true ;;
2079	esac
2080      fi
2081      as_fn_append ac_configure_args " '$ac_arg'"
2082      ;;
2083    esac
2084  done
2085done
2086{ ac_configure_args0=; unset ac_configure_args0;}
2087{ ac_configure_args1=; unset ac_configure_args1;}
2088
2089# When interrupted or exit'd, cleanup temporary files, and complete
2090# config.log.  We remove comments because anyway the quotes in there
2091# would cause problems or look ugly.
2092# WARNING: Use '\'' to represent an apostrophe within the trap.
2093# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2094trap 'exit_status=$?
2095  # Save into config.log some information that might help in debugging.
2096  {
2097    echo
2098
2099    $as_echo "## ---------------- ##
2100## Cache variables. ##
2101## ---------------- ##"
2102    echo
2103    # The following way of writing the cache mishandles newlines in values,
2104(
2105  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2106    eval ac_val=\$$ac_var
2107    case $ac_val in #(
2108    *${as_nl}*)
2109      case $ac_var in #(
2110      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2111$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2112      esac
2113      case $ac_var in #(
2114      _ | IFS | as_nl) ;; #(
2115      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2116      *) { eval $ac_var=; unset $ac_var;} ;;
2117      esac ;;
2118    esac
2119  done
2120  (set) 2>&1 |
2121    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2122    *${as_nl}ac_space=\ *)
2123      sed -n \
2124	"s/'\''/'\''\\\\'\'''\''/g;
2125	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2126      ;; #(
2127    *)
2128      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2129      ;;
2130    esac |
2131    sort
2132)
2133    echo
2134
2135    $as_echo "## ----------------- ##
2136## Output variables. ##
2137## ----------------- ##"
2138    echo
2139    for ac_var in $ac_subst_vars
2140    do
2141      eval ac_val=\$$ac_var
2142      case $ac_val in
2143      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2144      esac
2145      $as_echo "$ac_var='\''$ac_val'\''"
2146    done | sort
2147    echo
2148
2149    if test -n "$ac_subst_files"; then
2150      $as_echo "## ------------------- ##
2151## File substitutions. ##
2152## ------------------- ##"
2153      echo
2154      for ac_var in $ac_subst_files
2155      do
2156	eval ac_val=\$$ac_var
2157	case $ac_val in
2158	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2159	esac
2160	$as_echo "$ac_var='\''$ac_val'\''"
2161      done | sort
2162      echo
2163    fi
2164
2165    if test -s confdefs.h; then
2166      $as_echo "## ----------- ##
2167## confdefs.h. ##
2168## ----------- ##"
2169      echo
2170      cat confdefs.h
2171      echo
2172    fi
2173    test "$ac_signal" != 0 &&
2174      $as_echo "$as_me: caught signal $ac_signal"
2175    $as_echo "$as_me: exit $exit_status"
2176  } >&5
2177  rm -f core *.core core.conftest.* &&
2178    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2179    exit $exit_status
2180' 0
2181for ac_signal in 1 2 13 15; do
2182  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2183done
2184ac_signal=0
2185
2186# confdefs.h avoids OS command line length limits that DEFS can exceed.
2187rm -f -r conftest* confdefs.h
2188
2189$as_echo "/* confdefs.h */" > confdefs.h
2190
2191# Predefined preprocessor variables.
2192
2193cat >>confdefs.h <<_ACEOF
2194#define PACKAGE_NAME "$PACKAGE_NAME"
2195_ACEOF
2196
2197cat >>confdefs.h <<_ACEOF
2198#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2199_ACEOF
2200
2201cat >>confdefs.h <<_ACEOF
2202#define PACKAGE_VERSION "$PACKAGE_VERSION"
2203_ACEOF
2204
2205cat >>confdefs.h <<_ACEOF
2206#define PACKAGE_STRING "$PACKAGE_STRING"
2207_ACEOF
2208
2209cat >>confdefs.h <<_ACEOF
2210#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2211_ACEOF
2212
2213cat >>confdefs.h <<_ACEOF
2214#define PACKAGE_URL "$PACKAGE_URL"
2215_ACEOF
2216
2217
2218# Let the site file select an alternate cache file if it wants to.
2219# Prefer an explicitly selected file to automatically selected ones.
2220ac_site_file1=NONE
2221ac_site_file2=NONE
2222if test -n "$CONFIG_SITE"; then
2223  # We do not want a PATH search for config.site.
2224  case $CONFIG_SITE in #((
2225    -*)  ac_site_file1=./$CONFIG_SITE;;
2226    */*) ac_site_file1=$CONFIG_SITE;;
2227    *)   ac_site_file1=./$CONFIG_SITE;;
2228  esac
2229elif test "x$prefix" != xNONE; then
2230  ac_site_file1=$prefix/share/config.site
2231  ac_site_file2=$prefix/etc/config.site
2232else
2233  ac_site_file1=$ac_default_prefix/share/config.site
2234  ac_site_file2=$ac_default_prefix/etc/config.site
2235fi
2236for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2237do
2238  test "x$ac_site_file" = xNONE && continue
2239  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2240    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2241$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2242    sed 's/^/| /' "$ac_site_file" >&5
2243    . "$ac_site_file" \
2244      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2246as_fn_error $? "failed to load site script $ac_site_file
2247See \`config.log' for more details" "$LINENO" 5; }
2248  fi
2249done
2250
2251if test -r "$cache_file"; then
2252  # Some versions of bash will fail to source /dev/null (special files
2253  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2254  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2255    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2256$as_echo "$as_me: loading cache $cache_file" >&6;}
2257    case $cache_file in
2258      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2259      *)                      . "./$cache_file";;
2260    esac
2261  fi
2262else
2263  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2264$as_echo "$as_me: creating cache $cache_file" >&6;}
2265  >$cache_file
2266fi
2267
2268# Check that the precious variables saved in the cache have kept the same
2269# value.
2270ac_cache_corrupted=false
2271for ac_var in $ac_precious_vars; do
2272  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2273  eval ac_new_set=\$ac_env_${ac_var}_set
2274  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2275  eval ac_new_val=\$ac_env_${ac_var}_value
2276  case $ac_old_set,$ac_new_set in
2277    set,)
2278      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2279$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2280      ac_cache_corrupted=: ;;
2281    ,set)
2282      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2283$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2284      ac_cache_corrupted=: ;;
2285    ,);;
2286    *)
2287      if test "x$ac_old_val" != "x$ac_new_val"; then
2288	# differences in whitespace do not lead to failure.
2289	ac_old_val_w=`echo x $ac_old_val`
2290	ac_new_val_w=`echo x $ac_new_val`
2291	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2292	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2293$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2294	  ac_cache_corrupted=:
2295	else
2296	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2297$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2298	  eval $ac_var=\$ac_old_val
2299	fi
2300	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2301$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2302	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2303$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2304      fi;;
2305  esac
2306  # Pass precious variables to config.status.
2307  if test "$ac_new_set" = set; then
2308    case $ac_new_val in
2309    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2310    *) ac_arg=$ac_var=$ac_new_val ;;
2311    esac
2312    case " $ac_configure_args " in
2313      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2314      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2315    esac
2316  fi
2317done
2318if $ac_cache_corrupted; then
2319  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2322$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2323  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2324fi
2325## -------------------- ##
2326## Main body of script. ##
2327## -------------------- ##
2328
2329ac_ext=c
2330ac_cpp='$CPP $CPPFLAGS'
2331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334
2335
2336
2337
2338ac_config_headers="$ac_config_headers config.h"
2339
2340
2341ac_aux_dir=
2342for ac_dir in build-aux "$srcdir"/build-aux; do
2343  if test -f "$ac_dir/install-sh"; then
2344    ac_aux_dir=$ac_dir
2345    ac_install_sh="$ac_aux_dir/install-sh -c"
2346    break
2347  elif test -f "$ac_dir/install.sh"; then
2348    ac_aux_dir=$ac_dir
2349    ac_install_sh="$ac_aux_dir/install.sh -c"
2350    break
2351  elif test -f "$ac_dir/shtool"; then
2352    ac_aux_dir=$ac_dir
2353    ac_install_sh="$ac_aux_dir/shtool install -c"
2354    break
2355  fi
2356done
2357if test -z "$ac_aux_dir"; then
2358  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2359fi
2360
2361# These three variables are undocumented and unsupported,
2362# and are intended to be withdrawn in a future Autoconf release.
2363# They can cause serious problems if a builder's source tree is in a directory
2364# whose full name contains unusual characters.
2365ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2366ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2367ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2368
2369
2370
2371# Initialize Automake
2372am__api_version='1.14'
2373
2374# Find a good install program.  We prefer a C program (faster),
2375# so one script is as good as another.  But avoid the broken or
2376# incompatible versions:
2377# SysV /etc/install, /usr/sbin/install
2378# SunOS /usr/etc/install
2379# IRIX /sbin/install
2380# AIX /bin/install
2381# AmigaOS /C/install, which installs bootblocks on floppy discs
2382# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2383# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2384# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2385# OS/2's system install, which has a completely different semantic
2386# ./install, which can be erroneously created by make from ./install.sh.
2387# Reject install programs that cannot install multiple files.
2388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2389$as_echo_n "checking for a BSD-compatible install... " >&6; }
2390if test -z "$INSTALL"; then
2391if ${ac_cv_path_install+:} false; then :
2392  $as_echo_n "(cached) " >&6
2393else
2394  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395for as_dir in $PATH
2396do
2397  IFS=$as_save_IFS
2398  test -z "$as_dir" && as_dir=.
2399    # Account for people who put trailing slashes in PATH elements.
2400case $as_dir/ in #((
2401  ./ | .// | /[cC]/* | \
2402  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2403  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2404  /usr/ucb/* ) ;;
2405  *)
2406    # OSF1 and SCO ODT 3.0 have their own names for install.
2407    # Don't use installbsd from OSF since it installs stuff as root
2408    # by default.
2409    for ac_prog in ginstall scoinst install; do
2410      for ac_exec_ext in '' $ac_executable_extensions; do
2411	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2412	  if test $ac_prog = install &&
2413	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2414	    # AIX install.  It has an incompatible calling convention.
2415	    :
2416	  elif test $ac_prog = install &&
2417	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2418	    # program-specific install script used by HP pwplus--don't use.
2419	    :
2420	  else
2421	    rm -rf conftest.one conftest.two conftest.dir
2422	    echo one > conftest.one
2423	    echo two > conftest.two
2424	    mkdir conftest.dir
2425	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2426	      test -s conftest.one && test -s conftest.two &&
2427	      test -s conftest.dir/conftest.one &&
2428	      test -s conftest.dir/conftest.two
2429	    then
2430	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2431	      break 3
2432	    fi
2433	  fi
2434	fi
2435      done
2436    done
2437    ;;
2438esac
2439
2440  done
2441IFS=$as_save_IFS
2442
2443rm -rf conftest.one conftest.two conftest.dir
2444
2445fi
2446  if test "${ac_cv_path_install+set}" = set; then
2447    INSTALL=$ac_cv_path_install
2448  else
2449    # As a last resort, use the slow shell script.  Don't cache a
2450    # value for INSTALL within a source directory, because that will
2451    # break other packages using the cache if that directory is
2452    # removed, or if the value is a relative name.
2453    INSTALL=$ac_install_sh
2454  fi
2455fi
2456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2457$as_echo "$INSTALL" >&6; }
2458
2459# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2460# It thinks the first close brace ends the variable substitution.
2461test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2462
2463test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2464
2465test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2466
2467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2468$as_echo_n "checking whether build environment is sane... " >&6; }
2469# Reject unsafe characters in $srcdir or the absolute working directory
2470# name.  Accept space and tab only in the latter.
2471am_lf='
2472'
2473case `pwd` in
2474  *[\\\"\#\$\&\'\`$am_lf]*)
2475    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2476esac
2477case $srcdir in
2478  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2479    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2480esac
2481
2482# Do 'set' in a subshell so we don't clobber the current shell's
2483# arguments.  Must try -L first in case configure is actually a
2484# symlink; some systems play weird games with the mod time of symlinks
2485# (eg FreeBSD returns the mod time of the symlink's containing
2486# directory).
2487if (
2488   am_has_slept=no
2489   for am_try in 1 2; do
2490     echo "timestamp, slept: $am_has_slept" > conftest.file
2491     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2492     if test "$*" = "X"; then
2493	# -L didn't work.
2494	set X `ls -t "$srcdir/configure" conftest.file`
2495     fi
2496     if test "$*" != "X $srcdir/configure conftest.file" \
2497	&& test "$*" != "X conftest.file $srcdir/configure"; then
2498
2499	# If neither matched, then we have a broken ls.  This can happen
2500	# if, for instance, CONFIG_SHELL is bash and it inherits a
2501	# broken ls alias from the environment.  This has actually
2502	# happened.  Such a system could not be considered "sane".
2503	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2504  alias in your environment" "$LINENO" 5
2505     fi
2506     if test "$2" = conftest.file || test $am_try -eq 2; then
2507       break
2508     fi
2509     # Just in case.
2510     sleep 1
2511     am_has_slept=yes
2512   done
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; }
2524# If we didn't sleep, we still need to ensure time stamps of config.status and
2525# generated files are strictly newer.
2526am_sleep_pid=
2527if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2528  ( sleep 1 ) &
2529  am_sleep_pid=$!
2530fi
2531
2532rm -f conftest.file
2533
2534test "$program_prefix" != NONE &&
2535  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2536# Use a double $ so make ignores it.
2537test "$program_suffix" != NONE &&
2538  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2539# Double any \ or $.
2540# By default was `s,x,x', remove it if useless.
2541ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2542program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2543
2544# Expand $ac_aux_dir to an absolute path.
2545am_aux_dir=`cd "$ac_aux_dir" && pwd`
2546
2547if test x"${MISSING+set}" != xset; then
2548  case $am_aux_dir in
2549  *\ * | *\	*)
2550    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2551  *)
2552    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2553  esac
2554fi
2555# Use eval to expand $SHELL
2556if eval "$MISSING --is-lightweight"; then
2557  am_missing_run="$MISSING "
2558else
2559  am_missing_run=
2560  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2561$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2562fi
2563
2564if test x"${install_sh}" != xset; then
2565  case $am_aux_dir in
2566  *\ * | *\	*)
2567    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2568  *)
2569    install_sh="\${SHELL} $am_aux_dir/install-sh"
2570  esac
2571fi
2572
2573# Installed binaries are usually stripped using 'strip' when the user
2574# run "make install-strip".  However 'strip' might not be the right
2575# tool to use in cross-compilation environments, therefore Automake
2576# will honor the 'STRIP' environment variable to overrule this program.
2577if test "$cross_compiling" != no; then
2578  if test -n "$ac_tool_prefix"; then
2579  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2580set dummy ${ac_tool_prefix}strip; ac_word=$2
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2582$as_echo_n "checking for $ac_word... " >&6; }
2583if ${ac_cv_prog_STRIP+:} false; then :
2584  $as_echo_n "(cached) " >&6
2585else
2586  if test -n "$STRIP"; then
2587  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2588else
2589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590for as_dir in $PATH
2591do
2592  IFS=$as_save_IFS
2593  test -z "$as_dir" && as_dir=.
2594    for ac_exec_ext in '' $ac_executable_extensions; do
2595  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2596    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2598    break 2
2599  fi
2600done
2601  done
2602IFS=$as_save_IFS
2603
2604fi
2605fi
2606STRIP=$ac_cv_prog_STRIP
2607if test -n "$STRIP"; then
2608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2609$as_echo "$STRIP" >&6; }
2610else
2611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612$as_echo "no" >&6; }
2613fi
2614
2615
2616fi
2617if test -z "$ac_cv_prog_STRIP"; then
2618  ac_ct_STRIP=$STRIP
2619  # Extract the first word of "strip", so it can be a program name with args.
2620set dummy strip; ac_word=$2
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622$as_echo_n "checking for $ac_word... " >&6; }
2623if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2624  $as_echo_n "(cached) " >&6
2625else
2626  if test -n "$ac_ct_STRIP"; then
2627  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2628else
2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH
2631do
2632  IFS=$as_save_IFS
2633  test -z "$as_dir" && as_dir=.
2634    for ac_exec_ext in '' $ac_executable_extensions; do
2635  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636    ac_cv_prog_ac_ct_STRIP="strip"
2637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2638    break 2
2639  fi
2640done
2641  done
2642IFS=$as_save_IFS
2643
2644fi
2645fi
2646ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2647if test -n "$ac_ct_STRIP"; then
2648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2649$as_echo "$ac_ct_STRIP" >&6; }
2650else
2651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652$as_echo "no" >&6; }
2653fi
2654
2655  if test "x$ac_ct_STRIP" = x; then
2656    STRIP=":"
2657  else
2658    case $cross_compiling:$ac_tool_warned in
2659yes:)
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2662ac_tool_warned=yes ;;
2663esac
2664    STRIP=$ac_ct_STRIP
2665  fi
2666else
2667  STRIP="$ac_cv_prog_STRIP"
2668fi
2669
2670fi
2671INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2672
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2674$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2675if test -z "$MKDIR_P"; then
2676  if ${ac_cv_path_mkdir+:} false; then :
2677  $as_echo_n "(cached) " >&6
2678else
2679  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2681do
2682  IFS=$as_save_IFS
2683  test -z "$as_dir" && as_dir=.
2684    for ac_prog in mkdir gmkdir; do
2685	 for ac_exec_ext in '' $ac_executable_extensions; do
2686	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2687	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2688	     'mkdir (GNU coreutils) '* | \
2689	     'mkdir (coreutils) '* | \
2690	     'mkdir (fileutils) '4.1*)
2691	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2692	       break 3;;
2693	   esac
2694	 done
2695       done
2696  done
2697IFS=$as_save_IFS
2698
2699fi
2700
2701  test -d ./--version && rmdir ./--version
2702  if test "${ac_cv_path_mkdir+set}" = set; then
2703    MKDIR_P="$ac_cv_path_mkdir -p"
2704  else
2705    # As a last resort, use the slow shell script.  Don't cache a
2706    # value for MKDIR_P within a source directory, because that will
2707    # break other packages using the cache if that directory is
2708    # removed, or if the value is a relative name.
2709    MKDIR_P="$ac_install_sh -d"
2710  fi
2711fi
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2713$as_echo "$MKDIR_P" >&6; }
2714
2715for ac_prog in gawk mawk nawk awk
2716do
2717  # Extract the first word of "$ac_prog", so it can be a program name with args.
2718set dummy $ac_prog; ac_word=$2
2719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720$as_echo_n "checking for $ac_word... " >&6; }
2721if ${ac_cv_prog_AWK+:} false; then :
2722  $as_echo_n "(cached) " >&6
2723else
2724  if test -n "$AWK"; then
2725  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2726else
2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730  IFS=$as_save_IFS
2731  test -z "$as_dir" && as_dir=.
2732    for ac_exec_ext in '' $ac_executable_extensions; do
2733  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734    ac_cv_prog_AWK="$ac_prog"
2735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736    break 2
2737  fi
2738done
2739  done
2740IFS=$as_save_IFS
2741
2742fi
2743fi
2744AWK=$ac_cv_prog_AWK
2745if test -n "$AWK"; then
2746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2747$as_echo "$AWK" >&6; }
2748else
2749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750$as_echo "no" >&6; }
2751fi
2752
2753
2754  test -n "$AWK" && break
2755done
2756
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2758$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2759set x ${MAKE-make}
2760ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2761if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2762  $as_echo_n "(cached) " >&6
2763else
2764  cat >conftest.make <<\_ACEOF
2765SHELL = /bin/sh
2766all:
2767	@echo '@@@%%%=$(MAKE)=@@@%%%'
2768_ACEOF
2769# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2770case `${MAKE-make} -f conftest.make 2>/dev/null` in
2771  *@@@%%%=?*=@@@%%%*)
2772    eval ac_cv_prog_make_${ac_make}_set=yes;;
2773  *)
2774    eval ac_cv_prog_make_${ac_make}_set=no;;
2775esac
2776rm -f conftest.make
2777fi
2778if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2780$as_echo "yes" >&6; }
2781  SET_MAKE=
2782else
2783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784$as_echo "no" >&6; }
2785  SET_MAKE="MAKE=${MAKE-make}"
2786fi
2787
2788rm -rf .tst 2>/dev/null
2789mkdir .tst 2>/dev/null
2790if test -d .tst; then
2791  am__leading_dot=.
2792else
2793  am__leading_dot=_
2794fi
2795rmdir .tst 2>/dev/null
2796
2797# Check whether --enable-silent-rules was given.
2798if test "${enable_silent_rules+set}" = set; then :
2799  enableval=$enable_silent_rules;
2800fi
2801
2802case $enable_silent_rules in # (((
2803  yes) AM_DEFAULT_VERBOSITY=0;;
2804   no) AM_DEFAULT_VERBOSITY=1;;
2805    *) AM_DEFAULT_VERBOSITY=1;;
2806esac
2807am_make=${MAKE-make}
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2809$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2810if ${am_cv_make_support_nested_variables+:} false; then :
2811  $as_echo_n "(cached) " >&6
2812else
2813  if $as_echo 'TRUE=$(BAR$(V))
2814BAR0=false
2815BAR1=true
2816V=1
2817am__doit:
2818	@$(TRUE)
2819.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2820  am_cv_make_support_nested_variables=yes
2821else
2822  am_cv_make_support_nested_variables=no
2823fi
2824fi
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2826$as_echo "$am_cv_make_support_nested_variables" >&6; }
2827if test $am_cv_make_support_nested_variables = yes; then
2828    AM_V='$(V)'
2829  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2830else
2831  AM_V=$AM_DEFAULT_VERBOSITY
2832  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2833fi
2834AM_BACKSLASH='\'
2835
2836if test "`cd $srcdir && pwd`" != "`pwd`"; then
2837  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2838  # is not polluted with repeated "-I."
2839  am__isrc=' -I$(srcdir)'
2840  # test to see if srcdir already configured
2841  if test -f $srcdir/config.status; then
2842    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2843  fi
2844fi
2845
2846# test whether we have cygpath
2847if test -z "$CYGPATH_W"; then
2848  if (cygpath --version) >/dev/null 2>/dev/null; then
2849    CYGPATH_W='cygpath -w'
2850  else
2851    CYGPATH_W=echo
2852  fi
2853fi
2854
2855
2856# Define the identity of the package.
2857 PACKAGE='xf86-video-geode'
2858 VERSION='2.11.19'
2859
2860
2861cat >>confdefs.h <<_ACEOF
2862#define PACKAGE "$PACKAGE"
2863_ACEOF
2864
2865
2866cat >>confdefs.h <<_ACEOF
2867#define VERSION "$VERSION"
2868_ACEOF
2869
2870# Some tools Automake needs.
2871
2872ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2873
2874
2875AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2876
2877
2878AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2879
2880
2881AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2882
2883
2884MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2885
2886# For better backward compatibility.  To be removed once Automake 1.9.x
2887# dies out for good.  For more background, see:
2888# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2889# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2890mkdir_p='$(MKDIR_P)'
2891
2892# We need awk for the "check" target.  The system "awk" is bad on
2893# some platforms.
2894# Always define AMTAR for backward compatibility.  Yes, it's still used
2895# in the wild :-(  We should find a proper way to deprecate it ...
2896AMTAR='$${TAR-tar}'
2897
2898
2899# We'll loop over all known methods to create a tar archive until one works.
2900_am_tools='gnutar  pax cpio none'
2901
2902am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2903
2904
2905
2906
2907
2908
2909# POSIX will say in a future version that running "rm -f" with no argument
2910# is OK; and we want to be able to make that assumption in our Makefile
2911# recipes.  So use an aggressive probe to check that the usage we want is
2912# actually supported "in the wild" to an acceptable degree.
2913# See automake bug#10828.
2914# To make any issue more visible, cause the running configure to be aborted
2915# by default if the 'rm' program in use doesn't match our expectations; the
2916# user can still override this though.
2917if rm -f && rm -fr && rm -rf; then : OK; else
2918  cat >&2 <<'END'
2919Oops!
2920
2921Your 'rm' program seems unable to run without file operands specified
2922on the command line, even when the '-f' option is present.  This is contrary
2923to the behaviour of most rm programs out there, and not conforming with
2924the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2925
2926Please tell bug-automake@gnu.org about your system, including the value
2927of your $PATH and any error possibly output before this message.  This
2928can help us improve future automake versions.
2929
2930END
2931  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2932    echo 'Configuration will proceed anyway, since you have set the' >&2
2933    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2934    echo >&2
2935  else
2936    cat >&2 <<'END'
2937Aborting the configuration process, to ensure you take notice of the issue.
2938
2939You can download and install GNU coreutils to get an 'rm' implementation
2940that behaves properly: <http://www.gnu.org/software/coreutils/>.
2941
2942If you want to complete the configuration process using your problematic
2943'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2944to "yes", and re-run configure.
2945
2946END
2947    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2948  fi
2949fi
2950
2951
2952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2953$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2954    # Check whether --enable-maintainer-mode was given.
2955if test "${enable_maintainer_mode+set}" = set; then :
2956  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2957else
2958  USE_MAINTAINER_MODE=no
2959fi
2960
2961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2962$as_echo "$USE_MAINTAINER_MODE" >&6; }
2963   if test $USE_MAINTAINER_MODE = yes; then
2964  MAINTAINER_MODE_TRUE=
2965  MAINTAINER_MODE_FALSE='#'
2966else
2967  MAINTAINER_MODE_TRUE='#'
2968  MAINTAINER_MODE_FALSE=
2969fi
2970
2971  MAINT=$MAINTAINER_MODE_TRUE
2972
2973
2974
2975# Initialize libtool
2976# Check whether --enable-static was given.
2977if test "${enable_static+set}" = set; then :
2978  enableval=$enable_static; p=${PACKAGE-default}
2979    case $enableval in
2980    yes) enable_static=yes ;;
2981    no) enable_static=no ;;
2982    *)
2983     enable_static=no
2984      # Look at the argument we got.  We use all the common list separators.
2985      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2986      for pkg in $enableval; do
2987	IFS="$lt_save_ifs"
2988	if test "X$pkg" = "X$p"; then
2989	  enable_static=yes
2990	fi
2991      done
2992      IFS="$lt_save_ifs"
2993      ;;
2994    esac
2995else
2996  enable_static=no
2997fi
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007case `pwd` in
3008  *\ * | *\	*)
3009    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3010$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3011esac
3012
3013
3014
3015macro_version='2.4.2'
3016macro_revision='1.3337'
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030ltmain="$ac_aux_dir/ltmain.sh"
3031
3032# Make sure we can run config.sub.
3033$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3034  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3035
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3037$as_echo_n "checking build system type... " >&6; }
3038if ${ac_cv_build+:} false; then :
3039  $as_echo_n "(cached) " >&6
3040else
3041  ac_build_alias=$build_alias
3042test "x$ac_build_alias" = x &&
3043  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3044test "x$ac_build_alias" = x &&
3045  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3046ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3047  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3048
3049fi
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3051$as_echo "$ac_cv_build" >&6; }
3052case $ac_cv_build in
3053*-*-*) ;;
3054*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3055esac
3056build=$ac_cv_build
3057ac_save_IFS=$IFS; IFS='-'
3058set x $ac_cv_build
3059shift
3060build_cpu=$1
3061build_vendor=$2
3062shift; shift
3063# Remember, the first character of IFS is used to create $*,
3064# except with old shells:
3065build_os=$*
3066IFS=$ac_save_IFS
3067case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3068
3069
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3071$as_echo_n "checking host system type... " >&6; }
3072if ${ac_cv_host+:} false; then :
3073  $as_echo_n "(cached) " >&6
3074else
3075  if test "x$host_alias" = x; then
3076  ac_cv_host=$ac_cv_build
3077else
3078  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3079    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3080fi
3081
3082fi
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3084$as_echo "$ac_cv_host" >&6; }
3085case $ac_cv_host in
3086*-*-*) ;;
3087*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3088esac
3089host=$ac_cv_host
3090ac_save_IFS=$IFS; IFS='-'
3091set x $ac_cv_host
3092shift
3093host_cpu=$1
3094host_vendor=$2
3095shift; shift
3096# Remember, the first character of IFS is used to create $*,
3097# except with old shells:
3098host_os=$*
3099IFS=$ac_save_IFS
3100case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3101
3102
3103# Backslashify metacharacters that are still active within
3104# double-quoted strings.
3105sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3106
3107# Same as above, but do not quote variable references.
3108double_quote_subst='s/\(["`\\]\)/\\\1/g'
3109
3110# Sed substitution to delay expansion of an escaped shell variable in a
3111# double_quote_subst'ed string.
3112delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3113
3114# Sed substitution to delay expansion of an escaped single quote.
3115delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3116
3117# Sed substitution to avoid accidental globbing in evaled expressions
3118no_glob_subst='s/\*/\\\*/g'
3119
3120ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3121ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3122ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3123
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3125$as_echo_n "checking how to print strings... " >&6; }
3126# Test print first, because it will be a builtin if present.
3127if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3128   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3129  ECHO='print -r --'
3130elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3131  ECHO='printf %s\n'
3132else
3133  # Use this function as a fallback that always works.
3134  func_fallback_echo ()
3135  {
3136    eval 'cat <<_LTECHO_EOF
3137$1
3138_LTECHO_EOF'
3139  }
3140  ECHO='func_fallback_echo'
3141fi
3142
3143# func_echo_all arg...
3144# Invoke $ECHO with all args, space-separated.
3145func_echo_all ()
3146{
3147    $ECHO ""
3148}
3149
3150case "$ECHO" in
3151  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3152$as_echo "printf" >&6; } ;;
3153  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3154$as_echo "print -r" >&6; } ;;
3155  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3156$as_echo "cat" >&6; } ;;
3157esac
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172DEPDIR="${am__leading_dot}deps"
3173
3174ac_config_commands="$ac_config_commands depfiles"
3175
3176
3177am_make=${MAKE-make}
3178cat > confinc << 'END'
3179am__doit:
3180	@echo this is the am__doit target
3181.PHONY: am__doit
3182END
3183# If we don't find an include directive, just comment out the code.
3184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3185$as_echo_n "checking for style of include used by $am_make... " >&6; }
3186am__include="#"
3187am__quote=
3188_am_result=none
3189# First try GNU make style include.
3190echo "include confinc" > confmf
3191# Ignore all kinds of additional output from 'make'.
3192case `$am_make -s -f confmf 2> /dev/null` in #(
3193*the\ am__doit\ target*)
3194  am__include=include
3195  am__quote=
3196  _am_result=GNU
3197  ;;
3198esac
3199# Now try BSD make style include.
3200if test "$am__include" = "#"; then
3201   echo '.include "confinc"' > confmf
3202   case `$am_make -s -f confmf 2> /dev/null` in #(
3203   *the\ am__doit\ target*)
3204     am__include=.include
3205     am__quote="\""
3206     _am_result=BSD
3207     ;;
3208   esac
3209fi
3210
3211
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3213$as_echo "$_am_result" >&6; }
3214rm -f confinc confmf
3215
3216# Check whether --enable-dependency-tracking was given.
3217if test "${enable_dependency_tracking+set}" = set; then :
3218  enableval=$enable_dependency_tracking;
3219fi
3220
3221if test "x$enable_dependency_tracking" != xno; then
3222  am_depcomp="$ac_aux_dir/depcomp"
3223  AMDEPBACKSLASH='\'
3224  am__nodep='_no'
3225fi
3226 if test "x$enable_dependency_tracking" != xno; then
3227  AMDEP_TRUE=
3228  AMDEP_FALSE='#'
3229else
3230  AMDEP_TRUE='#'
3231  AMDEP_FALSE=
3232fi
3233
3234
3235ac_ext=c
3236ac_cpp='$CPP $CPPFLAGS'
3237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240if test -n "$ac_tool_prefix"; then
3241  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3242set dummy ${ac_tool_prefix}gcc; ac_word=$2
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244$as_echo_n "checking for $ac_word... " >&6; }
3245if ${ac_cv_prog_CC+:} false; then :
3246  $as_echo_n "(cached) " >&6
3247else
3248  if test -n "$CC"; then
3249  ac_cv_prog_CC="$CC" # Let the user override the test.
3250else
3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252for as_dir in $PATH
3253do
3254  IFS=$as_save_IFS
3255  test -z "$as_dir" && as_dir=.
3256    for ac_exec_ext in '' $ac_executable_extensions; do
3257  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260    break 2
3261  fi
3262done
3263  done
3264IFS=$as_save_IFS
3265
3266fi
3267fi
3268CC=$ac_cv_prog_CC
3269if test -n "$CC"; then
3270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3271$as_echo "$CC" >&6; }
3272else
3273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274$as_echo "no" >&6; }
3275fi
3276
3277
3278fi
3279if test -z "$ac_cv_prog_CC"; then
3280  ac_ct_CC=$CC
3281  # Extract the first word of "gcc", so it can be a program name with args.
3282set dummy gcc; ac_word=$2
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284$as_echo_n "checking for $ac_word... " >&6; }
3285if ${ac_cv_prog_ac_ct_CC+:} false; then :
3286  $as_echo_n "(cached) " >&6
3287else
3288  if test -n "$ac_ct_CC"; then
3289  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3290else
3291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292for as_dir in $PATH
3293do
3294  IFS=$as_save_IFS
3295  test -z "$as_dir" && as_dir=.
3296    for ac_exec_ext in '' $ac_executable_extensions; do
3297  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298    ac_cv_prog_ac_ct_CC="gcc"
3299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300    break 2
3301  fi
3302done
3303  done
3304IFS=$as_save_IFS
3305
3306fi
3307fi
3308ac_ct_CC=$ac_cv_prog_ac_ct_CC
3309if test -n "$ac_ct_CC"; then
3310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3311$as_echo "$ac_ct_CC" >&6; }
3312else
3313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314$as_echo "no" >&6; }
3315fi
3316
3317  if test "x$ac_ct_CC" = x; then
3318    CC=""
3319  else
3320    case $cross_compiling:$ac_tool_warned in
3321yes:)
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3324ac_tool_warned=yes ;;
3325esac
3326    CC=$ac_ct_CC
3327  fi
3328else
3329  CC="$ac_cv_prog_CC"
3330fi
3331
3332if test -z "$CC"; then
3333          if test -n "$ac_tool_prefix"; then
3334    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3335set dummy ${ac_tool_prefix}cc; ac_word=$2
3336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337$as_echo_n "checking for $ac_word... " >&6; }
3338if ${ac_cv_prog_CC+:} false; then :
3339  $as_echo_n "(cached) " >&6
3340else
3341  if test -n "$CC"; then
3342  ac_cv_prog_CC="$CC" # Let the user override the test.
3343else
3344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345for as_dir in $PATH
3346do
3347  IFS=$as_save_IFS
3348  test -z "$as_dir" && as_dir=.
3349    for ac_exec_ext in '' $ac_executable_extensions; do
3350  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3351    ac_cv_prog_CC="${ac_tool_prefix}cc"
3352    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3353    break 2
3354  fi
3355done
3356  done
3357IFS=$as_save_IFS
3358
3359fi
3360fi
3361CC=$ac_cv_prog_CC
3362if test -n "$CC"; then
3363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3364$as_echo "$CC" >&6; }
3365else
3366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367$as_echo "no" >&6; }
3368fi
3369
3370
3371  fi
3372fi
3373if test -z "$CC"; then
3374  # Extract the first word of "cc", so it can be a program name with args.
3375set dummy cc; ac_word=$2
3376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377$as_echo_n "checking for $ac_word... " >&6; }
3378if ${ac_cv_prog_CC+:} false; then :
3379  $as_echo_n "(cached) " >&6
3380else
3381  if test -n "$CC"; then
3382  ac_cv_prog_CC="$CC" # Let the user override the test.
3383else
3384  ac_prog_rejected=no
3385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386for as_dir in $PATH
3387do
3388  IFS=$as_save_IFS
3389  test -z "$as_dir" && as_dir=.
3390    for ac_exec_ext in '' $ac_executable_extensions; do
3391  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3393       ac_prog_rejected=yes
3394       continue
3395     fi
3396    ac_cv_prog_CC="cc"
3397    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3398    break 2
3399  fi
3400done
3401  done
3402IFS=$as_save_IFS
3403
3404if test $ac_prog_rejected = yes; then
3405  # We found a bogon in the path, so make sure we never use it.
3406  set dummy $ac_cv_prog_CC
3407  shift
3408  if test $# != 0; then
3409    # We chose a different compiler from the bogus one.
3410    # However, it has the same basename, so the bogon will be chosen
3411    # first if we set CC to just the basename; use the full file name.
3412    shift
3413    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3414  fi
3415fi
3416fi
3417fi
3418CC=$ac_cv_prog_CC
3419if test -n "$CC"; then
3420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3421$as_echo "$CC" >&6; }
3422else
3423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424$as_echo "no" >&6; }
3425fi
3426
3427
3428fi
3429if test -z "$CC"; then
3430  if test -n "$ac_tool_prefix"; then
3431  for ac_prog in cl.exe
3432  do
3433    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3434set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436$as_echo_n "checking for $ac_word... " >&6; }
3437if ${ac_cv_prog_CC+:} false; then :
3438  $as_echo_n "(cached) " >&6
3439else
3440  if test -n "$CC"; then
3441  ac_cv_prog_CC="$CC" # Let the user override the test.
3442else
3443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444for as_dir in $PATH
3445do
3446  IFS=$as_save_IFS
3447  test -z "$as_dir" && as_dir=.
3448    for ac_exec_ext in '' $ac_executable_extensions; do
3449  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3451    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3452    break 2
3453  fi
3454done
3455  done
3456IFS=$as_save_IFS
3457
3458fi
3459fi
3460CC=$ac_cv_prog_CC
3461if test -n "$CC"; then
3462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3463$as_echo "$CC" >&6; }
3464else
3465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466$as_echo "no" >&6; }
3467fi
3468
3469
3470    test -n "$CC" && break
3471  done
3472fi
3473if test -z "$CC"; then
3474  ac_ct_CC=$CC
3475  for ac_prog in cl.exe
3476do
3477  # Extract the first word of "$ac_prog", so it can be a program name with args.
3478set dummy $ac_prog; ac_word=$2
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480$as_echo_n "checking for $ac_word... " >&6; }
3481if ${ac_cv_prog_ac_ct_CC+:} false; then :
3482  $as_echo_n "(cached) " >&6
3483else
3484  if test -n "$ac_ct_CC"; then
3485  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3486else
3487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488for as_dir in $PATH
3489do
3490  IFS=$as_save_IFS
3491  test -z "$as_dir" && as_dir=.
3492    for ac_exec_ext in '' $ac_executable_extensions; do
3493  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3494    ac_cv_prog_ac_ct_CC="$ac_prog"
3495    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496    break 2
3497  fi
3498done
3499  done
3500IFS=$as_save_IFS
3501
3502fi
3503fi
3504ac_ct_CC=$ac_cv_prog_ac_ct_CC
3505if test -n "$ac_ct_CC"; then
3506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3507$as_echo "$ac_ct_CC" >&6; }
3508else
3509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510$as_echo "no" >&6; }
3511fi
3512
3513
3514  test -n "$ac_ct_CC" && break
3515done
3516
3517  if test "x$ac_ct_CC" = x; then
3518    CC=""
3519  else
3520    case $cross_compiling:$ac_tool_warned in
3521yes:)
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3523$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3524ac_tool_warned=yes ;;
3525esac
3526    CC=$ac_ct_CC
3527  fi
3528fi
3529
3530fi
3531
3532
3533test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3534$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3535as_fn_error $? "no acceptable C compiler found in \$PATH
3536See \`config.log' for more details" "$LINENO" 5; }
3537
3538# Provide some information about the compiler.
3539$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3540set X $ac_compile
3541ac_compiler=$2
3542for ac_option in --version -v -V -qversion; do
3543  { { ac_try="$ac_compiler $ac_option >&5"
3544case "(($ac_try" in
3545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546  *) ac_try_echo=$ac_try;;
3547esac
3548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3549$as_echo "$ac_try_echo"; } >&5
3550  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3551  ac_status=$?
3552  if test -s conftest.err; then
3553    sed '10a\
3554... rest of stderr output deleted ...
3555         10q' conftest.err >conftest.er1
3556    cat conftest.er1 >&5
3557  fi
3558  rm -f conftest.er1 conftest.err
3559  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3560  test $ac_status = 0; }
3561done
3562
3563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564/* end confdefs.h.  */
3565
3566int
3567main ()
3568{
3569
3570  ;
3571  return 0;
3572}
3573_ACEOF
3574ac_clean_files_save=$ac_clean_files
3575ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3576# Try to create an executable without -o first, disregard a.out.
3577# It will help us diagnose broken compilers, and finding out an intuition
3578# of exeext.
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3580$as_echo_n "checking whether the C compiler works... " >&6; }
3581ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3582
3583# The possible output files:
3584ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3585
3586ac_rmfiles=
3587for ac_file in $ac_files
3588do
3589  case $ac_file in
3590    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3591    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3592  esac
3593done
3594rm -f $ac_rmfiles
3595
3596if { { ac_try="$ac_link_default"
3597case "(($ac_try" in
3598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599  *) ac_try_echo=$ac_try;;
3600esac
3601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3602$as_echo "$ac_try_echo"; } >&5
3603  (eval "$ac_link_default") 2>&5
3604  ac_status=$?
3605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3606  test $ac_status = 0; }; then :
3607  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3608# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3609# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3610# so that the user can short-circuit this test for compilers unknown to
3611# Autoconf.
3612for ac_file in $ac_files ''
3613do
3614  test -f "$ac_file" || continue
3615  case $ac_file in
3616    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3617	;;
3618    [ab].out )
3619	# We found the default executable, but exeext='' is most
3620	# certainly right.
3621	break;;
3622    *.* )
3623	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3624	then :; else
3625	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3626	fi
3627	# We set ac_cv_exeext here because the later test for it is not
3628	# safe: cross compilers may not add the suffix if given an `-o'
3629	# argument, so we may need to know it at that point already.
3630	# Even if this section looks crufty: it has the advantage of
3631	# actually working.
3632	break;;
3633    * )
3634	break;;
3635  esac
3636done
3637test "$ac_cv_exeext" = no && ac_cv_exeext=
3638
3639else
3640  ac_file=''
3641fi
3642if test -z "$ac_file"; then :
3643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644$as_echo "no" >&6; }
3645$as_echo "$as_me: failed program was:" >&5
3646sed 's/^/| /' conftest.$ac_ext >&5
3647
3648{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3650as_fn_error 77 "C compiler cannot create executables
3651See \`config.log' for more details" "$LINENO" 5; }
3652else
3653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3654$as_echo "yes" >&6; }
3655fi
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3657$as_echo_n "checking for C compiler default output file name... " >&6; }
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3659$as_echo "$ac_file" >&6; }
3660ac_exeext=$ac_cv_exeext
3661
3662rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3663ac_clean_files=$ac_clean_files_save
3664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3665$as_echo_n "checking for suffix of executables... " >&6; }
3666if { { ac_try="$ac_link"
3667case "(($ac_try" in
3668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669  *) ac_try_echo=$ac_try;;
3670esac
3671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672$as_echo "$ac_try_echo"; } >&5
3673  (eval "$ac_link") 2>&5
3674  ac_status=$?
3675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676  test $ac_status = 0; }; then :
3677  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3678# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3679# work properly (i.e., refer to `conftest.exe'), while it won't with
3680# `rm'.
3681for ac_file in conftest.exe conftest conftest.*; do
3682  test -f "$ac_file" || continue
3683  case $ac_file in
3684    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3685    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3686	  break;;
3687    * ) break;;
3688  esac
3689done
3690else
3691  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3692$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3693as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3694See \`config.log' for more details" "$LINENO" 5; }
3695fi
3696rm -f conftest conftest$ac_cv_exeext
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3698$as_echo "$ac_cv_exeext" >&6; }
3699
3700rm -f conftest.$ac_ext
3701EXEEXT=$ac_cv_exeext
3702ac_exeext=$EXEEXT
3703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704/* end confdefs.h.  */
3705#include <stdio.h>
3706int
3707main ()
3708{
3709FILE *f = fopen ("conftest.out", "w");
3710 return ferror (f) || fclose (f) != 0;
3711
3712  ;
3713  return 0;
3714}
3715_ACEOF
3716ac_clean_files="$ac_clean_files conftest.out"
3717# Check that the compiler produces executables we can run.  If not, either
3718# the compiler is broken, or we cross compile.
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3720$as_echo_n "checking whether we are cross compiling... " >&6; }
3721if test "$cross_compiling" != yes; then
3722  { { ac_try="$ac_link"
3723case "(($ac_try" in
3724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725  *) ac_try_echo=$ac_try;;
3726esac
3727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3728$as_echo "$ac_try_echo"; } >&5
3729  (eval "$ac_link") 2>&5
3730  ac_status=$?
3731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732  test $ac_status = 0; }
3733  if { ac_try='./conftest$ac_cv_exeext'
3734  { { case "(($ac_try" in
3735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736  *) ac_try_echo=$ac_try;;
3737esac
3738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3739$as_echo "$ac_try_echo"; } >&5
3740  (eval "$ac_try") 2>&5
3741  ac_status=$?
3742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3743  test $ac_status = 0; }; }; then
3744    cross_compiling=no
3745  else
3746    if test "$cross_compiling" = maybe; then
3747	cross_compiling=yes
3748    else
3749	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3750$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3751as_fn_error $? "cannot run C compiled programs.
3752If you meant to cross compile, use \`--host'.
3753See \`config.log' for more details" "$LINENO" 5; }
3754    fi
3755  fi
3756fi
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3758$as_echo "$cross_compiling" >&6; }
3759
3760rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3761ac_clean_files=$ac_clean_files_save
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3763$as_echo_n "checking for suffix of object files... " >&6; }
3764if ${ac_cv_objext+:} false; then :
3765  $as_echo_n "(cached) " >&6
3766else
3767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768/* end confdefs.h.  */
3769
3770int
3771main ()
3772{
3773
3774  ;
3775  return 0;
3776}
3777_ACEOF
3778rm -f conftest.o conftest.obj
3779if { { ac_try="$ac_compile"
3780case "(($ac_try" in
3781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782  *) ac_try_echo=$ac_try;;
3783esac
3784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785$as_echo "$ac_try_echo"; } >&5
3786  (eval "$ac_compile") 2>&5
3787  ac_status=$?
3788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3789  test $ac_status = 0; }; then :
3790  for ac_file in conftest.o conftest.obj conftest.*; do
3791  test -f "$ac_file" || continue;
3792  case $ac_file in
3793    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3794    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3795       break;;
3796  esac
3797done
3798else
3799  $as_echo "$as_me: failed program was:" >&5
3800sed 's/^/| /' conftest.$ac_ext >&5
3801
3802{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3804as_fn_error $? "cannot compute suffix of object files: cannot compile
3805See \`config.log' for more details" "$LINENO" 5; }
3806fi
3807rm -f conftest.$ac_cv_objext conftest.$ac_ext
3808fi
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3810$as_echo "$ac_cv_objext" >&6; }
3811OBJEXT=$ac_cv_objext
3812ac_objext=$OBJEXT
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3814$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3815if ${ac_cv_c_compiler_gnu+:} false; then :
3816  $as_echo_n "(cached) " >&6
3817else
3818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819/* end confdefs.h.  */
3820
3821int
3822main ()
3823{
3824#ifndef __GNUC__
3825       choke me
3826#endif
3827
3828  ;
3829  return 0;
3830}
3831_ACEOF
3832if ac_fn_c_try_compile "$LINENO"; then :
3833  ac_compiler_gnu=yes
3834else
3835  ac_compiler_gnu=no
3836fi
3837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3838ac_cv_c_compiler_gnu=$ac_compiler_gnu
3839
3840fi
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3842$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3843if test $ac_compiler_gnu = yes; then
3844  GCC=yes
3845else
3846  GCC=
3847fi
3848ac_test_CFLAGS=${CFLAGS+set}
3849ac_save_CFLAGS=$CFLAGS
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3851$as_echo_n "checking whether $CC accepts -g... " >&6; }
3852if ${ac_cv_prog_cc_g+:} false; then :
3853  $as_echo_n "(cached) " >&6
3854else
3855  ac_save_c_werror_flag=$ac_c_werror_flag
3856   ac_c_werror_flag=yes
3857   ac_cv_prog_cc_g=no
3858   CFLAGS="-g"
3859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860/* end confdefs.h.  */
3861
3862int
3863main ()
3864{
3865
3866  ;
3867  return 0;
3868}
3869_ACEOF
3870if ac_fn_c_try_compile "$LINENO"; then :
3871  ac_cv_prog_cc_g=yes
3872else
3873  CFLAGS=""
3874      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875/* end confdefs.h.  */
3876
3877int
3878main ()
3879{
3880
3881  ;
3882  return 0;
3883}
3884_ACEOF
3885if ac_fn_c_try_compile "$LINENO"; then :
3886
3887else
3888  ac_c_werror_flag=$ac_save_c_werror_flag
3889	 CFLAGS="-g"
3890	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891/* end confdefs.h.  */
3892
3893int
3894main ()
3895{
3896
3897  ;
3898  return 0;
3899}
3900_ACEOF
3901if ac_fn_c_try_compile "$LINENO"; then :
3902  ac_cv_prog_cc_g=yes
3903fi
3904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905fi
3906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907fi
3908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909   ac_c_werror_flag=$ac_save_c_werror_flag
3910fi
3911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3912$as_echo "$ac_cv_prog_cc_g" >&6; }
3913if test "$ac_test_CFLAGS" = set; then
3914  CFLAGS=$ac_save_CFLAGS
3915elif test $ac_cv_prog_cc_g = yes; then
3916  if test "$GCC" = yes; then
3917    CFLAGS="-g -O2"
3918  else
3919    CFLAGS="-g"
3920  fi
3921else
3922  if test "$GCC" = yes; then
3923    CFLAGS="-O2"
3924  else
3925    CFLAGS=
3926  fi
3927fi
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3929$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3930if ${ac_cv_prog_cc_c89+:} false; then :
3931  $as_echo_n "(cached) " >&6
3932else
3933  ac_cv_prog_cc_c89=no
3934ac_save_CC=$CC
3935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936/* end confdefs.h.  */
3937#include <stdarg.h>
3938#include <stdio.h>
3939struct stat;
3940/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3941struct buf { int x; };
3942FILE * (*rcsopen) (struct buf *, struct stat *, int);
3943static char *e (p, i)
3944     char **p;
3945     int i;
3946{
3947  return p[i];
3948}
3949static char *f (char * (*g) (char **, int), char **p, ...)
3950{
3951  char *s;
3952  va_list v;
3953  va_start (v,p);
3954  s = g (p, va_arg (v,int));
3955  va_end (v);
3956  return s;
3957}
3958
3959/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3960   function prototypes and stuff, but not '\xHH' hex character constants.
3961   These don't provoke an error unfortunately, instead are silently treated
3962   as 'x'.  The following induces an error, until -std is added to get
3963   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3964   array size at least.  It's necessary to write '\x00'==0 to get something
3965   that's true only with -std.  */
3966int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3967
3968/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3969   inside strings and character constants.  */
3970#define FOO(x) 'x'
3971int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3972
3973int test (int i, double x);
3974struct s1 {int (*f) (int a);};
3975struct s2 {int (*f) (double a);};
3976int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3977int argc;
3978char **argv;
3979int
3980main ()
3981{
3982return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3983  ;
3984  return 0;
3985}
3986_ACEOF
3987for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3988	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3989do
3990  CC="$ac_save_CC $ac_arg"
3991  if ac_fn_c_try_compile "$LINENO"; then :
3992  ac_cv_prog_cc_c89=$ac_arg
3993fi
3994rm -f core conftest.err conftest.$ac_objext
3995  test "x$ac_cv_prog_cc_c89" != "xno" && break
3996done
3997rm -f conftest.$ac_ext
3998CC=$ac_save_CC
3999
4000fi
4001# AC_CACHE_VAL
4002case "x$ac_cv_prog_cc_c89" in
4003  x)
4004    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4005$as_echo "none needed" >&6; } ;;
4006  xno)
4007    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4008$as_echo "unsupported" >&6; } ;;
4009  *)
4010    CC="$CC $ac_cv_prog_cc_c89"
4011    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4012$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4013esac
4014if test "x$ac_cv_prog_cc_c89" != xno; then :
4015
4016fi
4017
4018ac_ext=c
4019ac_cpp='$CPP $CPPFLAGS'
4020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023
4024ac_ext=c
4025ac_cpp='$CPP $CPPFLAGS'
4026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4028ac_compiler_gnu=$ac_cv_c_compiler_gnu
4029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4030$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4031if ${am_cv_prog_cc_c_o+:} false; then :
4032  $as_echo_n "(cached) " >&6
4033else
4034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035/* end confdefs.h.  */
4036
4037int
4038main ()
4039{
4040
4041  ;
4042  return 0;
4043}
4044_ACEOF
4045  # Make sure it works both with $CC and with simple cc.
4046  # Following AC_PROG_CC_C_O, we do the test twice because some
4047  # compilers refuse to overwrite an existing .o file with -o,
4048  # though they will create one.
4049  am_cv_prog_cc_c_o=yes
4050  for am_i in 1 2; do
4051    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4052   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4053   ac_status=$?
4054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055   (exit $ac_status); } \
4056         && test -f conftest2.$ac_objext; then
4057      : OK
4058    else
4059      am_cv_prog_cc_c_o=no
4060      break
4061    fi
4062  done
4063  rm -f core conftest*
4064  unset am_i
4065fi
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4067$as_echo "$am_cv_prog_cc_c_o" >&6; }
4068if test "$am_cv_prog_cc_c_o" != yes; then
4069   # Losing compiler, so override with the script.
4070   # FIXME: It is wrong to rewrite CC.
4071   # But if we don't then we get into trouble of one sort or another.
4072   # A longer-term fix would be to have automake use am__CC in this case,
4073   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4074   CC="$am_aux_dir/compile $CC"
4075fi
4076ac_ext=c
4077ac_cpp='$CPP $CPPFLAGS'
4078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080ac_compiler_gnu=$ac_cv_c_compiler_gnu
4081
4082
4083depcc="$CC"   am_compiler_list=
4084
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4086$as_echo_n "checking dependency style of $depcc... " >&6; }
4087if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4088  $as_echo_n "(cached) " >&6
4089else
4090  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4091  # We make a subdir and do the tests there.  Otherwise we can end up
4092  # making bogus files that we don't know about and never remove.  For
4093  # instance it was reported that on HP-UX the gcc test will end up
4094  # making a dummy file named 'D' -- because '-MD' means "put the output
4095  # in D".
4096  rm -rf conftest.dir
4097  mkdir conftest.dir
4098  # Copy depcomp to subdir because otherwise we won't find it if we're
4099  # using a relative directory.
4100  cp "$am_depcomp" conftest.dir
4101  cd conftest.dir
4102  # We will build objects and dependencies in a subdirectory because
4103  # it helps to detect inapplicable dependency modes.  For instance
4104  # both Tru64's cc and ICC support -MD to output dependencies as a
4105  # side effect of compilation, but ICC will put the dependencies in
4106  # the current directory while Tru64 will put them in the object
4107  # directory.
4108  mkdir sub
4109
4110  am_cv_CC_dependencies_compiler_type=none
4111  if test "$am_compiler_list" = ""; then
4112     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4113  fi
4114  am__universal=false
4115  case " $depcc " in #(
4116     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4117     esac
4118
4119  for depmode in $am_compiler_list; do
4120    # Setup a source with many dependencies, because some compilers
4121    # like to wrap large dependency lists on column 80 (with \), and
4122    # we should not choose a depcomp mode which is confused by this.
4123    #
4124    # We need to recreate these files for each test, as the compiler may
4125    # overwrite some of them when testing with obscure command lines.
4126    # This happens at least with the AIX C compiler.
4127    : > sub/conftest.c
4128    for i in 1 2 3 4 5 6; do
4129      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4130      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4131      # Solaris 10 /bin/sh.
4132      echo '/* dummy */' > sub/conftst$i.h
4133    done
4134    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4135
4136    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4137    # mode.  It turns out that the SunPro C++ compiler does not properly
4138    # handle '-M -o', and we need to detect this.  Also, some Intel
4139    # versions had trouble with output in subdirs.
4140    am__obj=sub/conftest.${OBJEXT-o}
4141    am__minus_obj="-o $am__obj"
4142    case $depmode in
4143    gcc)
4144      # This depmode causes a compiler race in universal mode.
4145      test "$am__universal" = false || continue
4146      ;;
4147    nosideeffect)
4148      # After this tag, mechanisms are not by side-effect, so they'll
4149      # only be used when explicitly requested.
4150      if test "x$enable_dependency_tracking" = xyes; then
4151	continue
4152      else
4153	break
4154      fi
4155      ;;
4156    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4157      # This compiler won't grok '-c -o', but also, the minuso test has
4158      # not run yet.  These depmodes are late enough in the game, and
4159      # so weak that their functioning should not be impacted.
4160      am__obj=conftest.${OBJEXT-o}
4161      am__minus_obj=
4162      ;;
4163    none) break ;;
4164    esac
4165    if depmode=$depmode \
4166       source=sub/conftest.c object=$am__obj \
4167       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4168       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4169         >/dev/null 2>conftest.err &&
4170       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4171       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4172       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4173       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4174      # icc doesn't choke on unknown options, it will just issue warnings
4175      # or remarks (even with -Werror).  So we grep stderr for any message
4176      # that says an option was ignored or not supported.
4177      # When given -MP, icc 7.0 and 7.1 complain thusly:
4178      #   icc: Command line warning: ignoring option '-M'; no argument required
4179      # The diagnosis changed in icc 8.0:
4180      #   icc: Command line remark: option '-MP' not supported
4181      if (grep 'ignoring option' conftest.err ||
4182          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4183        am_cv_CC_dependencies_compiler_type=$depmode
4184        break
4185      fi
4186    fi
4187  done
4188
4189  cd ..
4190  rm -rf conftest.dir
4191else
4192  am_cv_CC_dependencies_compiler_type=none
4193fi
4194
4195fi
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4197$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4198CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4199
4200 if
4201  test "x$enable_dependency_tracking" != xno \
4202  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4203  am__fastdepCC_TRUE=
4204  am__fastdepCC_FALSE='#'
4205else
4206  am__fastdepCC_TRUE='#'
4207  am__fastdepCC_FALSE=
4208fi
4209
4210
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4212$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4213if ${ac_cv_path_SED+:} false; then :
4214  $as_echo_n "(cached) " >&6
4215else
4216            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4217     for ac_i in 1 2 3 4 5 6 7; do
4218       ac_script="$ac_script$as_nl$ac_script"
4219     done
4220     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4221     { ac_script=; unset ac_script;}
4222     if test -z "$SED"; then
4223  ac_path_SED_found=false
4224  # Loop through the user's path and test for each of PROGNAME-LIST
4225  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226for as_dir in $PATH
4227do
4228  IFS=$as_save_IFS
4229  test -z "$as_dir" && as_dir=.
4230    for ac_prog in sed gsed; do
4231    for ac_exec_ext in '' $ac_executable_extensions; do
4232      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4233      as_fn_executable_p "$ac_path_SED" || continue
4234# Check for GNU ac_path_SED and select it if it is found.
4235  # Check for GNU $ac_path_SED
4236case `"$ac_path_SED" --version 2>&1` in
4237*GNU*)
4238  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4239*)
4240  ac_count=0
4241  $as_echo_n 0123456789 >"conftest.in"
4242  while :
4243  do
4244    cat "conftest.in" "conftest.in" >"conftest.tmp"
4245    mv "conftest.tmp" "conftest.in"
4246    cp "conftest.in" "conftest.nl"
4247    $as_echo '' >> "conftest.nl"
4248    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4249    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4250    as_fn_arith $ac_count + 1 && ac_count=$as_val
4251    if test $ac_count -gt ${ac_path_SED_max-0}; then
4252      # Best one so far, save it but keep looking for a better one
4253      ac_cv_path_SED="$ac_path_SED"
4254      ac_path_SED_max=$ac_count
4255    fi
4256    # 10*(2^10) chars as input seems more than enough
4257    test $ac_count -gt 10 && break
4258  done
4259  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4260esac
4261
4262      $ac_path_SED_found && break 3
4263    done
4264  done
4265  done
4266IFS=$as_save_IFS
4267  if test -z "$ac_cv_path_SED"; then
4268    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4269  fi
4270else
4271  ac_cv_path_SED=$SED
4272fi
4273
4274fi
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4276$as_echo "$ac_cv_path_SED" >&6; }
4277 SED="$ac_cv_path_SED"
4278  rm -f conftest.sed
4279
4280test -z "$SED" && SED=sed
4281Xsed="$SED -e 1s/^X//"
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4294$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4295if ${ac_cv_path_GREP+:} false; then :
4296  $as_echo_n "(cached) " >&6
4297else
4298  if test -z "$GREP"; then
4299  ac_path_GREP_found=false
4300  # Loop through the user's path and test for each of PROGNAME-LIST
4301  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4303do
4304  IFS=$as_save_IFS
4305  test -z "$as_dir" && as_dir=.
4306    for ac_prog in grep ggrep; do
4307    for ac_exec_ext in '' $ac_executable_extensions; do
4308      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4309      as_fn_executable_p "$ac_path_GREP" || continue
4310# Check for GNU ac_path_GREP and select it if it is found.
4311  # Check for GNU $ac_path_GREP
4312case `"$ac_path_GREP" --version 2>&1` in
4313*GNU*)
4314  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4315*)
4316  ac_count=0
4317  $as_echo_n 0123456789 >"conftest.in"
4318  while :
4319  do
4320    cat "conftest.in" "conftest.in" >"conftest.tmp"
4321    mv "conftest.tmp" "conftest.in"
4322    cp "conftest.in" "conftest.nl"
4323    $as_echo 'GREP' >> "conftest.nl"
4324    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4325    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4326    as_fn_arith $ac_count + 1 && ac_count=$as_val
4327    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4328      # Best one so far, save it but keep looking for a better one
4329      ac_cv_path_GREP="$ac_path_GREP"
4330      ac_path_GREP_max=$ac_count
4331    fi
4332    # 10*(2^10) chars as input seems more than enough
4333    test $ac_count -gt 10 && break
4334  done
4335  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4336esac
4337
4338      $ac_path_GREP_found && break 3
4339    done
4340  done
4341  done
4342IFS=$as_save_IFS
4343  if test -z "$ac_cv_path_GREP"; then
4344    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4345  fi
4346else
4347  ac_cv_path_GREP=$GREP
4348fi
4349
4350fi
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4352$as_echo "$ac_cv_path_GREP" >&6; }
4353 GREP="$ac_cv_path_GREP"
4354
4355
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4357$as_echo_n "checking for egrep... " >&6; }
4358if ${ac_cv_path_EGREP+:} false; then :
4359  $as_echo_n "(cached) " >&6
4360else
4361  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4362   then ac_cv_path_EGREP="$GREP -E"
4363   else
4364     if test -z "$EGREP"; then
4365  ac_path_EGREP_found=false
4366  # Loop through the user's path and test for each of PROGNAME-LIST
4367  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4369do
4370  IFS=$as_save_IFS
4371  test -z "$as_dir" && as_dir=.
4372    for ac_prog in egrep; do
4373    for ac_exec_ext in '' $ac_executable_extensions; do
4374      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4375      as_fn_executable_p "$ac_path_EGREP" || continue
4376# Check for GNU ac_path_EGREP and select it if it is found.
4377  # Check for GNU $ac_path_EGREP
4378case `"$ac_path_EGREP" --version 2>&1` in
4379*GNU*)
4380  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4381*)
4382  ac_count=0
4383  $as_echo_n 0123456789 >"conftest.in"
4384  while :
4385  do
4386    cat "conftest.in" "conftest.in" >"conftest.tmp"
4387    mv "conftest.tmp" "conftest.in"
4388    cp "conftest.in" "conftest.nl"
4389    $as_echo 'EGREP' >> "conftest.nl"
4390    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4391    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4392    as_fn_arith $ac_count + 1 && ac_count=$as_val
4393    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4394      # Best one so far, save it but keep looking for a better one
4395      ac_cv_path_EGREP="$ac_path_EGREP"
4396      ac_path_EGREP_max=$ac_count
4397    fi
4398    # 10*(2^10) chars as input seems more than enough
4399    test $ac_count -gt 10 && break
4400  done
4401  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4402esac
4403
4404      $ac_path_EGREP_found && break 3
4405    done
4406  done
4407  done
4408IFS=$as_save_IFS
4409  if test -z "$ac_cv_path_EGREP"; then
4410    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4411  fi
4412else
4413  ac_cv_path_EGREP=$EGREP
4414fi
4415
4416   fi
4417fi
4418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4419$as_echo "$ac_cv_path_EGREP" >&6; }
4420 EGREP="$ac_cv_path_EGREP"
4421
4422
4423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4424$as_echo_n "checking for fgrep... " >&6; }
4425if ${ac_cv_path_FGREP+:} false; then :
4426  $as_echo_n "(cached) " >&6
4427else
4428  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4429   then ac_cv_path_FGREP="$GREP -F"
4430   else
4431     if test -z "$FGREP"; then
4432  ac_path_FGREP_found=false
4433  # Loop through the user's path and test for each of PROGNAME-LIST
4434  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4436do
4437  IFS=$as_save_IFS
4438  test -z "$as_dir" && as_dir=.
4439    for ac_prog in fgrep; do
4440    for ac_exec_ext in '' $ac_executable_extensions; do
4441      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4442      as_fn_executable_p "$ac_path_FGREP" || continue
4443# Check for GNU ac_path_FGREP and select it if it is found.
4444  # Check for GNU $ac_path_FGREP
4445case `"$ac_path_FGREP" --version 2>&1` in
4446*GNU*)
4447  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4448*)
4449  ac_count=0
4450  $as_echo_n 0123456789 >"conftest.in"
4451  while :
4452  do
4453    cat "conftest.in" "conftest.in" >"conftest.tmp"
4454    mv "conftest.tmp" "conftest.in"
4455    cp "conftest.in" "conftest.nl"
4456    $as_echo 'FGREP' >> "conftest.nl"
4457    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4458    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4459    as_fn_arith $ac_count + 1 && ac_count=$as_val
4460    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4461      # Best one so far, save it but keep looking for a better one
4462      ac_cv_path_FGREP="$ac_path_FGREP"
4463      ac_path_FGREP_max=$ac_count
4464    fi
4465    # 10*(2^10) chars as input seems more than enough
4466    test $ac_count -gt 10 && break
4467  done
4468  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4469esac
4470
4471      $ac_path_FGREP_found && break 3
4472    done
4473  done
4474  done
4475IFS=$as_save_IFS
4476  if test -z "$ac_cv_path_FGREP"; then
4477    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4478  fi
4479else
4480  ac_cv_path_FGREP=$FGREP
4481fi
4482
4483   fi
4484fi
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4486$as_echo "$ac_cv_path_FGREP" >&6; }
4487 FGREP="$ac_cv_path_FGREP"
4488
4489
4490test -z "$GREP" && GREP=grep
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510# Check whether --with-gnu-ld was given.
4511if test "${with_gnu_ld+set}" = set; then :
4512  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4513else
4514  with_gnu_ld=no
4515fi
4516
4517ac_prog=ld
4518if test "$GCC" = yes; then
4519  # Check if gcc -print-prog-name=ld gives a path.
4520  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4521$as_echo_n "checking for ld used by $CC... " >&6; }
4522  case $host in
4523  *-*-mingw*)
4524    # gcc leaves a trailing carriage return which upsets mingw
4525    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4526  *)
4527    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4528  esac
4529  case $ac_prog in
4530    # Accept absolute paths.
4531    [\\/]* | ?:[\\/]*)
4532      re_direlt='/[^/][^/]*/\.\./'
4533      # Canonicalize the pathname of ld
4534      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4535      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4536	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4537      done
4538      test -z "$LD" && LD="$ac_prog"
4539      ;;
4540  "")
4541    # If it fails, then pretend we aren't using GCC.
4542    ac_prog=ld
4543    ;;
4544  *)
4545    # If it is relative, then search for the first ld in PATH.
4546    with_gnu_ld=unknown
4547    ;;
4548  esac
4549elif test "$with_gnu_ld" = yes; then
4550  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4551$as_echo_n "checking for GNU ld... " >&6; }
4552else
4553  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4554$as_echo_n "checking for non-GNU ld... " >&6; }
4555fi
4556if ${lt_cv_path_LD+:} false; then :
4557  $as_echo_n "(cached) " >&6
4558else
4559  if test -z "$LD"; then
4560  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4561  for ac_dir in $PATH; do
4562    IFS="$lt_save_ifs"
4563    test -z "$ac_dir" && ac_dir=.
4564    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4565      lt_cv_path_LD="$ac_dir/$ac_prog"
4566      # Check to see if the program is GNU ld.  I'd rather use --version,
4567      # but apparently some variants of GNU ld only accept -v.
4568      # Break only if it was the GNU/non-GNU ld that we prefer.
4569      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4570      *GNU* | *'with BFD'*)
4571	test "$with_gnu_ld" != no && break
4572	;;
4573      *)
4574	test "$with_gnu_ld" != yes && break
4575	;;
4576      esac
4577    fi
4578  done
4579  IFS="$lt_save_ifs"
4580else
4581  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4582fi
4583fi
4584
4585LD="$lt_cv_path_LD"
4586if test -n "$LD"; then
4587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4588$as_echo "$LD" >&6; }
4589else
4590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591$as_echo "no" >&6; }
4592fi
4593test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4595$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4596if ${lt_cv_prog_gnu_ld+:} false; then :
4597  $as_echo_n "(cached) " >&6
4598else
4599  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4600case `$LD -v 2>&1 </dev/null` in
4601*GNU* | *'with BFD'*)
4602  lt_cv_prog_gnu_ld=yes
4603  ;;
4604*)
4605  lt_cv_prog_gnu_ld=no
4606  ;;
4607esac
4608fi
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4610$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4611with_gnu_ld=$lt_cv_prog_gnu_ld
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4622$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4623if ${lt_cv_path_NM+:} false; then :
4624  $as_echo_n "(cached) " >&6
4625else
4626  if test -n "$NM"; then
4627  # Let the user override the test.
4628  lt_cv_path_NM="$NM"
4629else
4630  lt_nm_to_check="${ac_tool_prefix}nm"
4631  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4632    lt_nm_to_check="$lt_nm_to_check nm"
4633  fi
4634  for lt_tmp_nm in $lt_nm_to_check; do
4635    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4636    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4637      IFS="$lt_save_ifs"
4638      test -z "$ac_dir" && ac_dir=.
4639      tmp_nm="$ac_dir/$lt_tmp_nm"
4640      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4641	# Check to see if the nm accepts a BSD-compat flag.
4642	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4643	#   nm: unknown option "B" ignored
4644	# Tru64's nm complains that /dev/null is an invalid object file
4645	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4646	*/dev/null* | *'Invalid file or object type'*)
4647	  lt_cv_path_NM="$tmp_nm -B"
4648	  break
4649	  ;;
4650	*)
4651	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4652	  */dev/null*)
4653	    lt_cv_path_NM="$tmp_nm -p"
4654	    break
4655	    ;;
4656	  *)
4657	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4658	    continue # so that we can try to find one that supports BSD flags
4659	    ;;
4660	  esac
4661	  ;;
4662	esac
4663      fi
4664    done
4665    IFS="$lt_save_ifs"
4666  done
4667  : ${lt_cv_path_NM=no}
4668fi
4669fi
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4671$as_echo "$lt_cv_path_NM" >&6; }
4672if test "$lt_cv_path_NM" != "no"; then
4673  NM="$lt_cv_path_NM"
4674else
4675  # Didn't find any BSD compatible name lister, look for dumpbin.
4676  if test -n "$DUMPBIN"; then :
4677    # Let the user override the test.
4678  else
4679    if test -n "$ac_tool_prefix"; then
4680  for ac_prog in dumpbin "link -dump"
4681  do
4682    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4683set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685$as_echo_n "checking for $ac_word... " >&6; }
4686if ${ac_cv_prog_DUMPBIN+:} false; then :
4687  $as_echo_n "(cached) " >&6
4688else
4689  if test -n "$DUMPBIN"; then
4690  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4691else
4692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693for as_dir in $PATH
4694do
4695  IFS=$as_save_IFS
4696  test -z "$as_dir" && as_dir=.
4697    for ac_exec_ext in '' $ac_executable_extensions; do
4698  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4699    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701    break 2
4702  fi
4703done
4704  done
4705IFS=$as_save_IFS
4706
4707fi
4708fi
4709DUMPBIN=$ac_cv_prog_DUMPBIN
4710if test -n "$DUMPBIN"; then
4711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4712$as_echo "$DUMPBIN" >&6; }
4713else
4714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715$as_echo "no" >&6; }
4716fi
4717
4718
4719    test -n "$DUMPBIN" && break
4720  done
4721fi
4722if test -z "$DUMPBIN"; then
4723  ac_ct_DUMPBIN=$DUMPBIN
4724  for ac_prog in dumpbin "link -dump"
4725do
4726  # Extract the first word of "$ac_prog", so it can be a program name with args.
4727set dummy $ac_prog; ac_word=$2
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729$as_echo_n "checking for $ac_word... " >&6; }
4730if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4731  $as_echo_n "(cached) " >&6
4732else
4733  if test -n "$ac_ct_DUMPBIN"; then
4734  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4735else
4736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737for as_dir in $PATH
4738do
4739  IFS=$as_save_IFS
4740  test -z "$as_dir" && as_dir=.
4741    for ac_exec_ext in '' $ac_executable_extensions; do
4742  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4743    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4745    break 2
4746  fi
4747done
4748  done
4749IFS=$as_save_IFS
4750
4751fi
4752fi
4753ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4754if test -n "$ac_ct_DUMPBIN"; then
4755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4756$as_echo "$ac_ct_DUMPBIN" >&6; }
4757else
4758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759$as_echo "no" >&6; }
4760fi
4761
4762
4763  test -n "$ac_ct_DUMPBIN" && break
4764done
4765
4766  if test "x$ac_ct_DUMPBIN" = x; then
4767    DUMPBIN=":"
4768  else
4769    case $cross_compiling:$ac_tool_warned in
4770yes:)
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4773ac_tool_warned=yes ;;
4774esac
4775    DUMPBIN=$ac_ct_DUMPBIN
4776  fi
4777fi
4778
4779    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4780    *COFF*)
4781      DUMPBIN="$DUMPBIN -symbols"
4782      ;;
4783    *)
4784      DUMPBIN=:
4785      ;;
4786    esac
4787  fi
4788
4789  if test "$DUMPBIN" != ":"; then
4790    NM="$DUMPBIN"
4791  fi
4792fi
4793test -z "$NM" && NM=nm
4794
4795
4796
4797
4798
4799
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4801$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4802if ${lt_cv_nm_interface+:} false; then :
4803  $as_echo_n "(cached) " >&6
4804else
4805  lt_cv_nm_interface="BSD nm"
4806  echo "int some_variable = 0;" > conftest.$ac_ext
4807  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4808  (eval "$ac_compile" 2>conftest.err)
4809  cat conftest.err >&5
4810  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4811  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4812  cat conftest.err >&5
4813  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4814  cat conftest.out >&5
4815  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4816    lt_cv_nm_interface="MS dumpbin"
4817  fi
4818  rm -f conftest*
4819fi
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4821$as_echo "$lt_cv_nm_interface" >&6; }
4822
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4824$as_echo_n "checking whether ln -s works... " >&6; }
4825LN_S=$as_ln_s
4826if test "$LN_S" = "ln -s"; then
4827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4828$as_echo "yes" >&6; }
4829else
4830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4831$as_echo "no, using $LN_S" >&6; }
4832fi
4833
4834# find the maximum length of command line arguments
4835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4836$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4837if ${lt_cv_sys_max_cmd_len+:} false; then :
4838  $as_echo_n "(cached) " >&6
4839else
4840    i=0
4841  teststring="ABCD"
4842
4843  case $build_os in
4844  msdosdjgpp*)
4845    # On DJGPP, this test can blow up pretty badly due to problems in libc
4846    # (any single argument exceeding 2000 bytes causes a buffer overrun
4847    # during glob expansion).  Even if it were fixed, the result of this
4848    # check would be larger than it should be.
4849    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4850    ;;
4851
4852  gnu*)
4853    # Under GNU Hurd, this test is not required because there is
4854    # no limit to the length of command line arguments.
4855    # Libtool will interpret -1 as no limit whatsoever
4856    lt_cv_sys_max_cmd_len=-1;
4857    ;;
4858
4859  cygwin* | mingw* | cegcc*)
4860    # On Win9x/ME, this test blows up -- it succeeds, but takes
4861    # about 5 minutes as the teststring grows exponentially.
4862    # Worse, since 9x/ME are not pre-emptively multitasking,
4863    # you end up with a "frozen" computer, even though with patience
4864    # the test eventually succeeds (with a max line length of 256k).
4865    # Instead, let's just punt: use the minimum linelength reported by
4866    # all of the supported platforms: 8192 (on NT/2K/XP).
4867    lt_cv_sys_max_cmd_len=8192;
4868    ;;
4869
4870  mint*)
4871    # On MiNT this can take a long time and run out of memory.
4872    lt_cv_sys_max_cmd_len=8192;
4873    ;;
4874
4875  amigaos*)
4876    # On AmigaOS with pdksh, this test takes hours, literally.
4877    # So we just punt and use a minimum line length of 8192.
4878    lt_cv_sys_max_cmd_len=8192;
4879    ;;
4880
4881  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4882    # This has been around since 386BSD, at least.  Likely further.
4883    if test -x /sbin/sysctl; then
4884      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4885    elif test -x /usr/sbin/sysctl; then
4886      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4887    else
4888      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4889    fi
4890    # And add a safety zone
4891    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4892    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4893    ;;
4894
4895  interix*)
4896    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4897    lt_cv_sys_max_cmd_len=196608
4898    ;;
4899
4900  os2*)
4901    # The test takes a long time on OS/2.
4902    lt_cv_sys_max_cmd_len=8192
4903    ;;
4904
4905  osf*)
4906    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4907    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4908    # nice to cause kernel panics so lets avoid the loop below.
4909    # First set a reasonable default.
4910    lt_cv_sys_max_cmd_len=16384
4911    #
4912    if test -x /sbin/sysconfig; then
4913      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4914        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4915      esac
4916    fi
4917    ;;
4918  sco3.2v5*)
4919    lt_cv_sys_max_cmd_len=102400
4920    ;;
4921  sysv5* | sco5v6* | sysv4.2uw2*)
4922    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4923    if test -n "$kargmax"; then
4924      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4925    else
4926      lt_cv_sys_max_cmd_len=32768
4927    fi
4928    ;;
4929  *)
4930    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4931    if test -n "$lt_cv_sys_max_cmd_len" && \
4932	test undefined != "$lt_cv_sys_max_cmd_len"; then
4933      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4934      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4935    else
4936      # Make teststring a little bigger before we do anything with it.
4937      # a 1K string should be a reasonable start.
4938      for i in 1 2 3 4 5 6 7 8 ; do
4939        teststring=$teststring$teststring
4940      done
4941      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4942      # If test is not a shell built-in, we'll probably end up computing a
4943      # maximum length that is only half of the actual maximum length, but
4944      # we can't tell.
4945      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4946	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4947	      test $i != 17 # 1/2 MB should be enough
4948      do
4949        i=`expr $i + 1`
4950        teststring=$teststring$teststring
4951      done
4952      # Only check the string length outside the loop.
4953      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4954      teststring=
4955      # Add a significant safety factor because C++ compilers can tack on
4956      # massive amounts of additional arguments before passing them to the
4957      # linker.  It appears as though 1/2 is a usable value.
4958      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4959    fi
4960    ;;
4961  esac
4962
4963fi
4964
4965if test -n $lt_cv_sys_max_cmd_len ; then
4966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4967$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4968else
4969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4970$as_echo "none" >&6; }
4971fi
4972max_cmd_len=$lt_cv_sys_max_cmd_len
4973
4974
4975
4976
4977
4978
4979: ${CP="cp -f"}
4980: ${MV="mv -f"}
4981: ${RM="rm -f"}
4982
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4984$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4985# Try some XSI features
4986xsi_shell=no
4987( _lt_dummy="a/b/c"
4988  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4989      = c,a/b,b/c, \
4990    && eval 'test $(( 1 + 1 )) -eq 2 \
4991    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4992  && xsi_shell=yes
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4994$as_echo "$xsi_shell" >&6; }
4995
4996
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4998$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4999lt_shell_append=no
5000( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5001    >/dev/null 2>&1 \
5002  && lt_shell_append=yes
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5004$as_echo "$lt_shell_append" >&6; }
5005
5006
5007if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5008  lt_unset=unset
5009else
5010  lt_unset=false
5011fi
5012
5013
5014
5015
5016
5017# test EBCDIC or ASCII
5018case `echo X|tr X '\101'` in
5019 A) # ASCII based system
5020    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5021  lt_SP2NL='tr \040 \012'
5022  lt_NL2SP='tr \015\012 \040\040'
5023  ;;
5024 *) # EBCDIC based system
5025  lt_SP2NL='tr \100 \n'
5026  lt_NL2SP='tr \r\n \100\100'
5027  ;;
5028esac
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5039$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5040if ${lt_cv_to_host_file_cmd+:} false; then :
5041  $as_echo_n "(cached) " >&6
5042else
5043  case $host in
5044  *-*-mingw* )
5045    case $build in
5046      *-*-mingw* ) # actually msys
5047        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5048        ;;
5049      *-*-cygwin* )
5050        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5051        ;;
5052      * ) # otherwise, assume *nix
5053        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5054        ;;
5055    esac
5056    ;;
5057  *-*-cygwin* )
5058    case $build in
5059      *-*-mingw* ) # actually msys
5060        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5061        ;;
5062      *-*-cygwin* )
5063        lt_cv_to_host_file_cmd=func_convert_file_noop
5064        ;;
5065      * ) # otherwise, assume *nix
5066        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5067        ;;
5068    esac
5069    ;;
5070  * ) # unhandled hosts (and "normal" native builds)
5071    lt_cv_to_host_file_cmd=func_convert_file_noop
5072    ;;
5073esac
5074
5075fi
5076
5077to_host_file_cmd=$lt_cv_to_host_file_cmd
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5079$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5080
5081
5082
5083
5084
5085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5086$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5087if ${lt_cv_to_tool_file_cmd+:} false; then :
5088  $as_echo_n "(cached) " >&6
5089else
5090  #assume ordinary cross tools, or native build.
5091lt_cv_to_tool_file_cmd=func_convert_file_noop
5092case $host in
5093  *-*-mingw* )
5094    case $build in
5095      *-*-mingw* ) # actually msys
5096        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5097        ;;
5098    esac
5099    ;;
5100esac
5101
5102fi
5103
5104to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5106$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5107
5108
5109
5110
5111
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5113$as_echo_n "checking for $LD option to reload object files... " >&6; }
5114if ${lt_cv_ld_reload_flag+:} false; then :
5115  $as_echo_n "(cached) " >&6
5116else
5117  lt_cv_ld_reload_flag='-r'
5118fi
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5120$as_echo "$lt_cv_ld_reload_flag" >&6; }
5121reload_flag=$lt_cv_ld_reload_flag
5122case $reload_flag in
5123"" | " "*) ;;
5124*) reload_flag=" $reload_flag" ;;
5125esac
5126reload_cmds='$LD$reload_flag -o $output$reload_objs'
5127case $host_os in
5128  cygwin* | mingw* | pw32* | cegcc*)
5129    if test "$GCC" != yes; then
5130      reload_cmds=false
5131    fi
5132    ;;
5133  darwin*)
5134    if test "$GCC" = yes; then
5135      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5136    else
5137      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5138    fi
5139    ;;
5140esac
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150if test -n "$ac_tool_prefix"; then
5151  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5152set dummy ${ac_tool_prefix}objdump; ac_word=$2
5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154$as_echo_n "checking for $ac_word... " >&6; }
5155if ${ac_cv_prog_OBJDUMP+:} false; then :
5156  $as_echo_n "(cached) " >&6
5157else
5158  if test -n "$OBJDUMP"; then
5159  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5160else
5161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162for as_dir in $PATH
5163do
5164  IFS=$as_save_IFS
5165  test -z "$as_dir" && as_dir=.
5166    for ac_exec_ext in '' $ac_executable_extensions; do
5167  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170    break 2
5171  fi
5172done
5173  done
5174IFS=$as_save_IFS
5175
5176fi
5177fi
5178OBJDUMP=$ac_cv_prog_OBJDUMP
5179if test -n "$OBJDUMP"; then
5180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5181$as_echo "$OBJDUMP" >&6; }
5182else
5183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184$as_echo "no" >&6; }
5185fi
5186
5187
5188fi
5189if test -z "$ac_cv_prog_OBJDUMP"; then
5190  ac_ct_OBJDUMP=$OBJDUMP
5191  # Extract the first word of "objdump", so it can be a program name with args.
5192set dummy objdump; ac_word=$2
5193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194$as_echo_n "checking for $ac_word... " >&6; }
5195if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5196  $as_echo_n "(cached) " >&6
5197else
5198  if test -n "$ac_ct_OBJDUMP"; then
5199  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5200else
5201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202for as_dir in $PATH
5203do
5204  IFS=$as_save_IFS
5205  test -z "$as_dir" && as_dir=.
5206    for ac_exec_ext in '' $ac_executable_extensions; do
5207  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5209    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210    break 2
5211  fi
5212done
5213  done
5214IFS=$as_save_IFS
5215
5216fi
5217fi
5218ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5219if test -n "$ac_ct_OBJDUMP"; then
5220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5221$as_echo "$ac_ct_OBJDUMP" >&6; }
5222else
5223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224$as_echo "no" >&6; }
5225fi
5226
5227  if test "x$ac_ct_OBJDUMP" = x; then
5228    OBJDUMP="false"
5229  else
5230    case $cross_compiling:$ac_tool_warned in
5231yes:)
5232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5234ac_tool_warned=yes ;;
5235esac
5236    OBJDUMP=$ac_ct_OBJDUMP
5237  fi
5238else
5239  OBJDUMP="$ac_cv_prog_OBJDUMP"
5240fi
5241
5242test -z "$OBJDUMP" && OBJDUMP=objdump
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5253$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5254if ${lt_cv_deplibs_check_method+:} false; then :
5255  $as_echo_n "(cached) " >&6
5256else
5257  lt_cv_file_magic_cmd='$MAGIC_CMD'
5258lt_cv_file_magic_test_file=
5259lt_cv_deplibs_check_method='unknown'
5260# Need to set the preceding variable on all platforms that support
5261# interlibrary dependencies.
5262# 'none' -- dependencies not supported.
5263# `unknown' -- same as none, but documents that we really don't know.
5264# 'pass_all' -- all dependencies passed with no checks.
5265# 'test_compile' -- check by making test program.
5266# 'file_magic [[regex]]' -- check by looking for files in library path
5267# which responds to the $file_magic_cmd with a given extended regex.
5268# If you have `file' or equivalent on your system and you're not sure
5269# whether `pass_all' will *always* work, you probably want this one.
5270
5271case $host_os in
5272aix[4-9]*)
5273  lt_cv_deplibs_check_method=pass_all
5274  ;;
5275
5276beos*)
5277  lt_cv_deplibs_check_method=pass_all
5278  ;;
5279
5280bsdi[45]*)
5281  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5282  lt_cv_file_magic_cmd='/usr/bin/file -L'
5283  lt_cv_file_magic_test_file=/shlib/libc.so
5284  ;;
5285
5286cygwin*)
5287  # func_win32_libid is a shell function defined in ltmain.sh
5288  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5289  lt_cv_file_magic_cmd='func_win32_libid'
5290  ;;
5291
5292mingw* | pw32*)
5293  # Base MSYS/MinGW do not provide the 'file' command needed by
5294  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5295  # unless we find 'file', for example because we are cross-compiling.
5296  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5297  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5298    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5299    lt_cv_file_magic_cmd='func_win32_libid'
5300  else
5301    # Keep this pattern in sync with the one in func_win32_libid.
5302    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5303    lt_cv_file_magic_cmd='$OBJDUMP -f'
5304  fi
5305  ;;
5306
5307cegcc*)
5308  # use the weaker test based on 'objdump'. See mingw*.
5309  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5310  lt_cv_file_magic_cmd='$OBJDUMP -f'
5311  ;;
5312
5313darwin* | rhapsody*)
5314  lt_cv_deplibs_check_method=pass_all
5315  ;;
5316
5317freebsd* | dragonfly*)
5318  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5319    case $host_cpu in
5320    i*86 )
5321      # Not sure whether the presence of OpenBSD here was a mistake.
5322      # Let's accept both of them until this is cleared up.
5323      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5324      lt_cv_file_magic_cmd=/usr/bin/file
5325      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5326      ;;
5327    esac
5328  else
5329    lt_cv_deplibs_check_method=pass_all
5330  fi
5331  ;;
5332
5333haiku*)
5334  lt_cv_deplibs_check_method=pass_all
5335  ;;
5336
5337hpux10.20* | hpux11*)
5338  lt_cv_file_magic_cmd=/usr/bin/file
5339  case $host_cpu in
5340  ia64*)
5341    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5342    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5343    ;;
5344  hppa*64*)
5345    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]'
5346    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5347    ;;
5348  *)
5349    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5350    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5351    ;;
5352  esac
5353  ;;
5354
5355interix[3-9]*)
5356  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5357  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5358  ;;
5359
5360irix5* | irix6* | nonstopux*)
5361  case $LD in
5362  *-32|*"-32 ") libmagic=32-bit;;
5363  *-n32|*"-n32 ") libmagic=N32;;
5364  *-64|*"-64 ") libmagic=64-bit;;
5365  *) libmagic=never-match;;
5366  esac
5367  lt_cv_deplibs_check_method=pass_all
5368  ;;
5369
5370# This must be glibc/ELF.
5371linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5372  lt_cv_deplibs_check_method=pass_all
5373  ;;
5374
5375netbsd* | netbsdelf*-gnu)
5376  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5377    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5378  else
5379    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5380  fi
5381  ;;
5382
5383newos6*)
5384  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5385  lt_cv_file_magic_cmd=/usr/bin/file
5386  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5387  ;;
5388
5389*nto* | *qnx*)
5390  lt_cv_deplibs_check_method=pass_all
5391  ;;
5392
5393openbsd*)
5394  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5395    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5396  else
5397    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5398  fi
5399  ;;
5400
5401osf3* | osf4* | osf5*)
5402  lt_cv_deplibs_check_method=pass_all
5403  ;;
5404
5405rdos*)
5406  lt_cv_deplibs_check_method=pass_all
5407  ;;
5408
5409solaris*)
5410  lt_cv_deplibs_check_method=pass_all
5411  ;;
5412
5413sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5414  lt_cv_deplibs_check_method=pass_all
5415  ;;
5416
5417sysv4 | sysv4.3*)
5418  case $host_vendor in
5419  motorola)
5420    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]'
5421    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5422    ;;
5423  ncr)
5424    lt_cv_deplibs_check_method=pass_all
5425    ;;
5426  sequent)
5427    lt_cv_file_magic_cmd='/bin/file'
5428    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5429    ;;
5430  sni)
5431    lt_cv_file_magic_cmd='/bin/file'
5432    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5433    lt_cv_file_magic_test_file=/lib/libc.so
5434    ;;
5435  siemens)
5436    lt_cv_deplibs_check_method=pass_all
5437    ;;
5438  pc)
5439    lt_cv_deplibs_check_method=pass_all
5440    ;;
5441  esac
5442  ;;
5443
5444tpf*)
5445  lt_cv_deplibs_check_method=pass_all
5446  ;;
5447esac
5448
5449fi
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5451$as_echo "$lt_cv_deplibs_check_method" >&6; }
5452
5453file_magic_glob=
5454want_nocaseglob=no
5455if test "$build" = "$host"; then
5456  case $host_os in
5457  mingw* | pw32*)
5458    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5459      want_nocaseglob=yes
5460    else
5461      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5462    fi
5463    ;;
5464  esac
5465fi
5466
5467file_magic_cmd=$lt_cv_file_magic_cmd
5468deplibs_check_method=$lt_cv_deplibs_check_method
5469test -z "$deplibs_check_method" && deplibs_check_method=unknown
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492if test -n "$ac_tool_prefix"; then
5493  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5494set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496$as_echo_n "checking for $ac_word... " >&6; }
5497if ${ac_cv_prog_DLLTOOL+:} false; then :
5498  $as_echo_n "(cached) " >&6
5499else
5500  if test -n "$DLLTOOL"; then
5501  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5502else
5503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504for as_dir in $PATH
5505do
5506  IFS=$as_save_IFS
5507  test -z "$as_dir" && as_dir=.
5508    for ac_exec_ext in '' $ac_executable_extensions; do
5509  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5510    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512    break 2
5513  fi
5514done
5515  done
5516IFS=$as_save_IFS
5517
5518fi
5519fi
5520DLLTOOL=$ac_cv_prog_DLLTOOL
5521if test -n "$DLLTOOL"; then
5522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5523$as_echo "$DLLTOOL" >&6; }
5524else
5525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526$as_echo "no" >&6; }
5527fi
5528
5529
5530fi
5531if test -z "$ac_cv_prog_DLLTOOL"; then
5532  ac_ct_DLLTOOL=$DLLTOOL
5533  # Extract the first word of "dlltool", so it can be a program name with args.
5534set dummy dlltool; ac_word=$2
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536$as_echo_n "checking for $ac_word... " >&6; }
5537if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5538  $as_echo_n "(cached) " >&6
5539else
5540  if test -n "$ac_ct_DLLTOOL"; then
5541  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5542else
5543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544for as_dir in $PATH
5545do
5546  IFS=$as_save_IFS
5547  test -z "$as_dir" && as_dir=.
5548    for ac_exec_ext in '' $ac_executable_extensions; do
5549  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552    break 2
5553  fi
5554done
5555  done
5556IFS=$as_save_IFS
5557
5558fi
5559fi
5560ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5561if test -n "$ac_ct_DLLTOOL"; then
5562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5563$as_echo "$ac_ct_DLLTOOL" >&6; }
5564else
5565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566$as_echo "no" >&6; }
5567fi
5568
5569  if test "x$ac_ct_DLLTOOL" = x; then
5570    DLLTOOL="false"
5571  else
5572    case $cross_compiling:$ac_tool_warned in
5573yes:)
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5576ac_tool_warned=yes ;;
5577esac
5578    DLLTOOL=$ac_ct_DLLTOOL
5579  fi
5580else
5581  DLLTOOL="$ac_cv_prog_DLLTOOL"
5582fi
5583
5584test -z "$DLLTOOL" && DLLTOOL=dlltool
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5596$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5597if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5598  $as_echo_n "(cached) " >&6
5599else
5600  lt_cv_sharedlib_from_linklib_cmd='unknown'
5601
5602case $host_os in
5603cygwin* | mingw* | pw32* | cegcc*)
5604  # two different shell functions defined in ltmain.sh
5605  # decide which to use based on capabilities of $DLLTOOL
5606  case `$DLLTOOL --help 2>&1` in
5607  *--identify-strict*)
5608    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5609    ;;
5610  *)
5611    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5612    ;;
5613  esac
5614  ;;
5615*)
5616  # fallback: assume linklib IS sharedlib
5617  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5618  ;;
5619esac
5620
5621fi
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5623$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5624sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5625test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5626
5627
5628
5629
5630
5631
5632
5633
5634if test -n "$ac_tool_prefix"; then
5635  for ac_prog in ar
5636  do
5637    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5638set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5640$as_echo_n "checking for $ac_word... " >&6; }
5641if ${ac_cv_prog_AR+:} false; then :
5642  $as_echo_n "(cached) " >&6
5643else
5644  if test -n "$AR"; then
5645  ac_cv_prog_AR="$AR" # Let the user override the test.
5646else
5647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648for as_dir in $PATH
5649do
5650  IFS=$as_save_IFS
5651  test -z "$as_dir" && as_dir=.
5652    for ac_exec_ext in '' $ac_executable_extensions; do
5653  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5654    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5655    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5656    break 2
5657  fi
5658done
5659  done
5660IFS=$as_save_IFS
5661
5662fi
5663fi
5664AR=$ac_cv_prog_AR
5665if test -n "$AR"; then
5666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5667$as_echo "$AR" >&6; }
5668else
5669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5670$as_echo "no" >&6; }
5671fi
5672
5673
5674    test -n "$AR" && break
5675  done
5676fi
5677if test -z "$AR"; then
5678  ac_ct_AR=$AR
5679  for ac_prog in ar
5680do
5681  # Extract the first word of "$ac_prog", so it can be a program name with args.
5682set dummy $ac_prog; ac_word=$2
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684$as_echo_n "checking for $ac_word... " >&6; }
5685if ${ac_cv_prog_ac_ct_AR+:} false; then :
5686  $as_echo_n "(cached) " >&6
5687else
5688  if test -n "$ac_ct_AR"; then
5689  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5690else
5691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692for as_dir in $PATH
5693do
5694  IFS=$as_save_IFS
5695  test -z "$as_dir" && as_dir=.
5696    for ac_exec_ext in '' $ac_executable_extensions; do
5697  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5698    ac_cv_prog_ac_ct_AR="$ac_prog"
5699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5700    break 2
5701  fi
5702done
5703  done
5704IFS=$as_save_IFS
5705
5706fi
5707fi
5708ac_ct_AR=$ac_cv_prog_ac_ct_AR
5709if test -n "$ac_ct_AR"; then
5710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5711$as_echo "$ac_ct_AR" >&6; }
5712else
5713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714$as_echo "no" >&6; }
5715fi
5716
5717
5718  test -n "$ac_ct_AR" && break
5719done
5720
5721  if test "x$ac_ct_AR" = x; then
5722    AR="false"
5723  else
5724    case $cross_compiling:$ac_tool_warned in
5725yes:)
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5728ac_tool_warned=yes ;;
5729esac
5730    AR=$ac_ct_AR
5731  fi
5732fi
5733
5734: ${AR=ar}
5735: ${AR_FLAGS=cru}
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5748$as_echo_n "checking for archiver @FILE support... " >&6; }
5749if ${lt_cv_ar_at_file+:} false; then :
5750  $as_echo_n "(cached) " >&6
5751else
5752  lt_cv_ar_at_file=no
5753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754/* end confdefs.h.  */
5755
5756int
5757main ()
5758{
5759
5760  ;
5761  return 0;
5762}
5763_ACEOF
5764if ac_fn_c_try_compile "$LINENO"; then :
5765  echo conftest.$ac_objext > conftest.lst
5766      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5767      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5768  (eval $lt_ar_try) 2>&5
5769  ac_status=$?
5770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5771  test $ac_status = 0; }
5772      if test "$ac_status" -eq 0; then
5773	# Ensure the archiver fails upon bogus file names.
5774	rm -f conftest.$ac_objext libconftest.a
5775	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5776  (eval $lt_ar_try) 2>&5
5777  ac_status=$?
5778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5779  test $ac_status = 0; }
5780	if test "$ac_status" -ne 0; then
5781          lt_cv_ar_at_file=@
5782        fi
5783      fi
5784      rm -f conftest.* libconftest.a
5785
5786fi
5787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5788
5789fi
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5791$as_echo "$lt_cv_ar_at_file" >&6; }
5792
5793if test "x$lt_cv_ar_at_file" = xno; then
5794  archiver_list_spec=
5795else
5796  archiver_list_spec=$lt_cv_ar_at_file
5797fi
5798
5799
5800
5801
5802
5803
5804
5805if test -n "$ac_tool_prefix"; then
5806  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5807set dummy ${ac_tool_prefix}strip; ac_word=$2
5808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809$as_echo_n "checking for $ac_word... " >&6; }
5810if ${ac_cv_prog_STRIP+:} false; then :
5811  $as_echo_n "(cached) " >&6
5812else
5813  if test -n "$STRIP"; then
5814  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5815else
5816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817for as_dir in $PATH
5818do
5819  IFS=$as_save_IFS
5820  test -z "$as_dir" && as_dir=.
5821    for ac_exec_ext in '' $ac_executable_extensions; do
5822  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5823    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825    break 2
5826  fi
5827done
5828  done
5829IFS=$as_save_IFS
5830
5831fi
5832fi
5833STRIP=$ac_cv_prog_STRIP
5834if test -n "$STRIP"; then
5835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5836$as_echo "$STRIP" >&6; }
5837else
5838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839$as_echo "no" >&6; }
5840fi
5841
5842
5843fi
5844if test -z "$ac_cv_prog_STRIP"; then
5845  ac_ct_STRIP=$STRIP
5846  # Extract the first word of "strip", so it can be a program name with args.
5847set dummy strip; ac_word=$2
5848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849$as_echo_n "checking for $ac_word... " >&6; }
5850if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5851  $as_echo_n "(cached) " >&6
5852else
5853  if test -n "$ac_ct_STRIP"; then
5854  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5855else
5856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857for as_dir in $PATH
5858do
5859  IFS=$as_save_IFS
5860  test -z "$as_dir" && as_dir=.
5861    for ac_exec_ext in '' $ac_executable_extensions; do
5862  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863    ac_cv_prog_ac_ct_STRIP="strip"
5864    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865    break 2
5866  fi
5867done
5868  done
5869IFS=$as_save_IFS
5870
5871fi
5872fi
5873ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5874if test -n "$ac_ct_STRIP"; then
5875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5876$as_echo "$ac_ct_STRIP" >&6; }
5877else
5878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879$as_echo "no" >&6; }
5880fi
5881
5882  if test "x$ac_ct_STRIP" = x; then
5883    STRIP=":"
5884  else
5885    case $cross_compiling:$ac_tool_warned in
5886yes:)
5887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5889ac_tool_warned=yes ;;
5890esac
5891    STRIP=$ac_ct_STRIP
5892  fi
5893else
5894  STRIP="$ac_cv_prog_STRIP"
5895fi
5896
5897test -z "$STRIP" && STRIP=:
5898
5899
5900
5901
5902
5903
5904if test -n "$ac_tool_prefix"; then
5905  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5906set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908$as_echo_n "checking for $ac_word... " >&6; }
5909if ${ac_cv_prog_RANLIB+:} false; then :
5910  $as_echo_n "(cached) " >&6
5911else
5912  if test -n "$RANLIB"; then
5913  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5914else
5915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916for as_dir in $PATH
5917do
5918  IFS=$as_save_IFS
5919  test -z "$as_dir" && as_dir=.
5920    for ac_exec_ext in '' $ac_executable_extensions; do
5921  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5922    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5923    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5924    break 2
5925  fi
5926done
5927  done
5928IFS=$as_save_IFS
5929
5930fi
5931fi
5932RANLIB=$ac_cv_prog_RANLIB
5933if test -n "$RANLIB"; then
5934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5935$as_echo "$RANLIB" >&6; }
5936else
5937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5938$as_echo "no" >&6; }
5939fi
5940
5941
5942fi
5943if test -z "$ac_cv_prog_RANLIB"; then
5944  ac_ct_RANLIB=$RANLIB
5945  # Extract the first word of "ranlib", so it can be a program name with args.
5946set dummy ranlib; ac_word=$2
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948$as_echo_n "checking for $ac_word... " >&6; }
5949if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5950  $as_echo_n "(cached) " >&6
5951else
5952  if test -n "$ac_ct_RANLIB"; then
5953  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5954else
5955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956for as_dir in $PATH
5957do
5958  IFS=$as_save_IFS
5959  test -z "$as_dir" && as_dir=.
5960    for ac_exec_ext in '' $ac_executable_extensions; do
5961  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5962    ac_cv_prog_ac_ct_RANLIB="ranlib"
5963    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5964    break 2
5965  fi
5966done
5967  done
5968IFS=$as_save_IFS
5969
5970fi
5971fi
5972ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5973if test -n "$ac_ct_RANLIB"; then
5974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5975$as_echo "$ac_ct_RANLIB" >&6; }
5976else
5977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978$as_echo "no" >&6; }
5979fi
5980
5981  if test "x$ac_ct_RANLIB" = x; then
5982    RANLIB=":"
5983  else
5984    case $cross_compiling:$ac_tool_warned in
5985yes:)
5986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5988ac_tool_warned=yes ;;
5989esac
5990    RANLIB=$ac_ct_RANLIB
5991  fi
5992else
5993  RANLIB="$ac_cv_prog_RANLIB"
5994fi
5995
5996test -z "$RANLIB" && RANLIB=:
5997
5998
5999
6000
6001
6002
6003# Determine commands to create old-style static archives.
6004old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6005old_postinstall_cmds='chmod 644 $oldlib'
6006old_postuninstall_cmds=
6007
6008if test -n "$RANLIB"; then
6009  case $host_os in
6010  openbsd*)
6011    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6012    ;;
6013  *)
6014    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6015    ;;
6016  esac
6017  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6018fi
6019
6020case $host_os in
6021  darwin*)
6022    lock_old_archive_extraction=yes ;;
6023  *)
6024    lock_old_archive_extraction=no ;;
6025esac
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065# If no C compiler was specified, use CC.
6066LTCC=${LTCC-"$CC"}
6067
6068# If no C compiler flags were specified, use CFLAGS.
6069LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6070
6071# Allow CC to be a program name with arguments.
6072compiler=$CC
6073
6074
6075# Check for command to grab the raw symbol name followed by C symbol from nm.
6076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6077$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6078if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6079  $as_echo_n "(cached) " >&6
6080else
6081
6082# These are sane defaults that work on at least a few old systems.
6083# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6084
6085# Character class describing NM global symbol codes.
6086symcode='[BCDEGRST]'
6087
6088# Regexp to match symbols that can be accessed directly from C.
6089sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6090
6091# Define system-specific variables.
6092case $host_os in
6093aix*)
6094  symcode='[BCDT]'
6095  ;;
6096cygwin* | mingw* | pw32* | cegcc*)
6097  symcode='[ABCDGISTW]'
6098  ;;
6099hpux*)
6100  if test "$host_cpu" = ia64; then
6101    symcode='[ABCDEGRST]'
6102  fi
6103  ;;
6104irix* | nonstopux*)
6105  symcode='[BCDEGRST]'
6106  ;;
6107osf*)
6108  symcode='[BCDEGQRST]'
6109  ;;
6110solaris*)
6111  symcode='[BDRT]'
6112  ;;
6113sco3.2v5*)
6114  symcode='[DT]'
6115  ;;
6116sysv4.2uw2*)
6117  symcode='[DT]'
6118  ;;
6119sysv5* | sco5v6* | unixware* | OpenUNIX*)
6120  symcode='[ABDT]'
6121  ;;
6122sysv4)
6123  symcode='[DFNSTU]'
6124  ;;
6125esac
6126
6127# If we're using GNU nm, then use its standard symbol codes.
6128case `$NM -V 2>&1` in
6129*GNU* | *'with BFD'*)
6130  symcode='[ABCDGIRSTW]' ;;
6131esac
6132
6133# Transform an extracted symbol line into a proper C declaration.
6134# Some systems (esp. on ia64) link data and code symbols differently,
6135# so use this general approach.
6136lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6137
6138# Transform an extracted symbol line into symbol name and symbol address
6139lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6140lt_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'"
6141
6142# Handle CRLF in mingw tool chain
6143opt_cr=
6144case $build_os in
6145mingw*)
6146  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6147  ;;
6148esac
6149
6150# Try without a prefix underscore, then with it.
6151for ac_symprfx in "" "_"; do
6152
6153  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6154  symxfrm="\\1 $ac_symprfx\\2 \\2"
6155
6156  # Write the raw and C identifiers.
6157  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6158    # Fake it for dumpbin and say T for any non-static function
6159    # and D for any global variable.
6160    # Also find C++ and __fastcall symbols from MSVC++,
6161    # which start with @ or ?.
6162    lt_cv_sys_global_symbol_pipe="$AWK '"\
6163"     {last_section=section; section=\$ 3};"\
6164"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6165"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6166"     \$ 0!~/External *\|/{next};"\
6167"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6168"     {if(hide[section]) next};"\
6169"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6170"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6171"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6172"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6173"     ' prfx=^$ac_symprfx"
6174  else
6175    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6176  fi
6177  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6178
6179  # Check to see that the pipe works correctly.
6180  pipe_works=no
6181
6182  rm -f conftest*
6183  cat > conftest.$ac_ext <<_LT_EOF
6184#ifdef __cplusplus
6185extern "C" {
6186#endif
6187char nm_test_var;
6188void nm_test_func(void);
6189void nm_test_func(void){}
6190#ifdef __cplusplus
6191}
6192#endif
6193int main(){nm_test_var='a';nm_test_func();return(0);}
6194_LT_EOF
6195
6196  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6197  (eval $ac_compile) 2>&5
6198  ac_status=$?
6199  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6200  test $ac_status = 0; }; then
6201    # Now try to grab the symbols.
6202    nlist=conftest.nm
6203    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6204  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6205  ac_status=$?
6206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6207  test $ac_status = 0; } && test -s "$nlist"; then
6208      # Try sorting and uniquifying the output.
6209      if sort "$nlist" | uniq > "$nlist"T; then
6210	mv -f "$nlist"T "$nlist"
6211      else
6212	rm -f "$nlist"T
6213      fi
6214
6215      # Make sure that we snagged all the symbols we need.
6216      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6217	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6218	  cat <<_LT_EOF > conftest.$ac_ext
6219/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6220#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6221/* DATA imports from DLLs on WIN32 con't be const, because runtime
6222   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6223# define LT_DLSYM_CONST
6224#elif defined(__osf__)
6225/* This system does not cope well with relocations in const data.  */
6226# define LT_DLSYM_CONST
6227#else
6228# define LT_DLSYM_CONST const
6229#endif
6230
6231#ifdef __cplusplus
6232extern "C" {
6233#endif
6234
6235_LT_EOF
6236	  # Now generate the symbol file.
6237	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6238
6239	  cat <<_LT_EOF >> conftest.$ac_ext
6240
6241/* The mapping between symbol names and symbols.  */
6242LT_DLSYM_CONST struct {
6243  const char *name;
6244  void       *address;
6245}
6246lt__PROGRAM__LTX_preloaded_symbols[] =
6247{
6248  { "@PROGRAM@", (void *) 0 },
6249_LT_EOF
6250	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6251	  cat <<\_LT_EOF >> conftest.$ac_ext
6252  {0, (void *) 0}
6253};
6254
6255/* This works around a problem in FreeBSD linker */
6256#ifdef FREEBSD_WORKAROUND
6257static const void *lt_preloaded_setup() {
6258  return lt__PROGRAM__LTX_preloaded_symbols;
6259}
6260#endif
6261
6262#ifdef __cplusplus
6263}
6264#endif
6265_LT_EOF
6266	  # Now try linking the two files.
6267	  mv conftest.$ac_objext conftstm.$ac_objext
6268	  lt_globsym_save_LIBS=$LIBS
6269	  lt_globsym_save_CFLAGS=$CFLAGS
6270	  LIBS="conftstm.$ac_objext"
6271	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6272	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6273  (eval $ac_link) 2>&5
6274  ac_status=$?
6275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6276  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6277	    pipe_works=yes
6278	  fi
6279	  LIBS=$lt_globsym_save_LIBS
6280	  CFLAGS=$lt_globsym_save_CFLAGS
6281	else
6282	  echo "cannot find nm_test_func in $nlist" >&5
6283	fi
6284      else
6285	echo "cannot find nm_test_var in $nlist" >&5
6286      fi
6287    else
6288      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6289    fi
6290  else
6291    echo "$progname: failed program was:" >&5
6292    cat conftest.$ac_ext >&5
6293  fi
6294  rm -rf conftest* conftst*
6295
6296  # Do not use the global_symbol_pipe unless it works.
6297  if test "$pipe_works" = yes; then
6298    break
6299  else
6300    lt_cv_sys_global_symbol_pipe=
6301  fi
6302done
6303
6304fi
6305
6306if test -z "$lt_cv_sys_global_symbol_pipe"; then
6307  lt_cv_sys_global_symbol_to_cdecl=
6308fi
6309if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6311$as_echo "failed" >&6; }
6312else
6313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6314$as_echo "ok" >&6; }
6315fi
6316
6317# Response file support.
6318if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6319  nm_file_list_spec='@'
6320elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6321  nm_file_list_spec='@'
6322fi
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6351$as_echo_n "checking for sysroot... " >&6; }
6352
6353# Check whether --with-sysroot was given.
6354if test "${with_sysroot+set}" = set; then :
6355  withval=$with_sysroot;
6356else
6357  with_sysroot=no
6358fi
6359
6360
6361lt_sysroot=
6362case ${with_sysroot} in #(
6363 yes)
6364   if test "$GCC" = yes; then
6365     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6366   fi
6367   ;; #(
6368 /*)
6369   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6370   ;; #(
6371 no|'')
6372   ;; #(
6373 *)
6374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6375$as_echo "${with_sysroot}" >&6; }
6376   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6377   ;;
6378esac
6379
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6381$as_echo "${lt_sysroot:-no}" >&6; }
6382
6383
6384
6385
6386
6387# Check whether --enable-libtool-lock was given.
6388if test "${enable_libtool_lock+set}" = set; then :
6389  enableval=$enable_libtool_lock;
6390fi
6391
6392test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6393
6394# Some flags need to be propagated to the compiler or linker for good
6395# libtool support.
6396case $host in
6397ia64-*-hpux*)
6398  # Find out which ABI we are using.
6399  echo 'int i;' > conftest.$ac_ext
6400  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6401  (eval $ac_compile) 2>&5
6402  ac_status=$?
6403  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6404  test $ac_status = 0; }; then
6405    case `/usr/bin/file conftest.$ac_objext` in
6406      *ELF-32*)
6407	HPUX_IA64_MODE="32"
6408	;;
6409      *ELF-64*)
6410	HPUX_IA64_MODE="64"
6411	;;
6412    esac
6413  fi
6414  rm -rf conftest*
6415  ;;
6416*-*-irix6*)
6417  # Find out which ABI we are using.
6418  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6419  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6420  (eval $ac_compile) 2>&5
6421  ac_status=$?
6422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6423  test $ac_status = 0; }; then
6424    if test "$lt_cv_prog_gnu_ld" = yes; then
6425      case `/usr/bin/file conftest.$ac_objext` in
6426	*32-bit*)
6427	  LD="${LD-ld} -melf32bsmip"
6428	  ;;
6429	*N32*)
6430	  LD="${LD-ld} -melf32bmipn32"
6431	  ;;
6432	*64-bit*)
6433	  LD="${LD-ld} -melf64bmip"
6434	;;
6435      esac
6436    else
6437      case `/usr/bin/file conftest.$ac_objext` in
6438	*32-bit*)
6439	  LD="${LD-ld} -32"
6440	  ;;
6441	*N32*)
6442	  LD="${LD-ld} -n32"
6443	  ;;
6444	*64-bit*)
6445	  LD="${LD-ld} -64"
6446	  ;;
6447      esac
6448    fi
6449  fi
6450  rm -rf conftest*
6451  ;;
6452
6453x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6454s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6455  # Find out which ABI we are using.
6456  echo 'int i;' > conftest.$ac_ext
6457  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6458  (eval $ac_compile) 2>&5
6459  ac_status=$?
6460  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6461  test $ac_status = 0; }; then
6462    case `/usr/bin/file conftest.o` in
6463      *32-bit*)
6464	case $host in
6465	  x86_64-*kfreebsd*-gnu)
6466	    LD="${LD-ld} -m elf_i386_fbsd"
6467	    ;;
6468	  x86_64-*linux*)
6469	    case `/usr/bin/file conftest.o` in
6470	      *x86-64*)
6471		LD="${LD-ld} -m elf32_x86_64"
6472		;;
6473	      *)
6474		LD="${LD-ld} -m elf_i386"
6475		;;
6476	    esac
6477	    ;;
6478	  powerpc64le-*)
6479	    LD="${LD-ld} -m elf32lppclinux"
6480	    ;;
6481	  powerpc64-*)
6482	    LD="${LD-ld} -m elf32ppclinux"
6483	    ;;
6484	  s390x-*linux*)
6485	    LD="${LD-ld} -m elf_s390"
6486	    ;;
6487	  sparc64-*linux*)
6488	    LD="${LD-ld} -m elf32_sparc"
6489	    ;;
6490	esac
6491	;;
6492      *64-bit*)
6493	case $host in
6494	  x86_64-*kfreebsd*-gnu)
6495	    LD="${LD-ld} -m elf_x86_64_fbsd"
6496	    ;;
6497	  x86_64-*linux*)
6498	    LD="${LD-ld} -m elf_x86_64"
6499	    ;;
6500	  powerpcle-*)
6501	    LD="${LD-ld} -m elf64lppc"
6502	    ;;
6503	  powerpc-*)
6504	    LD="${LD-ld} -m elf64ppc"
6505	    ;;
6506	  s390*-*linux*|s390*-*tpf*)
6507	    LD="${LD-ld} -m elf64_s390"
6508	    ;;
6509	  sparc*-*linux*)
6510	    LD="${LD-ld} -m elf64_sparc"
6511	    ;;
6512	esac
6513	;;
6514    esac
6515  fi
6516  rm -rf conftest*
6517  ;;
6518
6519*-*-sco3.2v5*)
6520  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6521  SAVE_CFLAGS="$CFLAGS"
6522  CFLAGS="$CFLAGS -belf"
6523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6524$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6525if ${lt_cv_cc_needs_belf+:} false; then :
6526  $as_echo_n "(cached) " >&6
6527else
6528  ac_ext=c
6529ac_cpp='$CPP $CPPFLAGS'
6530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6532ac_compiler_gnu=$ac_cv_c_compiler_gnu
6533
6534     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535/* end confdefs.h.  */
6536
6537int
6538main ()
6539{
6540
6541  ;
6542  return 0;
6543}
6544_ACEOF
6545if ac_fn_c_try_link "$LINENO"; then :
6546  lt_cv_cc_needs_belf=yes
6547else
6548  lt_cv_cc_needs_belf=no
6549fi
6550rm -f core conftest.err conftest.$ac_objext \
6551    conftest$ac_exeext conftest.$ac_ext
6552     ac_ext=c
6553ac_cpp='$CPP $CPPFLAGS'
6554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6556ac_compiler_gnu=$ac_cv_c_compiler_gnu
6557
6558fi
6559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6560$as_echo "$lt_cv_cc_needs_belf" >&6; }
6561  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6562    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6563    CFLAGS="$SAVE_CFLAGS"
6564  fi
6565  ;;
6566*-*solaris*)
6567  # Find out which ABI we are using.
6568  echo 'int i;' > conftest.$ac_ext
6569  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6570  (eval $ac_compile) 2>&5
6571  ac_status=$?
6572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6573  test $ac_status = 0; }; then
6574    case `/usr/bin/file conftest.o` in
6575    *64-bit*)
6576      case $lt_cv_prog_gnu_ld in
6577      yes*)
6578        case $host in
6579        i?86-*-solaris*)
6580          LD="${LD-ld} -m elf_x86_64"
6581          ;;
6582        sparc*-*-solaris*)
6583          LD="${LD-ld} -m elf64_sparc"
6584          ;;
6585        esac
6586        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6587        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6588          LD="${LD-ld}_sol2"
6589        fi
6590        ;;
6591      *)
6592	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6593	  LD="${LD-ld} -64"
6594	fi
6595	;;
6596      esac
6597      ;;
6598    esac
6599  fi
6600  rm -rf conftest*
6601  ;;
6602esac
6603
6604need_locks="$enable_libtool_lock"
6605
6606if test -n "$ac_tool_prefix"; then
6607  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6608set dummy ${ac_tool_prefix}mt; ac_word=$2
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610$as_echo_n "checking for $ac_word... " >&6; }
6611if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6612  $as_echo_n "(cached) " >&6
6613else
6614  if test -n "$MANIFEST_TOOL"; then
6615  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6616else
6617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618for as_dir in $PATH
6619do
6620  IFS=$as_save_IFS
6621  test -z "$as_dir" && as_dir=.
6622    for ac_exec_ext in '' $ac_executable_extensions; do
6623  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6624    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6625    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6626    break 2
6627  fi
6628done
6629  done
6630IFS=$as_save_IFS
6631
6632fi
6633fi
6634MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6635if test -n "$MANIFEST_TOOL"; then
6636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6637$as_echo "$MANIFEST_TOOL" >&6; }
6638else
6639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640$as_echo "no" >&6; }
6641fi
6642
6643
6644fi
6645if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6646  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6647  # Extract the first word of "mt", so it can be a program name with args.
6648set dummy mt; ac_word=$2
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650$as_echo_n "checking for $ac_word... " >&6; }
6651if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6652  $as_echo_n "(cached) " >&6
6653else
6654  if test -n "$ac_ct_MANIFEST_TOOL"; then
6655  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6656else
6657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658for as_dir in $PATH
6659do
6660  IFS=$as_save_IFS
6661  test -z "$as_dir" && as_dir=.
6662    for ac_exec_ext in '' $ac_executable_extensions; do
6663  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6664    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666    break 2
6667  fi
6668done
6669  done
6670IFS=$as_save_IFS
6671
6672fi
6673fi
6674ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6675if test -n "$ac_ct_MANIFEST_TOOL"; then
6676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6677$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6678else
6679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680$as_echo "no" >&6; }
6681fi
6682
6683  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6684    MANIFEST_TOOL=":"
6685  else
6686    case $cross_compiling:$ac_tool_warned in
6687yes:)
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6690ac_tool_warned=yes ;;
6691esac
6692    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6693  fi
6694else
6695  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6696fi
6697
6698test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6700$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6701if ${lt_cv_path_mainfest_tool+:} false; then :
6702  $as_echo_n "(cached) " >&6
6703else
6704  lt_cv_path_mainfest_tool=no
6705  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6706  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6707  cat conftest.err >&5
6708  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6709    lt_cv_path_mainfest_tool=yes
6710  fi
6711  rm -f conftest*
6712fi
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6714$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6715if test "x$lt_cv_path_mainfest_tool" != xyes; then
6716  MANIFEST_TOOL=:
6717fi
6718
6719
6720
6721
6722
6723
6724  case $host_os in
6725    rhapsody* | darwin*)
6726    if test -n "$ac_tool_prefix"; then
6727  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6728set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730$as_echo_n "checking for $ac_word... " >&6; }
6731if ${ac_cv_prog_DSYMUTIL+:} false; then :
6732  $as_echo_n "(cached) " >&6
6733else
6734  if test -n "$DSYMUTIL"; then
6735  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6736else
6737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738for as_dir in $PATH
6739do
6740  IFS=$as_save_IFS
6741  test -z "$as_dir" && as_dir=.
6742    for ac_exec_ext in '' $ac_executable_extensions; do
6743  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6744    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746    break 2
6747  fi
6748done
6749  done
6750IFS=$as_save_IFS
6751
6752fi
6753fi
6754DSYMUTIL=$ac_cv_prog_DSYMUTIL
6755if test -n "$DSYMUTIL"; then
6756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6757$as_echo "$DSYMUTIL" >&6; }
6758else
6759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760$as_echo "no" >&6; }
6761fi
6762
6763
6764fi
6765if test -z "$ac_cv_prog_DSYMUTIL"; then
6766  ac_ct_DSYMUTIL=$DSYMUTIL
6767  # Extract the first word of "dsymutil", so it can be a program name with args.
6768set dummy dsymutil; ac_word=$2
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770$as_echo_n "checking for $ac_word... " >&6; }
6771if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6772  $as_echo_n "(cached) " >&6
6773else
6774  if test -n "$ac_ct_DSYMUTIL"; then
6775  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6776else
6777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778for as_dir in $PATH
6779do
6780  IFS=$as_save_IFS
6781  test -z "$as_dir" && as_dir=.
6782    for ac_exec_ext in '' $ac_executable_extensions; do
6783  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6784    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786    break 2
6787  fi
6788done
6789  done
6790IFS=$as_save_IFS
6791
6792fi
6793fi
6794ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6795if test -n "$ac_ct_DSYMUTIL"; then
6796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6797$as_echo "$ac_ct_DSYMUTIL" >&6; }
6798else
6799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800$as_echo "no" >&6; }
6801fi
6802
6803  if test "x$ac_ct_DSYMUTIL" = x; then
6804    DSYMUTIL=":"
6805  else
6806    case $cross_compiling:$ac_tool_warned in
6807yes:)
6808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6810ac_tool_warned=yes ;;
6811esac
6812    DSYMUTIL=$ac_ct_DSYMUTIL
6813  fi
6814else
6815  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6816fi
6817
6818    if test -n "$ac_tool_prefix"; then
6819  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6820set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822$as_echo_n "checking for $ac_word... " >&6; }
6823if ${ac_cv_prog_NMEDIT+:} false; then :
6824  $as_echo_n "(cached) " >&6
6825else
6826  if test -n "$NMEDIT"; then
6827  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6828else
6829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830for as_dir in $PATH
6831do
6832  IFS=$as_save_IFS
6833  test -z "$as_dir" && as_dir=.
6834    for ac_exec_ext in '' $ac_executable_extensions; do
6835  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6836    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838    break 2
6839  fi
6840done
6841  done
6842IFS=$as_save_IFS
6843
6844fi
6845fi
6846NMEDIT=$ac_cv_prog_NMEDIT
6847if test -n "$NMEDIT"; then
6848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6849$as_echo "$NMEDIT" >&6; }
6850else
6851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852$as_echo "no" >&6; }
6853fi
6854
6855
6856fi
6857if test -z "$ac_cv_prog_NMEDIT"; then
6858  ac_ct_NMEDIT=$NMEDIT
6859  # Extract the first word of "nmedit", so it can be a program name with args.
6860set dummy nmedit; ac_word=$2
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862$as_echo_n "checking for $ac_word... " >&6; }
6863if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6864  $as_echo_n "(cached) " >&6
6865else
6866  if test -n "$ac_ct_NMEDIT"; then
6867  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6868else
6869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870for as_dir in $PATH
6871do
6872  IFS=$as_save_IFS
6873  test -z "$as_dir" && as_dir=.
6874    for ac_exec_ext in '' $ac_executable_extensions; do
6875  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6876    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878    break 2
6879  fi
6880done
6881  done
6882IFS=$as_save_IFS
6883
6884fi
6885fi
6886ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6887if test -n "$ac_ct_NMEDIT"; then
6888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6889$as_echo "$ac_ct_NMEDIT" >&6; }
6890else
6891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892$as_echo "no" >&6; }
6893fi
6894
6895  if test "x$ac_ct_NMEDIT" = x; then
6896    NMEDIT=":"
6897  else
6898    case $cross_compiling:$ac_tool_warned in
6899yes:)
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6902ac_tool_warned=yes ;;
6903esac
6904    NMEDIT=$ac_ct_NMEDIT
6905  fi
6906else
6907  NMEDIT="$ac_cv_prog_NMEDIT"
6908fi
6909
6910    if test -n "$ac_tool_prefix"; then
6911  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6912set dummy ${ac_tool_prefix}lipo; ac_word=$2
6913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914$as_echo_n "checking for $ac_word... " >&6; }
6915if ${ac_cv_prog_LIPO+:} false; then :
6916  $as_echo_n "(cached) " >&6
6917else
6918  if test -n "$LIPO"; then
6919  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6920else
6921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922for as_dir in $PATH
6923do
6924  IFS=$as_save_IFS
6925  test -z "$as_dir" && as_dir=.
6926    for ac_exec_ext in '' $ac_executable_extensions; do
6927  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6928    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6930    break 2
6931  fi
6932done
6933  done
6934IFS=$as_save_IFS
6935
6936fi
6937fi
6938LIPO=$ac_cv_prog_LIPO
6939if test -n "$LIPO"; then
6940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6941$as_echo "$LIPO" >&6; }
6942else
6943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944$as_echo "no" >&6; }
6945fi
6946
6947
6948fi
6949if test -z "$ac_cv_prog_LIPO"; then
6950  ac_ct_LIPO=$LIPO
6951  # Extract the first word of "lipo", so it can be a program name with args.
6952set dummy lipo; ac_word=$2
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6954$as_echo_n "checking for $ac_word... " >&6; }
6955if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6956  $as_echo_n "(cached) " >&6
6957else
6958  if test -n "$ac_ct_LIPO"; then
6959  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6960else
6961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962for as_dir in $PATH
6963do
6964  IFS=$as_save_IFS
6965  test -z "$as_dir" && as_dir=.
6966    for ac_exec_ext in '' $ac_executable_extensions; do
6967  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6968    ac_cv_prog_ac_ct_LIPO="lipo"
6969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6970    break 2
6971  fi
6972done
6973  done
6974IFS=$as_save_IFS
6975
6976fi
6977fi
6978ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6979if test -n "$ac_ct_LIPO"; then
6980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6981$as_echo "$ac_ct_LIPO" >&6; }
6982else
6983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984$as_echo "no" >&6; }
6985fi
6986
6987  if test "x$ac_ct_LIPO" = x; then
6988    LIPO=":"
6989  else
6990    case $cross_compiling:$ac_tool_warned in
6991yes:)
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6994ac_tool_warned=yes ;;
6995esac
6996    LIPO=$ac_ct_LIPO
6997  fi
6998else
6999  LIPO="$ac_cv_prog_LIPO"
7000fi
7001
7002    if test -n "$ac_tool_prefix"; then
7003  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7004set dummy ${ac_tool_prefix}otool; ac_word=$2
7005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006$as_echo_n "checking for $ac_word... " >&6; }
7007if ${ac_cv_prog_OTOOL+:} false; then :
7008  $as_echo_n "(cached) " >&6
7009else
7010  if test -n "$OTOOL"; then
7011  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7012else
7013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014for as_dir in $PATH
7015do
7016  IFS=$as_save_IFS
7017  test -z "$as_dir" && as_dir=.
7018    for ac_exec_ext in '' $ac_executable_extensions; do
7019  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7020    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7022    break 2
7023  fi
7024done
7025  done
7026IFS=$as_save_IFS
7027
7028fi
7029fi
7030OTOOL=$ac_cv_prog_OTOOL
7031if test -n "$OTOOL"; then
7032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7033$as_echo "$OTOOL" >&6; }
7034else
7035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036$as_echo "no" >&6; }
7037fi
7038
7039
7040fi
7041if test -z "$ac_cv_prog_OTOOL"; then
7042  ac_ct_OTOOL=$OTOOL
7043  # Extract the first word of "otool", so it can be a program name with args.
7044set dummy otool; ac_word=$2
7045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046$as_echo_n "checking for $ac_word... " >&6; }
7047if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7048  $as_echo_n "(cached) " >&6
7049else
7050  if test -n "$ac_ct_OTOOL"; then
7051  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7052else
7053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054for as_dir in $PATH
7055do
7056  IFS=$as_save_IFS
7057  test -z "$as_dir" && as_dir=.
7058    for ac_exec_ext in '' $ac_executable_extensions; do
7059  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7060    ac_cv_prog_ac_ct_OTOOL="otool"
7061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062    break 2
7063  fi
7064done
7065  done
7066IFS=$as_save_IFS
7067
7068fi
7069fi
7070ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7071if test -n "$ac_ct_OTOOL"; then
7072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7073$as_echo "$ac_ct_OTOOL" >&6; }
7074else
7075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076$as_echo "no" >&6; }
7077fi
7078
7079  if test "x$ac_ct_OTOOL" = x; then
7080    OTOOL=":"
7081  else
7082    case $cross_compiling:$ac_tool_warned in
7083yes:)
7084{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7085$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7086ac_tool_warned=yes ;;
7087esac
7088    OTOOL=$ac_ct_OTOOL
7089  fi
7090else
7091  OTOOL="$ac_cv_prog_OTOOL"
7092fi
7093
7094    if test -n "$ac_tool_prefix"; then
7095  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7096set dummy ${ac_tool_prefix}otool64; ac_word=$2
7097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098$as_echo_n "checking for $ac_word... " >&6; }
7099if ${ac_cv_prog_OTOOL64+:} false; then :
7100  $as_echo_n "(cached) " >&6
7101else
7102  if test -n "$OTOOL64"; then
7103  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7104else
7105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106for as_dir in $PATH
7107do
7108  IFS=$as_save_IFS
7109  test -z "$as_dir" && as_dir=.
7110    for ac_exec_ext in '' $ac_executable_extensions; do
7111  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7112    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7113    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7114    break 2
7115  fi
7116done
7117  done
7118IFS=$as_save_IFS
7119
7120fi
7121fi
7122OTOOL64=$ac_cv_prog_OTOOL64
7123if test -n "$OTOOL64"; then
7124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7125$as_echo "$OTOOL64" >&6; }
7126else
7127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128$as_echo "no" >&6; }
7129fi
7130
7131
7132fi
7133if test -z "$ac_cv_prog_OTOOL64"; then
7134  ac_ct_OTOOL64=$OTOOL64
7135  # Extract the first word of "otool64", so it can be a program name with args.
7136set dummy otool64; ac_word=$2
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138$as_echo_n "checking for $ac_word... " >&6; }
7139if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7140  $as_echo_n "(cached) " >&6
7141else
7142  if test -n "$ac_ct_OTOOL64"; then
7143  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7144else
7145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146for as_dir in $PATH
7147do
7148  IFS=$as_save_IFS
7149  test -z "$as_dir" && as_dir=.
7150    for ac_exec_ext in '' $ac_executable_extensions; do
7151  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7152    ac_cv_prog_ac_ct_OTOOL64="otool64"
7153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154    break 2
7155  fi
7156done
7157  done
7158IFS=$as_save_IFS
7159
7160fi
7161fi
7162ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7163if test -n "$ac_ct_OTOOL64"; then
7164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7165$as_echo "$ac_ct_OTOOL64" >&6; }
7166else
7167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168$as_echo "no" >&6; }
7169fi
7170
7171  if test "x$ac_ct_OTOOL64" = x; then
7172    OTOOL64=":"
7173  else
7174    case $cross_compiling:$ac_tool_warned in
7175yes:)
7176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7178ac_tool_warned=yes ;;
7179esac
7180    OTOOL64=$ac_ct_OTOOL64
7181  fi
7182else
7183  OTOOL64="$ac_cv_prog_OTOOL64"
7184fi
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7213$as_echo_n "checking for -single_module linker flag... " >&6; }
7214if ${lt_cv_apple_cc_single_mod+:} false; then :
7215  $as_echo_n "(cached) " >&6
7216else
7217  lt_cv_apple_cc_single_mod=no
7218      if test -z "${LT_MULTI_MODULE}"; then
7219	# By default we will add the -single_module flag. You can override
7220	# by either setting the environment variable LT_MULTI_MODULE
7221	# non-empty at configure time, or by adding -multi_module to the
7222	# link flags.
7223	rm -rf libconftest.dylib*
7224	echo "int foo(void){return 1;}" > conftest.c
7225	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7226-dynamiclib -Wl,-single_module conftest.c" >&5
7227	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7228	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7229        _lt_result=$?
7230	# If there is a non-empty error log, and "single_module"
7231	# appears in it, assume the flag caused a linker warning
7232        if test -s conftest.err && $GREP single_module conftest.err; then
7233	  cat conftest.err >&5
7234	# Otherwise, if the output was created with a 0 exit code from
7235	# the compiler, it worked.
7236	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7237	  lt_cv_apple_cc_single_mod=yes
7238	else
7239	  cat conftest.err >&5
7240	fi
7241	rm -rf libconftest.dylib*
7242	rm -f conftest.*
7243      fi
7244fi
7245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7246$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7247
7248    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7249$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7250if ${lt_cv_ld_exported_symbols_list+:} false; then :
7251  $as_echo_n "(cached) " >&6
7252else
7253  lt_cv_ld_exported_symbols_list=no
7254      save_LDFLAGS=$LDFLAGS
7255      echo "_main" > conftest.sym
7256      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7257      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258/* end confdefs.h.  */
7259
7260int
7261main ()
7262{
7263
7264  ;
7265  return 0;
7266}
7267_ACEOF
7268if ac_fn_c_try_link "$LINENO"; then :
7269  lt_cv_ld_exported_symbols_list=yes
7270else
7271  lt_cv_ld_exported_symbols_list=no
7272fi
7273rm -f core conftest.err conftest.$ac_objext \
7274    conftest$ac_exeext conftest.$ac_ext
7275	LDFLAGS="$save_LDFLAGS"
7276
7277fi
7278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7279$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7280
7281    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7282$as_echo_n "checking for -force_load linker flag... " >&6; }
7283if ${lt_cv_ld_force_load+:} false; then :
7284  $as_echo_n "(cached) " >&6
7285else
7286  lt_cv_ld_force_load=no
7287      cat > conftest.c << _LT_EOF
7288int forced_loaded() { return 2;}
7289_LT_EOF
7290      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7291      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7292      echo "$AR cru libconftest.a conftest.o" >&5
7293      $AR cru libconftest.a conftest.o 2>&5
7294      echo "$RANLIB libconftest.a" >&5
7295      $RANLIB libconftest.a 2>&5
7296      cat > conftest.c << _LT_EOF
7297int main() { return 0;}
7298_LT_EOF
7299      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7300      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7301      _lt_result=$?
7302      if test -s conftest.err && $GREP force_load conftest.err; then
7303	cat conftest.err >&5
7304      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7305	lt_cv_ld_force_load=yes
7306      else
7307	cat conftest.err >&5
7308      fi
7309        rm -f conftest.err libconftest.a conftest conftest.c
7310        rm -rf conftest.dSYM
7311
7312fi
7313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7314$as_echo "$lt_cv_ld_force_load" >&6; }
7315    case $host_os in
7316    rhapsody* | darwin1.[012])
7317      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7318    darwin1.*)
7319      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7320    darwin*) # darwin 5.x on
7321      # if running on 10.5 or later, the deployment target defaults
7322      # to the OS version, if on x86, and 10.4, the deployment
7323      # target defaults to 10.4. Don't you love it?
7324      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7325	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7326	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7327	10.[012]*)
7328	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7329	10.*)
7330	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7331      esac
7332    ;;
7333  esac
7334    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7335      _lt_dar_single_mod='$single_module'
7336    fi
7337    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7338      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7339    else
7340      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7341    fi
7342    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7343      _lt_dsymutil='~$DSYMUTIL $lib || :'
7344    else
7345      _lt_dsymutil=
7346    fi
7347    ;;
7348  esac
7349
7350ac_ext=c
7351ac_cpp='$CPP $CPPFLAGS'
7352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7354ac_compiler_gnu=$ac_cv_c_compiler_gnu
7355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7356$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357# On Suns, sometimes $CPP names a directory.
7358if test -n "$CPP" && test -d "$CPP"; then
7359  CPP=
7360fi
7361if test -z "$CPP"; then
7362  if ${ac_cv_prog_CPP+:} false; then :
7363  $as_echo_n "(cached) " >&6
7364else
7365      # Double quotes because CPP needs to be expanded
7366    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7367    do
7368      ac_preproc_ok=false
7369for ac_c_preproc_warn_flag in '' yes
7370do
7371  # Use a header file that comes with gcc, so configuring glibc
7372  # with a fresh cross-compiler works.
7373  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7374  # <limits.h> exists even on freestanding compilers.
7375  # On the NeXT, cc -E runs the code through the compiler's parser,
7376  # not just through cpp. "Syntax error" is here to catch this case.
7377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378/* end confdefs.h.  */
7379#ifdef __STDC__
7380# include <limits.h>
7381#else
7382# include <assert.h>
7383#endif
7384		     Syntax error
7385_ACEOF
7386if ac_fn_c_try_cpp "$LINENO"; then :
7387
7388else
7389  # Broken: fails on valid input.
7390continue
7391fi
7392rm -f conftest.err conftest.i conftest.$ac_ext
7393
7394  # OK, works on sane cases.  Now check whether nonexistent headers
7395  # can be detected and how.
7396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397/* end confdefs.h.  */
7398#include <ac_nonexistent.h>
7399_ACEOF
7400if ac_fn_c_try_cpp "$LINENO"; then :
7401  # Broken: success on invalid input.
7402continue
7403else
7404  # Passes both tests.
7405ac_preproc_ok=:
7406break
7407fi
7408rm -f conftest.err conftest.i conftest.$ac_ext
7409
7410done
7411# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7412rm -f conftest.i conftest.err conftest.$ac_ext
7413if $ac_preproc_ok; then :
7414  break
7415fi
7416
7417    done
7418    ac_cv_prog_CPP=$CPP
7419
7420fi
7421  CPP=$ac_cv_prog_CPP
7422else
7423  ac_cv_prog_CPP=$CPP
7424fi
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7426$as_echo "$CPP" >&6; }
7427ac_preproc_ok=false
7428for ac_c_preproc_warn_flag in '' yes
7429do
7430  # Use a header file that comes with gcc, so configuring glibc
7431  # with a fresh cross-compiler works.
7432  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7433  # <limits.h> exists even on freestanding compilers.
7434  # On the NeXT, cc -E runs the code through the compiler's parser,
7435  # not just through cpp. "Syntax error" is here to catch this case.
7436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437/* end confdefs.h.  */
7438#ifdef __STDC__
7439# include <limits.h>
7440#else
7441# include <assert.h>
7442#endif
7443		     Syntax error
7444_ACEOF
7445if ac_fn_c_try_cpp "$LINENO"; then :
7446
7447else
7448  # Broken: fails on valid input.
7449continue
7450fi
7451rm -f conftest.err conftest.i conftest.$ac_ext
7452
7453  # OK, works on sane cases.  Now check whether nonexistent headers
7454  # can be detected and how.
7455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456/* end confdefs.h.  */
7457#include <ac_nonexistent.h>
7458_ACEOF
7459if ac_fn_c_try_cpp "$LINENO"; then :
7460  # Broken: success on invalid input.
7461continue
7462else
7463  # Passes both tests.
7464ac_preproc_ok=:
7465break
7466fi
7467rm -f conftest.err conftest.i conftest.$ac_ext
7468
7469done
7470# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7471rm -f conftest.i conftest.err conftest.$ac_ext
7472if $ac_preproc_ok; then :
7473
7474else
7475  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7477as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7478See \`config.log' for more details" "$LINENO" 5; }
7479fi
7480
7481ac_ext=c
7482ac_cpp='$CPP $CPPFLAGS'
7483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7485ac_compiler_gnu=$ac_cv_c_compiler_gnu
7486
7487
7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7489$as_echo_n "checking for ANSI C header files... " >&6; }
7490if ${ac_cv_header_stdc+:} false; then :
7491  $as_echo_n "(cached) " >&6
7492else
7493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494/* end confdefs.h.  */
7495#include <stdlib.h>
7496#include <stdarg.h>
7497#include <string.h>
7498#include <float.h>
7499
7500int
7501main ()
7502{
7503
7504  ;
7505  return 0;
7506}
7507_ACEOF
7508if ac_fn_c_try_compile "$LINENO"; then :
7509  ac_cv_header_stdc=yes
7510else
7511  ac_cv_header_stdc=no
7512fi
7513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514
7515if test $ac_cv_header_stdc = yes; then
7516  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518/* end confdefs.h.  */
7519#include <string.h>
7520
7521_ACEOF
7522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7523  $EGREP "memchr" >/dev/null 2>&1; then :
7524
7525else
7526  ac_cv_header_stdc=no
7527fi
7528rm -f conftest*
7529
7530fi
7531
7532if test $ac_cv_header_stdc = yes; then
7533  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535/* end confdefs.h.  */
7536#include <stdlib.h>
7537
7538_ACEOF
7539if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7540  $EGREP "free" >/dev/null 2>&1; then :
7541
7542else
7543  ac_cv_header_stdc=no
7544fi
7545rm -f conftest*
7546
7547fi
7548
7549if test $ac_cv_header_stdc = yes; then
7550  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7551  if test "$cross_compiling" = yes; then :
7552  :
7553else
7554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555/* end confdefs.h.  */
7556#include <ctype.h>
7557#include <stdlib.h>
7558#if ((' ' & 0x0FF) == 0x020)
7559# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7560# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7561#else
7562# define ISLOWER(c) \
7563		   (('a' <= (c) && (c) <= 'i') \
7564		     || ('j' <= (c) && (c) <= 'r') \
7565		     || ('s' <= (c) && (c) <= 'z'))
7566# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7567#endif
7568
7569#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7570int
7571main ()
7572{
7573  int i;
7574  for (i = 0; i < 256; i++)
7575    if (XOR (islower (i), ISLOWER (i))
7576	|| toupper (i) != TOUPPER (i))
7577      return 2;
7578  return 0;
7579}
7580_ACEOF
7581if ac_fn_c_try_run "$LINENO"; then :
7582
7583else
7584  ac_cv_header_stdc=no
7585fi
7586rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7587  conftest.$ac_objext conftest.beam conftest.$ac_ext
7588fi
7589
7590fi
7591fi
7592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7593$as_echo "$ac_cv_header_stdc" >&6; }
7594if test $ac_cv_header_stdc = yes; then
7595
7596$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7597
7598fi
7599
7600# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7601for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7602		  inttypes.h stdint.h unistd.h
7603do :
7604  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7605ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7606"
7607if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7608  cat >>confdefs.h <<_ACEOF
7609#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7610_ACEOF
7611
7612fi
7613
7614done
7615
7616
7617for ac_header in dlfcn.h
7618do :
7619  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7620"
7621if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7622  cat >>confdefs.h <<_ACEOF
7623#define HAVE_DLFCN_H 1
7624_ACEOF
7625
7626fi
7627
7628done
7629
7630
7631
7632
7633
7634# Set options
7635
7636
7637
7638        enable_dlopen=no
7639
7640
7641  enable_win32_dll=no
7642
7643
7644            # Check whether --enable-shared was given.
7645if test "${enable_shared+set}" = set; then :
7646  enableval=$enable_shared; p=${PACKAGE-default}
7647    case $enableval in
7648    yes) enable_shared=yes ;;
7649    no) enable_shared=no ;;
7650    *)
7651      enable_shared=no
7652      # Look at the argument we got.  We use all the common list separators.
7653      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7654      for pkg in $enableval; do
7655	IFS="$lt_save_ifs"
7656	if test "X$pkg" = "X$p"; then
7657	  enable_shared=yes
7658	fi
7659      done
7660      IFS="$lt_save_ifs"
7661      ;;
7662    esac
7663else
7664  enable_shared=yes
7665fi
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677# Check whether --with-pic was given.
7678if test "${with_pic+set}" = set; then :
7679  withval=$with_pic; lt_p=${PACKAGE-default}
7680    case $withval in
7681    yes|no) pic_mode=$withval ;;
7682    *)
7683      pic_mode=default
7684      # Look at the argument we got.  We use all the common list separators.
7685      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7686      for lt_pkg in $withval; do
7687	IFS="$lt_save_ifs"
7688	if test "X$lt_pkg" = "X$lt_p"; then
7689	  pic_mode=yes
7690	fi
7691      done
7692      IFS="$lt_save_ifs"
7693      ;;
7694    esac
7695else
7696  pic_mode=default
7697fi
7698
7699
7700test -z "$pic_mode" && pic_mode=default
7701
7702
7703
7704
7705
7706
7707
7708  # Check whether --enable-fast-install was given.
7709if test "${enable_fast_install+set}" = set; then :
7710  enableval=$enable_fast_install; p=${PACKAGE-default}
7711    case $enableval in
7712    yes) enable_fast_install=yes ;;
7713    no) enable_fast_install=no ;;
7714    *)
7715      enable_fast_install=no
7716      # Look at the argument we got.  We use all the common list separators.
7717      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7718      for pkg in $enableval; do
7719	IFS="$lt_save_ifs"
7720	if test "X$pkg" = "X$p"; then
7721	  enable_fast_install=yes
7722	fi
7723      done
7724      IFS="$lt_save_ifs"
7725      ;;
7726    esac
7727else
7728  enable_fast_install=yes
7729fi
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741# This can be used to rebuild libtool when needed
7742LIBTOOL_DEPS="$ltmain"
7743
7744# Always use our own libtool.
7745LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776test -z "$LN_S" && LN_S="ln -s"
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791if test -n "${ZSH_VERSION+set}" ; then
7792   setopt NO_GLOB_SUBST
7793fi
7794
7795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7796$as_echo_n "checking for objdir... " >&6; }
7797if ${lt_cv_objdir+:} false; then :
7798  $as_echo_n "(cached) " >&6
7799else
7800  rm -f .libs 2>/dev/null
7801mkdir .libs 2>/dev/null
7802if test -d .libs; then
7803  lt_cv_objdir=.libs
7804else
7805  # MS-DOS does not allow filenames that begin with a dot.
7806  lt_cv_objdir=_libs
7807fi
7808rmdir .libs 2>/dev/null
7809fi
7810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7811$as_echo "$lt_cv_objdir" >&6; }
7812objdir=$lt_cv_objdir
7813
7814
7815
7816
7817
7818cat >>confdefs.h <<_ACEOF
7819#define LT_OBJDIR "$lt_cv_objdir/"
7820_ACEOF
7821
7822
7823
7824
7825case $host_os in
7826aix3*)
7827  # AIX sometimes has problems with the GCC collect2 program.  For some
7828  # reason, if we set the COLLECT_NAMES environment variable, the problems
7829  # vanish in a puff of smoke.
7830  if test "X${COLLECT_NAMES+set}" != Xset; then
7831    COLLECT_NAMES=
7832    export COLLECT_NAMES
7833  fi
7834  ;;
7835esac
7836
7837# Global variables:
7838ofile=libtool
7839can_build_shared=yes
7840
7841# All known linkers require a `.a' archive for static linking (except MSVC,
7842# which needs '.lib').
7843libext=a
7844
7845with_gnu_ld="$lt_cv_prog_gnu_ld"
7846
7847old_CC="$CC"
7848old_CFLAGS="$CFLAGS"
7849
7850# Set sane defaults for various variables
7851test -z "$CC" && CC=cc
7852test -z "$LTCC" && LTCC=$CC
7853test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7854test -z "$LD" && LD=ld
7855test -z "$ac_objext" && ac_objext=o
7856
7857for cc_temp in $compiler""; do
7858  case $cc_temp in
7859    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7860    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7861    \-*) ;;
7862    *) break;;
7863  esac
7864done
7865cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7866
7867
7868# Only perform the check for file, if the check method requires it
7869test -z "$MAGIC_CMD" && MAGIC_CMD=file
7870case $deplibs_check_method in
7871file_magic*)
7872  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7873    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7874$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7875if ${lt_cv_path_MAGIC_CMD+:} false; then :
7876  $as_echo_n "(cached) " >&6
7877else
7878  case $MAGIC_CMD in
7879[\\/*] |  ?:[\\/]*)
7880  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7881  ;;
7882*)
7883  lt_save_MAGIC_CMD="$MAGIC_CMD"
7884  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7885  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7886  for ac_dir in $ac_dummy; do
7887    IFS="$lt_save_ifs"
7888    test -z "$ac_dir" && ac_dir=.
7889    if test -f $ac_dir/${ac_tool_prefix}file; then
7890      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7891      if test -n "$file_magic_test_file"; then
7892	case $deplibs_check_method in
7893	"file_magic "*)
7894	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7895	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7896	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7897	    $EGREP "$file_magic_regex" > /dev/null; then
7898	    :
7899	  else
7900	    cat <<_LT_EOF 1>&2
7901
7902*** Warning: the command libtool uses to detect shared libraries,
7903*** $file_magic_cmd, produces output that libtool cannot recognize.
7904*** The result is that libtool may fail to recognize shared libraries
7905*** as such.  This will affect the creation of libtool libraries that
7906*** depend on shared libraries, but programs linked with such libtool
7907*** libraries will work regardless of this problem.  Nevertheless, you
7908*** may want to report the problem to your system manager and/or to
7909*** bug-libtool@gnu.org
7910
7911_LT_EOF
7912	  fi ;;
7913	esac
7914      fi
7915      break
7916    fi
7917  done
7918  IFS="$lt_save_ifs"
7919  MAGIC_CMD="$lt_save_MAGIC_CMD"
7920  ;;
7921esac
7922fi
7923
7924MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7925if test -n "$MAGIC_CMD"; then
7926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7927$as_echo "$MAGIC_CMD" >&6; }
7928else
7929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930$as_echo "no" >&6; }
7931fi
7932
7933
7934
7935
7936
7937if test -z "$lt_cv_path_MAGIC_CMD"; then
7938  if test -n "$ac_tool_prefix"; then
7939    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7940$as_echo_n "checking for file... " >&6; }
7941if ${lt_cv_path_MAGIC_CMD+:} false; then :
7942  $as_echo_n "(cached) " >&6
7943else
7944  case $MAGIC_CMD in
7945[\\/*] |  ?:[\\/]*)
7946  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7947  ;;
7948*)
7949  lt_save_MAGIC_CMD="$MAGIC_CMD"
7950  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7951  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7952  for ac_dir in $ac_dummy; do
7953    IFS="$lt_save_ifs"
7954    test -z "$ac_dir" && ac_dir=.
7955    if test -f $ac_dir/file; then
7956      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7957      if test -n "$file_magic_test_file"; then
7958	case $deplibs_check_method in
7959	"file_magic "*)
7960	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7961	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7962	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7963	    $EGREP "$file_magic_regex" > /dev/null; then
7964	    :
7965	  else
7966	    cat <<_LT_EOF 1>&2
7967
7968*** Warning: the command libtool uses to detect shared libraries,
7969*** $file_magic_cmd, produces output that libtool cannot recognize.
7970*** The result is that libtool may fail to recognize shared libraries
7971*** as such.  This will affect the creation of libtool libraries that
7972*** depend on shared libraries, but programs linked with such libtool
7973*** libraries will work regardless of this problem.  Nevertheless, you
7974*** may want to report the problem to your system manager and/or to
7975*** bug-libtool@gnu.org
7976
7977_LT_EOF
7978	  fi ;;
7979	esac
7980      fi
7981      break
7982    fi
7983  done
7984  IFS="$lt_save_ifs"
7985  MAGIC_CMD="$lt_save_MAGIC_CMD"
7986  ;;
7987esac
7988fi
7989
7990MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7991if test -n "$MAGIC_CMD"; then
7992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7993$as_echo "$MAGIC_CMD" >&6; }
7994else
7995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996$as_echo "no" >&6; }
7997fi
7998
7999
8000  else
8001    MAGIC_CMD=:
8002  fi
8003fi
8004
8005  fi
8006  ;;
8007esac
8008
8009# Use C for the default configuration in the libtool script
8010
8011lt_save_CC="$CC"
8012ac_ext=c
8013ac_cpp='$CPP $CPPFLAGS'
8014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8016ac_compiler_gnu=$ac_cv_c_compiler_gnu
8017
8018
8019# Source file extension for C test sources.
8020ac_ext=c
8021
8022# Object file extension for compiled C test sources.
8023objext=o
8024objext=$objext
8025
8026# Code to be used in simple compile tests
8027lt_simple_compile_test_code="int some_variable = 0;"
8028
8029# Code to be used in simple link tests
8030lt_simple_link_test_code='int main(){return(0);}'
8031
8032
8033
8034
8035
8036
8037
8038# If no C compiler was specified, use CC.
8039LTCC=${LTCC-"$CC"}
8040
8041# If no C compiler flags were specified, use CFLAGS.
8042LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8043
8044# Allow CC to be a program name with arguments.
8045compiler=$CC
8046
8047# Save the default compiler, since it gets overwritten when the other
8048# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8049compiler_DEFAULT=$CC
8050
8051# save warnings/boilerplate of simple test code
8052ac_outfile=conftest.$ac_objext
8053echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8054eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8055_lt_compiler_boilerplate=`cat conftest.err`
8056$RM conftest*
8057
8058ac_outfile=conftest.$ac_objext
8059echo "$lt_simple_link_test_code" >conftest.$ac_ext
8060eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8061_lt_linker_boilerplate=`cat conftest.err`
8062$RM -r conftest*
8063
8064
8065## CAVEAT EMPTOR:
8066## There is no encapsulation within the following macros, do not change
8067## the running order or otherwise move them around unless you know exactly
8068## what you are doing...
8069if test -n "$compiler"; then
8070
8071lt_prog_compiler_no_builtin_flag=
8072
8073if test "$GCC" = yes; then
8074  case $cc_basename in
8075  nvcc*)
8076    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8077  *)
8078    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8079  esac
8080
8081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8082$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8083if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8084  $as_echo_n "(cached) " >&6
8085else
8086  lt_cv_prog_compiler_rtti_exceptions=no
8087   ac_outfile=conftest.$ac_objext
8088   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8089   lt_compiler_flag="-fno-rtti -fno-exceptions"
8090   # Insert the option either (1) after the last *FLAGS variable, or
8091   # (2) before a word containing "conftest.", or (3) at the end.
8092   # Note that $ac_compile itself does not contain backslashes and begins
8093   # with a dollar sign (not a hyphen), so the echo should work correctly.
8094   # The option is referenced via a variable to avoid confusing sed.
8095   lt_compile=`echo "$ac_compile" | $SED \
8096   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8097   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8098   -e 's:$: $lt_compiler_flag:'`
8099   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8100   (eval "$lt_compile" 2>conftest.err)
8101   ac_status=$?
8102   cat conftest.err >&5
8103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104   if (exit $ac_status) && test -s "$ac_outfile"; then
8105     # The compiler can only warn and ignore the option if not recognized
8106     # So say no if there are warnings other than the usual output.
8107     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8108     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8109     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8110       lt_cv_prog_compiler_rtti_exceptions=yes
8111     fi
8112   fi
8113   $RM conftest*
8114
8115fi
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8117$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8118
8119if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8120    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8121else
8122    :
8123fi
8124
8125fi
8126
8127
8128
8129
8130
8131
8132  lt_prog_compiler_wl=
8133lt_prog_compiler_pic=
8134lt_prog_compiler_static=
8135
8136
8137  if test "$GCC" = yes; then
8138    lt_prog_compiler_wl='-Wl,'
8139    lt_prog_compiler_static='-static'
8140
8141    case $host_os in
8142      aix*)
8143      # All AIX code is PIC.
8144      if test "$host_cpu" = ia64; then
8145	# AIX 5 now supports IA64 processor
8146	lt_prog_compiler_static='-Bstatic'
8147      fi
8148      ;;
8149
8150    amigaos*)
8151      case $host_cpu in
8152      powerpc)
8153            # see comment about AmigaOS4 .so support
8154            lt_prog_compiler_pic='-fPIC'
8155        ;;
8156      m68k)
8157            # FIXME: we need at least 68020 code to build shared libraries, but
8158            # adding the `-m68020' flag to GCC prevents building anything better,
8159            # like `-m68040'.
8160            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8161        ;;
8162      esac
8163      ;;
8164
8165    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8166      # PIC is the default for these OSes.
8167      ;;
8168
8169    mingw* | cygwin* | pw32* | os2* | cegcc*)
8170      # This hack is so that the source file can tell whether it is being
8171      # built for inclusion in a dll (and should export symbols for example).
8172      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8173      # (--disable-auto-import) libraries
8174      lt_prog_compiler_pic='-DDLL_EXPORT'
8175      ;;
8176
8177    darwin* | rhapsody*)
8178      # PIC is the default on this platform
8179      # Common symbols not allowed in MH_DYLIB files
8180      lt_prog_compiler_pic='-fno-common'
8181      ;;
8182
8183    haiku*)
8184      # PIC is the default for Haiku.
8185      # The "-static" flag exists, but is broken.
8186      lt_prog_compiler_static=
8187      ;;
8188
8189    hpux*)
8190      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8191      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8192      # sets the default TLS model and affects inlining.
8193      case $host_cpu in
8194      hppa*64*)
8195	# +Z the default
8196	;;
8197      *)
8198	lt_prog_compiler_pic='-fPIC'
8199	;;
8200      esac
8201      ;;
8202
8203    interix[3-9]*)
8204      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8205      # Instead, we relocate shared libraries at runtime.
8206      ;;
8207
8208    msdosdjgpp*)
8209      # Just because we use GCC doesn't mean we suddenly get shared libraries
8210      # on systems that don't support them.
8211      lt_prog_compiler_can_build_shared=no
8212      enable_shared=no
8213      ;;
8214
8215    *nto* | *qnx*)
8216      # QNX uses GNU C++, but need to define -shared option too, otherwise
8217      # it will coredump.
8218      lt_prog_compiler_pic='-fPIC -shared'
8219      ;;
8220
8221    sysv4*MP*)
8222      if test -d /usr/nec; then
8223	lt_prog_compiler_pic=-Kconform_pic
8224      fi
8225      ;;
8226
8227    *)
8228      lt_prog_compiler_pic='-fPIC'
8229      ;;
8230    esac
8231
8232    case $cc_basename in
8233    nvcc*) # Cuda Compiler Driver 2.2
8234      lt_prog_compiler_wl='-Xlinker '
8235      if test -n "$lt_prog_compiler_pic"; then
8236        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8237      fi
8238      ;;
8239    esac
8240  else
8241    # PORTME Check for flag to pass linker flags through the system compiler.
8242    case $host_os in
8243    aix*)
8244      lt_prog_compiler_wl='-Wl,'
8245      if test "$host_cpu" = ia64; then
8246	# AIX 5 now supports IA64 processor
8247	lt_prog_compiler_static='-Bstatic'
8248      else
8249	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8250      fi
8251      ;;
8252
8253    mingw* | cygwin* | pw32* | os2* | cegcc*)
8254      # This hack is so that the source file can tell whether it is being
8255      # built for inclusion in a dll (and should export symbols for example).
8256      lt_prog_compiler_pic='-DDLL_EXPORT'
8257      ;;
8258
8259    hpux9* | hpux10* | hpux11*)
8260      lt_prog_compiler_wl='-Wl,'
8261      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8262      # not for PA HP-UX.
8263      case $host_cpu in
8264      hppa*64*|ia64*)
8265	# +Z the default
8266	;;
8267      *)
8268	lt_prog_compiler_pic='+Z'
8269	;;
8270      esac
8271      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8272      lt_prog_compiler_static='${wl}-a ${wl}archive'
8273      ;;
8274
8275    irix5* | irix6* | nonstopux*)
8276      lt_prog_compiler_wl='-Wl,'
8277      # PIC (with -KPIC) is the default.
8278      lt_prog_compiler_static='-non_shared'
8279      ;;
8280
8281    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8282      case $cc_basename in
8283      # old Intel for x86_64 which still supported -KPIC.
8284      ecc*)
8285	lt_prog_compiler_wl='-Wl,'
8286	lt_prog_compiler_pic='-KPIC'
8287	lt_prog_compiler_static='-static'
8288        ;;
8289      # icc used to be incompatible with GCC.
8290      # ICC 10 doesn't accept -KPIC any more.
8291      icc* | ifort*)
8292	lt_prog_compiler_wl='-Wl,'
8293	lt_prog_compiler_pic='-fPIC'
8294	lt_prog_compiler_static='-static'
8295        ;;
8296      # Lahey Fortran 8.1.
8297      lf95*)
8298	lt_prog_compiler_wl='-Wl,'
8299	lt_prog_compiler_pic='--shared'
8300	lt_prog_compiler_static='--static'
8301	;;
8302      nagfor*)
8303	# NAG Fortran compiler
8304	lt_prog_compiler_wl='-Wl,-Wl,,'
8305	lt_prog_compiler_pic='-PIC'
8306	lt_prog_compiler_static='-Bstatic'
8307	;;
8308      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8309        # Portland Group compilers (*not* the Pentium gcc compiler,
8310	# which looks to be a dead project)
8311	lt_prog_compiler_wl='-Wl,'
8312	lt_prog_compiler_pic='-fpic'
8313	lt_prog_compiler_static='-Bstatic'
8314        ;;
8315      ccc*)
8316        lt_prog_compiler_wl='-Wl,'
8317        # All Alpha code is PIC.
8318        lt_prog_compiler_static='-non_shared'
8319        ;;
8320      xl* | bgxl* | bgf* | mpixl*)
8321	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8322	lt_prog_compiler_wl='-Wl,'
8323	lt_prog_compiler_pic='-qpic'
8324	lt_prog_compiler_static='-qstaticlink'
8325	;;
8326      *)
8327	case `$CC -V 2>&1 | sed 5q` in
8328	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8329	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8330	  lt_prog_compiler_pic='-KPIC'
8331	  lt_prog_compiler_static='-Bstatic'
8332	  lt_prog_compiler_wl=''
8333	  ;;
8334	*Sun\ F* | *Sun*Fortran*)
8335	  lt_prog_compiler_pic='-KPIC'
8336	  lt_prog_compiler_static='-Bstatic'
8337	  lt_prog_compiler_wl='-Qoption ld '
8338	  ;;
8339	*Sun\ C*)
8340	  # Sun C 5.9
8341	  lt_prog_compiler_pic='-KPIC'
8342	  lt_prog_compiler_static='-Bstatic'
8343	  lt_prog_compiler_wl='-Wl,'
8344	  ;;
8345        *Intel*\ [CF]*Compiler*)
8346	  lt_prog_compiler_wl='-Wl,'
8347	  lt_prog_compiler_pic='-fPIC'
8348	  lt_prog_compiler_static='-static'
8349	  ;;
8350	*Portland\ Group*)
8351	  lt_prog_compiler_wl='-Wl,'
8352	  lt_prog_compiler_pic='-fpic'
8353	  lt_prog_compiler_static='-Bstatic'
8354	  ;;
8355	esac
8356	;;
8357      esac
8358      ;;
8359
8360    newsos6)
8361      lt_prog_compiler_pic='-KPIC'
8362      lt_prog_compiler_static='-Bstatic'
8363      ;;
8364
8365    *nto* | *qnx*)
8366      # QNX uses GNU C++, but need to define -shared option too, otherwise
8367      # it will coredump.
8368      lt_prog_compiler_pic='-fPIC -shared'
8369      ;;
8370
8371    osf3* | osf4* | osf5*)
8372      lt_prog_compiler_wl='-Wl,'
8373      # All OSF/1 code is PIC.
8374      lt_prog_compiler_static='-non_shared'
8375      ;;
8376
8377    rdos*)
8378      lt_prog_compiler_static='-non_shared'
8379      ;;
8380
8381    solaris*)
8382      lt_prog_compiler_pic='-KPIC'
8383      lt_prog_compiler_static='-Bstatic'
8384      case $cc_basename in
8385      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8386	lt_prog_compiler_wl='-Qoption ld ';;
8387      *)
8388	lt_prog_compiler_wl='-Wl,';;
8389      esac
8390      ;;
8391
8392    sunos4*)
8393      lt_prog_compiler_wl='-Qoption ld '
8394      lt_prog_compiler_pic='-PIC'
8395      lt_prog_compiler_static='-Bstatic'
8396      ;;
8397
8398    sysv4 | sysv4.2uw2* | sysv4.3*)
8399      lt_prog_compiler_wl='-Wl,'
8400      lt_prog_compiler_pic='-KPIC'
8401      lt_prog_compiler_static='-Bstatic'
8402      ;;
8403
8404    sysv4*MP*)
8405      if test -d /usr/nec ;then
8406	lt_prog_compiler_pic='-Kconform_pic'
8407	lt_prog_compiler_static='-Bstatic'
8408      fi
8409      ;;
8410
8411    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8412      lt_prog_compiler_wl='-Wl,'
8413      lt_prog_compiler_pic='-KPIC'
8414      lt_prog_compiler_static='-Bstatic'
8415      ;;
8416
8417    unicos*)
8418      lt_prog_compiler_wl='-Wl,'
8419      lt_prog_compiler_can_build_shared=no
8420      ;;
8421
8422    uts4*)
8423      lt_prog_compiler_pic='-pic'
8424      lt_prog_compiler_static='-Bstatic'
8425      ;;
8426
8427    *)
8428      lt_prog_compiler_can_build_shared=no
8429      ;;
8430    esac
8431  fi
8432
8433case $host_os in
8434  # For platforms which do not support PIC, -DPIC is meaningless:
8435  *djgpp*)
8436    lt_prog_compiler_pic=
8437    ;;
8438  *)
8439    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8440    ;;
8441esac
8442
8443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8444$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8445if ${lt_cv_prog_compiler_pic+:} false; then :
8446  $as_echo_n "(cached) " >&6
8447else
8448  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8449fi
8450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8451$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8452lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8453
8454#
8455# Check to make sure the PIC flag actually works.
8456#
8457if test -n "$lt_prog_compiler_pic"; then
8458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8459$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8460if ${lt_cv_prog_compiler_pic_works+:} false; then :
8461  $as_echo_n "(cached) " >&6
8462else
8463  lt_cv_prog_compiler_pic_works=no
8464   ac_outfile=conftest.$ac_objext
8465   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8466   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8467   # Insert the option either (1) after the last *FLAGS variable, or
8468   # (2) before a word containing "conftest.", or (3) at the end.
8469   # Note that $ac_compile itself does not contain backslashes and begins
8470   # with a dollar sign (not a hyphen), so the echo should work correctly.
8471   # The option is referenced via a variable to avoid confusing sed.
8472   lt_compile=`echo "$ac_compile" | $SED \
8473   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8474   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8475   -e 's:$: $lt_compiler_flag:'`
8476   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8477   (eval "$lt_compile" 2>conftest.err)
8478   ac_status=$?
8479   cat conftest.err >&5
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   if (exit $ac_status) && test -s "$ac_outfile"; then
8482     # The compiler can only warn and ignore the option if not recognized
8483     # So say no if there are warnings other than the usual output.
8484     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8485     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8486     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8487       lt_cv_prog_compiler_pic_works=yes
8488     fi
8489   fi
8490   $RM conftest*
8491
8492fi
8493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8494$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8495
8496if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8497    case $lt_prog_compiler_pic in
8498     "" | " "*) ;;
8499     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8500     esac
8501else
8502    lt_prog_compiler_pic=
8503     lt_prog_compiler_can_build_shared=no
8504fi
8505
8506fi
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518#
8519# Check to make sure the static flag actually works.
8520#
8521wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8523$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8524if ${lt_cv_prog_compiler_static_works+:} false; then :
8525  $as_echo_n "(cached) " >&6
8526else
8527  lt_cv_prog_compiler_static_works=no
8528   save_LDFLAGS="$LDFLAGS"
8529   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8530   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8531   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8532     # The linker can only warn and ignore the option if not recognized
8533     # So say no if there are warnings
8534     if test -s conftest.err; then
8535       # Append any errors to the config.log.
8536       cat conftest.err 1>&5
8537       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8538       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8539       if diff conftest.exp conftest.er2 >/dev/null; then
8540         lt_cv_prog_compiler_static_works=yes
8541       fi
8542     else
8543       lt_cv_prog_compiler_static_works=yes
8544     fi
8545   fi
8546   $RM -r conftest*
8547   LDFLAGS="$save_LDFLAGS"
8548
8549fi
8550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8551$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8552
8553if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8554    :
8555else
8556    lt_prog_compiler_static=
8557fi
8558
8559
8560
8561
8562
8563
8564
8565  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8566$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8567if ${lt_cv_prog_compiler_c_o+:} false; then :
8568  $as_echo_n "(cached) " >&6
8569else
8570  lt_cv_prog_compiler_c_o=no
8571   $RM -r conftest 2>/dev/null
8572   mkdir conftest
8573   cd conftest
8574   mkdir out
8575   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8576
8577   lt_compiler_flag="-o out/conftest2.$ac_objext"
8578   # Insert the option either (1) after the last *FLAGS variable, or
8579   # (2) before a word containing "conftest.", or (3) at the end.
8580   # Note that $ac_compile itself does not contain backslashes and begins
8581   # with a dollar sign (not a hyphen), so the echo should work correctly.
8582   lt_compile=`echo "$ac_compile" | $SED \
8583   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8584   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8585   -e 's:$: $lt_compiler_flag:'`
8586   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8587   (eval "$lt_compile" 2>out/conftest.err)
8588   ac_status=$?
8589   cat out/conftest.err >&5
8590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8592   then
8593     # The compiler can only warn and ignore the option if not recognized
8594     # So say no if there are warnings
8595     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8596     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8597     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8598       lt_cv_prog_compiler_c_o=yes
8599     fi
8600   fi
8601   chmod u+w . 2>&5
8602   $RM conftest*
8603   # SGI C++ compiler will create directory out/ii_files/ for
8604   # template instantiation
8605   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8606   $RM out/* && rmdir out
8607   cd ..
8608   $RM -r conftest
8609   $RM conftest*
8610
8611fi
8612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8613$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8614
8615
8616
8617
8618
8619
8620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8621$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8622if ${lt_cv_prog_compiler_c_o+:} false; then :
8623  $as_echo_n "(cached) " >&6
8624else
8625  lt_cv_prog_compiler_c_o=no
8626   $RM -r conftest 2>/dev/null
8627   mkdir conftest
8628   cd conftest
8629   mkdir out
8630   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8631
8632   lt_compiler_flag="-o out/conftest2.$ac_objext"
8633   # Insert the option either (1) after the last *FLAGS variable, or
8634   # (2) before a word containing "conftest.", or (3) at the end.
8635   # Note that $ac_compile itself does not contain backslashes and begins
8636   # with a dollar sign (not a hyphen), so the echo should work correctly.
8637   lt_compile=`echo "$ac_compile" | $SED \
8638   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8639   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8640   -e 's:$: $lt_compiler_flag:'`
8641   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8642   (eval "$lt_compile" 2>out/conftest.err)
8643   ac_status=$?
8644   cat out/conftest.err >&5
8645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8647   then
8648     # The compiler can only warn and ignore the option if not recognized
8649     # So say no if there are warnings
8650     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8651     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8652     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8653       lt_cv_prog_compiler_c_o=yes
8654     fi
8655   fi
8656   chmod u+w . 2>&5
8657   $RM conftest*
8658   # SGI C++ compiler will create directory out/ii_files/ for
8659   # template instantiation
8660   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8661   $RM out/* && rmdir out
8662   cd ..
8663   $RM -r conftest
8664   $RM conftest*
8665
8666fi
8667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8668$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8669
8670
8671
8672
8673hard_links="nottested"
8674if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8675  # do not overwrite the value of need_locks provided by the user
8676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8677$as_echo_n "checking if we can lock with hard links... " >&6; }
8678  hard_links=yes
8679  $RM conftest*
8680  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8681  touch conftest.a
8682  ln conftest.a conftest.b 2>&5 || hard_links=no
8683  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8685$as_echo "$hard_links" >&6; }
8686  if test "$hard_links" = no; then
8687    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8688$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8689    need_locks=warn
8690  fi
8691else
8692  need_locks=no
8693fi
8694
8695
8696
8697
8698
8699
8700  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8701$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8702
8703  runpath_var=
8704  allow_undefined_flag=
8705  always_export_symbols=no
8706  archive_cmds=
8707  archive_expsym_cmds=
8708  compiler_needs_object=no
8709  enable_shared_with_static_runtimes=no
8710  export_dynamic_flag_spec=
8711  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8712  hardcode_automatic=no
8713  hardcode_direct=no
8714  hardcode_direct_absolute=no
8715  hardcode_libdir_flag_spec=
8716  hardcode_libdir_separator=
8717  hardcode_minus_L=no
8718  hardcode_shlibpath_var=unsupported
8719  inherit_rpath=no
8720  link_all_deplibs=unknown
8721  module_cmds=
8722  module_expsym_cmds=
8723  old_archive_from_new_cmds=
8724  old_archive_from_expsyms_cmds=
8725  thread_safe_flag_spec=
8726  whole_archive_flag_spec=
8727  # include_expsyms should be a list of space-separated symbols to be *always*
8728  # included in the symbol list
8729  include_expsyms=
8730  # exclude_expsyms can be an extended regexp of symbols to exclude
8731  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8732  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8733  # as well as any symbol that contains `d'.
8734  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8735  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8736  # platforms (ab)use it in PIC code, but their linkers get confused if
8737  # the symbol is explicitly referenced.  Since portable code cannot
8738  # rely on this symbol name, it's probably fine to never include it in
8739  # preloaded symbol tables.
8740  # Exclude shared library initialization/finalization symbols.
8741  extract_expsyms_cmds=
8742
8743  case $host_os in
8744  cygwin* | mingw* | pw32* | cegcc*)
8745    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8746    # When not using gcc, we currently assume that we are using
8747    # Microsoft Visual C++.
8748    if test "$GCC" != yes; then
8749      with_gnu_ld=no
8750    fi
8751    ;;
8752  interix*)
8753    # we just hope/assume this is gcc and not c89 (= MSVC++)
8754    with_gnu_ld=yes
8755    ;;
8756  openbsd*)
8757    with_gnu_ld=no
8758    ;;
8759  linux* | k*bsd*-gnu | gnu*)
8760    link_all_deplibs=no
8761    ;;
8762  esac
8763
8764  ld_shlibs=yes
8765
8766  # On some targets, GNU ld is compatible enough with the native linker
8767  # that we're better off using the native interface for both.
8768  lt_use_gnu_ld_interface=no
8769  if test "$with_gnu_ld" = yes; then
8770    case $host_os in
8771      aix*)
8772	# The AIX port of GNU ld has always aspired to compatibility
8773	# with the native linker.  However, as the warning in the GNU ld
8774	# block says, versions before 2.19.5* couldn't really create working
8775	# shared libraries, regardless of the interface used.
8776	case `$LD -v 2>&1` in
8777	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8778	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8779	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8780	  *)
8781	    lt_use_gnu_ld_interface=yes
8782	    ;;
8783	esac
8784	;;
8785      *)
8786	lt_use_gnu_ld_interface=yes
8787	;;
8788    esac
8789  fi
8790
8791  if test "$lt_use_gnu_ld_interface" = yes; then
8792    # If archive_cmds runs LD, not CC, wlarc should be empty
8793    wlarc='${wl}'
8794
8795    # Set some defaults for GNU ld with shared library support. These
8796    # are reset later if shared libraries are not supported. Putting them
8797    # here allows them to be overridden if necessary.
8798    runpath_var=LD_RUN_PATH
8799    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8800    export_dynamic_flag_spec='${wl}--export-dynamic'
8801    # ancient GNU ld didn't support --whole-archive et. al.
8802    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8803      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8804    else
8805      whole_archive_flag_spec=
8806    fi
8807    supports_anon_versioning=no
8808    case `$LD -v 2>&1` in
8809      *GNU\ gold*) supports_anon_versioning=yes ;;
8810      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8811      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8812      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8813      *\ 2.11.*) ;; # other 2.11 versions
8814      *) supports_anon_versioning=yes ;;
8815    esac
8816
8817    # See if GNU ld supports shared libraries.
8818    case $host_os in
8819    aix[3-9]*)
8820      # On AIX/PPC, the GNU linker is very broken
8821      if test "$host_cpu" != ia64; then
8822	ld_shlibs=no
8823	cat <<_LT_EOF 1>&2
8824
8825*** Warning: the GNU linker, at least up to release 2.19, is reported
8826*** to be unable to reliably create shared libraries on AIX.
8827*** Therefore, libtool is disabling shared libraries support.  If you
8828*** really care for shared libraries, you may want to install binutils
8829*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8830*** You will then need to restart the configuration process.
8831
8832_LT_EOF
8833      fi
8834      ;;
8835
8836    amigaos*)
8837      case $host_cpu in
8838      powerpc)
8839            # see comment about AmigaOS4 .so support
8840            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8841            archive_expsym_cmds=''
8842        ;;
8843      m68k)
8844            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)'
8845            hardcode_libdir_flag_spec='-L$libdir'
8846            hardcode_minus_L=yes
8847        ;;
8848      esac
8849      ;;
8850
8851    beos*)
8852      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8853	allow_undefined_flag=unsupported
8854	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8855	# support --undefined.  This deserves some investigation.  FIXME
8856	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8857      else
8858	ld_shlibs=no
8859      fi
8860      ;;
8861
8862    cygwin* | mingw* | pw32* | cegcc*)
8863      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8864      # as there is no search path for DLLs.
8865      hardcode_libdir_flag_spec='-L$libdir'
8866      export_dynamic_flag_spec='${wl}--export-all-symbols'
8867      allow_undefined_flag=unsupported
8868      always_export_symbols=no
8869      enable_shared_with_static_runtimes=yes
8870      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'
8871      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8872
8873      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8874        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8875	# If the export-symbols file already is a .def file (1st line
8876	# is EXPORTS), use it as is; otherwise, prepend...
8877	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8878	  cp $export_symbols $output_objdir/$soname.def;
8879	else
8880	  echo EXPORTS > $output_objdir/$soname.def;
8881	  cat $export_symbols >> $output_objdir/$soname.def;
8882	fi~
8883	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8884      else
8885	ld_shlibs=no
8886      fi
8887      ;;
8888
8889    haiku*)
8890      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8891      link_all_deplibs=yes
8892      ;;
8893
8894    interix[3-9]*)
8895      hardcode_direct=no
8896      hardcode_shlibpath_var=no
8897      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8898      export_dynamic_flag_spec='${wl}-E'
8899      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8900      # Instead, shared libraries are loaded at an image base (0x10000000 by
8901      # default) and relocated if they conflict, which is a slow very memory
8902      # consuming and fragmenting process.  To avoid this, we pick a random,
8903      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8904      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8905      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8906      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'
8907      ;;
8908
8909    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8910      tmp_diet=no
8911      if test "$host_os" = linux-dietlibc; then
8912	case $cc_basename in
8913	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8914	esac
8915      fi
8916      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8917	 && test "$tmp_diet" = no
8918      then
8919	tmp_addflag=' $pic_flag'
8920	tmp_sharedflag='-shared'
8921	case $cc_basename,$host_cpu in
8922        pgcc*)				# Portland Group C compiler
8923	  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'
8924	  tmp_addflag=' $pic_flag'
8925	  ;;
8926	pgf77* | pgf90* | pgf95* | pgfortran*)
8927					# Portland Group f77 and f90 compilers
8928	  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'
8929	  tmp_addflag=' $pic_flag -Mnomain' ;;
8930	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8931	  tmp_addflag=' -i_dynamic' ;;
8932	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8933	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8934	ifc* | ifort*)			# Intel Fortran compiler
8935	  tmp_addflag=' -nofor_main' ;;
8936	lf95*)				# Lahey Fortran 8.1
8937	  whole_archive_flag_spec=
8938	  tmp_sharedflag='--shared' ;;
8939	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8940	  tmp_sharedflag='-qmkshrobj'
8941	  tmp_addflag= ;;
8942	nvcc*)	# Cuda Compiler Driver 2.2
8943	  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'
8944	  compiler_needs_object=yes
8945	  ;;
8946	esac
8947	case `$CC -V 2>&1 | sed 5q` in
8948	*Sun\ C*)			# Sun C 5.9
8949	  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'
8950	  compiler_needs_object=yes
8951	  tmp_sharedflag='-G' ;;
8952	*Sun\ F*)			# Sun Fortran 8.3
8953	  tmp_sharedflag='-G' ;;
8954	esac
8955	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8956
8957        if test "x$supports_anon_versioning" = xyes; then
8958          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8959	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8960	    echo "local: *; };" >> $output_objdir/$libname.ver~
8961	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8962        fi
8963
8964	case $cc_basename in
8965	xlf* | bgf* | bgxlf* | mpixlf*)
8966	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8967	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8968	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8969	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8970	  if test "x$supports_anon_versioning" = xyes; then
8971	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8972	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8973	      echo "local: *; };" >> $output_objdir/$libname.ver~
8974	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8975	  fi
8976	  ;;
8977	esac
8978      else
8979        ld_shlibs=no
8980      fi
8981      ;;
8982
8983    netbsd* | netbsdelf*-gnu)
8984      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8985	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8986	wlarc=
8987      else
8988	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8990      fi
8991      ;;
8992
8993    solaris*)
8994      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8995	ld_shlibs=no
8996	cat <<_LT_EOF 1>&2
8997
8998*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8999*** create shared libraries on Solaris systems.  Therefore, libtool
9000*** is disabling shared libraries support.  We urge you to upgrade GNU
9001*** binutils to release 2.9.1 or newer.  Another option is to modify
9002*** your PATH or compiler configuration so that the native linker is
9003*** used, and then restart.
9004
9005_LT_EOF
9006      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9007	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9008	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9009      else
9010	ld_shlibs=no
9011      fi
9012      ;;
9013
9014    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9015      case `$LD -v 2>&1` in
9016        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9017	ld_shlibs=no
9018	cat <<_LT_EOF 1>&2
9019
9020*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9021*** reliably create shared libraries on SCO systems.  Therefore, libtool
9022*** is disabling shared libraries support.  We urge you to upgrade GNU
9023*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9024*** your PATH or compiler configuration so that the native linker is
9025*** used, and then restart.
9026
9027_LT_EOF
9028	;;
9029	*)
9030	  # For security reasons, it is highly recommended that you always
9031	  # use absolute paths for naming shared libraries, and exclude the
9032	  # DT_RUNPATH tag from executables and libraries.  But doing so
9033	  # requires that you compile everything twice, which is a pain.
9034	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9035	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9036	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9037	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9038	  else
9039	    ld_shlibs=no
9040	  fi
9041	;;
9042      esac
9043      ;;
9044
9045    sunos4*)
9046      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9047      wlarc=
9048      hardcode_direct=yes
9049      hardcode_shlibpath_var=no
9050      ;;
9051
9052    *)
9053      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9054	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9055	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9056      else
9057	ld_shlibs=no
9058      fi
9059      ;;
9060    esac
9061
9062    if test "$ld_shlibs" = no; then
9063      runpath_var=
9064      hardcode_libdir_flag_spec=
9065      export_dynamic_flag_spec=
9066      whole_archive_flag_spec=
9067    fi
9068  else
9069    # PORTME fill in a description of your system's linker (not GNU ld)
9070    case $host_os in
9071    aix3*)
9072      allow_undefined_flag=unsupported
9073      always_export_symbols=yes
9074      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'
9075      # Note: this linker hardcodes the directories in LIBPATH if there
9076      # are no directories specified by -L.
9077      hardcode_minus_L=yes
9078      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9079	# Neither direct hardcoding nor static linking is supported with a
9080	# broken collect2.
9081	hardcode_direct=unsupported
9082      fi
9083      ;;
9084
9085    aix[4-9]*)
9086      if test "$host_cpu" = ia64; then
9087	# On IA64, the linker does run time linking by default, so we don't
9088	# have to do anything special.
9089	aix_use_runtimelinking=no
9090	exp_sym_flag='-Bexport'
9091	no_entry_flag=""
9092      else
9093	# If we're using GNU nm, then we don't want the "-C" option.
9094	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9095	# Also, AIX nm treats weak defined symbols like other global
9096	# defined symbols, whereas GNU nm marks them as "W".
9097	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9098	  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'
9099	else
9100	  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'
9101	fi
9102	aix_use_runtimelinking=no
9103
9104	# Test if we are trying to use run time linking or normal
9105	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9106	# need to do runtime linking.
9107	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9108	  for ld_flag in $LDFLAGS; do
9109	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9110	    aix_use_runtimelinking=yes
9111	    break
9112	  fi
9113	  done
9114	  ;;
9115	esac
9116
9117	exp_sym_flag='-bexport'
9118	no_entry_flag='-bnoentry'
9119      fi
9120
9121      # When large executables or shared objects are built, AIX ld can
9122      # have problems creating the table of contents.  If linking a library
9123      # or program results in "error TOC overflow" add -mminimal-toc to
9124      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9125      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9126
9127      archive_cmds=''
9128      hardcode_direct=yes
9129      hardcode_direct_absolute=yes
9130      hardcode_libdir_separator=':'
9131      link_all_deplibs=yes
9132      file_list_spec='${wl}-f,'
9133
9134      if test "$GCC" = yes; then
9135	case $host_os in aix4.[012]|aix4.[012].*)
9136	# We only want to do this on AIX 4.2 and lower, the check
9137	# below for broken collect2 doesn't work under 4.3+
9138	  collect2name=`${CC} -print-prog-name=collect2`
9139	  if test -f "$collect2name" &&
9140	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9141	  then
9142	  # We have reworked collect2
9143	  :
9144	  else
9145	  # We have old collect2
9146	  hardcode_direct=unsupported
9147	  # It fails to find uninstalled libraries when the uninstalled
9148	  # path is not listed in the libpath.  Setting hardcode_minus_L
9149	  # to unsupported forces relinking
9150	  hardcode_minus_L=yes
9151	  hardcode_libdir_flag_spec='-L$libdir'
9152	  hardcode_libdir_separator=
9153	  fi
9154	  ;;
9155	esac
9156	shared_flag='-shared'
9157	if test "$aix_use_runtimelinking" = yes; then
9158	  shared_flag="$shared_flag "'${wl}-G'
9159	fi
9160	link_all_deplibs=no
9161      else
9162	# not using gcc
9163	if test "$host_cpu" = ia64; then
9164	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9165	# chokes on -Wl,-G. The following line is correct:
9166	  shared_flag='-G'
9167	else
9168	  if test "$aix_use_runtimelinking" = yes; then
9169	    shared_flag='${wl}-G'
9170	  else
9171	    shared_flag='${wl}-bM:SRE'
9172	  fi
9173	fi
9174      fi
9175
9176      export_dynamic_flag_spec='${wl}-bexpall'
9177      # It seems that -bexpall does not export symbols beginning with
9178      # underscore (_), so it is better to generate a list of symbols to export.
9179      always_export_symbols=yes
9180      if test "$aix_use_runtimelinking" = yes; then
9181	# Warning - without using the other runtime loading flags (-brtl),
9182	# -berok will link without error, but may produce a broken library.
9183	allow_undefined_flag='-berok'
9184        # Determine the default libpath from the value encoded in an
9185        # empty executable.
9186        if test "${lt_cv_aix_libpath+set}" = set; then
9187  aix_libpath=$lt_cv_aix_libpath
9188else
9189  if ${lt_cv_aix_libpath_+:} false; then :
9190  $as_echo_n "(cached) " >&6
9191else
9192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9193/* end confdefs.h.  */
9194
9195int
9196main ()
9197{
9198
9199  ;
9200  return 0;
9201}
9202_ACEOF
9203if ac_fn_c_try_link "$LINENO"; then :
9204
9205  lt_aix_libpath_sed='
9206      /Import File Strings/,/^$/ {
9207	  /^0/ {
9208	      s/^0  *\([^ ]*\) *$/\1/
9209	      p
9210	  }
9211      }'
9212  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9213  # Check for a 64-bit object if we didn't find anything.
9214  if test -z "$lt_cv_aix_libpath_"; then
9215    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9216  fi
9217fi
9218rm -f core conftest.err conftest.$ac_objext \
9219    conftest$ac_exeext conftest.$ac_ext
9220  if test -z "$lt_cv_aix_libpath_"; then
9221    lt_cv_aix_libpath_="/usr/lib:/lib"
9222  fi
9223
9224fi
9225
9226  aix_libpath=$lt_cv_aix_libpath_
9227fi
9228
9229        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9230        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"
9231      else
9232	if test "$host_cpu" = ia64; then
9233	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9234	  allow_undefined_flag="-z nodefs"
9235	  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"
9236	else
9237	 # Determine the default libpath from the value encoded in an
9238	 # empty executable.
9239	 if test "${lt_cv_aix_libpath+set}" = set; then
9240  aix_libpath=$lt_cv_aix_libpath
9241else
9242  if ${lt_cv_aix_libpath_+:} false; then :
9243  $as_echo_n "(cached) " >&6
9244else
9245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246/* end confdefs.h.  */
9247
9248int
9249main ()
9250{
9251
9252  ;
9253  return 0;
9254}
9255_ACEOF
9256if ac_fn_c_try_link "$LINENO"; then :
9257
9258  lt_aix_libpath_sed='
9259      /Import File Strings/,/^$/ {
9260	  /^0/ {
9261	      s/^0  *\([^ ]*\) *$/\1/
9262	      p
9263	  }
9264      }'
9265  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9266  # Check for a 64-bit object if we didn't find anything.
9267  if test -z "$lt_cv_aix_libpath_"; then
9268    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9269  fi
9270fi
9271rm -f core conftest.err conftest.$ac_objext \
9272    conftest$ac_exeext conftest.$ac_ext
9273  if test -z "$lt_cv_aix_libpath_"; then
9274    lt_cv_aix_libpath_="/usr/lib:/lib"
9275  fi
9276
9277fi
9278
9279  aix_libpath=$lt_cv_aix_libpath_
9280fi
9281
9282	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9283	  # Warning - without using the other run time loading flags,
9284	  # -berok will link without error, but may produce a broken library.
9285	  no_undefined_flag=' ${wl}-bernotok'
9286	  allow_undefined_flag=' ${wl}-berok'
9287	  if test "$with_gnu_ld" = yes; then
9288	    # We only use this code for GNU lds that support --whole-archive.
9289	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9290	  else
9291	    # Exported symbols can be pulled into shared objects from archives
9292	    whole_archive_flag_spec='$convenience'
9293	  fi
9294	  archive_cmds_need_lc=yes
9295	  # This is similar to how AIX traditionally builds its shared libraries.
9296	  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'
9297	fi
9298      fi
9299      ;;
9300
9301    amigaos*)
9302      case $host_cpu in
9303      powerpc)
9304            # see comment about AmigaOS4 .so support
9305            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9306            archive_expsym_cmds=''
9307        ;;
9308      m68k)
9309            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)'
9310            hardcode_libdir_flag_spec='-L$libdir'
9311            hardcode_minus_L=yes
9312        ;;
9313      esac
9314      ;;
9315
9316    bsdi[45]*)
9317      export_dynamic_flag_spec=-rdynamic
9318      ;;
9319
9320    cygwin* | mingw* | pw32* | cegcc*)
9321      # When not using gcc, we currently assume that we are using
9322      # Microsoft Visual C++.
9323      # hardcode_libdir_flag_spec is actually meaningless, as there is
9324      # no search path for DLLs.
9325      case $cc_basename in
9326      cl*)
9327	# Native MSVC
9328	hardcode_libdir_flag_spec=' '
9329	allow_undefined_flag=unsupported
9330	always_export_symbols=yes
9331	file_list_spec='@'
9332	# Tell ltmain to make .lib files, not .a files.
9333	libext=lib
9334	# Tell ltmain to make .dll files, not .so files.
9335	shrext_cmds=".dll"
9336	# FIXME: Setting linknames here is a bad hack.
9337	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9338	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9339	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9340	  else
9341	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9342	  fi~
9343	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9344	  linknames='
9345	# The linker will not automatically build a static lib if we build a DLL.
9346	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9347	enable_shared_with_static_runtimes=yes
9348	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9349	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9350	# Don't use ranlib
9351	old_postinstall_cmds='chmod 644 $oldlib'
9352	postlink_cmds='lt_outputfile="@OUTPUT@"~
9353	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9354	  case $lt_outputfile in
9355	    *.exe|*.EXE) ;;
9356	    *)
9357	      lt_outputfile="$lt_outputfile.exe"
9358	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9359	      ;;
9360	  esac~
9361	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9362	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9363	    $RM "$lt_outputfile.manifest";
9364	  fi'
9365	;;
9366      *)
9367	# Assume MSVC wrapper
9368	hardcode_libdir_flag_spec=' '
9369	allow_undefined_flag=unsupported
9370	# Tell ltmain to make .lib files, not .a files.
9371	libext=lib
9372	# Tell ltmain to make .dll files, not .so files.
9373	shrext_cmds=".dll"
9374	# FIXME: Setting linknames here is a bad hack.
9375	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9376	# The linker will automatically build a .lib file if we build a DLL.
9377	old_archive_from_new_cmds='true'
9378	# FIXME: Should let the user specify the lib program.
9379	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9380	enable_shared_with_static_runtimes=yes
9381	;;
9382      esac
9383      ;;
9384
9385    darwin* | rhapsody*)
9386
9387
9388  archive_cmds_need_lc=no
9389  hardcode_direct=no
9390  hardcode_automatic=yes
9391  hardcode_shlibpath_var=unsupported
9392  if test "$lt_cv_ld_force_load" = "yes"; then
9393    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\"`'
9394
9395  else
9396    whole_archive_flag_spec=''
9397  fi
9398  link_all_deplibs=yes
9399  allow_undefined_flag="$_lt_dar_allow_undefined"
9400  case $cc_basename in
9401     ifort*) _lt_dar_can_shared=yes ;;
9402     *) _lt_dar_can_shared=$GCC ;;
9403  esac
9404  if test "$_lt_dar_can_shared" = "yes"; then
9405    output_verbose_link_cmd=func_echo_all
9406    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9407    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9408    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}"
9409    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}"
9410
9411  else
9412  ld_shlibs=no
9413  fi
9414
9415      ;;
9416
9417    dgux*)
9418      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9419      hardcode_libdir_flag_spec='-L$libdir'
9420      hardcode_shlibpath_var=no
9421      ;;
9422
9423    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9424    # support.  Future versions do this automatically, but an explicit c++rt0.o
9425    # does not break anything, and helps significantly (at the cost of a little
9426    # extra space).
9427    freebsd2.2*)
9428      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9429      hardcode_libdir_flag_spec='-R$libdir'
9430      hardcode_direct=yes
9431      hardcode_shlibpath_var=no
9432      ;;
9433
9434    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9435    freebsd2.*)
9436      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9437      hardcode_direct=yes
9438      hardcode_minus_L=yes
9439      hardcode_shlibpath_var=no
9440      ;;
9441
9442    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9443    freebsd* | dragonfly*)
9444      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9445      hardcode_libdir_flag_spec='-R$libdir'
9446      hardcode_direct=yes
9447      hardcode_shlibpath_var=no
9448      ;;
9449
9450    hpux9*)
9451      if test "$GCC" = yes; then
9452	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'
9453      else
9454	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'
9455      fi
9456      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9457      hardcode_libdir_separator=:
9458      hardcode_direct=yes
9459
9460      # hardcode_minus_L: Not really in the search PATH,
9461      # but as the default location of the library.
9462      hardcode_minus_L=yes
9463      export_dynamic_flag_spec='${wl}-E'
9464      ;;
9465
9466    hpux10*)
9467      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9468	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9469      else
9470	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9471      fi
9472      if test "$with_gnu_ld" = no; then
9473	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9474	hardcode_libdir_separator=:
9475	hardcode_direct=yes
9476	hardcode_direct_absolute=yes
9477	export_dynamic_flag_spec='${wl}-E'
9478	# hardcode_minus_L: Not really in the search PATH,
9479	# but as the default location of the library.
9480	hardcode_minus_L=yes
9481      fi
9482      ;;
9483
9484    hpux11*)
9485      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9486	case $host_cpu in
9487	hppa*64*)
9488	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9489	  ;;
9490	ia64*)
9491	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9492	  ;;
9493	*)
9494	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9495	  ;;
9496	esac
9497      else
9498	case $host_cpu in
9499	hppa*64*)
9500	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9501	  ;;
9502	ia64*)
9503	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9504	  ;;
9505	*)
9506
9507	  # Older versions of the 11.00 compiler do not understand -b yet
9508	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9509	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9510$as_echo_n "checking if $CC understands -b... " >&6; }
9511if ${lt_cv_prog_compiler__b+:} false; then :
9512  $as_echo_n "(cached) " >&6
9513else
9514  lt_cv_prog_compiler__b=no
9515   save_LDFLAGS="$LDFLAGS"
9516   LDFLAGS="$LDFLAGS -b"
9517   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9518   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9519     # The linker can only warn and ignore the option if not recognized
9520     # So say no if there are warnings
9521     if test -s conftest.err; then
9522       # Append any errors to the config.log.
9523       cat conftest.err 1>&5
9524       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9525       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9526       if diff conftest.exp conftest.er2 >/dev/null; then
9527         lt_cv_prog_compiler__b=yes
9528       fi
9529     else
9530       lt_cv_prog_compiler__b=yes
9531     fi
9532   fi
9533   $RM -r conftest*
9534   LDFLAGS="$save_LDFLAGS"
9535
9536fi
9537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9538$as_echo "$lt_cv_prog_compiler__b" >&6; }
9539
9540if test x"$lt_cv_prog_compiler__b" = xyes; then
9541    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9542else
9543    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9544fi
9545
9546	  ;;
9547	esac
9548      fi
9549      if test "$with_gnu_ld" = no; then
9550	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9551	hardcode_libdir_separator=:
9552
9553	case $host_cpu in
9554	hppa*64*|ia64*)
9555	  hardcode_direct=no
9556	  hardcode_shlibpath_var=no
9557	  ;;
9558	*)
9559	  hardcode_direct=yes
9560	  hardcode_direct_absolute=yes
9561	  export_dynamic_flag_spec='${wl}-E'
9562
9563	  # hardcode_minus_L: Not really in the search PATH,
9564	  # but as the default location of the library.
9565	  hardcode_minus_L=yes
9566	  ;;
9567	esac
9568      fi
9569      ;;
9570
9571    irix5* | irix6* | nonstopux*)
9572      if test "$GCC" = yes; then
9573	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'
9574	# Try to use the -exported_symbol ld option, if it does not
9575	# work, assume that -exports_file does not work either and
9576	# implicitly export all symbols.
9577	# This should be the same for all languages, so no per-tag cache variable.
9578	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9579$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9580if ${lt_cv_irix_exported_symbol+:} false; then :
9581  $as_echo_n "(cached) " >&6
9582else
9583  save_LDFLAGS="$LDFLAGS"
9584	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9585	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586/* end confdefs.h.  */
9587int foo (void) { return 0; }
9588_ACEOF
9589if ac_fn_c_try_link "$LINENO"; then :
9590  lt_cv_irix_exported_symbol=yes
9591else
9592  lt_cv_irix_exported_symbol=no
9593fi
9594rm -f core conftest.err conftest.$ac_objext \
9595    conftest$ac_exeext conftest.$ac_ext
9596           LDFLAGS="$save_LDFLAGS"
9597fi
9598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9599$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9600	if test "$lt_cv_irix_exported_symbol" = yes; then
9601          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'
9602	fi
9603      else
9604	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'
9605	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'
9606      fi
9607      archive_cmds_need_lc='no'
9608      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9609      hardcode_libdir_separator=:
9610      inherit_rpath=yes
9611      link_all_deplibs=yes
9612      ;;
9613
9614    netbsd* | netbsdelf*-gnu)
9615      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9616	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9617      else
9618	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9619      fi
9620      hardcode_libdir_flag_spec='-R$libdir'
9621      hardcode_direct=yes
9622      hardcode_shlibpath_var=no
9623      ;;
9624
9625    newsos6)
9626      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9627      hardcode_direct=yes
9628      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9629      hardcode_libdir_separator=:
9630      hardcode_shlibpath_var=no
9631      ;;
9632
9633    *nto* | *qnx*)
9634      ;;
9635
9636    openbsd*)
9637      if test -f /usr/libexec/ld.so; then
9638	hardcode_direct=yes
9639	hardcode_shlibpath_var=no
9640	hardcode_direct_absolute=yes
9641	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9642	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9643	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9644	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9645	  export_dynamic_flag_spec='${wl}-E'
9646	else
9647	  case $host_os in
9648	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9649	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9650	     hardcode_libdir_flag_spec='-R$libdir'
9651	     ;;
9652	   *)
9653	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9654	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9655	     ;;
9656	  esac
9657	fi
9658      else
9659	ld_shlibs=no
9660      fi
9661      ;;
9662
9663    os2*)
9664      hardcode_libdir_flag_spec='-L$libdir'
9665      hardcode_minus_L=yes
9666      allow_undefined_flag=unsupported
9667      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'
9668      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9669      ;;
9670
9671    osf3*)
9672      if test "$GCC" = yes; then
9673	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9674	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'
9675      else
9676	allow_undefined_flag=' -expect_unresolved \*'
9677	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'
9678      fi
9679      archive_cmds_need_lc='no'
9680      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9681      hardcode_libdir_separator=:
9682      ;;
9683
9684    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9685      if test "$GCC" = yes; then
9686	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9687	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'
9688	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9689      else
9690	allow_undefined_flag=' -expect_unresolved \*'
9691	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'
9692	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~
9693	$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'
9694
9695	# Both c and cxx compiler support -rpath directly
9696	hardcode_libdir_flag_spec='-rpath $libdir'
9697      fi
9698      archive_cmds_need_lc='no'
9699      hardcode_libdir_separator=:
9700      ;;
9701
9702    solaris*)
9703      no_undefined_flag=' -z defs'
9704      if test "$GCC" = yes; then
9705	wlarc='${wl}'
9706	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9707	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9708	  $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'
9709      else
9710	case `$CC -V 2>&1` in
9711	*"Compilers 5.0"*)
9712	  wlarc=''
9713	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9714	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9715	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9716	  ;;
9717	*)
9718	  wlarc='${wl}'
9719	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9720	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9721	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9722	  ;;
9723	esac
9724      fi
9725      hardcode_libdir_flag_spec='-R$libdir'
9726      hardcode_shlibpath_var=no
9727      case $host_os in
9728      solaris2.[0-5] | solaris2.[0-5].*) ;;
9729      *)
9730	# The compiler driver will combine and reorder linker options,
9731	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9732	# but is careful enough not to reorder.
9733	# Supported since Solaris 2.6 (maybe 2.5.1?)
9734	if test "$GCC" = yes; then
9735	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9736	else
9737	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9738	fi
9739	;;
9740      esac
9741      link_all_deplibs=yes
9742      ;;
9743
9744    sunos4*)
9745      if test "x$host_vendor" = xsequent; then
9746	# Use $CC to link under sequent, because it throws in some extra .o
9747	# files that make .init and .fini sections work.
9748	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9749      else
9750	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9751      fi
9752      hardcode_libdir_flag_spec='-L$libdir'
9753      hardcode_direct=yes
9754      hardcode_minus_L=yes
9755      hardcode_shlibpath_var=no
9756      ;;
9757
9758    sysv4)
9759      case $host_vendor in
9760	sni)
9761	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9762	  hardcode_direct=yes # is this really true???
9763	;;
9764	siemens)
9765	  ## LD is ld it makes a PLAMLIB
9766	  ## CC just makes a GrossModule.
9767	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9768	  reload_cmds='$CC -r -o $output$reload_objs'
9769	  hardcode_direct=no
9770        ;;
9771	motorola)
9772	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9773	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9774	;;
9775      esac
9776      runpath_var='LD_RUN_PATH'
9777      hardcode_shlibpath_var=no
9778      ;;
9779
9780    sysv4.3*)
9781      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9782      hardcode_shlibpath_var=no
9783      export_dynamic_flag_spec='-Bexport'
9784      ;;
9785
9786    sysv4*MP*)
9787      if test -d /usr/nec; then
9788	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9789	hardcode_shlibpath_var=no
9790	runpath_var=LD_RUN_PATH
9791	hardcode_runpath_var=yes
9792	ld_shlibs=yes
9793      fi
9794      ;;
9795
9796    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9797      no_undefined_flag='${wl}-z,text'
9798      archive_cmds_need_lc=no
9799      hardcode_shlibpath_var=no
9800      runpath_var='LD_RUN_PATH'
9801
9802      if test "$GCC" = yes; then
9803	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9804	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9805      else
9806	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9807	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9808      fi
9809      ;;
9810
9811    sysv5* | sco3.2v5* | sco5v6*)
9812      # Note: We can NOT use -z defs as we might desire, because we do not
9813      # link with -lc, and that would cause any symbols used from libc to
9814      # always be unresolved, which means just about no library would
9815      # ever link correctly.  If we're not using GNU ld we use -z text
9816      # though, which does catch some bad symbols but isn't as heavy-handed
9817      # as -z defs.
9818      no_undefined_flag='${wl}-z,text'
9819      allow_undefined_flag='${wl}-z,nodefs'
9820      archive_cmds_need_lc=no
9821      hardcode_shlibpath_var=no
9822      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9823      hardcode_libdir_separator=':'
9824      link_all_deplibs=yes
9825      export_dynamic_flag_spec='${wl}-Bexport'
9826      runpath_var='LD_RUN_PATH'
9827
9828      if test "$GCC" = yes; then
9829	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9830	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9831      else
9832	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9833	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9834      fi
9835      ;;
9836
9837    uts4*)
9838      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9839      hardcode_libdir_flag_spec='-L$libdir'
9840      hardcode_shlibpath_var=no
9841      ;;
9842
9843    *)
9844      ld_shlibs=no
9845      ;;
9846    esac
9847
9848    if test x$host_vendor = xsni; then
9849      case $host in
9850      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9851	export_dynamic_flag_spec='${wl}-Blargedynsym'
9852	;;
9853      esac
9854    fi
9855  fi
9856
9857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9858$as_echo "$ld_shlibs" >&6; }
9859test "$ld_shlibs" = no && can_build_shared=no
9860
9861with_gnu_ld=$with_gnu_ld
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877#
9878# Do we need to explicitly link libc?
9879#
9880case "x$archive_cmds_need_lc" in
9881x|xyes)
9882  # Assume -lc should be added
9883  archive_cmds_need_lc=yes
9884
9885  if test "$enable_shared" = yes && test "$GCC" = yes; then
9886    case $archive_cmds in
9887    *'~'*)
9888      # FIXME: we may have to deal with multi-command sequences.
9889      ;;
9890    '$CC '*)
9891      # Test whether the compiler implicitly links with -lc since on some
9892      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9893      # to ld, don't add -lc before -lgcc.
9894      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9895$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9896if ${lt_cv_archive_cmds_need_lc+:} false; then :
9897  $as_echo_n "(cached) " >&6
9898else
9899  $RM conftest*
9900	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9901
9902	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9903  (eval $ac_compile) 2>&5
9904  ac_status=$?
9905  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9906  test $ac_status = 0; } 2>conftest.err; then
9907	  soname=conftest
9908	  lib=conftest
9909	  libobjs=conftest.$ac_objext
9910	  deplibs=
9911	  wl=$lt_prog_compiler_wl
9912	  pic_flag=$lt_prog_compiler_pic
9913	  compiler_flags=-v
9914	  linker_flags=-v
9915	  verstring=
9916	  output_objdir=.
9917	  libname=conftest
9918	  lt_save_allow_undefined_flag=$allow_undefined_flag
9919	  allow_undefined_flag=
9920	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9921  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9922  ac_status=$?
9923  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9924  test $ac_status = 0; }
9925	  then
9926	    lt_cv_archive_cmds_need_lc=no
9927	  else
9928	    lt_cv_archive_cmds_need_lc=yes
9929	  fi
9930	  allow_undefined_flag=$lt_save_allow_undefined_flag
9931	else
9932	  cat conftest.err 1>&5
9933	fi
9934	$RM conftest*
9935
9936fi
9937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9938$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9939      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9940      ;;
9941    esac
9942  fi
9943  ;;
9944esac
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10098$as_echo_n "checking dynamic linker characteristics... " >&6; }
10099
10100if test "$GCC" = yes; then
10101  case $host_os in
10102    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10103    *) lt_awk_arg="/^libraries:/" ;;
10104  esac
10105  case $host_os in
10106    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10107    *) lt_sed_strip_eq="s,=/,/,g" ;;
10108  esac
10109  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10110  case $lt_search_path_spec in
10111  *\;*)
10112    # if the path contains ";" then we assume it to be the separator
10113    # otherwise default to the standard path separator (i.e. ":") - it is
10114    # assumed that no part of a normal pathname contains ";" but that should
10115    # okay in the real world where ";" in dirpaths is itself problematic.
10116    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10117    ;;
10118  *)
10119    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10120    ;;
10121  esac
10122  # Ok, now we have the path, separated by spaces, we can step through it
10123  # and add multilib dir if necessary.
10124  lt_tmp_lt_search_path_spec=
10125  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10126  for lt_sys_path in $lt_search_path_spec; do
10127    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10128      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10129    else
10130      test -d "$lt_sys_path" && \
10131	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10132    fi
10133  done
10134  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10135BEGIN {RS=" "; FS="/|\n";} {
10136  lt_foo="";
10137  lt_count=0;
10138  for (lt_i = NF; lt_i > 0; lt_i--) {
10139    if ($lt_i != "" && $lt_i != ".") {
10140      if ($lt_i == "..") {
10141        lt_count++;
10142      } else {
10143        if (lt_count == 0) {
10144          lt_foo="/" $lt_i lt_foo;
10145        } else {
10146          lt_count--;
10147        }
10148      }
10149    }
10150  }
10151  if (lt_foo != "") { lt_freq[lt_foo]++; }
10152  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10153}'`
10154  # AWK program above erroneously prepends '/' to C:/dos/paths
10155  # for these hosts.
10156  case $host_os in
10157    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10158      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10159  esac
10160  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10161else
10162  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10163fi
10164library_names_spec=
10165libname_spec='lib$name'
10166soname_spec=
10167shrext_cmds=".so"
10168postinstall_cmds=
10169postuninstall_cmds=
10170finish_cmds=
10171finish_eval=
10172shlibpath_var=
10173shlibpath_overrides_runpath=unknown
10174version_type=none
10175dynamic_linker="$host_os ld.so"
10176sys_lib_dlsearch_path_spec="/lib /usr/lib"
10177need_lib_prefix=unknown
10178hardcode_into_libs=no
10179
10180# when you set need_version to no, make sure it does not cause -set_version
10181# flags to be left without arguments
10182need_version=unknown
10183
10184case $host_os in
10185aix3*)
10186  version_type=linux # correct to gnu/linux during the next big refactor
10187  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10188  shlibpath_var=LIBPATH
10189
10190  # AIX 3 has no versioning support, so we append a major version to the name.
10191  soname_spec='${libname}${release}${shared_ext}$major'
10192  ;;
10193
10194aix[4-9]*)
10195  version_type=linux # correct to gnu/linux during the next big refactor
10196  need_lib_prefix=no
10197  need_version=no
10198  hardcode_into_libs=yes
10199  if test "$host_cpu" = ia64; then
10200    # AIX 5 supports IA64
10201    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10202    shlibpath_var=LD_LIBRARY_PATH
10203  else
10204    # With GCC up to 2.95.x, collect2 would create an import file
10205    # for dependence libraries.  The import file would start with
10206    # the line `#! .'.  This would cause the generated library to
10207    # depend on `.', always an invalid library.  This was fixed in
10208    # development snapshots of GCC prior to 3.0.
10209    case $host_os in
10210      aix4 | aix4.[01] | aix4.[01].*)
10211      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10212	   echo ' yes '
10213	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10214	:
10215      else
10216	can_build_shared=no
10217      fi
10218      ;;
10219    esac
10220    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10221    # soname into executable. Probably we can add versioning support to
10222    # collect2, so additional links can be useful in future.
10223    if test "$aix_use_runtimelinking" = yes; then
10224      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10225      # instead of lib<name>.a to let people know that these are not
10226      # typical AIX shared libraries.
10227      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228    else
10229      # We preserve .a as extension for shared libraries through AIX4.2
10230      # and later when we are not doing run time linking.
10231      library_names_spec='${libname}${release}.a $libname.a'
10232      soname_spec='${libname}${release}${shared_ext}$major'
10233    fi
10234    shlibpath_var=LIBPATH
10235  fi
10236  ;;
10237
10238amigaos*)
10239  case $host_cpu in
10240  powerpc)
10241    # Since July 2007 AmigaOS4 officially supports .so libraries.
10242    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10243    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244    ;;
10245  m68k)
10246    library_names_spec='$libname.ixlibrary $libname.a'
10247    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10248    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'
10249    ;;
10250  esac
10251  ;;
10252
10253beos*)
10254  library_names_spec='${libname}${shared_ext}'
10255  dynamic_linker="$host_os ld.so"
10256  shlibpath_var=LIBRARY_PATH
10257  ;;
10258
10259bsdi[45]*)
10260  version_type=linux # correct to gnu/linux during the next big refactor
10261  need_version=no
10262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10263  soname_spec='${libname}${release}${shared_ext}$major'
10264  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10265  shlibpath_var=LD_LIBRARY_PATH
10266  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10267  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10268  # the default ld.so.conf also contains /usr/contrib/lib and
10269  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10270  # libtool to hard-code these into programs
10271  ;;
10272
10273cygwin* | mingw* | pw32* | cegcc*)
10274  version_type=windows
10275  shrext_cmds=".dll"
10276  need_version=no
10277  need_lib_prefix=no
10278
10279  case $GCC,$cc_basename in
10280  yes,*)
10281    # gcc
10282    library_names_spec='$libname.dll.a'
10283    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10284    postinstall_cmds='base_file=`basename \${file}`~
10285      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10286      dldir=$destdir/`dirname \$dlpath`~
10287      test -d \$dldir || mkdir -p \$dldir~
10288      $install_prog $dir/$dlname \$dldir/$dlname~
10289      chmod a+x \$dldir/$dlname~
10290      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10291        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10292      fi'
10293    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10294      dlpath=$dir/\$dldll~
10295       $RM \$dlpath'
10296    shlibpath_overrides_runpath=yes
10297
10298    case $host_os in
10299    cygwin*)
10300      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10301      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10302
10303      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10304      ;;
10305    mingw* | cegcc*)
10306      # MinGW DLLs use traditional 'lib' prefix
10307      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10308      ;;
10309    pw32*)
10310      # pw32 DLLs use 'pw' prefix rather than 'lib'
10311      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10312      ;;
10313    esac
10314    dynamic_linker='Win32 ld.exe'
10315    ;;
10316
10317  *,cl*)
10318    # Native MSVC
10319    libname_spec='$name'
10320    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10321    library_names_spec='${libname}.dll.lib'
10322
10323    case $build_os in
10324    mingw*)
10325      sys_lib_search_path_spec=
10326      lt_save_ifs=$IFS
10327      IFS=';'
10328      for lt_path in $LIB
10329      do
10330        IFS=$lt_save_ifs
10331        # Let DOS variable expansion print the short 8.3 style file name.
10332        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10333        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10334      done
10335      IFS=$lt_save_ifs
10336      # Convert to MSYS style.
10337      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10338      ;;
10339    cygwin*)
10340      # Convert to unix form, then to dos form, then back to unix form
10341      # but this time dos style (no spaces!) so that the unix form looks
10342      # like /cygdrive/c/PROGRA~1:/cygdr...
10343      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10344      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10345      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10346      ;;
10347    *)
10348      sys_lib_search_path_spec="$LIB"
10349      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10350        # It is most probably a Windows format PATH.
10351        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10352      else
10353        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10354      fi
10355      # FIXME: find the short name or the path components, as spaces are
10356      # common. (e.g. "Program Files" -> "PROGRA~1")
10357      ;;
10358    esac
10359
10360    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10361    postinstall_cmds='base_file=`basename \${file}`~
10362      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10363      dldir=$destdir/`dirname \$dlpath`~
10364      test -d \$dldir || mkdir -p \$dldir~
10365      $install_prog $dir/$dlname \$dldir/$dlname'
10366    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10367      dlpath=$dir/\$dldll~
10368       $RM \$dlpath'
10369    shlibpath_overrides_runpath=yes
10370    dynamic_linker='Win32 link.exe'
10371    ;;
10372
10373  *)
10374    # Assume MSVC wrapper
10375    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10376    dynamic_linker='Win32 ld.exe'
10377    ;;
10378  esac
10379  # FIXME: first we should search . and the directory the executable is in
10380  shlibpath_var=PATH
10381  ;;
10382
10383darwin* | rhapsody*)
10384  dynamic_linker="$host_os dyld"
10385  version_type=darwin
10386  need_lib_prefix=no
10387  need_version=no
10388  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10389  soname_spec='${libname}${release}${major}$shared_ext'
10390  shlibpath_overrides_runpath=yes
10391  shlibpath_var=DYLD_LIBRARY_PATH
10392  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10393
10394  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10395  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10396  ;;
10397
10398dgux*)
10399  version_type=linux # correct to gnu/linux during the next big refactor
10400  need_lib_prefix=no
10401  need_version=no
10402  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10403  soname_spec='${libname}${release}${shared_ext}$major'
10404  shlibpath_var=LD_LIBRARY_PATH
10405  ;;
10406
10407freebsd* | dragonfly*)
10408  # DragonFly does not have aout.  When/if they implement a new
10409  # versioning mechanism, adjust this.
10410  if test -x /usr/bin/objformat; then
10411    objformat=`/usr/bin/objformat`
10412  else
10413    case $host_os in
10414    freebsd[23].*) objformat=aout ;;
10415    *) objformat=elf ;;
10416    esac
10417  fi
10418  version_type=freebsd-$objformat
10419  case $version_type in
10420    freebsd-elf*)
10421      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10422      need_version=no
10423      need_lib_prefix=no
10424      ;;
10425    freebsd-*)
10426      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10427      need_version=yes
10428      ;;
10429  esac
10430  shlibpath_var=LD_LIBRARY_PATH
10431  case $host_os in
10432  freebsd2.*)
10433    shlibpath_overrides_runpath=yes
10434    ;;
10435  freebsd3.[01]* | freebsdelf3.[01]*)
10436    shlibpath_overrides_runpath=yes
10437    hardcode_into_libs=yes
10438    ;;
10439  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10440  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10441    shlibpath_overrides_runpath=no
10442    hardcode_into_libs=yes
10443    ;;
10444  *) # from 4.6 on, and DragonFly
10445    shlibpath_overrides_runpath=yes
10446    hardcode_into_libs=yes
10447    ;;
10448  esac
10449  ;;
10450
10451haiku*)
10452  version_type=linux # correct to gnu/linux during the next big refactor
10453  need_lib_prefix=no
10454  need_version=no
10455  dynamic_linker="$host_os runtime_loader"
10456  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10457  soname_spec='${libname}${release}${shared_ext}$major'
10458  shlibpath_var=LIBRARY_PATH
10459  shlibpath_overrides_runpath=yes
10460  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10461  hardcode_into_libs=yes
10462  ;;
10463
10464hpux9* | hpux10* | hpux11*)
10465  # Give a soname corresponding to the major version so that dld.sl refuses to
10466  # link against other versions.
10467  version_type=sunos
10468  need_lib_prefix=no
10469  need_version=no
10470  case $host_cpu in
10471  ia64*)
10472    shrext_cmds='.so'
10473    hardcode_into_libs=yes
10474    dynamic_linker="$host_os dld.so"
10475    shlibpath_var=LD_LIBRARY_PATH
10476    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10477    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10478    soname_spec='${libname}${release}${shared_ext}$major'
10479    if test "X$HPUX_IA64_MODE" = X32; then
10480      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10481    else
10482      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10483    fi
10484    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10485    ;;
10486  hppa*64*)
10487    shrext_cmds='.sl'
10488    hardcode_into_libs=yes
10489    dynamic_linker="$host_os dld.sl"
10490    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10491    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10492    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10493    soname_spec='${libname}${release}${shared_ext}$major'
10494    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10495    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10496    ;;
10497  *)
10498    shrext_cmds='.sl'
10499    dynamic_linker="$host_os dld.sl"
10500    shlibpath_var=SHLIB_PATH
10501    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10502    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10503    soname_spec='${libname}${release}${shared_ext}$major'
10504    ;;
10505  esac
10506  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10507  postinstall_cmds='chmod 555 $lib'
10508  # or fails outright, so override atomically:
10509  install_override_mode=555
10510  ;;
10511
10512interix[3-9]*)
10513  version_type=linux # correct to gnu/linux during the next big refactor
10514  need_lib_prefix=no
10515  need_version=no
10516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10517  soname_spec='${libname}${release}${shared_ext}$major'
10518  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10519  shlibpath_var=LD_LIBRARY_PATH
10520  shlibpath_overrides_runpath=no
10521  hardcode_into_libs=yes
10522  ;;
10523
10524irix5* | irix6* | nonstopux*)
10525  case $host_os in
10526    nonstopux*) version_type=nonstopux ;;
10527    *)
10528	if test "$lt_cv_prog_gnu_ld" = yes; then
10529		version_type=linux # correct to gnu/linux during the next big refactor
10530	else
10531		version_type=irix
10532	fi ;;
10533  esac
10534  need_lib_prefix=no
10535  need_version=no
10536  soname_spec='${libname}${release}${shared_ext}$major'
10537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10538  case $host_os in
10539  irix5* | nonstopux*)
10540    libsuff= shlibsuff=
10541    ;;
10542  *)
10543    case $LD in # libtool.m4 will add one of these switches to LD
10544    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10545      libsuff= shlibsuff= libmagic=32-bit;;
10546    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10547      libsuff=32 shlibsuff=N32 libmagic=N32;;
10548    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10549      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10550    *) libsuff= shlibsuff= libmagic=never-match;;
10551    esac
10552    ;;
10553  esac
10554  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10555  shlibpath_overrides_runpath=no
10556  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10557  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10558  hardcode_into_libs=yes
10559  ;;
10560
10561# No shared lib support for Linux oldld, aout, or coff.
10562linux*oldld* | linux*aout* | linux*coff*)
10563  dynamic_linker=no
10564  ;;
10565
10566# This must be glibc/ELF.
10567linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10568  version_type=linux # correct to gnu/linux during the next big refactor
10569  need_lib_prefix=no
10570  need_version=no
10571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10572  soname_spec='${libname}${release}${shared_ext}$major'
10573  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10574  shlibpath_var=LD_LIBRARY_PATH
10575  shlibpath_overrides_runpath=no
10576
10577  # Some binutils ld are patched to set DT_RUNPATH
10578  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10579  $as_echo_n "(cached) " >&6
10580else
10581  lt_cv_shlibpath_overrides_runpath=no
10582    save_LDFLAGS=$LDFLAGS
10583    save_libdir=$libdir
10584    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10585	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10586    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587/* end confdefs.h.  */
10588
10589int
10590main ()
10591{
10592
10593  ;
10594  return 0;
10595}
10596_ACEOF
10597if ac_fn_c_try_link "$LINENO"; then :
10598  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10599  lt_cv_shlibpath_overrides_runpath=yes
10600fi
10601fi
10602rm -f core conftest.err conftest.$ac_objext \
10603    conftest$ac_exeext conftest.$ac_ext
10604    LDFLAGS=$save_LDFLAGS
10605    libdir=$save_libdir
10606
10607fi
10608
10609  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10610
10611  # This implies no fast_install, which is unacceptable.
10612  # Some rework will be needed to allow for fast_install
10613  # before this can be enabled.
10614  hardcode_into_libs=yes
10615
10616  # Append ld.so.conf contents to the search path
10617  if test -f /etc/ld.so.conf; then
10618    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' ' '`
10619    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10620  fi
10621
10622  # We used to test for /lib/ld.so.1 and disable shared libraries on
10623  # powerpc, because MkLinux only supported shared libraries with the
10624  # GNU dynamic linker.  Since this was broken with cross compilers,
10625  # most powerpc-linux boxes support dynamic linking these days and
10626  # people can always --disable-shared, the test was removed, and we
10627  # assume the GNU/Linux dynamic linker is in use.
10628  dynamic_linker='GNU/Linux ld.so'
10629  ;;
10630
10631netbsdelf*-gnu)
10632  version_type=linux
10633  need_lib_prefix=no
10634  need_version=no
10635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10636  soname_spec='${libname}${release}${shared_ext}$major'
10637  shlibpath_var=LD_LIBRARY_PATH
10638  shlibpath_overrides_runpath=no
10639  hardcode_into_libs=yes
10640  dynamic_linker='NetBSD ld.elf_so'
10641  ;;
10642
10643netbsd*)
10644  version_type=sunos
10645  need_lib_prefix=no
10646  need_version=no
10647  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10648    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10649    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10650    dynamic_linker='NetBSD (a.out) ld.so'
10651  else
10652    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10653    soname_spec='${libname}${release}${shared_ext}$major'
10654    dynamic_linker='NetBSD ld.elf_so'
10655  fi
10656  shlibpath_var=LD_LIBRARY_PATH
10657  shlibpath_overrides_runpath=yes
10658  hardcode_into_libs=yes
10659  ;;
10660
10661newsos6)
10662  version_type=linux # correct to gnu/linux during the next big refactor
10663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664  shlibpath_var=LD_LIBRARY_PATH
10665  shlibpath_overrides_runpath=yes
10666  ;;
10667
10668*nto* | *qnx*)
10669  version_type=qnx
10670  need_lib_prefix=no
10671  need_version=no
10672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10673  soname_spec='${libname}${release}${shared_ext}$major'
10674  shlibpath_var=LD_LIBRARY_PATH
10675  shlibpath_overrides_runpath=no
10676  hardcode_into_libs=yes
10677  dynamic_linker='ldqnx.so'
10678  ;;
10679
10680openbsd*)
10681  version_type=sunos
10682  sys_lib_dlsearch_path_spec="/usr/lib"
10683  need_lib_prefix=no
10684  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10685  case $host_os in
10686    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10687    *)				need_version=no  ;;
10688  esac
10689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10690  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10691  shlibpath_var=LD_LIBRARY_PATH
10692  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10693    case $host_os in
10694      openbsd2.[89] | openbsd2.[89].*)
10695	shlibpath_overrides_runpath=no
10696	;;
10697      *)
10698	shlibpath_overrides_runpath=yes
10699	;;
10700      esac
10701  else
10702    shlibpath_overrides_runpath=yes
10703  fi
10704  ;;
10705
10706os2*)
10707  libname_spec='$name'
10708  shrext_cmds=".dll"
10709  need_lib_prefix=no
10710  library_names_spec='$libname${shared_ext} $libname.a'
10711  dynamic_linker='OS/2 ld.exe'
10712  shlibpath_var=LIBPATH
10713  ;;
10714
10715osf3* | osf4* | osf5*)
10716  version_type=osf
10717  need_lib_prefix=no
10718  need_version=no
10719  soname_spec='${libname}${release}${shared_ext}$major'
10720  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10721  shlibpath_var=LD_LIBRARY_PATH
10722  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10723  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10724  ;;
10725
10726rdos*)
10727  dynamic_linker=no
10728  ;;
10729
10730solaris*)
10731  version_type=linux # correct to gnu/linux during the next big refactor
10732  need_lib_prefix=no
10733  need_version=no
10734  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10735  soname_spec='${libname}${release}${shared_ext}$major'
10736  shlibpath_var=LD_LIBRARY_PATH
10737  shlibpath_overrides_runpath=yes
10738  hardcode_into_libs=yes
10739  # ldd complains unless libraries are executable
10740  postinstall_cmds='chmod +x $lib'
10741  ;;
10742
10743sunos4*)
10744  version_type=sunos
10745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10746  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10747  shlibpath_var=LD_LIBRARY_PATH
10748  shlibpath_overrides_runpath=yes
10749  if test "$with_gnu_ld" = yes; then
10750    need_lib_prefix=no
10751  fi
10752  need_version=yes
10753  ;;
10754
10755sysv4 | sysv4.3*)
10756  version_type=linux # correct to gnu/linux during the next big refactor
10757  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10758  soname_spec='${libname}${release}${shared_ext}$major'
10759  shlibpath_var=LD_LIBRARY_PATH
10760  case $host_vendor in
10761    sni)
10762      shlibpath_overrides_runpath=no
10763      need_lib_prefix=no
10764      runpath_var=LD_RUN_PATH
10765      ;;
10766    siemens)
10767      need_lib_prefix=no
10768      ;;
10769    motorola)
10770      need_lib_prefix=no
10771      need_version=no
10772      shlibpath_overrides_runpath=no
10773      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10774      ;;
10775  esac
10776  ;;
10777
10778sysv4*MP*)
10779  if test -d /usr/nec ;then
10780    version_type=linux # correct to gnu/linux during the next big refactor
10781    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10782    soname_spec='$libname${shared_ext}.$major'
10783    shlibpath_var=LD_LIBRARY_PATH
10784  fi
10785  ;;
10786
10787sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10788  version_type=freebsd-elf
10789  need_lib_prefix=no
10790  need_version=no
10791  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10792  soname_spec='${libname}${release}${shared_ext}$major'
10793  shlibpath_var=LD_LIBRARY_PATH
10794  shlibpath_overrides_runpath=yes
10795  hardcode_into_libs=yes
10796  if test "$with_gnu_ld" = yes; then
10797    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10798  else
10799    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10800    case $host_os in
10801      sco3.2v5*)
10802        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10803	;;
10804    esac
10805  fi
10806  sys_lib_dlsearch_path_spec='/usr/lib'
10807  ;;
10808
10809tpf*)
10810  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10811  version_type=linux # correct to gnu/linux during the next big refactor
10812  need_lib_prefix=no
10813  need_version=no
10814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10815  shlibpath_var=LD_LIBRARY_PATH
10816  shlibpath_overrides_runpath=no
10817  hardcode_into_libs=yes
10818  ;;
10819
10820uts4*)
10821  version_type=linux # correct to gnu/linux during the next big refactor
10822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10823  soname_spec='${libname}${release}${shared_ext}$major'
10824  shlibpath_var=LD_LIBRARY_PATH
10825  ;;
10826
10827*)
10828  dynamic_linker=no
10829  ;;
10830esac
10831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10832$as_echo "$dynamic_linker" >&6; }
10833test "$dynamic_linker" = no && can_build_shared=no
10834
10835variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10836if test "$GCC" = yes; then
10837  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10838fi
10839
10840if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10841  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10842fi
10843if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10844  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10845fi
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10939$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10940hardcode_action=
10941if test -n "$hardcode_libdir_flag_spec" ||
10942   test -n "$runpath_var" ||
10943   test "X$hardcode_automatic" = "Xyes" ; then
10944
10945  # We can hardcode non-existent directories.
10946  if test "$hardcode_direct" != no &&
10947     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10948     # have to relink, otherwise we might link with an installed library
10949     # when we should be linking with a yet-to-be-installed one
10950     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10951     test "$hardcode_minus_L" != no; then
10952    # Linking always hardcodes the temporary library directory.
10953    hardcode_action=relink
10954  else
10955    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10956    hardcode_action=immediate
10957  fi
10958else
10959  # We cannot hardcode anything, or else we can only hardcode existing
10960  # directories.
10961  hardcode_action=unsupported
10962fi
10963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10964$as_echo "$hardcode_action" >&6; }
10965
10966if test "$hardcode_action" = relink ||
10967   test "$inherit_rpath" = yes; then
10968  # Fast installation is not supported
10969  enable_fast_install=no
10970elif test "$shlibpath_overrides_runpath" = yes ||
10971     test "$enable_shared" = no; then
10972  # Fast installation is not necessary
10973  enable_fast_install=needless
10974fi
10975
10976
10977
10978
10979
10980
10981  if test "x$enable_dlopen" != xyes; then
10982  enable_dlopen=unknown
10983  enable_dlopen_self=unknown
10984  enable_dlopen_self_static=unknown
10985else
10986  lt_cv_dlopen=no
10987  lt_cv_dlopen_libs=
10988
10989  case $host_os in
10990  beos*)
10991    lt_cv_dlopen="load_add_on"
10992    lt_cv_dlopen_libs=
10993    lt_cv_dlopen_self=yes
10994    ;;
10995
10996  mingw* | pw32* | cegcc*)
10997    lt_cv_dlopen="LoadLibrary"
10998    lt_cv_dlopen_libs=
10999    ;;
11000
11001  cygwin*)
11002    lt_cv_dlopen="dlopen"
11003    lt_cv_dlopen_libs=
11004    ;;
11005
11006  darwin*)
11007  # if libdl is installed we need to link against it
11008    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11009$as_echo_n "checking for dlopen in -ldl... " >&6; }
11010if ${ac_cv_lib_dl_dlopen+:} false; then :
11011  $as_echo_n "(cached) " >&6
11012else
11013  ac_check_lib_save_LIBS=$LIBS
11014LIBS="-ldl  $LIBS"
11015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016/* end confdefs.h.  */
11017
11018/* Override any GCC internal prototype to avoid an error.
11019   Use char because int might match the return type of a GCC
11020   builtin and then its argument prototype would still apply.  */
11021#ifdef __cplusplus
11022extern "C"
11023#endif
11024char dlopen ();
11025int
11026main ()
11027{
11028return dlopen ();
11029  ;
11030  return 0;
11031}
11032_ACEOF
11033if ac_fn_c_try_link "$LINENO"; then :
11034  ac_cv_lib_dl_dlopen=yes
11035else
11036  ac_cv_lib_dl_dlopen=no
11037fi
11038rm -f core conftest.err conftest.$ac_objext \
11039    conftest$ac_exeext conftest.$ac_ext
11040LIBS=$ac_check_lib_save_LIBS
11041fi
11042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11043$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11044if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11045  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11046else
11047
11048    lt_cv_dlopen="dyld"
11049    lt_cv_dlopen_libs=
11050    lt_cv_dlopen_self=yes
11051
11052fi
11053
11054    ;;
11055
11056  *)
11057    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11058if test "x$ac_cv_func_shl_load" = xyes; then :
11059  lt_cv_dlopen="shl_load"
11060else
11061  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11062$as_echo_n "checking for shl_load in -ldld... " >&6; }
11063if ${ac_cv_lib_dld_shl_load+:} false; then :
11064  $as_echo_n "(cached) " >&6
11065else
11066  ac_check_lib_save_LIBS=$LIBS
11067LIBS="-ldld  $LIBS"
11068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069/* end confdefs.h.  */
11070
11071/* Override any GCC internal prototype to avoid an error.
11072   Use char because int might match the return type of a GCC
11073   builtin and then its argument prototype would still apply.  */
11074#ifdef __cplusplus
11075extern "C"
11076#endif
11077char shl_load ();
11078int
11079main ()
11080{
11081return shl_load ();
11082  ;
11083  return 0;
11084}
11085_ACEOF
11086if ac_fn_c_try_link "$LINENO"; then :
11087  ac_cv_lib_dld_shl_load=yes
11088else
11089  ac_cv_lib_dld_shl_load=no
11090fi
11091rm -f core conftest.err conftest.$ac_objext \
11092    conftest$ac_exeext conftest.$ac_ext
11093LIBS=$ac_check_lib_save_LIBS
11094fi
11095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11096$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11097if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11098  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11099else
11100  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11101if test "x$ac_cv_func_dlopen" = xyes; then :
11102  lt_cv_dlopen="dlopen"
11103else
11104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11105$as_echo_n "checking for dlopen in -ldl... " >&6; }
11106if ${ac_cv_lib_dl_dlopen+:} false; then :
11107  $as_echo_n "(cached) " >&6
11108else
11109  ac_check_lib_save_LIBS=$LIBS
11110LIBS="-ldl  $LIBS"
11111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112/* end confdefs.h.  */
11113
11114/* Override any GCC internal prototype to avoid an error.
11115   Use char because int might match the return type of a GCC
11116   builtin and then its argument prototype would still apply.  */
11117#ifdef __cplusplus
11118extern "C"
11119#endif
11120char dlopen ();
11121int
11122main ()
11123{
11124return dlopen ();
11125  ;
11126  return 0;
11127}
11128_ACEOF
11129if ac_fn_c_try_link "$LINENO"; then :
11130  ac_cv_lib_dl_dlopen=yes
11131else
11132  ac_cv_lib_dl_dlopen=no
11133fi
11134rm -f core conftest.err conftest.$ac_objext \
11135    conftest$ac_exeext conftest.$ac_ext
11136LIBS=$ac_check_lib_save_LIBS
11137fi
11138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11139$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11140if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11141  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11142else
11143  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11144$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11145if ${ac_cv_lib_svld_dlopen+:} false; then :
11146  $as_echo_n "(cached) " >&6
11147else
11148  ac_check_lib_save_LIBS=$LIBS
11149LIBS="-lsvld  $LIBS"
11150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11151/* end confdefs.h.  */
11152
11153/* Override any GCC internal prototype to avoid an error.
11154   Use char because int might match the return type of a GCC
11155   builtin and then its argument prototype would still apply.  */
11156#ifdef __cplusplus
11157extern "C"
11158#endif
11159char dlopen ();
11160int
11161main ()
11162{
11163return dlopen ();
11164  ;
11165  return 0;
11166}
11167_ACEOF
11168if ac_fn_c_try_link "$LINENO"; then :
11169  ac_cv_lib_svld_dlopen=yes
11170else
11171  ac_cv_lib_svld_dlopen=no
11172fi
11173rm -f core conftest.err conftest.$ac_objext \
11174    conftest$ac_exeext conftest.$ac_ext
11175LIBS=$ac_check_lib_save_LIBS
11176fi
11177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11178$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11179if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11180  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11181else
11182  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11183$as_echo_n "checking for dld_link in -ldld... " >&6; }
11184if ${ac_cv_lib_dld_dld_link+:} false; then :
11185  $as_echo_n "(cached) " >&6
11186else
11187  ac_check_lib_save_LIBS=$LIBS
11188LIBS="-ldld  $LIBS"
11189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190/* end confdefs.h.  */
11191
11192/* Override any GCC internal prototype to avoid an error.
11193   Use char because int might match the return type of a GCC
11194   builtin and then its argument prototype would still apply.  */
11195#ifdef __cplusplus
11196extern "C"
11197#endif
11198char dld_link ();
11199int
11200main ()
11201{
11202return dld_link ();
11203  ;
11204  return 0;
11205}
11206_ACEOF
11207if ac_fn_c_try_link "$LINENO"; then :
11208  ac_cv_lib_dld_dld_link=yes
11209else
11210  ac_cv_lib_dld_dld_link=no
11211fi
11212rm -f core conftest.err conftest.$ac_objext \
11213    conftest$ac_exeext conftest.$ac_ext
11214LIBS=$ac_check_lib_save_LIBS
11215fi
11216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11217$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11218if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11219  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11220fi
11221
11222
11223fi
11224
11225
11226fi
11227
11228
11229fi
11230
11231
11232fi
11233
11234
11235fi
11236
11237    ;;
11238  esac
11239
11240  if test "x$lt_cv_dlopen" != xno; then
11241    enable_dlopen=yes
11242  else
11243    enable_dlopen=no
11244  fi
11245
11246  case $lt_cv_dlopen in
11247  dlopen)
11248    save_CPPFLAGS="$CPPFLAGS"
11249    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11250
11251    save_LDFLAGS="$LDFLAGS"
11252    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11253
11254    save_LIBS="$LIBS"
11255    LIBS="$lt_cv_dlopen_libs $LIBS"
11256
11257    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11258$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11259if ${lt_cv_dlopen_self+:} false; then :
11260  $as_echo_n "(cached) " >&6
11261else
11262  	  if test "$cross_compiling" = yes; then :
11263  lt_cv_dlopen_self=cross
11264else
11265  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11266  lt_status=$lt_dlunknown
11267  cat > conftest.$ac_ext <<_LT_EOF
11268#line $LINENO "configure"
11269#include "confdefs.h"
11270
11271#if HAVE_DLFCN_H
11272#include <dlfcn.h>
11273#endif
11274
11275#include <stdio.h>
11276
11277#ifdef RTLD_GLOBAL
11278#  define LT_DLGLOBAL		RTLD_GLOBAL
11279#else
11280#  ifdef DL_GLOBAL
11281#    define LT_DLGLOBAL		DL_GLOBAL
11282#  else
11283#    define LT_DLGLOBAL		0
11284#  endif
11285#endif
11286
11287/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11288   find out it does not work in some platform. */
11289#ifndef LT_DLLAZY_OR_NOW
11290#  ifdef RTLD_LAZY
11291#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11292#  else
11293#    ifdef DL_LAZY
11294#      define LT_DLLAZY_OR_NOW		DL_LAZY
11295#    else
11296#      ifdef RTLD_NOW
11297#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11298#      else
11299#        ifdef DL_NOW
11300#          define LT_DLLAZY_OR_NOW	DL_NOW
11301#        else
11302#          define LT_DLLAZY_OR_NOW	0
11303#        endif
11304#      endif
11305#    endif
11306#  endif
11307#endif
11308
11309/* When -fvisbility=hidden is used, assume the code has been annotated
11310   correspondingly for the symbols needed.  */
11311#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11312int fnord () __attribute__((visibility("default")));
11313#endif
11314
11315int fnord () { return 42; }
11316int main ()
11317{
11318  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11319  int status = $lt_dlunknown;
11320
11321  if (self)
11322    {
11323      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11324      else
11325        {
11326	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11327          else puts (dlerror ());
11328	}
11329      /* dlclose (self); */
11330    }
11331  else
11332    puts (dlerror ());
11333
11334  return status;
11335}
11336_LT_EOF
11337  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11338  (eval $ac_link) 2>&5
11339  ac_status=$?
11340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11341  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11342    (./conftest; exit; ) >&5 2>/dev/null
11343    lt_status=$?
11344    case x$lt_status in
11345      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11346      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11347      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11348    esac
11349  else :
11350    # compilation failed
11351    lt_cv_dlopen_self=no
11352  fi
11353fi
11354rm -fr conftest*
11355
11356
11357fi
11358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11359$as_echo "$lt_cv_dlopen_self" >&6; }
11360
11361    if test "x$lt_cv_dlopen_self" = xyes; then
11362      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11363      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11364$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11365if ${lt_cv_dlopen_self_static+:} false; then :
11366  $as_echo_n "(cached) " >&6
11367else
11368  	  if test "$cross_compiling" = yes; then :
11369  lt_cv_dlopen_self_static=cross
11370else
11371  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11372  lt_status=$lt_dlunknown
11373  cat > conftest.$ac_ext <<_LT_EOF
11374#line $LINENO "configure"
11375#include "confdefs.h"
11376
11377#if HAVE_DLFCN_H
11378#include <dlfcn.h>
11379#endif
11380
11381#include <stdio.h>
11382
11383#ifdef RTLD_GLOBAL
11384#  define LT_DLGLOBAL		RTLD_GLOBAL
11385#else
11386#  ifdef DL_GLOBAL
11387#    define LT_DLGLOBAL		DL_GLOBAL
11388#  else
11389#    define LT_DLGLOBAL		0
11390#  endif
11391#endif
11392
11393/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11394   find out it does not work in some platform. */
11395#ifndef LT_DLLAZY_OR_NOW
11396#  ifdef RTLD_LAZY
11397#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11398#  else
11399#    ifdef DL_LAZY
11400#      define LT_DLLAZY_OR_NOW		DL_LAZY
11401#    else
11402#      ifdef RTLD_NOW
11403#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11404#      else
11405#        ifdef DL_NOW
11406#          define LT_DLLAZY_OR_NOW	DL_NOW
11407#        else
11408#          define LT_DLLAZY_OR_NOW	0
11409#        endif
11410#      endif
11411#    endif
11412#  endif
11413#endif
11414
11415/* When -fvisbility=hidden is used, assume the code has been annotated
11416   correspondingly for the symbols needed.  */
11417#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11418int fnord () __attribute__((visibility("default")));
11419#endif
11420
11421int fnord () { return 42; }
11422int main ()
11423{
11424  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11425  int status = $lt_dlunknown;
11426
11427  if (self)
11428    {
11429      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11430      else
11431        {
11432	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11433          else puts (dlerror ());
11434	}
11435      /* dlclose (self); */
11436    }
11437  else
11438    puts (dlerror ());
11439
11440  return status;
11441}
11442_LT_EOF
11443  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11444  (eval $ac_link) 2>&5
11445  ac_status=$?
11446  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11447  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11448    (./conftest; exit; ) >&5 2>/dev/null
11449    lt_status=$?
11450    case x$lt_status in
11451      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11452      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11453      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11454    esac
11455  else :
11456    # compilation failed
11457    lt_cv_dlopen_self_static=no
11458  fi
11459fi
11460rm -fr conftest*
11461
11462
11463fi
11464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11465$as_echo "$lt_cv_dlopen_self_static" >&6; }
11466    fi
11467
11468    CPPFLAGS="$save_CPPFLAGS"
11469    LDFLAGS="$save_LDFLAGS"
11470    LIBS="$save_LIBS"
11471    ;;
11472  esac
11473
11474  case $lt_cv_dlopen_self in
11475  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11476  *) enable_dlopen_self=unknown ;;
11477  esac
11478
11479  case $lt_cv_dlopen_self_static in
11480  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11481  *) enable_dlopen_self_static=unknown ;;
11482  esac
11483fi
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501striplib=
11502old_striplib=
11503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11504$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11505if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11506  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11507  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11509$as_echo "yes" >&6; }
11510else
11511# FIXME - insert some real tests, host_os isn't really good enough
11512  case $host_os in
11513  darwin*)
11514    if test -n "$STRIP" ; then
11515      striplib="$STRIP -x"
11516      old_striplib="$STRIP -S"
11517      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11518$as_echo "yes" >&6; }
11519    else
11520      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11521$as_echo "no" >&6; }
11522    fi
11523    ;;
11524  *)
11525    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526$as_echo "no" >&6; }
11527    ;;
11528  esac
11529fi
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542  # Report which library types will actually be built
11543  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11544$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11546$as_echo "$can_build_shared" >&6; }
11547
11548  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11549$as_echo_n "checking whether to build shared libraries... " >&6; }
11550  test "$can_build_shared" = "no" && enable_shared=no
11551
11552  # On AIX, shared libraries and static libraries use the same namespace, and
11553  # are all built from PIC.
11554  case $host_os in
11555  aix3*)
11556    test "$enable_shared" = yes && enable_static=no
11557    if test -n "$RANLIB"; then
11558      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11559      postinstall_cmds='$RANLIB $lib'
11560    fi
11561    ;;
11562
11563  aix[4-9]*)
11564    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11565      test "$enable_shared" = yes && enable_static=no
11566    fi
11567    ;;
11568  esac
11569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11570$as_echo "$enable_shared" >&6; }
11571
11572  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11573$as_echo_n "checking whether to build static libraries... " >&6; }
11574  # Make sure either enable_shared or enable_static is yes.
11575  test "$enable_shared" = yes || enable_static=yes
11576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11577$as_echo "$enable_static" >&6; }
11578
11579
11580
11581
11582fi
11583ac_ext=c
11584ac_cpp='$CPP $CPPFLAGS'
11585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11587ac_compiler_gnu=$ac_cv_c_compiler_gnu
11588
11589CC="$lt_save_CC"
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605        ac_config_commands="$ac_config_commands libtool"
11606
11607
11608
11609
11610# Only expand once:
11611
11612
11613
11614# Require xorg-macros: XORG_DEFAULT_OPTIONS
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11627$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11628if ${ac_cv_prog_cc_c99+:} false; then :
11629  $as_echo_n "(cached) " >&6
11630else
11631  ac_cv_prog_cc_c99=no
11632ac_save_CC=$CC
11633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11634/* end confdefs.h.  */
11635#include <stdarg.h>
11636#include <stdbool.h>
11637#include <stdlib.h>
11638#include <wchar.h>
11639#include <stdio.h>
11640
11641// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11642#define debug(...) fprintf (stderr, __VA_ARGS__)
11643#define showlist(...) puts (#__VA_ARGS__)
11644#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11645static void
11646test_varargs_macros (void)
11647{
11648  int x = 1234;
11649  int y = 5678;
11650  debug ("Flag");
11651  debug ("X = %d\n", x);
11652  showlist (The first, second, and third items.);
11653  report (x>y, "x is %d but y is %d", x, y);
11654}
11655
11656// Check long long types.
11657#define BIG64 18446744073709551615ull
11658#define BIG32 4294967295ul
11659#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11660#if !BIG_OK
11661  your preprocessor is broken;
11662#endif
11663#if BIG_OK
11664#else
11665  your preprocessor is broken;
11666#endif
11667static long long int bignum = -9223372036854775807LL;
11668static unsigned long long int ubignum = BIG64;
11669
11670struct incomplete_array
11671{
11672  int datasize;
11673  double data[];
11674};
11675
11676struct named_init {
11677  int number;
11678  const wchar_t *name;
11679  double average;
11680};
11681
11682typedef const char *ccp;
11683
11684static inline int
11685test_restrict (ccp restrict text)
11686{
11687  // See if C++-style comments work.
11688  // Iterate through items via the restricted pointer.
11689  // Also check for declarations in for loops.
11690  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11691    continue;
11692  return 0;
11693}
11694
11695// Check varargs and va_copy.
11696static void
11697test_varargs (const char *format, ...)
11698{
11699  va_list args;
11700  va_start (args, format);
11701  va_list args_copy;
11702  va_copy (args_copy, args);
11703
11704  const char *str;
11705  int number;
11706  float fnumber;
11707
11708  while (*format)
11709    {
11710      switch (*format++)
11711	{
11712	case 's': // string
11713	  str = va_arg (args_copy, const char *);
11714	  break;
11715	case 'd': // int
11716	  number = va_arg (args_copy, int);
11717	  break;
11718	case 'f': // float
11719	  fnumber = va_arg (args_copy, double);
11720	  break;
11721	default:
11722	  break;
11723	}
11724    }
11725  va_end (args_copy);
11726  va_end (args);
11727}
11728
11729int
11730main ()
11731{
11732
11733  // Check bool.
11734  _Bool success = false;
11735
11736  // Check restrict.
11737  if (test_restrict ("String literal") == 0)
11738    success = true;
11739  char *restrict newvar = "Another string";
11740
11741  // Check varargs.
11742  test_varargs ("s, d' f .", "string", 65, 34.234);
11743  test_varargs_macros ();
11744
11745  // Check flexible array members.
11746  struct incomplete_array *ia =
11747    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11748  ia->datasize = 10;
11749  for (int i = 0; i < ia->datasize; ++i)
11750    ia->data[i] = i * 1.234;
11751
11752  // Check named initializers.
11753  struct named_init ni = {
11754    .number = 34,
11755    .name = L"Test wide string",
11756    .average = 543.34343,
11757  };
11758
11759  ni.number = 58;
11760
11761  int dynamic_array[ni.number];
11762  dynamic_array[ni.number - 1] = 543;
11763
11764  // work around unused variable warnings
11765  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11766	  || dynamic_array[ni.number - 1] != 543);
11767
11768  ;
11769  return 0;
11770}
11771_ACEOF
11772for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11773do
11774  CC="$ac_save_CC $ac_arg"
11775  if ac_fn_c_try_compile "$LINENO"; then :
11776  ac_cv_prog_cc_c99=$ac_arg
11777fi
11778rm -f core conftest.err conftest.$ac_objext
11779  test "x$ac_cv_prog_cc_c99" != "xno" && break
11780done
11781rm -f conftest.$ac_ext
11782CC=$ac_save_CC
11783
11784fi
11785# AC_CACHE_VAL
11786case "x$ac_cv_prog_cc_c99" in
11787  x)
11788    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11789$as_echo "none needed" >&6; } ;;
11790  xno)
11791    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11792$as_echo "unsupported" >&6; } ;;
11793  *)
11794    CC="$CC $ac_cv_prog_cc_c99"
11795    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11796$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11797esac
11798if test "x$ac_cv_prog_cc_c99" != xno; then :
11799
11800fi
11801
11802
11803
11804
11805
11806
11807ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11808if test "x$ac_cv_have_decl___clang__" = xyes; then :
11809  CLANGCC="yes"
11810else
11811  CLANGCC="no"
11812fi
11813
11814ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11815if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11816  INTELCC="yes"
11817else
11818  INTELCC="no"
11819fi
11820
11821ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11822if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11823  SUNCC="yes"
11824else
11825  SUNCC="no"
11826fi
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11837	if test -n "$ac_tool_prefix"; then
11838  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11839set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11841$as_echo_n "checking for $ac_word... " >&6; }
11842if ${ac_cv_path_PKG_CONFIG+:} false; then :
11843  $as_echo_n "(cached) " >&6
11844else
11845  case $PKG_CONFIG in
11846  [\\/]* | ?:[\\/]*)
11847  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11848  ;;
11849  *)
11850  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11851for as_dir in $PATH
11852do
11853  IFS=$as_save_IFS
11854  test -z "$as_dir" && as_dir=.
11855    for ac_exec_ext in '' $ac_executable_extensions; do
11856  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11857    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11859    break 2
11860  fi
11861done
11862  done
11863IFS=$as_save_IFS
11864
11865  ;;
11866esac
11867fi
11868PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11869if test -n "$PKG_CONFIG"; then
11870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11871$as_echo "$PKG_CONFIG" >&6; }
11872else
11873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874$as_echo "no" >&6; }
11875fi
11876
11877
11878fi
11879if test -z "$ac_cv_path_PKG_CONFIG"; then
11880  ac_pt_PKG_CONFIG=$PKG_CONFIG
11881  # Extract the first word of "pkg-config", so it can be a program name with args.
11882set dummy pkg-config; ac_word=$2
11883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11884$as_echo_n "checking for $ac_word... " >&6; }
11885if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11886  $as_echo_n "(cached) " >&6
11887else
11888  case $ac_pt_PKG_CONFIG in
11889  [\\/]* | ?:[\\/]*)
11890  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11891  ;;
11892  *)
11893  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11894for as_dir in $PATH
11895do
11896  IFS=$as_save_IFS
11897  test -z "$as_dir" && as_dir=.
11898    for ac_exec_ext in '' $ac_executable_extensions; do
11899  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11900    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11902    break 2
11903  fi
11904done
11905  done
11906IFS=$as_save_IFS
11907
11908  ;;
11909esac
11910fi
11911ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11912if test -n "$ac_pt_PKG_CONFIG"; then
11913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11914$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11915else
11916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11917$as_echo "no" >&6; }
11918fi
11919
11920  if test "x$ac_pt_PKG_CONFIG" = x; then
11921    PKG_CONFIG=""
11922  else
11923    case $cross_compiling:$ac_tool_warned in
11924yes:)
11925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11927ac_tool_warned=yes ;;
11928esac
11929    PKG_CONFIG=$ac_pt_PKG_CONFIG
11930  fi
11931else
11932  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11933fi
11934
11935fi
11936if test -n "$PKG_CONFIG"; then
11937	_pkg_min_version=0.9.0
11938	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11939$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11940	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11941		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11942$as_echo "yes" >&6; }
11943	else
11944		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11945$as_echo "no" >&6; }
11946		PKG_CONFIG=""
11947	fi
11948fi
11949
11950
11951
11952
11953
11954# Check whether --enable-selective-werror was given.
11955if test "${enable_selective_werror+set}" = set; then :
11956  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11957else
11958  SELECTIVE_WERROR=yes
11959fi
11960
11961
11962
11963
11964
11965# -v is too short to test reliably with XORG_TESTSET_CFLAG
11966if test "x$SUNCC" = "xyes"; then
11967    BASE_CFLAGS="-v"
11968else
11969    BASE_CFLAGS=""
11970fi
11971
11972# This chunk of warnings were those that existed in the legacy CWARNFLAGS
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986xorg_testset_save_CFLAGS="$CFLAGS"
11987
11988if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11989	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11990	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11991$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11992if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11993  $as_echo_n "(cached) " >&6
11994else
11995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11996/* end confdefs.h.  */
11997int i;
11998_ACEOF
11999if ac_fn_c_try_compile "$LINENO"; then :
12000  xorg_cv_cc_flag_unknown_warning_option=yes
12001else
12002  xorg_cv_cc_flag_unknown_warning_option=no
12003fi
12004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12005fi
12006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12007$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12008	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12009	CFLAGS="$xorg_testset_save_CFLAGS"
12010fi
12011
12012if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12013	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12014		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12015	fi
12016	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12017	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12018$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12019if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12020  $as_echo_n "(cached) " >&6
12021else
12022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12023/* end confdefs.h.  */
12024int i;
12025_ACEOF
12026if ac_fn_c_try_compile "$LINENO"; then :
12027  xorg_cv_cc_flag_unused_command_line_argument=yes
12028else
12029  xorg_cv_cc_flag_unused_command_line_argument=no
12030fi
12031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12032fi
12033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12034$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12035	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12036	CFLAGS="$xorg_testset_save_CFLAGS"
12037fi
12038
12039found="no"
12040
12041	if test $found = "no" ; then
12042		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12043			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12044		fi
12045
12046		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12047			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12048		fi
12049
12050		CFLAGS="$CFLAGS -Wall"
12051
12052		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12053$as_echo_n "checking if $CC supports -Wall... " >&6; }
12054		cacheid=xorg_cv_cc_flag__Wall
12055		if eval \${$cacheid+:} false; then :
12056  $as_echo_n "(cached) " >&6
12057else
12058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12059/* end confdefs.h.  */
12060int i;
12061int
12062main ()
12063{
12064
12065  ;
12066  return 0;
12067}
12068_ACEOF
12069if ac_fn_c_try_link "$LINENO"; then :
12070  eval $cacheid=yes
12071else
12072  eval $cacheid=no
12073fi
12074rm -f core conftest.err conftest.$ac_objext \
12075    conftest$ac_exeext conftest.$ac_ext
12076fi
12077
12078
12079		CFLAGS="$xorg_testset_save_CFLAGS"
12080
12081		eval supported=\$$cacheid
12082		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12083$as_echo "$supported" >&6; }
12084		if test "$supported" = "yes" ; then
12085			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12086			found="yes"
12087		fi
12088	fi
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104xorg_testset_save_CFLAGS="$CFLAGS"
12105
12106if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12107	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12108	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12109$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12110if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12111  $as_echo_n "(cached) " >&6
12112else
12113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114/* end confdefs.h.  */
12115int i;
12116_ACEOF
12117if ac_fn_c_try_compile "$LINENO"; then :
12118  xorg_cv_cc_flag_unknown_warning_option=yes
12119else
12120  xorg_cv_cc_flag_unknown_warning_option=no
12121fi
12122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12123fi
12124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12125$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12126	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12127	CFLAGS="$xorg_testset_save_CFLAGS"
12128fi
12129
12130if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12131	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12132		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12133	fi
12134	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12135	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12136$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12137if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12138  $as_echo_n "(cached) " >&6
12139else
12140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12141/* end confdefs.h.  */
12142int i;
12143_ACEOF
12144if ac_fn_c_try_compile "$LINENO"; then :
12145  xorg_cv_cc_flag_unused_command_line_argument=yes
12146else
12147  xorg_cv_cc_flag_unused_command_line_argument=no
12148fi
12149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12150fi
12151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12152$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12153	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12154	CFLAGS="$xorg_testset_save_CFLAGS"
12155fi
12156
12157found="no"
12158
12159	if test $found = "no" ; then
12160		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12161			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12162		fi
12163
12164		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12165			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12166		fi
12167
12168		CFLAGS="$CFLAGS -Wpointer-arith"
12169
12170		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12171$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12172		cacheid=xorg_cv_cc_flag__Wpointer_arith
12173		if eval \${$cacheid+:} false; then :
12174  $as_echo_n "(cached) " >&6
12175else
12176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12177/* end confdefs.h.  */
12178int i;
12179int
12180main ()
12181{
12182
12183  ;
12184  return 0;
12185}
12186_ACEOF
12187if ac_fn_c_try_link "$LINENO"; then :
12188  eval $cacheid=yes
12189else
12190  eval $cacheid=no
12191fi
12192rm -f core conftest.err conftest.$ac_objext \
12193    conftest$ac_exeext conftest.$ac_ext
12194fi
12195
12196
12197		CFLAGS="$xorg_testset_save_CFLAGS"
12198
12199		eval supported=\$$cacheid
12200		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12201$as_echo "$supported" >&6; }
12202		if test "$supported" = "yes" ; then
12203			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12204			found="yes"
12205		fi
12206	fi
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222xorg_testset_save_CFLAGS="$CFLAGS"
12223
12224if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12225	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12226	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12227$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12228if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12229  $as_echo_n "(cached) " >&6
12230else
12231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12232/* end confdefs.h.  */
12233int i;
12234_ACEOF
12235if ac_fn_c_try_compile "$LINENO"; then :
12236  xorg_cv_cc_flag_unknown_warning_option=yes
12237else
12238  xorg_cv_cc_flag_unknown_warning_option=no
12239fi
12240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12241fi
12242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12243$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12244	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12245	CFLAGS="$xorg_testset_save_CFLAGS"
12246fi
12247
12248if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12249	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12250		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12251	fi
12252	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12253	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12254$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12255if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12256  $as_echo_n "(cached) " >&6
12257else
12258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259/* end confdefs.h.  */
12260int i;
12261_ACEOF
12262if ac_fn_c_try_compile "$LINENO"; then :
12263  xorg_cv_cc_flag_unused_command_line_argument=yes
12264else
12265  xorg_cv_cc_flag_unused_command_line_argument=no
12266fi
12267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12268fi
12269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12270$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12271	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12272	CFLAGS="$xorg_testset_save_CFLAGS"
12273fi
12274
12275found="no"
12276
12277	if test $found = "no" ; then
12278		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12279			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12280		fi
12281
12282		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12283			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12284		fi
12285
12286		CFLAGS="$CFLAGS -Wmissing-declarations"
12287
12288		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12289$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12290		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12291		if eval \${$cacheid+:} false; then :
12292  $as_echo_n "(cached) " >&6
12293else
12294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12295/* end confdefs.h.  */
12296int i;
12297int
12298main ()
12299{
12300
12301  ;
12302  return 0;
12303}
12304_ACEOF
12305if ac_fn_c_try_link "$LINENO"; then :
12306  eval $cacheid=yes
12307else
12308  eval $cacheid=no
12309fi
12310rm -f core conftest.err conftest.$ac_objext \
12311    conftest$ac_exeext conftest.$ac_ext
12312fi
12313
12314
12315		CFLAGS="$xorg_testset_save_CFLAGS"
12316
12317		eval supported=\$$cacheid
12318		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12319$as_echo "$supported" >&6; }
12320		if test "$supported" = "yes" ; then
12321			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12322			found="yes"
12323		fi
12324	fi
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340xorg_testset_save_CFLAGS="$CFLAGS"
12341
12342if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12343	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12344	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12345$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12346if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12347  $as_echo_n "(cached) " >&6
12348else
12349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12350/* end confdefs.h.  */
12351int i;
12352_ACEOF
12353if ac_fn_c_try_compile "$LINENO"; then :
12354  xorg_cv_cc_flag_unknown_warning_option=yes
12355else
12356  xorg_cv_cc_flag_unknown_warning_option=no
12357fi
12358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12359fi
12360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12361$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12362	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12363	CFLAGS="$xorg_testset_save_CFLAGS"
12364fi
12365
12366if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12367	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12368		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12369	fi
12370	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12371	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12372$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12373if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12374  $as_echo_n "(cached) " >&6
12375else
12376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377/* end confdefs.h.  */
12378int i;
12379_ACEOF
12380if ac_fn_c_try_compile "$LINENO"; then :
12381  xorg_cv_cc_flag_unused_command_line_argument=yes
12382else
12383  xorg_cv_cc_flag_unused_command_line_argument=no
12384fi
12385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12386fi
12387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12388$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12389	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12390	CFLAGS="$xorg_testset_save_CFLAGS"
12391fi
12392
12393found="no"
12394
12395	if test $found = "no" ; then
12396		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12397			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12398		fi
12399
12400		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12401			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12402		fi
12403
12404		CFLAGS="$CFLAGS -Wformat=2"
12405
12406		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12407$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12408		cacheid=xorg_cv_cc_flag__Wformat_2
12409		if eval \${$cacheid+:} false; then :
12410  $as_echo_n "(cached) " >&6
12411else
12412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413/* end confdefs.h.  */
12414int i;
12415int
12416main ()
12417{
12418
12419  ;
12420  return 0;
12421}
12422_ACEOF
12423if ac_fn_c_try_link "$LINENO"; then :
12424  eval $cacheid=yes
12425else
12426  eval $cacheid=no
12427fi
12428rm -f core conftest.err conftest.$ac_objext \
12429    conftest$ac_exeext conftest.$ac_ext
12430fi
12431
12432
12433		CFLAGS="$xorg_testset_save_CFLAGS"
12434
12435		eval supported=\$$cacheid
12436		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12437$as_echo "$supported" >&6; }
12438		if test "$supported" = "yes" ; then
12439			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12440			found="yes"
12441		fi
12442	fi
12443
12444	if test $found = "no" ; then
12445		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12446			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12447		fi
12448
12449		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12450			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12451		fi
12452
12453		CFLAGS="$CFLAGS -Wformat"
12454
12455		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12456$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12457		cacheid=xorg_cv_cc_flag__Wformat
12458		if eval \${$cacheid+:} false; then :
12459  $as_echo_n "(cached) " >&6
12460else
12461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462/* end confdefs.h.  */
12463int i;
12464int
12465main ()
12466{
12467
12468  ;
12469  return 0;
12470}
12471_ACEOF
12472if ac_fn_c_try_link "$LINENO"; then :
12473  eval $cacheid=yes
12474else
12475  eval $cacheid=no
12476fi
12477rm -f core conftest.err conftest.$ac_objext \
12478    conftest$ac_exeext conftest.$ac_ext
12479fi
12480
12481
12482		CFLAGS="$xorg_testset_save_CFLAGS"
12483
12484		eval supported=\$$cacheid
12485		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12486$as_echo "$supported" >&6; }
12487		if test "$supported" = "yes" ; then
12488			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12489			found="yes"
12490		fi
12491	fi
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509xorg_testset_save_CFLAGS="$CFLAGS"
12510
12511if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12512	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12513	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12514$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12515if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12516  $as_echo_n "(cached) " >&6
12517else
12518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519/* end confdefs.h.  */
12520int i;
12521_ACEOF
12522if ac_fn_c_try_compile "$LINENO"; then :
12523  xorg_cv_cc_flag_unknown_warning_option=yes
12524else
12525  xorg_cv_cc_flag_unknown_warning_option=no
12526fi
12527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12528fi
12529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12530$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12531	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12532	CFLAGS="$xorg_testset_save_CFLAGS"
12533fi
12534
12535if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12536	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12537		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12538	fi
12539	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12540	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12541$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12542if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12543  $as_echo_n "(cached) " >&6
12544else
12545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546/* end confdefs.h.  */
12547int i;
12548_ACEOF
12549if ac_fn_c_try_compile "$LINENO"; then :
12550  xorg_cv_cc_flag_unused_command_line_argument=yes
12551else
12552  xorg_cv_cc_flag_unused_command_line_argument=no
12553fi
12554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12555fi
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12557$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12558	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12559	CFLAGS="$xorg_testset_save_CFLAGS"
12560fi
12561
12562found="no"
12563
12564	if test $found = "no" ; then
12565		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12566			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12567		fi
12568
12569		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12570			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12571		fi
12572
12573		CFLAGS="$CFLAGS -Wstrict-prototypes"
12574
12575		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12576$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12577		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12578		if eval \${$cacheid+:} false; then :
12579  $as_echo_n "(cached) " >&6
12580else
12581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582/* end confdefs.h.  */
12583int i;
12584int
12585main ()
12586{
12587
12588  ;
12589  return 0;
12590}
12591_ACEOF
12592if ac_fn_c_try_link "$LINENO"; then :
12593  eval $cacheid=yes
12594else
12595  eval $cacheid=no
12596fi
12597rm -f core conftest.err conftest.$ac_objext \
12598    conftest$ac_exeext conftest.$ac_ext
12599fi
12600
12601
12602		CFLAGS="$xorg_testset_save_CFLAGS"
12603
12604		eval supported=\$$cacheid
12605		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12606$as_echo "$supported" >&6; }
12607		if test "$supported" = "yes" ; then
12608			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12609			found="yes"
12610		fi
12611	fi
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627xorg_testset_save_CFLAGS="$CFLAGS"
12628
12629if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12630	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12631	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12632$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12633if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12634  $as_echo_n "(cached) " >&6
12635else
12636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12637/* end confdefs.h.  */
12638int i;
12639_ACEOF
12640if ac_fn_c_try_compile "$LINENO"; then :
12641  xorg_cv_cc_flag_unknown_warning_option=yes
12642else
12643  xorg_cv_cc_flag_unknown_warning_option=no
12644fi
12645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12646fi
12647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12648$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12649	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12650	CFLAGS="$xorg_testset_save_CFLAGS"
12651fi
12652
12653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12654	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12655		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12656	fi
12657	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12658	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12659$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12660if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12661  $as_echo_n "(cached) " >&6
12662else
12663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664/* end confdefs.h.  */
12665int i;
12666_ACEOF
12667if ac_fn_c_try_compile "$LINENO"; then :
12668  xorg_cv_cc_flag_unused_command_line_argument=yes
12669else
12670  xorg_cv_cc_flag_unused_command_line_argument=no
12671fi
12672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12673fi
12674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12675$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12676	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12677	CFLAGS="$xorg_testset_save_CFLAGS"
12678fi
12679
12680found="no"
12681
12682	if test $found = "no" ; then
12683		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12684			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12685		fi
12686
12687		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12688			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12689		fi
12690
12691		CFLAGS="$CFLAGS -Wmissing-prototypes"
12692
12693		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12694$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12695		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12696		if eval \${$cacheid+:} false; then :
12697  $as_echo_n "(cached) " >&6
12698else
12699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12700/* end confdefs.h.  */
12701int i;
12702int
12703main ()
12704{
12705
12706  ;
12707  return 0;
12708}
12709_ACEOF
12710if ac_fn_c_try_link "$LINENO"; then :
12711  eval $cacheid=yes
12712else
12713  eval $cacheid=no
12714fi
12715rm -f core conftest.err conftest.$ac_objext \
12716    conftest$ac_exeext conftest.$ac_ext
12717fi
12718
12719
12720		CFLAGS="$xorg_testset_save_CFLAGS"
12721
12722		eval supported=\$$cacheid
12723		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12724$as_echo "$supported" >&6; }
12725		if test "$supported" = "yes" ; then
12726			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12727			found="yes"
12728		fi
12729	fi
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745xorg_testset_save_CFLAGS="$CFLAGS"
12746
12747if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12748	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12749	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12750$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12751if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12752  $as_echo_n "(cached) " >&6
12753else
12754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755/* end confdefs.h.  */
12756int i;
12757_ACEOF
12758if ac_fn_c_try_compile "$LINENO"; then :
12759  xorg_cv_cc_flag_unknown_warning_option=yes
12760else
12761  xorg_cv_cc_flag_unknown_warning_option=no
12762fi
12763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12764fi
12765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12766$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12767	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12768	CFLAGS="$xorg_testset_save_CFLAGS"
12769fi
12770
12771if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12772	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12773		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12774	fi
12775	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12776	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12777$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12778if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12779  $as_echo_n "(cached) " >&6
12780else
12781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782/* end confdefs.h.  */
12783int i;
12784_ACEOF
12785if ac_fn_c_try_compile "$LINENO"; then :
12786  xorg_cv_cc_flag_unused_command_line_argument=yes
12787else
12788  xorg_cv_cc_flag_unused_command_line_argument=no
12789fi
12790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12791fi
12792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12793$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12794	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12795	CFLAGS="$xorg_testset_save_CFLAGS"
12796fi
12797
12798found="no"
12799
12800	if test $found = "no" ; then
12801		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12802			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12803		fi
12804
12805		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12806			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12807		fi
12808
12809		CFLAGS="$CFLAGS -Wnested-externs"
12810
12811		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12812$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12813		cacheid=xorg_cv_cc_flag__Wnested_externs
12814		if eval \${$cacheid+:} false; then :
12815  $as_echo_n "(cached) " >&6
12816else
12817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818/* end confdefs.h.  */
12819int i;
12820int
12821main ()
12822{
12823
12824  ;
12825  return 0;
12826}
12827_ACEOF
12828if ac_fn_c_try_link "$LINENO"; then :
12829  eval $cacheid=yes
12830else
12831  eval $cacheid=no
12832fi
12833rm -f core conftest.err conftest.$ac_objext \
12834    conftest$ac_exeext conftest.$ac_ext
12835fi
12836
12837
12838		CFLAGS="$xorg_testset_save_CFLAGS"
12839
12840		eval supported=\$$cacheid
12841		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12842$as_echo "$supported" >&6; }
12843		if test "$supported" = "yes" ; then
12844			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12845			found="yes"
12846		fi
12847	fi
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863xorg_testset_save_CFLAGS="$CFLAGS"
12864
12865if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12866	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12867	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12868$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12869if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12870  $as_echo_n "(cached) " >&6
12871else
12872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12873/* end confdefs.h.  */
12874int i;
12875_ACEOF
12876if ac_fn_c_try_compile "$LINENO"; then :
12877  xorg_cv_cc_flag_unknown_warning_option=yes
12878else
12879  xorg_cv_cc_flag_unknown_warning_option=no
12880fi
12881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12882fi
12883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12884$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12885	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12886	CFLAGS="$xorg_testset_save_CFLAGS"
12887fi
12888
12889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12890	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12891		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12892	fi
12893	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12894	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12895$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12896if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12897  $as_echo_n "(cached) " >&6
12898else
12899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12900/* end confdefs.h.  */
12901int i;
12902_ACEOF
12903if ac_fn_c_try_compile "$LINENO"; then :
12904  xorg_cv_cc_flag_unused_command_line_argument=yes
12905else
12906  xorg_cv_cc_flag_unused_command_line_argument=no
12907fi
12908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12909fi
12910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12911$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12912	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12913	CFLAGS="$xorg_testset_save_CFLAGS"
12914fi
12915
12916found="no"
12917
12918	if test $found = "no" ; then
12919		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12920			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12921		fi
12922
12923		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12924			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12925		fi
12926
12927		CFLAGS="$CFLAGS -Wbad-function-cast"
12928
12929		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12930$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12931		cacheid=xorg_cv_cc_flag__Wbad_function_cast
12932		if eval \${$cacheid+:} false; then :
12933  $as_echo_n "(cached) " >&6
12934else
12935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936/* end confdefs.h.  */
12937int i;
12938int
12939main ()
12940{
12941
12942  ;
12943  return 0;
12944}
12945_ACEOF
12946if ac_fn_c_try_link "$LINENO"; then :
12947  eval $cacheid=yes
12948else
12949  eval $cacheid=no
12950fi
12951rm -f core conftest.err conftest.$ac_objext \
12952    conftest$ac_exeext conftest.$ac_ext
12953fi
12954
12955
12956		CFLAGS="$xorg_testset_save_CFLAGS"
12957
12958		eval supported=\$$cacheid
12959		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12960$as_echo "$supported" >&6; }
12961		if test "$supported" = "yes" ; then
12962			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12963			found="yes"
12964		fi
12965	fi
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981xorg_testset_save_CFLAGS="$CFLAGS"
12982
12983if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12984	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12985	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12986$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12987if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12988  $as_echo_n "(cached) " >&6
12989else
12990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12991/* end confdefs.h.  */
12992int i;
12993_ACEOF
12994if ac_fn_c_try_compile "$LINENO"; then :
12995  xorg_cv_cc_flag_unknown_warning_option=yes
12996else
12997  xorg_cv_cc_flag_unknown_warning_option=no
12998fi
12999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13000fi
13001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13002$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13003	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13004	CFLAGS="$xorg_testset_save_CFLAGS"
13005fi
13006
13007if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13008	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13009		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13010	fi
13011	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13012	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13013$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13014if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13015  $as_echo_n "(cached) " >&6
13016else
13017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13018/* end confdefs.h.  */
13019int i;
13020_ACEOF
13021if ac_fn_c_try_compile "$LINENO"; then :
13022  xorg_cv_cc_flag_unused_command_line_argument=yes
13023else
13024  xorg_cv_cc_flag_unused_command_line_argument=no
13025fi
13026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13027fi
13028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13029$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13030	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13031	CFLAGS="$xorg_testset_save_CFLAGS"
13032fi
13033
13034found="no"
13035
13036	if test $found = "no" ; then
13037		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13038			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13039		fi
13040
13041		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13042			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13043		fi
13044
13045		CFLAGS="$CFLAGS -Wold-style-definition"
13046
13047		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13048$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13049		cacheid=xorg_cv_cc_flag__Wold_style_definition
13050		if eval \${$cacheid+:} false; then :
13051  $as_echo_n "(cached) " >&6
13052else
13053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13054/* end confdefs.h.  */
13055int i;
13056int
13057main ()
13058{
13059
13060  ;
13061  return 0;
13062}
13063_ACEOF
13064if ac_fn_c_try_link "$LINENO"; then :
13065  eval $cacheid=yes
13066else
13067  eval $cacheid=no
13068fi
13069rm -f core conftest.err conftest.$ac_objext \
13070    conftest$ac_exeext conftest.$ac_ext
13071fi
13072
13073
13074		CFLAGS="$xorg_testset_save_CFLAGS"
13075
13076		eval supported=\$$cacheid
13077		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13078$as_echo "$supported" >&6; }
13079		if test "$supported" = "yes" ; then
13080			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13081			found="yes"
13082		fi
13083	fi
13084
13085	if test $found = "no" ; then
13086		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13087			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13088		fi
13089
13090		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13091			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13092		fi
13093
13094		CFLAGS="$CFLAGS -fd"
13095
13096		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13097$as_echo_n "checking if $CC supports -fd... " >&6; }
13098		cacheid=xorg_cv_cc_flag__fd
13099		if eval \${$cacheid+:} false; then :
13100  $as_echo_n "(cached) " >&6
13101else
13102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13103/* end confdefs.h.  */
13104int i;
13105int
13106main ()
13107{
13108
13109  ;
13110  return 0;
13111}
13112_ACEOF
13113if ac_fn_c_try_link "$LINENO"; then :
13114  eval $cacheid=yes
13115else
13116  eval $cacheid=no
13117fi
13118rm -f core conftest.err conftest.$ac_objext \
13119    conftest$ac_exeext conftest.$ac_ext
13120fi
13121
13122
13123		CFLAGS="$xorg_testset_save_CFLAGS"
13124
13125		eval supported=\$$cacheid
13126		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13127$as_echo "$supported" >&6; }
13128		if test "$supported" = "yes" ; then
13129			BASE_CFLAGS="$BASE_CFLAGS -fd"
13130			found="yes"
13131		fi
13132	fi
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148xorg_testset_save_CFLAGS="$CFLAGS"
13149
13150if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13151	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13152	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13153$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13154if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13155  $as_echo_n "(cached) " >&6
13156else
13157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13158/* end confdefs.h.  */
13159int i;
13160_ACEOF
13161if ac_fn_c_try_compile "$LINENO"; then :
13162  xorg_cv_cc_flag_unknown_warning_option=yes
13163else
13164  xorg_cv_cc_flag_unknown_warning_option=no
13165fi
13166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13167fi
13168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13169$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13170	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13171	CFLAGS="$xorg_testset_save_CFLAGS"
13172fi
13173
13174if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13175	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13176		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13177	fi
13178	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13179	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13180$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13181if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13182  $as_echo_n "(cached) " >&6
13183else
13184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185/* end confdefs.h.  */
13186int i;
13187_ACEOF
13188if ac_fn_c_try_compile "$LINENO"; then :
13189  xorg_cv_cc_flag_unused_command_line_argument=yes
13190else
13191  xorg_cv_cc_flag_unused_command_line_argument=no
13192fi
13193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13194fi
13195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13196$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13197	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13198	CFLAGS="$xorg_testset_save_CFLAGS"
13199fi
13200
13201found="no"
13202
13203	if test $found = "no" ; then
13204		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13205			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13206		fi
13207
13208		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13209			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13210		fi
13211
13212		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13213
13214		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13215$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13216		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13217		if eval \${$cacheid+:} false; then :
13218  $as_echo_n "(cached) " >&6
13219else
13220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221/* end confdefs.h.  */
13222int i;
13223int
13224main ()
13225{
13226
13227  ;
13228  return 0;
13229}
13230_ACEOF
13231if ac_fn_c_try_link "$LINENO"; then :
13232  eval $cacheid=yes
13233else
13234  eval $cacheid=no
13235fi
13236rm -f core conftest.err conftest.$ac_objext \
13237    conftest$ac_exeext conftest.$ac_ext
13238fi
13239
13240
13241		CFLAGS="$xorg_testset_save_CFLAGS"
13242
13243		eval supported=\$$cacheid
13244		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13245$as_echo "$supported" >&6; }
13246		if test "$supported" = "yes" ; then
13247			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13248			found="yes"
13249		fi
13250	fi
13251
13252
13253
13254
13255
13256# This chunk adds additional warnings that could catch undesired effects.
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270xorg_testset_save_CFLAGS="$CFLAGS"
13271
13272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13273	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13274	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13275$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13276if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13277  $as_echo_n "(cached) " >&6
13278else
13279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13280/* end confdefs.h.  */
13281int i;
13282_ACEOF
13283if ac_fn_c_try_compile "$LINENO"; then :
13284  xorg_cv_cc_flag_unknown_warning_option=yes
13285else
13286  xorg_cv_cc_flag_unknown_warning_option=no
13287fi
13288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13289fi
13290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13291$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13292	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13293	CFLAGS="$xorg_testset_save_CFLAGS"
13294fi
13295
13296if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13297	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13298		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13299	fi
13300	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13301	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13302$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13303if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13304  $as_echo_n "(cached) " >&6
13305else
13306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13307/* end confdefs.h.  */
13308int i;
13309_ACEOF
13310if ac_fn_c_try_compile "$LINENO"; then :
13311  xorg_cv_cc_flag_unused_command_line_argument=yes
13312else
13313  xorg_cv_cc_flag_unused_command_line_argument=no
13314fi
13315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13316fi
13317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13318$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13319	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13320	CFLAGS="$xorg_testset_save_CFLAGS"
13321fi
13322
13323found="no"
13324
13325	if test $found = "no" ; then
13326		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13327			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13328		fi
13329
13330		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13331			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13332		fi
13333
13334		CFLAGS="$CFLAGS -Wunused"
13335
13336		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13337$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13338		cacheid=xorg_cv_cc_flag__Wunused
13339		if eval \${$cacheid+:} false; then :
13340  $as_echo_n "(cached) " >&6
13341else
13342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343/* end confdefs.h.  */
13344int i;
13345int
13346main ()
13347{
13348
13349  ;
13350  return 0;
13351}
13352_ACEOF
13353if ac_fn_c_try_link "$LINENO"; then :
13354  eval $cacheid=yes
13355else
13356  eval $cacheid=no
13357fi
13358rm -f core conftest.err conftest.$ac_objext \
13359    conftest$ac_exeext conftest.$ac_ext
13360fi
13361
13362
13363		CFLAGS="$xorg_testset_save_CFLAGS"
13364
13365		eval supported=\$$cacheid
13366		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13367$as_echo "$supported" >&6; }
13368		if test "$supported" = "yes" ; then
13369			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13370			found="yes"
13371		fi
13372	fi
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388xorg_testset_save_CFLAGS="$CFLAGS"
13389
13390if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13391	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13392	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13393$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13394if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13395  $as_echo_n "(cached) " >&6
13396else
13397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398/* end confdefs.h.  */
13399int i;
13400_ACEOF
13401if ac_fn_c_try_compile "$LINENO"; then :
13402  xorg_cv_cc_flag_unknown_warning_option=yes
13403else
13404  xorg_cv_cc_flag_unknown_warning_option=no
13405fi
13406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13407fi
13408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13409$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13410	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13411	CFLAGS="$xorg_testset_save_CFLAGS"
13412fi
13413
13414if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13415	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13416		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13417	fi
13418	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13419	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13420$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13421if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13422  $as_echo_n "(cached) " >&6
13423else
13424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425/* end confdefs.h.  */
13426int i;
13427_ACEOF
13428if ac_fn_c_try_compile "$LINENO"; then :
13429  xorg_cv_cc_flag_unused_command_line_argument=yes
13430else
13431  xorg_cv_cc_flag_unused_command_line_argument=no
13432fi
13433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13434fi
13435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13436$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13437	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13438	CFLAGS="$xorg_testset_save_CFLAGS"
13439fi
13440
13441found="no"
13442
13443	if test $found = "no" ; then
13444		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13445			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13446		fi
13447
13448		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13449			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13450		fi
13451
13452		CFLAGS="$CFLAGS -Wuninitialized"
13453
13454		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13455$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13456		cacheid=xorg_cv_cc_flag__Wuninitialized
13457		if eval \${$cacheid+:} false; then :
13458  $as_echo_n "(cached) " >&6
13459else
13460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13461/* end confdefs.h.  */
13462int i;
13463int
13464main ()
13465{
13466
13467  ;
13468  return 0;
13469}
13470_ACEOF
13471if ac_fn_c_try_link "$LINENO"; then :
13472  eval $cacheid=yes
13473else
13474  eval $cacheid=no
13475fi
13476rm -f core conftest.err conftest.$ac_objext \
13477    conftest$ac_exeext conftest.$ac_ext
13478fi
13479
13480
13481		CFLAGS="$xorg_testset_save_CFLAGS"
13482
13483		eval supported=\$$cacheid
13484		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13485$as_echo "$supported" >&6; }
13486		if test "$supported" = "yes" ; then
13487			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13488			found="yes"
13489		fi
13490	fi
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506xorg_testset_save_CFLAGS="$CFLAGS"
13507
13508if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13509	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13510	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13511$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13512if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13513  $as_echo_n "(cached) " >&6
13514else
13515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13516/* end confdefs.h.  */
13517int i;
13518_ACEOF
13519if ac_fn_c_try_compile "$LINENO"; then :
13520  xorg_cv_cc_flag_unknown_warning_option=yes
13521else
13522  xorg_cv_cc_flag_unknown_warning_option=no
13523fi
13524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13525fi
13526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13527$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13528	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13529	CFLAGS="$xorg_testset_save_CFLAGS"
13530fi
13531
13532if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13533	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13534		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13535	fi
13536	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13537	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13538$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13539if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13540  $as_echo_n "(cached) " >&6
13541else
13542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543/* end confdefs.h.  */
13544int i;
13545_ACEOF
13546if ac_fn_c_try_compile "$LINENO"; then :
13547  xorg_cv_cc_flag_unused_command_line_argument=yes
13548else
13549  xorg_cv_cc_flag_unused_command_line_argument=no
13550fi
13551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13552fi
13553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13554$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13555	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13556	CFLAGS="$xorg_testset_save_CFLAGS"
13557fi
13558
13559found="no"
13560
13561	if test $found = "no" ; then
13562		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13563			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13564		fi
13565
13566		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13567			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13568		fi
13569
13570		CFLAGS="$CFLAGS -Wshadow"
13571
13572		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13573$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13574		cacheid=xorg_cv_cc_flag__Wshadow
13575		if eval \${$cacheid+:} false; then :
13576  $as_echo_n "(cached) " >&6
13577else
13578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13579/* end confdefs.h.  */
13580int i;
13581int
13582main ()
13583{
13584
13585  ;
13586  return 0;
13587}
13588_ACEOF
13589if ac_fn_c_try_link "$LINENO"; then :
13590  eval $cacheid=yes
13591else
13592  eval $cacheid=no
13593fi
13594rm -f core conftest.err conftest.$ac_objext \
13595    conftest$ac_exeext conftest.$ac_ext
13596fi
13597
13598
13599		CFLAGS="$xorg_testset_save_CFLAGS"
13600
13601		eval supported=\$$cacheid
13602		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13603$as_echo "$supported" >&6; }
13604		if test "$supported" = "yes" ; then
13605			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13606			found="yes"
13607		fi
13608	fi
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624xorg_testset_save_CFLAGS="$CFLAGS"
13625
13626if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13627	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13628	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13629$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13630if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13631  $as_echo_n "(cached) " >&6
13632else
13633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634/* end confdefs.h.  */
13635int i;
13636_ACEOF
13637if ac_fn_c_try_compile "$LINENO"; then :
13638  xorg_cv_cc_flag_unknown_warning_option=yes
13639else
13640  xorg_cv_cc_flag_unknown_warning_option=no
13641fi
13642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13643fi
13644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13645$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13646	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13647	CFLAGS="$xorg_testset_save_CFLAGS"
13648fi
13649
13650if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13651	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13652		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13653	fi
13654	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13655	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13656$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13657if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13658  $as_echo_n "(cached) " >&6
13659else
13660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661/* end confdefs.h.  */
13662int i;
13663_ACEOF
13664if ac_fn_c_try_compile "$LINENO"; then :
13665  xorg_cv_cc_flag_unused_command_line_argument=yes
13666else
13667  xorg_cv_cc_flag_unused_command_line_argument=no
13668fi
13669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13670fi
13671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13672$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13673	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13674	CFLAGS="$xorg_testset_save_CFLAGS"
13675fi
13676
13677found="no"
13678
13679	if test $found = "no" ; then
13680		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13681			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13682		fi
13683
13684		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13685			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13686		fi
13687
13688		CFLAGS="$CFLAGS -Wmissing-noreturn"
13689
13690		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13691$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13692		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13693		if eval \${$cacheid+:} false; then :
13694  $as_echo_n "(cached) " >&6
13695else
13696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697/* end confdefs.h.  */
13698int i;
13699int
13700main ()
13701{
13702
13703  ;
13704  return 0;
13705}
13706_ACEOF
13707if ac_fn_c_try_link "$LINENO"; then :
13708  eval $cacheid=yes
13709else
13710  eval $cacheid=no
13711fi
13712rm -f core conftest.err conftest.$ac_objext \
13713    conftest$ac_exeext conftest.$ac_ext
13714fi
13715
13716
13717		CFLAGS="$xorg_testset_save_CFLAGS"
13718
13719		eval supported=\$$cacheid
13720		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13721$as_echo "$supported" >&6; }
13722		if test "$supported" = "yes" ; then
13723			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13724			found="yes"
13725		fi
13726	fi
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742xorg_testset_save_CFLAGS="$CFLAGS"
13743
13744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13745	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13746	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13747$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13748if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13749  $as_echo_n "(cached) " >&6
13750else
13751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13752/* end confdefs.h.  */
13753int i;
13754_ACEOF
13755if ac_fn_c_try_compile "$LINENO"; then :
13756  xorg_cv_cc_flag_unknown_warning_option=yes
13757else
13758  xorg_cv_cc_flag_unknown_warning_option=no
13759fi
13760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13761fi
13762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13763$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13764	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13765	CFLAGS="$xorg_testset_save_CFLAGS"
13766fi
13767
13768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13769	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13770		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13771	fi
13772	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13773	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13774$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13775if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13776  $as_echo_n "(cached) " >&6
13777else
13778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779/* end confdefs.h.  */
13780int i;
13781_ACEOF
13782if ac_fn_c_try_compile "$LINENO"; then :
13783  xorg_cv_cc_flag_unused_command_line_argument=yes
13784else
13785  xorg_cv_cc_flag_unused_command_line_argument=no
13786fi
13787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13788fi
13789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13790$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13791	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13792	CFLAGS="$xorg_testset_save_CFLAGS"
13793fi
13794
13795found="no"
13796
13797	if test $found = "no" ; then
13798		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13799			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13800		fi
13801
13802		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13803			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13804		fi
13805
13806		CFLAGS="$CFLAGS -Wmissing-format-attribute"
13807
13808		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13809$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13810		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13811		if eval \${$cacheid+:} false; then :
13812  $as_echo_n "(cached) " >&6
13813else
13814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13815/* end confdefs.h.  */
13816int i;
13817int
13818main ()
13819{
13820
13821  ;
13822  return 0;
13823}
13824_ACEOF
13825if ac_fn_c_try_link "$LINENO"; then :
13826  eval $cacheid=yes
13827else
13828  eval $cacheid=no
13829fi
13830rm -f core conftest.err conftest.$ac_objext \
13831    conftest$ac_exeext conftest.$ac_ext
13832fi
13833
13834
13835		CFLAGS="$xorg_testset_save_CFLAGS"
13836
13837		eval supported=\$$cacheid
13838		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13839$as_echo "$supported" >&6; }
13840		if test "$supported" = "yes" ; then
13841			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13842			found="yes"
13843		fi
13844	fi
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860xorg_testset_save_CFLAGS="$CFLAGS"
13861
13862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13863	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13864	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13865$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13866if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13867  $as_echo_n "(cached) " >&6
13868else
13869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870/* end confdefs.h.  */
13871int i;
13872_ACEOF
13873if ac_fn_c_try_compile "$LINENO"; then :
13874  xorg_cv_cc_flag_unknown_warning_option=yes
13875else
13876  xorg_cv_cc_flag_unknown_warning_option=no
13877fi
13878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13879fi
13880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13881$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13882	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13883	CFLAGS="$xorg_testset_save_CFLAGS"
13884fi
13885
13886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13887	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13888		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13889	fi
13890	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13891	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13892$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13893if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13894  $as_echo_n "(cached) " >&6
13895else
13896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13897/* end confdefs.h.  */
13898int i;
13899_ACEOF
13900if ac_fn_c_try_compile "$LINENO"; then :
13901  xorg_cv_cc_flag_unused_command_line_argument=yes
13902else
13903  xorg_cv_cc_flag_unused_command_line_argument=no
13904fi
13905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13906fi
13907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13908$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13909	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13910	CFLAGS="$xorg_testset_save_CFLAGS"
13911fi
13912
13913found="no"
13914
13915	if test $found = "no" ; then
13916		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13917			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13918		fi
13919
13920		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13921			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13922		fi
13923
13924		CFLAGS="$CFLAGS -Wredundant-decls"
13925
13926		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13927$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13928		cacheid=xorg_cv_cc_flag__Wredundant_decls
13929		if eval \${$cacheid+:} false; then :
13930  $as_echo_n "(cached) " >&6
13931else
13932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933/* end confdefs.h.  */
13934int i;
13935int
13936main ()
13937{
13938
13939  ;
13940  return 0;
13941}
13942_ACEOF
13943if ac_fn_c_try_link "$LINENO"; then :
13944  eval $cacheid=yes
13945else
13946  eval $cacheid=no
13947fi
13948rm -f core conftest.err conftest.$ac_objext \
13949    conftest$ac_exeext conftest.$ac_ext
13950fi
13951
13952
13953		CFLAGS="$xorg_testset_save_CFLAGS"
13954
13955		eval supported=\$$cacheid
13956		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13957$as_echo "$supported" >&6; }
13958		if test "$supported" = "yes" ; then
13959			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13960			found="yes"
13961		fi
13962	fi
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978xorg_testset_save_CFLAGS="$CFLAGS"
13979
13980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13981	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13982	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13983$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13984if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13985  $as_echo_n "(cached) " >&6
13986else
13987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988/* end confdefs.h.  */
13989int i;
13990_ACEOF
13991if ac_fn_c_try_compile "$LINENO"; then :
13992  xorg_cv_cc_flag_unknown_warning_option=yes
13993else
13994  xorg_cv_cc_flag_unknown_warning_option=no
13995fi
13996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997fi
13998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13999$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14000	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14001	CFLAGS="$xorg_testset_save_CFLAGS"
14002fi
14003
14004if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14005	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14006		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14007	fi
14008	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14009	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14010$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14011if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14012  $as_echo_n "(cached) " >&6
14013else
14014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14015/* end confdefs.h.  */
14016int i;
14017_ACEOF
14018if ac_fn_c_try_compile "$LINENO"; then :
14019  xorg_cv_cc_flag_unused_command_line_argument=yes
14020else
14021  xorg_cv_cc_flag_unused_command_line_argument=no
14022fi
14023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14024fi
14025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14026$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14027	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14028	CFLAGS="$xorg_testset_save_CFLAGS"
14029fi
14030
14031found="no"
14032
14033	if test $found = "no" ; then
14034		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14035			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14036		fi
14037
14038		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14039			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14040		fi
14041
14042		CFLAGS="$CFLAGS -Wlogical-op"
14043
14044		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14045$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14046		cacheid=xorg_cv_cc_flag__Wlogical_op
14047		if eval \${$cacheid+:} false; then :
14048  $as_echo_n "(cached) " >&6
14049else
14050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14051/* end confdefs.h.  */
14052int i;
14053int
14054main ()
14055{
14056
14057  ;
14058  return 0;
14059}
14060_ACEOF
14061if ac_fn_c_try_link "$LINENO"; then :
14062  eval $cacheid=yes
14063else
14064  eval $cacheid=no
14065fi
14066rm -f core conftest.err conftest.$ac_objext \
14067    conftest$ac_exeext conftest.$ac_ext
14068fi
14069
14070
14071		CFLAGS="$xorg_testset_save_CFLAGS"
14072
14073		eval supported=\$$cacheid
14074		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14075$as_echo "$supported" >&6; }
14076		if test "$supported" = "yes" ; then
14077			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14078			found="yes"
14079		fi
14080	fi
14081
14082
14083
14084# These are currently disabled because they are noisy.  They will be enabled
14085# in the future once the codebase is sufficiently modernized to silence
14086# them.  For now, I don't want them to drown out the other warnings.
14087# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14088# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14089# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14090
14091# Turn some warnings into errors, so we don't accidently get successful builds
14092# when there are problems that should be fixed.
14093
14094if test "x$SELECTIVE_WERROR" = "xyes" ; then
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108xorg_testset_save_CFLAGS="$CFLAGS"
14109
14110if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14111	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14112	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14113$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14114if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14115  $as_echo_n "(cached) " >&6
14116else
14117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118/* end confdefs.h.  */
14119int i;
14120_ACEOF
14121if ac_fn_c_try_compile "$LINENO"; then :
14122  xorg_cv_cc_flag_unknown_warning_option=yes
14123else
14124  xorg_cv_cc_flag_unknown_warning_option=no
14125fi
14126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14127fi
14128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14129$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14130	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14131	CFLAGS="$xorg_testset_save_CFLAGS"
14132fi
14133
14134if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14135	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14136		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14137	fi
14138	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14139	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14140$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14141if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14142  $as_echo_n "(cached) " >&6
14143else
14144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145/* end confdefs.h.  */
14146int i;
14147_ACEOF
14148if ac_fn_c_try_compile "$LINENO"; then :
14149  xorg_cv_cc_flag_unused_command_line_argument=yes
14150else
14151  xorg_cv_cc_flag_unused_command_line_argument=no
14152fi
14153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14154fi
14155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14156$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14157	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14158	CFLAGS="$xorg_testset_save_CFLAGS"
14159fi
14160
14161found="no"
14162
14163	if test $found = "no" ; then
14164		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14165			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14166		fi
14167
14168		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14169			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14170		fi
14171
14172		CFLAGS="$CFLAGS -Werror=implicit"
14173
14174		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14175$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14176		cacheid=xorg_cv_cc_flag__Werror_implicit
14177		if eval \${$cacheid+:} false; then :
14178  $as_echo_n "(cached) " >&6
14179else
14180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181/* end confdefs.h.  */
14182int i;
14183int
14184main ()
14185{
14186
14187  ;
14188  return 0;
14189}
14190_ACEOF
14191if ac_fn_c_try_link "$LINENO"; then :
14192  eval $cacheid=yes
14193else
14194  eval $cacheid=no
14195fi
14196rm -f core conftest.err conftest.$ac_objext \
14197    conftest$ac_exeext conftest.$ac_ext
14198fi
14199
14200
14201		CFLAGS="$xorg_testset_save_CFLAGS"
14202
14203		eval supported=\$$cacheid
14204		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14205$as_echo "$supported" >&6; }
14206		if test "$supported" = "yes" ; then
14207			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14208			found="yes"
14209		fi
14210	fi
14211
14212	if test $found = "no" ; then
14213		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14214			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14215		fi
14216
14217		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14218			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14219		fi
14220
14221		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14222
14223		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14224$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14225		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14226		if eval \${$cacheid+:} false; then :
14227  $as_echo_n "(cached) " >&6
14228else
14229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14230/* end confdefs.h.  */
14231int i;
14232int
14233main ()
14234{
14235
14236  ;
14237  return 0;
14238}
14239_ACEOF
14240if ac_fn_c_try_link "$LINENO"; then :
14241  eval $cacheid=yes
14242else
14243  eval $cacheid=no
14244fi
14245rm -f core conftest.err conftest.$ac_objext \
14246    conftest$ac_exeext conftest.$ac_ext
14247fi
14248
14249
14250		CFLAGS="$xorg_testset_save_CFLAGS"
14251
14252		eval supported=\$$cacheid
14253		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14254$as_echo "$supported" >&6; }
14255		if test "$supported" = "yes" ; then
14256			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14257			found="yes"
14258		fi
14259	fi
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275xorg_testset_save_CFLAGS="$CFLAGS"
14276
14277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14278	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14279	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14280$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14281if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14282  $as_echo_n "(cached) " >&6
14283else
14284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14285/* end confdefs.h.  */
14286int i;
14287_ACEOF
14288if ac_fn_c_try_compile "$LINENO"; then :
14289  xorg_cv_cc_flag_unknown_warning_option=yes
14290else
14291  xorg_cv_cc_flag_unknown_warning_option=no
14292fi
14293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14294fi
14295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14296$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14297	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14298	CFLAGS="$xorg_testset_save_CFLAGS"
14299fi
14300
14301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14302	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14303		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14304	fi
14305	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14306	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14307$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14308if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14309  $as_echo_n "(cached) " >&6
14310else
14311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14312/* end confdefs.h.  */
14313int i;
14314_ACEOF
14315if ac_fn_c_try_compile "$LINENO"; then :
14316  xorg_cv_cc_flag_unused_command_line_argument=yes
14317else
14318  xorg_cv_cc_flag_unused_command_line_argument=no
14319fi
14320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14321fi
14322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14323$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14324	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14325	CFLAGS="$xorg_testset_save_CFLAGS"
14326fi
14327
14328found="no"
14329
14330	if test $found = "no" ; then
14331		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14332			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14333		fi
14334
14335		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14336			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14337		fi
14338
14339		CFLAGS="$CFLAGS -Werror=nonnull"
14340
14341		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14342$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14343		cacheid=xorg_cv_cc_flag__Werror_nonnull
14344		if eval \${$cacheid+:} false; then :
14345  $as_echo_n "(cached) " >&6
14346else
14347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14348/* end confdefs.h.  */
14349int i;
14350int
14351main ()
14352{
14353
14354  ;
14355  return 0;
14356}
14357_ACEOF
14358if ac_fn_c_try_link "$LINENO"; then :
14359  eval $cacheid=yes
14360else
14361  eval $cacheid=no
14362fi
14363rm -f core conftest.err conftest.$ac_objext \
14364    conftest$ac_exeext conftest.$ac_ext
14365fi
14366
14367
14368		CFLAGS="$xorg_testset_save_CFLAGS"
14369
14370		eval supported=\$$cacheid
14371		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14372$as_echo "$supported" >&6; }
14373		if test "$supported" = "yes" ; then
14374			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14375			found="yes"
14376		fi
14377	fi
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393xorg_testset_save_CFLAGS="$CFLAGS"
14394
14395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14396	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14397	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14398$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14399if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14400  $as_echo_n "(cached) " >&6
14401else
14402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403/* end confdefs.h.  */
14404int i;
14405_ACEOF
14406if ac_fn_c_try_compile "$LINENO"; then :
14407  xorg_cv_cc_flag_unknown_warning_option=yes
14408else
14409  xorg_cv_cc_flag_unknown_warning_option=no
14410fi
14411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14412fi
14413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14414$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14415	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14416	CFLAGS="$xorg_testset_save_CFLAGS"
14417fi
14418
14419if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14420	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14421		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14422	fi
14423	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14424	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14425$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14426if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14427  $as_echo_n "(cached) " >&6
14428else
14429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14430/* end confdefs.h.  */
14431int i;
14432_ACEOF
14433if ac_fn_c_try_compile "$LINENO"; then :
14434  xorg_cv_cc_flag_unused_command_line_argument=yes
14435else
14436  xorg_cv_cc_flag_unused_command_line_argument=no
14437fi
14438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14439fi
14440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14441$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14442	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14443	CFLAGS="$xorg_testset_save_CFLAGS"
14444fi
14445
14446found="no"
14447
14448	if test $found = "no" ; then
14449		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14450			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14451		fi
14452
14453		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14454			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14455		fi
14456
14457		CFLAGS="$CFLAGS -Werror=init-self"
14458
14459		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14460$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14461		cacheid=xorg_cv_cc_flag__Werror_init_self
14462		if eval \${$cacheid+:} false; then :
14463  $as_echo_n "(cached) " >&6
14464else
14465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14466/* end confdefs.h.  */
14467int i;
14468int
14469main ()
14470{
14471
14472  ;
14473  return 0;
14474}
14475_ACEOF
14476if ac_fn_c_try_link "$LINENO"; then :
14477  eval $cacheid=yes
14478else
14479  eval $cacheid=no
14480fi
14481rm -f core conftest.err conftest.$ac_objext \
14482    conftest$ac_exeext conftest.$ac_ext
14483fi
14484
14485
14486		CFLAGS="$xorg_testset_save_CFLAGS"
14487
14488		eval supported=\$$cacheid
14489		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14490$as_echo "$supported" >&6; }
14491		if test "$supported" = "yes" ; then
14492			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14493			found="yes"
14494		fi
14495	fi
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511xorg_testset_save_CFLAGS="$CFLAGS"
14512
14513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14514	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14515	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14516$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14517if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14518  $as_echo_n "(cached) " >&6
14519else
14520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14521/* end confdefs.h.  */
14522int i;
14523_ACEOF
14524if ac_fn_c_try_compile "$LINENO"; then :
14525  xorg_cv_cc_flag_unknown_warning_option=yes
14526else
14527  xorg_cv_cc_flag_unknown_warning_option=no
14528fi
14529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14530fi
14531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14532$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14533	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14534	CFLAGS="$xorg_testset_save_CFLAGS"
14535fi
14536
14537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14538	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14539		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14540	fi
14541	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14542	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14543$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14544if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14545  $as_echo_n "(cached) " >&6
14546else
14547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14548/* end confdefs.h.  */
14549int i;
14550_ACEOF
14551if ac_fn_c_try_compile "$LINENO"; then :
14552  xorg_cv_cc_flag_unused_command_line_argument=yes
14553else
14554  xorg_cv_cc_flag_unused_command_line_argument=no
14555fi
14556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14557fi
14558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14559$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14560	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14561	CFLAGS="$xorg_testset_save_CFLAGS"
14562fi
14563
14564found="no"
14565
14566	if test $found = "no" ; then
14567		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14568			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14569		fi
14570
14571		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14572			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14573		fi
14574
14575		CFLAGS="$CFLAGS -Werror=main"
14576
14577		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14578$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14579		cacheid=xorg_cv_cc_flag__Werror_main
14580		if eval \${$cacheid+:} false; then :
14581  $as_echo_n "(cached) " >&6
14582else
14583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14584/* end confdefs.h.  */
14585int i;
14586int
14587main ()
14588{
14589
14590  ;
14591  return 0;
14592}
14593_ACEOF
14594if ac_fn_c_try_link "$LINENO"; then :
14595  eval $cacheid=yes
14596else
14597  eval $cacheid=no
14598fi
14599rm -f core conftest.err conftest.$ac_objext \
14600    conftest$ac_exeext conftest.$ac_ext
14601fi
14602
14603
14604		CFLAGS="$xorg_testset_save_CFLAGS"
14605
14606		eval supported=\$$cacheid
14607		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14608$as_echo "$supported" >&6; }
14609		if test "$supported" = "yes" ; then
14610			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14611			found="yes"
14612		fi
14613	fi
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629xorg_testset_save_CFLAGS="$CFLAGS"
14630
14631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14632	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14633	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14634$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14635if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14636  $as_echo_n "(cached) " >&6
14637else
14638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14639/* end confdefs.h.  */
14640int i;
14641_ACEOF
14642if ac_fn_c_try_compile "$LINENO"; then :
14643  xorg_cv_cc_flag_unknown_warning_option=yes
14644else
14645  xorg_cv_cc_flag_unknown_warning_option=no
14646fi
14647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14648fi
14649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14650$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14651	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14652	CFLAGS="$xorg_testset_save_CFLAGS"
14653fi
14654
14655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14656	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14657		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14658	fi
14659	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14660	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14661$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14662if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14663  $as_echo_n "(cached) " >&6
14664else
14665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14666/* end confdefs.h.  */
14667int i;
14668_ACEOF
14669if ac_fn_c_try_compile "$LINENO"; then :
14670  xorg_cv_cc_flag_unused_command_line_argument=yes
14671else
14672  xorg_cv_cc_flag_unused_command_line_argument=no
14673fi
14674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14675fi
14676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14677$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14678	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14679	CFLAGS="$xorg_testset_save_CFLAGS"
14680fi
14681
14682found="no"
14683
14684	if test $found = "no" ; then
14685		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14686			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14687		fi
14688
14689		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14690			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14691		fi
14692
14693		CFLAGS="$CFLAGS -Werror=missing-braces"
14694
14695		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14696$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14697		cacheid=xorg_cv_cc_flag__Werror_missing_braces
14698		if eval \${$cacheid+:} false; then :
14699  $as_echo_n "(cached) " >&6
14700else
14701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14702/* end confdefs.h.  */
14703int i;
14704int
14705main ()
14706{
14707
14708  ;
14709  return 0;
14710}
14711_ACEOF
14712if ac_fn_c_try_link "$LINENO"; then :
14713  eval $cacheid=yes
14714else
14715  eval $cacheid=no
14716fi
14717rm -f core conftest.err conftest.$ac_objext \
14718    conftest$ac_exeext conftest.$ac_ext
14719fi
14720
14721
14722		CFLAGS="$xorg_testset_save_CFLAGS"
14723
14724		eval supported=\$$cacheid
14725		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14726$as_echo "$supported" >&6; }
14727		if test "$supported" = "yes" ; then
14728			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14729			found="yes"
14730		fi
14731	fi
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747xorg_testset_save_CFLAGS="$CFLAGS"
14748
14749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14750	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14751	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14752$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14753if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14754  $as_echo_n "(cached) " >&6
14755else
14756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757/* end confdefs.h.  */
14758int i;
14759_ACEOF
14760if ac_fn_c_try_compile "$LINENO"; then :
14761  xorg_cv_cc_flag_unknown_warning_option=yes
14762else
14763  xorg_cv_cc_flag_unknown_warning_option=no
14764fi
14765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14766fi
14767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14768$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14769	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14770	CFLAGS="$xorg_testset_save_CFLAGS"
14771fi
14772
14773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14774	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14775		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14776	fi
14777	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14778	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14779$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14780if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14781  $as_echo_n "(cached) " >&6
14782else
14783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14784/* end confdefs.h.  */
14785int i;
14786_ACEOF
14787if ac_fn_c_try_compile "$LINENO"; then :
14788  xorg_cv_cc_flag_unused_command_line_argument=yes
14789else
14790  xorg_cv_cc_flag_unused_command_line_argument=no
14791fi
14792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14793fi
14794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14795$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14796	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14797	CFLAGS="$xorg_testset_save_CFLAGS"
14798fi
14799
14800found="no"
14801
14802	if test $found = "no" ; then
14803		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14804			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14805		fi
14806
14807		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14808			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14809		fi
14810
14811		CFLAGS="$CFLAGS -Werror=sequence-point"
14812
14813		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14814$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14815		cacheid=xorg_cv_cc_flag__Werror_sequence_point
14816		if eval \${$cacheid+:} false; then :
14817  $as_echo_n "(cached) " >&6
14818else
14819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14820/* end confdefs.h.  */
14821int i;
14822int
14823main ()
14824{
14825
14826  ;
14827  return 0;
14828}
14829_ACEOF
14830if ac_fn_c_try_link "$LINENO"; then :
14831  eval $cacheid=yes
14832else
14833  eval $cacheid=no
14834fi
14835rm -f core conftest.err conftest.$ac_objext \
14836    conftest$ac_exeext conftest.$ac_ext
14837fi
14838
14839
14840		CFLAGS="$xorg_testset_save_CFLAGS"
14841
14842		eval supported=\$$cacheid
14843		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14844$as_echo "$supported" >&6; }
14845		if test "$supported" = "yes" ; then
14846			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14847			found="yes"
14848		fi
14849	fi
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865xorg_testset_save_CFLAGS="$CFLAGS"
14866
14867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14868	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14869	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14870$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14871if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14872  $as_echo_n "(cached) " >&6
14873else
14874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875/* end confdefs.h.  */
14876int i;
14877_ACEOF
14878if ac_fn_c_try_compile "$LINENO"; then :
14879  xorg_cv_cc_flag_unknown_warning_option=yes
14880else
14881  xorg_cv_cc_flag_unknown_warning_option=no
14882fi
14883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14884fi
14885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14886$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14887	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14888	CFLAGS="$xorg_testset_save_CFLAGS"
14889fi
14890
14891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14892	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14893		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14894	fi
14895	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14896	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14897$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14898if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14899  $as_echo_n "(cached) " >&6
14900else
14901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902/* end confdefs.h.  */
14903int i;
14904_ACEOF
14905if ac_fn_c_try_compile "$LINENO"; then :
14906  xorg_cv_cc_flag_unused_command_line_argument=yes
14907else
14908  xorg_cv_cc_flag_unused_command_line_argument=no
14909fi
14910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14911fi
14912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14913$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14914	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14915	CFLAGS="$xorg_testset_save_CFLAGS"
14916fi
14917
14918found="no"
14919
14920	if test $found = "no" ; then
14921		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14922			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14923		fi
14924
14925		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14926			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14927		fi
14928
14929		CFLAGS="$CFLAGS -Werror=return-type"
14930
14931		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14932$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14933		cacheid=xorg_cv_cc_flag__Werror_return_type
14934		if eval \${$cacheid+:} false; then :
14935  $as_echo_n "(cached) " >&6
14936else
14937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14938/* end confdefs.h.  */
14939int i;
14940int
14941main ()
14942{
14943
14944  ;
14945  return 0;
14946}
14947_ACEOF
14948if ac_fn_c_try_link "$LINENO"; then :
14949  eval $cacheid=yes
14950else
14951  eval $cacheid=no
14952fi
14953rm -f core conftest.err conftest.$ac_objext \
14954    conftest$ac_exeext conftest.$ac_ext
14955fi
14956
14957
14958		CFLAGS="$xorg_testset_save_CFLAGS"
14959
14960		eval supported=\$$cacheid
14961		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14962$as_echo "$supported" >&6; }
14963		if test "$supported" = "yes" ; then
14964			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14965			found="yes"
14966		fi
14967	fi
14968
14969	if test $found = "no" ; then
14970		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14971			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14972		fi
14973
14974		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14975			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14976		fi
14977
14978		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14979
14980		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14981$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14982		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
14983		if eval \${$cacheid+:} false; then :
14984  $as_echo_n "(cached) " >&6
14985else
14986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14987/* end confdefs.h.  */
14988int i;
14989int
14990main ()
14991{
14992
14993  ;
14994  return 0;
14995}
14996_ACEOF
14997if ac_fn_c_try_link "$LINENO"; then :
14998  eval $cacheid=yes
14999else
15000  eval $cacheid=no
15001fi
15002rm -f core conftest.err conftest.$ac_objext \
15003    conftest$ac_exeext conftest.$ac_ext
15004fi
15005
15006
15007		CFLAGS="$xorg_testset_save_CFLAGS"
15008
15009		eval supported=\$$cacheid
15010		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15011$as_echo "$supported" >&6; }
15012		if test "$supported" = "yes" ; then
15013			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15014			found="yes"
15015		fi
15016	fi
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032xorg_testset_save_CFLAGS="$CFLAGS"
15033
15034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15035	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15036	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15037$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15038if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15039  $as_echo_n "(cached) " >&6
15040else
15041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15042/* end confdefs.h.  */
15043int i;
15044_ACEOF
15045if ac_fn_c_try_compile "$LINENO"; then :
15046  xorg_cv_cc_flag_unknown_warning_option=yes
15047else
15048  xorg_cv_cc_flag_unknown_warning_option=no
15049fi
15050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15051fi
15052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15053$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15054	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15055	CFLAGS="$xorg_testset_save_CFLAGS"
15056fi
15057
15058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15059	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15060		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15061	fi
15062	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15063	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15064$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15065if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15066  $as_echo_n "(cached) " >&6
15067else
15068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15069/* end confdefs.h.  */
15070int i;
15071_ACEOF
15072if ac_fn_c_try_compile "$LINENO"; then :
15073  xorg_cv_cc_flag_unused_command_line_argument=yes
15074else
15075  xorg_cv_cc_flag_unused_command_line_argument=no
15076fi
15077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15078fi
15079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15080$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15081	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15082	CFLAGS="$xorg_testset_save_CFLAGS"
15083fi
15084
15085found="no"
15086
15087	if test $found = "no" ; then
15088		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15089			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15090		fi
15091
15092		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15093			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15094		fi
15095
15096		CFLAGS="$CFLAGS -Werror=trigraphs"
15097
15098		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15099$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15100		cacheid=xorg_cv_cc_flag__Werror_trigraphs
15101		if eval \${$cacheid+:} false; then :
15102  $as_echo_n "(cached) " >&6
15103else
15104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105/* end confdefs.h.  */
15106int i;
15107int
15108main ()
15109{
15110
15111  ;
15112  return 0;
15113}
15114_ACEOF
15115if ac_fn_c_try_link "$LINENO"; then :
15116  eval $cacheid=yes
15117else
15118  eval $cacheid=no
15119fi
15120rm -f core conftest.err conftest.$ac_objext \
15121    conftest$ac_exeext conftest.$ac_ext
15122fi
15123
15124
15125		CFLAGS="$xorg_testset_save_CFLAGS"
15126
15127		eval supported=\$$cacheid
15128		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15129$as_echo "$supported" >&6; }
15130		if test "$supported" = "yes" ; then
15131			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15132			found="yes"
15133		fi
15134	fi
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150xorg_testset_save_CFLAGS="$CFLAGS"
15151
15152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15153	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15154	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15155$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15156if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15157  $as_echo_n "(cached) " >&6
15158else
15159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15160/* end confdefs.h.  */
15161int i;
15162_ACEOF
15163if ac_fn_c_try_compile "$LINENO"; then :
15164  xorg_cv_cc_flag_unknown_warning_option=yes
15165else
15166  xorg_cv_cc_flag_unknown_warning_option=no
15167fi
15168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15169fi
15170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15171$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15172	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15173	CFLAGS="$xorg_testset_save_CFLAGS"
15174fi
15175
15176if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15177	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15178		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15179	fi
15180	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15181	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15182$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15183if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15184  $as_echo_n "(cached) " >&6
15185else
15186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15187/* end confdefs.h.  */
15188int i;
15189_ACEOF
15190if ac_fn_c_try_compile "$LINENO"; then :
15191  xorg_cv_cc_flag_unused_command_line_argument=yes
15192else
15193  xorg_cv_cc_flag_unused_command_line_argument=no
15194fi
15195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15196fi
15197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15198$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15199	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15200	CFLAGS="$xorg_testset_save_CFLAGS"
15201fi
15202
15203found="no"
15204
15205	if test $found = "no" ; then
15206		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15207			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15208		fi
15209
15210		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15211			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15212		fi
15213
15214		CFLAGS="$CFLAGS -Werror=array-bounds"
15215
15216		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15217$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15218		cacheid=xorg_cv_cc_flag__Werror_array_bounds
15219		if eval \${$cacheid+:} false; then :
15220  $as_echo_n "(cached) " >&6
15221else
15222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223/* end confdefs.h.  */
15224int i;
15225int
15226main ()
15227{
15228
15229  ;
15230  return 0;
15231}
15232_ACEOF
15233if ac_fn_c_try_link "$LINENO"; then :
15234  eval $cacheid=yes
15235else
15236  eval $cacheid=no
15237fi
15238rm -f core conftest.err conftest.$ac_objext \
15239    conftest$ac_exeext conftest.$ac_ext
15240fi
15241
15242
15243		CFLAGS="$xorg_testset_save_CFLAGS"
15244
15245		eval supported=\$$cacheid
15246		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15247$as_echo "$supported" >&6; }
15248		if test "$supported" = "yes" ; then
15249			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15250			found="yes"
15251		fi
15252	fi
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268xorg_testset_save_CFLAGS="$CFLAGS"
15269
15270if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15271	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15272	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15273$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15274if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15275  $as_echo_n "(cached) " >&6
15276else
15277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15278/* end confdefs.h.  */
15279int i;
15280_ACEOF
15281if ac_fn_c_try_compile "$LINENO"; then :
15282  xorg_cv_cc_flag_unknown_warning_option=yes
15283else
15284  xorg_cv_cc_flag_unknown_warning_option=no
15285fi
15286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15287fi
15288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15289$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15290	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15291	CFLAGS="$xorg_testset_save_CFLAGS"
15292fi
15293
15294if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15295	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15296		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15297	fi
15298	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15299	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15300$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15301if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15302  $as_echo_n "(cached) " >&6
15303else
15304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15305/* end confdefs.h.  */
15306int i;
15307_ACEOF
15308if ac_fn_c_try_compile "$LINENO"; then :
15309  xorg_cv_cc_flag_unused_command_line_argument=yes
15310else
15311  xorg_cv_cc_flag_unused_command_line_argument=no
15312fi
15313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15314fi
15315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15316$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15317	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15318	CFLAGS="$xorg_testset_save_CFLAGS"
15319fi
15320
15321found="no"
15322
15323	if test $found = "no" ; then
15324		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15325			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15326		fi
15327
15328		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15329			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15330		fi
15331
15332		CFLAGS="$CFLAGS -Werror=write-strings"
15333
15334		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15335$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15336		cacheid=xorg_cv_cc_flag__Werror_write_strings
15337		if eval \${$cacheid+:} false; then :
15338  $as_echo_n "(cached) " >&6
15339else
15340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15341/* end confdefs.h.  */
15342int i;
15343int
15344main ()
15345{
15346
15347  ;
15348  return 0;
15349}
15350_ACEOF
15351if ac_fn_c_try_link "$LINENO"; then :
15352  eval $cacheid=yes
15353else
15354  eval $cacheid=no
15355fi
15356rm -f core conftest.err conftest.$ac_objext \
15357    conftest$ac_exeext conftest.$ac_ext
15358fi
15359
15360
15361		CFLAGS="$xorg_testset_save_CFLAGS"
15362
15363		eval supported=\$$cacheid
15364		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15365$as_echo "$supported" >&6; }
15366		if test "$supported" = "yes" ; then
15367			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15368			found="yes"
15369		fi
15370	fi
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386xorg_testset_save_CFLAGS="$CFLAGS"
15387
15388if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15389	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15390	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15391$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15392if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15393  $as_echo_n "(cached) " >&6
15394else
15395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15396/* end confdefs.h.  */
15397int i;
15398_ACEOF
15399if ac_fn_c_try_compile "$LINENO"; then :
15400  xorg_cv_cc_flag_unknown_warning_option=yes
15401else
15402  xorg_cv_cc_flag_unknown_warning_option=no
15403fi
15404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15405fi
15406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15407$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15408	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15409	CFLAGS="$xorg_testset_save_CFLAGS"
15410fi
15411
15412if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15413	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15414		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15415	fi
15416	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15417	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15418$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15419if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15420  $as_echo_n "(cached) " >&6
15421else
15422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15423/* end confdefs.h.  */
15424int i;
15425_ACEOF
15426if ac_fn_c_try_compile "$LINENO"; then :
15427  xorg_cv_cc_flag_unused_command_line_argument=yes
15428else
15429  xorg_cv_cc_flag_unused_command_line_argument=no
15430fi
15431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15432fi
15433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15434$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15435	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15436	CFLAGS="$xorg_testset_save_CFLAGS"
15437fi
15438
15439found="no"
15440
15441	if test $found = "no" ; then
15442		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15443			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15444		fi
15445
15446		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15447			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15448		fi
15449
15450		CFLAGS="$CFLAGS -Werror=address"
15451
15452		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15453$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15454		cacheid=xorg_cv_cc_flag__Werror_address
15455		if eval \${$cacheid+:} false; then :
15456  $as_echo_n "(cached) " >&6
15457else
15458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15459/* end confdefs.h.  */
15460int i;
15461int
15462main ()
15463{
15464
15465  ;
15466  return 0;
15467}
15468_ACEOF
15469if ac_fn_c_try_link "$LINENO"; then :
15470  eval $cacheid=yes
15471else
15472  eval $cacheid=no
15473fi
15474rm -f core conftest.err conftest.$ac_objext \
15475    conftest$ac_exeext conftest.$ac_ext
15476fi
15477
15478
15479		CFLAGS="$xorg_testset_save_CFLAGS"
15480
15481		eval supported=\$$cacheid
15482		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15483$as_echo "$supported" >&6; }
15484		if test "$supported" = "yes" ; then
15485			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15486			found="yes"
15487		fi
15488	fi
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504xorg_testset_save_CFLAGS="$CFLAGS"
15505
15506if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15507	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15508	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15509$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15510if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15511  $as_echo_n "(cached) " >&6
15512else
15513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15514/* end confdefs.h.  */
15515int i;
15516_ACEOF
15517if ac_fn_c_try_compile "$LINENO"; then :
15518  xorg_cv_cc_flag_unknown_warning_option=yes
15519else
15520  xorg_cv_cc_flag_unknown_warning_option=no
15521fi
15522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15523fi
15524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15525$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15526	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15527	CFLAGS="$xorg_testset_save_CFLAGS"
15528fi
15529
15530if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15531	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15532		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15533	fi
15534	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15535	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15536$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15537if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15538  $as_echo_n "(cached) " >&6
15539else
15540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15541/* end confdefs.h.  */
15542int i;
15543_ACEOF
15544if ac_fn_c_try_compile "$LINENO"; then :
15545  xorg_cv_cc_flag_unused_command_line_argument=yes
15546else
15547  xorg_cv_cc_flag_unused_command_line_argument=no
15548fi
15549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15550fi
15551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15552$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15553	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15554	CFLAGS="$xorg_testset_save_CFLAGS"
15555fi
15556
15557found="no"
15558
15559	if test $found = "no" ; then
15560		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15561			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15562		fi
15563
15564		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15565			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15566		fi
15567
15568		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15569
15570		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15571$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15572		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15573		if eval \${$cacheid+:} false; then :
15574  $as_echo_n "(cached) " >&6
15575else
15576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15577/* end confdefs.h.  */
15578int i;
15579int
15580main ()
15581{
15582
15583  ;
15584  return 0;
15585}
15586_ACEOF
15587if ac_fn_c_try_link "$LINENO"; then :
15588  eval $cacheid=yes
15589else
15590  eval $cacheid=no
15591fi
15592rm -f core conftest.err conftest.$ac_objext \
15593    conftest$ac_exeext conftest.$ac_ext
15594fi
15595
15596
15597		CFLAGS="$xorg_testset_save_CFLAGS"
15598
15599		eval supported=\$$cacheid
15600		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15601$as_echo "$supported" >&6; }
15602		if test "$supported" = "yes" ; then
15603			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15604			found="yes"
15605		fi
15606	fi
15607
15608	if test $found = "no" ; then
15609		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15610			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15611		fi
15612
15613		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15614			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15615		fi
15616
15617		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15618
15619		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15620$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15621		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15622		if eval \${$cacheid+:} false; then :
15623  $as_echo_n "(cached) " >&6
15624else
15625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626/* end confdefs.h.  */
15627int i;
15628int
15629main ()
15630{
15631
15632  ;
15633  return 0;
15634}
15635_ACEOF
15636if ac_fn_c_try_link "$LINENO"; then :
15637  eval $cacheid=yes
15638else
15639  eval $cacheid=no
15640fi
15641rm -f core conftest.err conftest.$ac_objext \
15642    conftest$ac_exeext conftest.$ac_ext
15643fi
15644
15645
15646		CFLAGS="$xorg_testset_save_CFLAGS"
15647
15648		eval supported=\$$cacheid
15649		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15650$as_echo "$supported" >&6; }
15651		if test "$supported" = "yes" ; then
15652			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15653			found="yes"
15654		fi
15655	fi
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671xorg_testset_save_CFLAGS="$CFLAGS"
15672
15673if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15674	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15675	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15676$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15677if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15678  $as_echo_n "(cached) " >&6
15679else
15680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15681/* end confdefs.h.  */
15682int i;
15683_ACEOF
15684if ac_fn_c_try_compile "$LINENO"; then :
15685  xorg_cv_cc_flag_unknown_warning_option=yes
15686else
15687  xorg_cv_cc_flag_unknown_warning_option=no
15688fi
15689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15690fi
15691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15692$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15693	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15694	CFLAGS="$xorg_testset_save_CFLAGS"
15695fi
15696
15697if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15698	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15699		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15700	fi
15701	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15702	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15703$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15704if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15705  $as_echo_n "(cached) " >&6
15706else
15707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708/* end confdefs.h.  */
15709int i;
15710_ACEOF
15711if ac_fn_c_try_compile "$LINENO"; then :
15712  xorg_cv_cc_flag_unused_command_line_argument=yes
15713else
15714  xorg_cv_cc_flag_unused_command_line_argument=no
15715fi
15716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15717fi
15718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15719$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15720	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15721	CFLAGS="$xorg_testset_save_CFLAGS"
15722fi
15723
15724found="no"
15725
15726	if test $found = "no" ; then
15727		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15728			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15729		fi
15730
15731		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15732			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15733		fi
15734
15735		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15736
15737		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15738$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15739		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
15740		if eval \${$cacheid+:} false; then :
15741  $as_echo_n "(cached) " >&6
15742else
15743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15744/* end confdefs.h.  */
15745int i;
15746int
15747main ()
15748{
15749
15750  ;
15751  return 0;
15752}
15753_ACEOF
15754if ac_fn_c_try_link "$LINENO"; then :
15755  eval $cacheid=yes
15756else
15757  eval $cacheid=no
15758fi
15759rm -f core conftest.err conftest.$ac_objext \
15760    conftest$ac_exeext conftest.$ac_ext
15761fi
15762
15763
15764		CFLAGS="$xorg_testset_save_CFLAGS"
15765
15766		eval supported=\$$cacheid
15767		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15768$as_echo "$supported" >&6; }
15769		if test "$supported" = "yes" ; then
15770			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15771			found="yes"
15772		fi
15773	fi
15774
15775 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15776else
15777{ $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
15778$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;}
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792xorg_testset_save_CFLAGS="$CFLAGS"
15793
15794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15795	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15796	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15797$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15798if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15799  $as_echo_n "(cached) " >&6
15800else
15801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15802/* end confdefs.h.  */
15803int i;
15804_ACEOF
15805if ac_fn_c_try_compile "$LINENO"; then :
15806  xorg_cv_cc_flag_unknown_warning_option=yes
15807else
15808  xorg_cv_cc_flag_unknown_warning_option=no
15809fi
15810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15811fi
15812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15813$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15814	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15815	CFLAGS="$xorg_testset_save_CFLAGS"
15816fi
15817
15818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15819	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15820		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15821	fi
15822	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15823	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15824$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15825if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15826  $as_echo_n "(cached) " >&6
15827else
15828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15829/* end confdefs.h.  */
15830int i;
15831_ACEOF
15832if ac_fn_c_try_compile "$LINENO"; then :
15833  xorg_cv_cc_flag_unused_command_line_argument=yes
15834else
15835  xorg_cv_cc_flag_unused_command_line_argument=no
15836fi
15837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15838fi
15839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15840$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15841	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15842	CFLAGS="$xorg_testset_save_CFLAGS"
15843fi
15844
15845found="no"
15846
15847	if test $found = "no" ; then
15848		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15849			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15850		fi
15851
15852		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15853			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15854		fi
15855
15856		CFLAGS="$CFLAGS -Wimplicit"
15857
15858		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15859$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15860		cacheid=xorg_cv_cc_flag__Wimplicit
15861		if eval \${$cacheid+:} false; then :
15862  $as_echo_n "(cached) " >&6
15863else
15864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15865/* end confdefs.h.  */
15866int i;
15867int
15868main ()
15869{
15870
15871  ;
15872  return 0;
15873}
15874_ACEOF
15875if ac_fn_c_try_link "$LINENO"; then :
15876  eval $cacheid=yes
15877else
15878  eval $cacheid=no
15879fi
15880rm -f core conftest.err conftest.$ac_objext \
15881    conftest$ac_exeext conftest.$ac_ext
15882fi
15883
15884
15885		CFLAGS="$xorg_testset_save_CFLAGS"
15886
15887		eval supported=\$$cacheid
15888		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15889$as_echo "$supported" >&6; }
15890		if test "$supported" = "yes" ; then
15891			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15892			found="yes"
15893		fi
15894	fi
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910xorg_testset_save_CFLAGS="$CFLAGS"
15911
15912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15913	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15914	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15915$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15916if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15917  $as_echo_n "(cached) " >&6
15918else
15919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15920/* end confdefs.h.  */
15921int i;
15922_ACEOF
15923if ac_fn_c_try_compile "$LINENO"; then :
15924  xorg_cv_cc_flag_unknown_warning_option=yes
15925else
15926  xorg_cv_cc_flag_unknown_warning_option=no
15927fi
15928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15929fi
15930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15931$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15932	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15933	CFLAGS="$xorg_testset_save_CFLAGS"
15934fi
15935
15936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15937	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15938		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15939	fi
15940	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15941	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15942$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15943if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15944  $as_echo_n "(cached) " >&6
15945else
15946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15947/* end confdefs.h.  */
15948int i;
15949_ACEOF
15950if ac_fn_c_try_compile "$LINENO"; then :
15951  xorg_cv_cc_flag_unused_command_line_argument=yes
15952else
15953  xorg_cv_cc_flag_unused_command_line_argument=no
15954fi
15955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15956fi
15957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15958$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15959	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15960	CFLAGS="$xorg_testset_save_CFLAGS"
15961fi
15962
15963found="no"
15964
15965	if test $found = "no" ; then
15966		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15967			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15968		fi
15969
15970		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15971			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15972		fi
15973
15974		CFLAGS="$CFLAGS -Wnonnull"
15975
15976		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15977$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15978		cacheid=xorg_cv_cc_flag__Wnonnull
15979		if eval \${$cacheid+:} false; then :
15980  $as_echo_n "(cached) " >&6
15981else
15982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15983/* end confdefs.h.  */
15984int i;
15985int
15986main ()
15987{
15988
15989  ;
15990  return 0;
15991}
15992_ACEOF
15993if ac_fn_c_try_link "$LINENO"; then :
15994  eval $cacheid=yes
15995else
15996  eval $cacheid=no
15997fi
15998rm -f core conftest.err conftest.$ac_objext \
15999    conftest$ac_exeext conftest.$ac_ext
16000fi
16001
16002
16003		CFLAGS="$xorg_testset_save_CFLAGS"
16004
16005		eval supported=\$$cacheid
16006		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16007$as_echo "$supported" >&6; }
16008		if test "$supported" = "yes" ; then
16009			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16010			found="yes"
16011		fi
16012	fi
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028xorg_testset_save_CFLAGS="$CFLAGS"
16029
16030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16031	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16032	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16033$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16034if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16035  $as_echo_n "(cached) " >&6
16036else
16037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16038/* end confdefs.h.  */
16039int i;
16040_ACEOF
16041if ac_fn_c_try_compile "$LINENO"; then :
16042  xorg_cv_cc_flag_unknown_warning_option=yes
16043else
16044  xorg_cv_cc_flag_unknown_warning_option=no
16045fi
16046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16047fi
16048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16049$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16050	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16051	CFLAGS="$xorg_testset_save_CFLAGS"
16052fi
16053
16054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16055	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16056		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16057	fi
16058	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16059	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16060$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16061if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16062  $as_echo_n "(cached) " >&6
16063else
16064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16065/* end confdefs.h.  */
16066int i;
16067_ACEOF
16068if ac_fn_c_try_compile "$LINENO"; then :
16069  xorg_cv_cc_flag_unused_command_line_argument=yes
16070else
16071  xorg_cv_cc_flag_unused_command_line_argument=no
16072fi
16073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16074fi
16075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16076$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16077	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16078	CFLAGS="$xorg_testset_save_CFLAGS"
16079fi
16080
16081found="no"
16082
16083	if test $found = "no" ; then
16084		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16085			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16086		fi
16087
16088		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16089			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16090		fi
16091
16092		CFLAGS="$CFLAGS -Winit-self"
16093
16094		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16095$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16096		cacheid=xorg_cv_cc_flag__Winit_self
16097		if eval \${$cacheid+:} false; then :
16098  $as_echo_n "(cached) " >&6
16099else
16100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16101/* end confdefs.h.  */
16102int i;
16103int
16104main ()
16105{
16106
16107  ;
16108  return 0;
16109}
16110_ACEOF
16111if ac_fn_c_try_link "$LINENO"; then :
16112  eval $cacheid=yes
16113else
16114  eval $cacheid=no
16115fi
16116rm -f core conftest.err conftest.$ac_objext \
16117    conftest$ac_exeext conftest.$ac_ext
16118fi
16119
16120
16121		CFLAGS="$xorg_testset_save_CFLAGS"
16122
16123		eval supported=\$$cacheid
16124		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16125$as_echo "$supported" >&6; }
16126		if test "$supported" = "yes" ; then
16127			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16128			found="yes"
16129		fi
16130	fi
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146xorg_testset_save_CFLAGS="$CFLAGS"
16147
16148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16149	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16150	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16151$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16152if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16153  $as_echo_n "(cached) " >&6
16154else
16155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16156/* end confdefs.h.  */
16157int i;
16158_ACEOF
16159if ac_fn_c_try_compile "$LINENO"; then :
16160  xorg_cv_cc_flag_unknown_warning_option=yes
16161else
16162  xorg_cv_cc_flag_unknown_warning_option=no
16163fi
16164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16165fi
16166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16167$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16168	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16169	CFLAGS="$xorg_testset_save_CFLAGS"
16170fi
16171
16172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16173	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16174		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16175	fi
16176	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16177	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16178$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16179if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16180  $as_echo_n "(cached) " >&6
16181else
16182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16183/* end confdefs.h.  */
16184int i;
16185_ACEOF
16186if ac_fn_c_try_compile "$LINENO"; then :
16187  xorg_cv_cc_flag_unused_command_line_argument=yes
16188else
16189  xorg_cv_cc_flag_unused_command_line_argument=no
16190fi
16191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16192fi
16193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16194$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16195	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16196	CFLAGS="$xorg_testset_save_CFLAGS"
16197fi
16198
16199found="no"
16200
16201	if test $found = "no" ; then
16202		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16203			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16204		fi
16205
16206		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16207			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16208		fi
16209
16210		CFLAGS="$CFLAGS -Wmain"
16211
16212		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16213$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16214		cacheid=xorg_cv_cc_flag__Wmain
16215		if eval \${$cacheid+:} false; then :
16216  $as_echo_n "(cached) " >&6
16217else
16218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16219/* end confdefs.h.  */
16220int i;
16221int
16222main ()
16223{
16224
16225  ;
16226  return 0;
16227}
16228_ACEOF
16229if ac_fn_c_try_link "$LINENO"; then :
16230  eval $cacheid=yes
16231else
16232  eval $cacheid=no
16233fi
16234rm -f core conftest.err conftest.$ac_objext \
16235    conftest$ac_exeext conftest.$ac_ext
16236fi
16237
16238
16239		CFLAGS="$xorg_testset_save_CFLAGS"
16240
16241		eval supported=\$$cacheid
16242		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16243$as_echo "$supported" >&6; }
16244		if test "$supported" = "yes" ; then
16245			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16246			found="yes"
16247		fi
16248	fi
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264xorg_testset_save_CFLAGS="$CFLAGS"
16265
16266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16267	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16268	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16269$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16270if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16271  $as_echo_n "(cached) " >&6
16272else
16273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16274/* end confdefs.h.  */
16275int i;
16276_ACEOF
16277if ac_fn_c_try_compile "$LINENO"; then :
16278  xorg_cv_cc_flag_unknown_warning_option=yes
16279else
16280  xorg_cv_cc_flag_unknown_warning_option=no
16281fi
16282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16283fi
16284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16285$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16286	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16287	CFLAGS="$xorg_testset_save_CFLAGS"
16288fi
16289
16290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16291	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16292		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16293	fi
16294	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16295	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16296$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16297if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16298  $as_echo_n "(cached) " >&6
16299else
16300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16301/* end confdefs.h.  */
16302int i;
16303_ACEOF
16304if ac_fn_c_try_compile "$LINENO"; then :
16305  xorg_cv_cc_flag_unused_command_line_argument=yes
16306else
16307  xorg_cv_cc_flag_unused_command_line_argument=no
16308fi
16309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16310fi
16311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16312$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16313	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16314	CFLAGS="$xorg_testset_save_CFLAGS"
16315fi
16316
16317found="no"
16318
16319	if test $found = "no" ; then
16320		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16321			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16322		fi
16323
16324		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16325			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16326		fi
16327
16328		CFLAGS="$CFLAGS -Wmissing-braces"
16329
16330		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16331$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16332		cacheid=xorg_cv_cc_flag__Wmissing_braces
16333		if eval \${$cacheid+:} false; then :
16334  $as_echo_n "(cached) " >&6
16335else
16336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16337/* end confdefs.h.  */
16338int i;
16339int
16340main ()
16341{
16342
16343  ;
16344  return 0;
16345}
16346_ACEOF
16347if ac_fn_c_try_link "$LINENO"; then :
16348  eval $cacheid=yes
16349else
16350  eval $cacheid=no
16351fi
16352rm -f core conftest.err conftest.$ac_objext \
16353    conftest$ac_exeext conftest.$ac_ext
16354fi
16355
16356
16357		CFLAGS="$xorg_testset_save_CFLAGS"
16358
16359		eval supported=\$$cacheid
16360		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16361$as_echo "$supported" >&6; }
16362		if test "$supported" = "yes" ; then
16363			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16364			found="yes"
16365		fi
16366	fi
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382xorg_testset_save_CFLAGS="$CFLAGS"
16383
16384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16385	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16386	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16387$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16388if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16389  $as_echo_n "(cached) " >&6
16390else
16391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392/* end confdefs.h.  */
16393int i;
16394_ACEOF
16395if ac_fn_c_try_compile "$LINENO"; then :
16396  xorg_cv_cc_flag_unknown_warning_option=yes
16397else
16398  xorg_cv_cc_flag_unknown_warning_option=no
16399fi
16400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16401fi
16402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16403$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16404	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16405	CFLAGS="$xorg_testset_save_CFLAGS"
16406fi
16407
16408if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16409	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16410		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16411	fi
16412	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16413	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16414$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16415if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16416  $as_echo_n "(cached) " >&6
16417else
16418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16419/* end confdefs.h.  */
16420int i;
16421_ACEOF
16422if ac_fn_c_try_compile "$LINENO"; then :
16423  xorg_cv_cc_flag_unused_command_line_argument=yes
16424else
16425  xorg_cv_cc_flag_unused_command_line_argument=no
16426fi
16427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16428fi
16429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16430$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16431	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16432	CFLAGS="$xorg_testset_save_CFLAGS"
16433fi
16434
16435found="no"
16436
16437	if test $found = "no" ; then
16438		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16439			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16440		fi
16441
16442		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16443			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16444		fi
16445
16446		CFLAGS="$CFLAGS -Wsequence-point"
16447
16448		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16449$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16450		cacheid=xorg_cv_cc_flag__Wsequence_point
16451		if eval \${$cacheid+:} false; then :
16452  $as_echo_n "(cached) " >&6
16453else
16454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16455/* end confdefs.h.  */
16456int i;
16457int
16458main ()
16459{
16460
16461  ;
16462  return 0;
16463}
16464_ACEOF
16465if ac_fn_c_try_link "$LINENO"; then :
16466  eval $cacheid=yes
16467else
16468  eval $cacheid=no
16469fi
16470rm -f core conftest.err conftest.$ac_objext \
16471    conftest$ac_exeext conftest.$ac_ext
16472fi
16473
16474
16475		CFLAGS="$xorg_testset_save_CFLAGS"
16476
16477		eval supported=\$$cacheid
16478		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16479$as_echo "$supported" >&6; }
16480		if test "$supported" = "yes" ; then
16481			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16482			found="yes"
16483		fi
16484	fi
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500xorg_testset_save_CFLAGS="$CFLAGS"
16501
16502if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16503	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16504	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16505$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16506if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16507  $as_echo_n "(cached) " >&6
16508else
16509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16510/* end confdefs.h.  */
16511int i;
16512_ACEOF
16513if ac_fn_c_try_compile "$LINENO"; then :
16514  xorg_cv_cc_flag_unknown_warning_option=yes
16515else
16516  xorg_cv_cc_flag_unknown_warning_option=no
16517fi
16518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16519fi
16520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16521$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16522	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16523	CFLAGS="$xorg_testset_save_CFLAGS"
16524fi
16525
16526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16527	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16528		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16529	fi
16530	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16531	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16532$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16533if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16534  $as_echo_n "(cached) " >&6
16535else
16536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16537/* end confdefs.h.  */
16538int i;
16539_ACEOF
16540if ac_fn_c_try_compile "$LINENO"; then :
16541  xorg_cv_cc_flag_unused_command_line_argument=yes
16542else
16543  xorg_cv_cc_flag_unused_command_line_argument=no
16544fi
16545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16546fi
16547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16548$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16549	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16550	CFLAGS="$xorg_testset_save_CFLAGS"
16551fi
16552
16553found="no"
16554
16555	if test $found = "no" ; then
16556		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16557			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16558		fi
16559
16560		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16561			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16562		fi
16563
16564		CFLAGS="$CFLAGS -Wreturn-type"
16565
16566		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16567$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16568		cacheid=xorg_cv_cc_flag__Wreturn_type
16569		if eval \${$cacheid+:} false; then :
16570  $as_echo_n "(cached) " >&6
16571else
16572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16573/* end confdefs.h.  */
16574int i;
16575int
16576main ()
16577{
16578
16579  ;
16580  return 0;
16581}
16582_ACEOF
16583if ac_fn_c_try_link "$LINENO"; then :
16584  eval $cacheid=yes
16585else
16586  eval $cacheid=no
16587fi
16588rm -f core conftest.err conftest.$ac_objext \
16589    conftest$ac_exeext conftest.$ac_ext
16590fi
16591
16592
16593		CFLAGS="$xorg_testset_save_CFLAGS"
16594
16595		eval supported=\$$cacheid
16596		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16597$as_echo "$supported" >&6; }
16598		if test "$supported" = "yes" ; then
16599			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16600			found="yes"
16601		fi
16602	fi
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618xorg_testset_save_CFLAGS="$CFLAGS"
16619
16620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16621	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16622	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16623$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16624if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16625  $as_echo_n "(cached) " >&6
16626else
16627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16628/* end confdefs.h.  */
16629int i;
16630_ACEOF
16631if ac_fn_c_try_compile "$LINENO"; then :
16632  xorg_cv_cc_flag_unknown_warning_option=yes
16633else
16634  xorg_cv_cc_flag_unknown_warning_option=no
16635fi
16636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16637fi
16638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16639$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16640	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16641	CFLAGS="$xorg_testset_save_CFLAGS"
16642fi
16643
16644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16645	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16646		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16647	fi
16648	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16649	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16650$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16651if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16652  $as_echo_n "(cached) " >&6
16653else
16654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16655/* end confdefs.h.  */
16656int i;
16657_ACEOF
16658if ac_fn_c_try_compile "$LINENO"; then :
16659  xorg_cv_cc_flag_unused_command_line_argument=yes
16660else
16661  xorg_cv_cc_flag_unused_command_line_argument=no
16662fi
16663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16664fi
16665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16666$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16667	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16668	CFLAGS="$xorg_testset_save_CFLAGS"
16669fi
16670
16671found="no"
16672
16673	if test $found = "no" ; then
16674		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16675			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16676		fi
16677
16678		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16679			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16680		fi
16681
16682		CFLAGS="$CFLAGS -Wtrigraphs"
16683
16684		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16685$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16686		cacheid=xorg_cv_cc_flag__Wtrigraphs
16687		if eval \${$cacheid+:} false; then :
16688  $as_echo_n "(cached) " >&6
16689else
16690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16691/* end confdefs.h.  */
16692int i;
16693int
16694main ()
16695{
16696
16697  ;
16698  return 0;
16699}
16700_ACEOF
16701if ac_fn_c_try_link "$LINENO"; then :
16702  eval $cacheid=yes
16703else
16704  eval $cacheid=no
16705fi
16706rm -f core conftest.err conftest.$ac_objext \
16707    conftest$ac_exeext conftest.$ac_ext
16708fi
16709
16710
16711		CFLAGS="$xorg_testset_save_CFLAGS"
16712
16713		eval supported=\$$cacheid
16714		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16715$as_echo "$supported" >&6; }
16716		if test "$supported" = "yes" ; then
16717			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16718			found="yes"
16719		fi
16720	fi
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736xorg_testset_save_CFLAGS="$CFLAGS"
16737
16738if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16739	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16740	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16741$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16742if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16743  $as_echo_n "(cached) " >&6
16744else
16745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16746/* end confdefs.h.  */
16747int i;
16748_ACEOF
16749if ac_fn_c_try_compile "$LINENO"; then :
16750  xorg_cv_cc_flag_unknown_warning_option=yes
16751else
16752  xorg_cv_cc_flag_unknown_warning_option=no
16753fi
16754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16755fi
16756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16757$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16758	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16759	CFLAGS="$xorg_testset_save_CFLAGS"
16760fi
16761
16762if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16763	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16764		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16765	fi
16766	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16767	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16768$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16769if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16770  $as_echo_n "(cached) " >&6
16771else
16772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16773/* end confdefs.h.  */
16774int i;
16775_ACEOF
16776if ac_fn_c_try_compile "$LINENO"; then :
16777  xorg_cv_cc_flag_unused_command_line_argument=yes
16778else
16779  xorg_cv_cc_flag_unused_command_line_argument=no
16780fi
16781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16782fi
16783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16784$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16785	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16786	CFLAGS="$xorg_testset_save_CFLAGS"
16787fi
16788
16789found="no"
16790
16791	if test $found = "no" ; then
16792		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16793			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16794		fi
16795
16796		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16797			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16798		fi
16799
16800		CFLAGS="$CFLAGS -Warray-bounds"
16801
16802		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16803$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16804		cacheid=xorg_cv_cc_flag__Warray_bounds
16805		if eval \${$cacheid+:} false; then :
16806  $as_echo_n "(cached) " >&6
16807else
16808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16809/* end confdefs.h.  */
16810int i;
16811int
16812main ()
16813{
16814
16815  ;
16816  return 0;
16817}
16818_ACEOF
16819if ac_fn_c_try_link "$LINENO"; then :
16820  eval $cacheid=yes
16821else
16822  eval $cacheid=no
16823fi
16824rm -f core conftest.err conftest.$ac_objext \
16825    conftest$ac_exeext conftest.$ac_ext
16826fi
16827
16828
16829		CFLAGS="$xorg_testset_save_CFLAGS"
16830
16831		eval supported=\$$cacheid
16832		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16833$as_echo "$supported" >&6; }
16834		if test "$supported" = "yes" ; then
16835			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16836			found="yes"
16837		fi
16838	fi
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854xorg_testset_save_CFLAGS="$CFLAGS"
16855
16856if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16857	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16858	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16859$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16860if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16861  $as_echo_n "(cached) " >&6
16862else
16863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16864/* end confdefs.h.  */
16865int i;
16866_ACEOF
16867if ac_fn_c_try_compile "$LINENO"; then :
16868  xorg_cv_cc_flag_unknown_warning_option=yes
16869else
16870  xorg_cv_cc_flag_unknown_warning_option=no
16871fi
16872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16873fi
16874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16875$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16876	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16877	CFLAGS="$xorg_testset_save_CFLAGS"
16878fi
16879
16880if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16881	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16882		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16883	fi
16884	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16885	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16886$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16887if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16888  $as_echo_n "(cached) " >&6
16889else
16890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16891/* end confdefs.h.  */
16892int i;
16893_ACEOF
16894if ac_fn_c_try_compile "$LINENO"; then :
16895  xorg_cv_cc_flag_unused_command_line_argument=yes
16896else
16897  xorg_cv_cc_flag_unused_command_line_argument=no
16898fi
16899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16900fi
16901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16902$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16903	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16904	CFLAGS="$xorg_testset_save_CFLAGS"
16905fi
16906
16907found="no"
16908
16909	if test $found = "no" ; then
16910		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16911			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16912		fi
16913
16914		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16915			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16916		fi
16917
16918		CFLAGS="$CFLAGS -Wwrite-strings"
16919
16920		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16921$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16922		cacheid=xorg_cv_cc_flag__Wwrite_strings
16923		if eval \${$cacheid+:} false; then :
16924  $as_echo_n "(cached) " >&6
16925else
16926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16927/* end confdefs.h.  */
16928int i;
16929int
16930main ()
16931{
16932
16933  ;
16934  return 0;
16935}
16936_ACEOF
16937if ac_fn_c_try_link "$LINENO"; then :
16938  eval $cacheid=yes
16939else
16940  eval $cacheid=no
16941fi
16942rm -f core conftest.err conftest.$ac_objext \
16943    conftest$ac_exeext conftest.$ac_ext
16944fi
16945
16946
16947		CFLAGS="$xorg_testset_save_CFLAGS"
16948
16949		eval supported=\$$cacheid
16950		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16951$as_echo "$supported" >&6; }
16952		if test "$supported" = "yes" ; then
16953			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16954			found="yes"
16955		fi
16956	fi
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972xorg_testset_save_CFLAGS="$CFLAGS"
16973
16974if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16975	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16976	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16977$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16978if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16979  $as_echo_n "(cached) " >&6
16980else
16981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16982/* end confdefs.h.  */
16983int i;
16984_ACEOF
16985if ac_fn_c_try_compile "$LINENO"; then :
16986  xorg_cv_cc_flag_unknown_warning_option=yes
16987else
16988  xorg_cv_cc_flag_unknown_warning_option=no
16989fi
16990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16991fi
16992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16993$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16994	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16995	CFLAGS="$xorg_testset_save_CFLAGS"
16996fi
16997
16998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16999	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17000		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17001	fi
17002	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17003	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17004$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17005if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17006  $as_echo_n "(cached) " >&6
17007else
17008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17009/* end confdefs.h.  */
17010int i;
17011_ACEOF
17012if ac_fn_c_try_compile "$LINENO"; then :
17013  xorg_cv_cc_flag_unused_command_line_argument=yes
17014else
17015  xorg_cv_cc_flag_unused_command_line_argument=no
17016fi
17017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17018fi
17019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17020$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17021	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17022	CFLAGS="$xorg_testset_save_CFLAGS"
17023fi
17024
17025found="no"
17026
17027	if test $found = "no" ; then
17028		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17029			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17030		fi
17031
17032		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17033			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17034		fi
17035
17036		CFLAGS="$CFLAGS -Waddress"
17037
17038		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17039$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17040		cacheid=xorg_cv_cc_flag__Waddress
17041		if eval \${$cacheid+:} false; then :
17042  $as_echo_n "(cached) " >&6
17043else
17044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17045/* end confdefs.h.  */
17046int i;
17047int
17048main ()
17049{
17050
17051  ;
17052  return 0;
17053}
17054_ACEOF
17055if ac_fn_c_try_link "$LINENO"; then :
17056  eval $cacheid=yes
17057else
17058  eval $cacheid=no
17059fi
17060rm -f core conftest.err conftest.$ac_objext \
17061    conftest$ac_exeext conftest.$ac_ext
17062fi
17063
17064
17065		CFLAGS="$xorg_testset_save_CFLAGS"
17066
17067		eval supported=\$$cacheid
17068		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17069$as_echo "$supported" >&6; }
17070		if test "$supported" = "yes" ; then
17071			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17072			found="yes"
17073		fi
17074	fi
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090xorg_testset_save_CFLAGS="$CFLAGS"
17091
17092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17093	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17094	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17095$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17096if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17097  $as_echo_n "(cached) " >&6
17098else
17099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17100/* end confdefs.h.  */
17101int i;
17102_ACEOF
17103if ac_fn_c_try_compile "$LINENO"; then :
17104  xorg_cv_cc_flag_unknown_warning_option=yes
17105else
17106  xorg_cv_cc_flag_unknown_warning_option=no
17107fi
17108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17109fi
17110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17111$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17112	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17113	CFLAGS="$xorg_testset_save_CFLAGS"
17114fi
17115
17116if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17117	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17118		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17119	fi
17120	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17121	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17122$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17123if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17124  $as_echo_n "(cached) " >&6
17125else
17126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17127/* end confdefs.h.  */
17128int i;
17129_ACEOF
17130if ac_fn_c_try_compile "$LINENO"; then :
17131  xorg_cv_cc_flag_unused_command_line_argument=yes
17132else
17133  xorg_cv_cc_flag_unused_command_line_argument=no
17134fi
17135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17136fi
17137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17138$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17139	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17140	CFLAGS="$xorg_testset_save_CFLAGS"
17141fi
17142
17143found="no"
17144
17145	if test $found = "no" ; then
17146		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17147			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17148		fi
17149
17150		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17151			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17152		fi
17153
17154		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17155
17156		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17157$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17158		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17159		if eval \${$cacheid+:} false; then :
17160  $as_echo_n "(cached) " >&6
17161else
17162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17163/* end confdefs.h.  */
17164int i;
17165int
17166main ()
17167{
17168
17169  ;
17170  return 0;
17171}
17172_ACEOF
17173if ac_fn_c_try_link "$LINENO"; then :
17174  eval $cacheid=yes
17175else
17176  eval $cacheid=no
17177fi
17178rm -f core conftest.err conftest.$ac_objext \
17179    conftest$ac_exeext conftest.$ac_ext
17180fi
17181
17182
17183		CFLAGS="$xorg_testset_save_CFLAGS"
17184
17185		eval supported=\$$cacheid
17186		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17187$as_echo "$supported" >&6; }
17188		if test "$supported" = "yes" ; then
17189			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17190			found="yes"
17191		fi
17192	fi
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208xorg_testset_save_CFLAGS="$CFLAGS"
17209
17210if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17211	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17212	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17213$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17214if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17215  $as_echo_n "(cached) " >&6
17216else
17217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17218/* end confdefs.h.  */
17219int i;
17220_ACEOF
17221if ac_fn_c_try_compile "$LINENO"; then :
17222  xorg_cv_cc_flag_unknown_warning_option=yes
17223else
17224  xorg_cv_cc_flag_unknown_warning_option=no
17225fi
17226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17227fi
17228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17229$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17230	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17231	CFLAGS="$xorg_testset_save_CFLAGS"
17232fi
17233
17234if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17235	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17236		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17237	fi
17238	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17239	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17240$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17241if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17242  $as_echo_n "(cached) " >&6
17243else
17244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17245/* end confdefs.h.  */
17246int i;
17247_ACEOF
17248if ac_fn_c_try_compile "$LINENO"; then :
17249  xorg_cv_cc_flag_unused_command_line_argument=yes
17250else
17251  xorg_cv_cc_flag_unused_command_line_argument=no
17252fi
17253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17254fi
17255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17256$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17257	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17258	CFLAGS="$xorg_testset_save_CFLAGS"
17259fi
17260
17261found="no"
17262
17263	if test $found = "no" ; then
17264		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17265			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17266		fi
17267
17268		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17269			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17270		fi
17271
17272		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17273
17274		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17275$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17276		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17277		if eval \${$cacheid+:} false; then :
17278  $as_echo_n "(cached) " >&6
17279else
17280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17281/* end confdefs.h.  */
17282int i;
17283int
17284main ()
17285{
17286
17287  ;
17288  return 0;
17289}
17290_ACEOF
17291if ac_fn_c_try_link "$LINENO"; then :
17292  eval $cacheid=yes
17293else
17294  eval $cacheid=no
17295fi
17296rm -f core conftest.err conftest.$ac_objext \
17297    conftest$ac_exeext conftest.$ac_ext
17298fi
17299
17300
17301		CFLAGS="$xorg_testset_save_CFLAGS"
17302
17303		eval supported=\$$cacheid
17304		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17305$as_echo "$supported" >&6; }
17306		if test "$supported" = "yes" ; then
17307			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17308			found="yes"
17309		fi
17310	fi
17311
17312
17313fi
17314
17315
17316
17317
17318
17319
17320
17321		CWARNFLAGS="$BASE_CFLAGS"
17322		if  test "x$GCC" = xyes ; then
17323		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17324		fi
17325
17326
17327
17328
17329
17330
17331
17332
17333# Check whether --enable-strict-compilation was given.
17334if test "${enable_strict_compilation+set}" = set; then :
17335  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17336else
17337  STRICT_COMPILE=no
17338fi
17339
17340
17341
17342
17343
17344
17345STRICT_CFLAGS=""
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359xorg_testset_save_CFLAGS="$CFLAGS"
17360
17361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17362	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17363	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17364$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17365if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17366  $as_echo_n "(cached) " >&6
17367else
17368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17369/* end confdefs.h.  */
17370int i;
17371_ACEOF
17372if ac_fn_c_try_compile "$LINENO"; then :
17373  xorg_cv_cc_flag_unknown_warning_option=yes
17374else
17375  xorg_cv_cc_flag_unknown_warning_option=no
17376fi
17377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17378fi
17379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17380$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17381	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17382	CFLAGS="$xorg_testset_save_CFLAGS"
17383fi
17384
17385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17386	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17387		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17388	fi
17389	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17390	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17391$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17392if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17393  $as_echo_n "(cached) " >&6
17394else
17395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17396/* end confdefs.h.  */
17397int i;
17398_ACEOF
17399if ac_fn_c_try_compile "$LINENO"; then :
17400  xorg_cv_cc_flag_unused_command_line_argument=yes
17401else
17402  xorg_cv_cc_flag_unused_command_line_argument=no
17403fi
17404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17405fi
17406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17407$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17408	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17409	CFLAGS="$xorg_testset_save_CFLAGS"
17410fi
17411
17412found="no"
17413
17414	if test $found = "no" ; then
17415		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17416			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17417		fi
17418
17419		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17420			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17421		fi
17422
17423		CFLAGS="$CFLAGS -pedantic"
17424
17425		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17426$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17427		cacheid=xorg_cv_cc_flag__pedantic
17428		if eval \${$cacheid+:} false; then :
17429  $as_echo_n "(cached) " >&6
17430else
17431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17432/* end confdefs.h.  */
17433int i;
17434int
17435main ()
17436{
17437
17438  ;
17439  return 0;
17440}
17441_ACEOF
17442if ac_fn_c_try_link "$LINENO"; then :
17443  eval $cacheid=yes
17444else
17445  eval $cacheid=no
17446fi
17447rm -f core conftest.err conftest.$ac_objext \
17448    conftest$ac_exeext conftest.$ac_ext
17449fi
17450
17451
17452		CFLAGS="$xorg_testset_save_CFLAGS"
17453
17454		eval supported=\$$cacheid
17455		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17456$as_echo "$supported" >&6; }
17457		if test "$supported" = "yes" ; then
17458			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17459			found="yes"
17460		fi
17461	fi
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477xorg_testset_save_CFLAGS="$CFLAGS"
17478
17479if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17480	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17481	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17482$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17483if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17484  $as_echo_n "(cached) " >&6
17485else
17486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17487/* end confdefs.h.  */
17488int i;
17489_ACEOF
17490if ac_fn_c_try_compile "$LINENO"; then :
17491  xorg_cv_cc_flag_unknown_warning_option=yes
17492else
17493  xorg_cv_cc_flag_unknown_warning_option=no
17494fi
17495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17496fi
17497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17498$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17499	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17500	CFLAGS="$xorg_testset_save_CFLAGS"
17501fi
17502
17503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17504	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17505		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17506	fi
17507	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17508	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17509$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17510if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17511  $as_echo_n "(cached) " >&6
17512else
17513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17514/* end confdefs.h.  */
17515int i;
17516_ACEOF
17517if ac_fn_c_try_compile "$LINENO"; then :
17518  xorg_cv_cc_flag_unused_command_line_argument=yes
17519else
17520  xorg_cv_cc_flag_unused_command_line_argument=no
17521fi
17522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17523fi
17524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17525$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17526	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17527	CFLAGS="$xorg_testset_save_CFLAGS"
17528fi
17529
17530found="no"
17531
17532	if test $found = "no" ; then
17533		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17534			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17535		fi
17536
17537		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17538			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17539		fi
17540
17541		CFLAGS="$CFLAGS -Werror"
17542
17543		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17544$as_echo_n "checking if $CC supports -Werror... " >&6; }
17545		cacheid=xorg_cv_cc_flag__Werror
17546		if eval \${$cacheid+:} false; then :
17547  $as_echo_n "(cached) " >&6
17548else
17549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17550/* end confdefs.h.  */
17551int i;
17552int
17553main ()
17554{
17555
17556  ;
17557  return 0;
17558}
17559_ACEOF
17560if ac_fn_c_try_link "$LINENO"; then :
17561  eval $cacheid=yes
17562else
17563  eval $cacheid=no
17564fi
17565rm -f core conftest.err conftest.$ac_objext \
17566    conftest$ac_exeext conftest.$ac_ext
17567fi
17568
17569
17570		CFLAGS="$xorg_testset_save_CFLAGS"
17571
17572		eval supported=\$$cacheid
17573		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17574$as_echo "$supported" >&6; }
17575		if test "$supported" = "yes" ; then
17576			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17577			found="yes"
17578		fi
17579	fi
17580
17581	if test $found = "no" ; then
17582		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17583			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17584		fi
17585
17586		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17587			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17588		fi
17589
17590		CFLAGS="$CFLAGS -errwarn"
17591
17592		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17593$as_echo_n "checking if $CC supports -errwarn... " >&6; }
17594		cacheid=xorg_cv_cc_flag__errwarn
17595		if eval \${$cacheid+:} false; then :
17596  $as_echo_n "(cached) " >&6
17597else
17598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17599/* end confdefs.h.  */
17600int i;
17601int
17602main ()
17603{
17604
17605  ;
17606  return 0;
17607}
17608_ACEOF
17609if ac_fn_c_try_link "$LINENO"; then :
17610  eval $cacheid=yes
17611else
17612  eval $cacheid=no
17613fi
17614rm -f core conftest.err conftest.$ac_objext \
17615    conftest$ac_exeext conftest.$ac_ext
17616fi
17617
17618
17619		CFLAGS="$xorg_testset_save_CFLAGS"
17620
17621		eval supported=\$$cacheid
17622		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17623$as_echo "$supported" >&6; }
17624		if test "$supported" = "yes" ; then
17625			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17626			found="yes"
17627		fi
17628	fi
17629
17630
17631
17632# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17633# activate it with -Werror, so we add it here explicitly.
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647xorg_testset_save_CFLAGS="$CFLAGS"
17648
17649if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17650	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17651	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17652$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17653if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17654  $as_echo_n "(cached) " >&6
17655else
17656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17657/* end confdefs.h.  */
17658int i;
17659_ACEOF
17660if ac_fn_c_try_compile "$LINENO"; then :
17661  xorg_cv_cc_flag_unknown_warning_option=yes
17662else
17663  xorg_cv_cc_flag_unknown_warning_option=no
17664fi
17665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17666fi
17667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17668$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17669	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17670	CFLAGS="$xorg_testset_save_CFLAGS"
17671fi
17672
17673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17674	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17675		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17676	fi
17677	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17678	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17679$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17680if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17681  $as_echo_n "(cached) " >&6
17682else
17683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17684/* end confdefs.h.  */
17685int i;
17686_ACEOF
17687if ac_fn_c_try_compile "$LINENO"; then :
17688  xorg_cv_cc_flag_unused_command_line_argument=yes
17689else
17690  xorg_cv_cc_flag_unused_command_line_argument=no
17691fi
17692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17693fi
17694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17695$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17696	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17697	CFLAGS="$xorg_testset_save_CFLAGS"
17698fi
17699
17700found="no"
17701
17702	if test $found = "no" ; then
17703		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17704			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17705		fi
17706
17707		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17708			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17709		fi
17710
17711		CFLAGS="$CFLAGS -Werror=attributes"
17712
17713		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17714$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17715		cacheid=xorg_cv_cc_flag__Werror_attributes
17716		if eval \${$cacheid+:} false; then :
17717  $as_echo_n "(cached) " >&6
17718else
17719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17720/* end confdefs.h.  */
17721int i;
17722int
17723main ()
17724{
17725
17726  ;
17727  return 0;
17728}
17729_ACEOF
17730if ac_fn_c_try_link "$LINENO"; then :
17731  eval $cacheid=yes
17732else
17733  eval $cacheid=no
17734fi
17735rm -f core conftest.err conftest.$ac_objext \
17736    conftest$ac_exeext conftest.$ac_ext
17737fi
17738
17739
17740		CFLAGS="$xorg_testset_save_CFLAGS"
17741
17742		eval supported=\$$cacheid
17743		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17744$as_echo "$supported" >&6; }
17745		if test "$supported" = "yes" ; then
17746			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17747			found="yes"
17748		fi
17749	fi
17750
17751
17752
17753if test "x$STRICT_COMPILE" = "xyes"; then
17754    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17755    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17756fi
17757
17758
17759
17760
17761
17762
17763cat >>confdefs.h <<_ACEOF
17764#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17765_ACEOF
17766
17767	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17768	if test "x$PVM" = "x"; then
17769		PVM="0"
17770	fi
17771
17772cat >>confdefs.h <<_ACEOF
17773#define PACKAGE_VERSION_MINOR $PVM
17774_ACEOF
17775
17776	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17777	if test "x$PVP" = "x"; then
17778		PVP="0"
17779	fi
17780
17781cat >>confdefs.h <<_ACEOF
17782#define PACKAGE_VERSION_PATCHLEVEL $PVP
17783_ACEOF
17784
17785
17786
17787CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17788mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17789|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17790echo 'git directory not found: installing possibly empty changelog.' >&2)"
17791
17792
17793
17794
17795macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17796INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17797mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17798|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17799echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17800
17801
17802
17803
17804
17805
17806if test x$APP_MAN_SUFFIX = x    ; then
17807    APP_MAN_SUFFIX=1
17808fi
17809if test x$APP_MAN_DIR = x    ; then
17810    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17811fi
17812
17813if test x$LIB_MAN_SUFFIX = x    ; then
17814    LIB_MAN_SUFFIX=3
17815fi
17816if test x$LIB_MAN_DIR = x    ; then
17817    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17818fi
17819
17820if test x$FILE_MAN_SUFFIX = x    ; then
17821    case $host_os in
17822	solaris*)	FILE_MAN_SUFFIX=4  ;;
17823	*)		FILE_MAN_SUFFIX=5  ;;
17824    esac
17825fi
17826if test x$FILE_MAN_DIR = x    ; then
17827    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17828fi
17829
17830if test x$MISC_MAN_SUFFIX = x    ; then
17831    case $host_os in
17832	solaris*)	MISC_MAN_SUFFIX=5  ;;
17833	*)		MISC_MAN_SUFFIX=7  ;;
17834    esac
17835fi
17836if test x$MISC_MAN_DIR = x    ; then
17837    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17838fi
17839
17840if test x$DRIVER_MAN_SUFFIX = x    ; then
17841    case $host_os in
17842	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
17843	*)		DRIVER_MAN_SUFFIX=4  ;;
17844    esac
17845fi
17846if test x$DRIVER_MAN_DIR = x    ; then
17847    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17848fi
17849
17850if test x$ADMIN_MAN_SUFFIX = x    ; then
17851    case $host_os in
17852	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
17853	*)		ADMIN_MAN_SUFFIX=8  ;;
17854    esac
17855fi
17856if test x$ADMIN_MAN_DIR = x    ; then
17857    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17858fi
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874XORG_MAN_PAGE="X Version 11"
17875
17876MAN_SUBSTS="\
17877	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17878	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17879	-e 's|__xservername__|Xorg|g' \
17880	-e 's|__xconfigfile__|xorg.conf|g' \
17881	-e 's|__projectroot__|\$(prefix)|g' \
17882	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
17883	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17884	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17885	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17886	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17887	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17888	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17889
17890
17891
17892# Check whether --enable-silent-rules was given.
17893if test "${enable_silent_rules+set}" = set; then :
17894  enableval=$enable_silent_rules;
17895fi
17896
17897case $enable_silent_rules in # (((
17898  yes) AM_DEFAULT_VERBOSITY=0;;
17899   no) AM_DEFAULT_VERBOSITY=1;;
17900    *) AM_DEFAULT_VERBOSITY=0;;
17901esac
17902am_make=${MAKE-make}
17903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17904$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17905if ${am_cv_make_support_nested_variables+:} false; then :
17906  $as_echo_n "(cached) " >&6
17907else
17908  if $as_echo 'TRUE=$(BAR$(V))
17909BAR0=false
17910BAR1=true
17911V=1
17912am__doit:
17913	@$(TRUE)
17914.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17915  am_cv_make_support_nested_variables=yes
17916else
17917  am_cv_make_support_nested_variables=no
17918fi
17919fi
17920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17921$as_echo "$am_cv_make_support_nested_variables" >&6; }
17922if test $am_cv_make_support_nested_variables = yes; then
17923    AM_V='$(V)'
17924  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17925else
17926  AM_V=$AM_DEFAULT_VERBOSITY
17927  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17928fi
17929AM_BACKSLASH='\'
17930
17931
17932
17933# Checks for programs.
17934# Check whether --enable-static was given.
17935if test "${enable_static+set}" = set; then :
17936  enableval=$enable_static; p=${PACKAGE-default}
17937    case $enableval in
17938    yes) enable_static=yes ;;
17939    no) enable_static=no ;;
17940    *)
17941     enable_static=no
17942      # Look at the argument we got.  We use all the common list separators.
17943      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17944      for pkg in $enableval; do
17945	IFS="$lt_save_ifs"
17946	if test "X$pkg" = "X$p"; then
17947	  enable_static=yes
17948	fi
17949      done
17950      IFS="$lt_save_ifs"
17951      ;;
17952    esac
17953else
17954  enable_static=no
17955fi
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966# -----------------------------------------------------------------------------
17967#			Configuration options
17968# -----------------------------------------------------------------------------
17969# Define a configure option for an alternate input module directory
17970
17971# Check whether --with-xorg-module-dir was given.
17972if test "${with_xorg_module_dir+set}" = set; then :
17973  withval=$with_xorg_module_dir; moduledir="$withval"
17974else
17975  moduledir="$libdir/xorg/modules"
17976fi
17977
17978
17979
17980# Define a configure option to enable/disable lcd panel support
17981# Check whether --enable-geodegx-panel was given.
17982if test "${enable_geodegx_panel+set}" = set; then :
17983  enableval=$enable_geodegx_panel;
17984else
17985   PANEL_CPPFLAGS=-DPNL_SUP
17986fi
17987
17988
17989
17990# Define a configure option to enable/disable ztv
17991# Check whether --enable-ztv was given.
17992if test "${enable_ztv+set}" = set; then :
17993  enableval=$enable_ztv; ztv=$enableval
17994else
17995  ztv=auto
17996fi
17997
17998
17999# Check for Video4Linux Version 2 (V4L2) availability
18000for ac_header in linux/videodev2.h
18001do :
18002  ac_fn_c_check_header_mongrel "$LINENO" "linux/videodev2.h" "ac_cv_header_linux_videodev2_h" "$ac_includes_default"
18003if test "x$ac_cv_header_linux_videodev2_h" = xyes; then :
18004  cat >>confdefs.h <<_ACEOF
18005#define HAVE_LINUX_VIDEODEV2_H 1
18006_ACEOF
18007 v4l2=yes
18008else
18009  v4l2=no
18010fi
18011
18012done
18013
18014if test "x$ztv" != "xno" ; then
18015    if test "x$v4l2" = "xno" ; then
18016	if test "x$ztv" = "xyes" ; then
18017	    # User really wants ztv but V4L2 is not found
18018	    as_fn_error $? "ZTV driver requested, but videodev2.h not found." "$LINENO" 5
18019	fi
18020    else
18021	BUILD_ZTV=yes
18022    fi
18023fi
18024 if test "x$BUILD_ZTV" = xyes; then
18025  BUILD_ZTV_TRUE=
18026  BUILD_ZTV_FALSE='#'
18027else
18028  BUILD_ZTV_TRUE='#'
18029  BUILD_ZTV_FALSE=
18030fi
18031
18032
18033# Check if GCC supports compiling in 32 bit mode for 64 bit computers
18034case $host_cpu in
18035    x86_64*|amd64*)
18036	if  test "x$GCC" = xyes ; then
18037	    SAVE_CFLAGS="$CFLAGS"
18038	    CFLAGS="$CFLAGS -m32"
18039	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the -m32 Intel/AMD option" >&5
18040$as_echo_n "checking if $CC supports the -m32 Intel/AMD option... " >&6; }
18041	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18042/* end confdefs.h.  */
18043
18044#include <unistd.h>
18045int
18046main ()
18047{
18048  ;
18049  return 0;
18050}
18051_ACEOF
18052if ac_fn_c_try_compile "$LINENO"; then :
18053  m32_support=yes; M32_CFLAGS=-m32
18054else
18055  m32_support=no
18056fi
18057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18058	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $m32_support" >&5
18059$as_echo "$m32_support" >&6; }
18060	    CFLAGS="$SAVE_CFLAGS"
18061	fi
18062	;;
18063esac
18064
18065
18066# Store the list of server defined optional extensions in REQUIRED_MODULES
18067
18068
18069	SAVE_CFLAGS="$CFLAGS"
18070	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18071	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18072/* end confdefs.h.  */
18073
18074#include "xorg-server.h"
18075#if !defined RANDR
18076#error RANDR not defined
18077#endif
18078
18079int
18080main ()
18081{
18082
18083  ;
18084  return 0;
18085}
18086_ACEOF
18087if ac_fn_c_try_compile "$LINENO"; then :
18088  _EXT_CHECK=yes
18089else
18090  _EXT_CHECK=no
18091fi
18092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18093	CFLAGS="$SAVE_CFLAGS"
18094	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18095$as_echo_n "checking if RANDR is defined... " >&6; }
18096	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18097$as_echo "$_EXT_CHECK" >&6; }
18098	if test "$_EXT_CHECK" != no; then
18099		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18100	fi
18101
18102
18103
18104	SAVE_CFLAGS="$CFLAGS"
18105	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18106	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18107/* end confdefs.h.  */
18108
18109#include "xorg-server.h"
18110#if !defined RENDER
18111#error RENDER not defined
18112#endif
18113
18114int
18115main ()
18116{
18117
18118  ;
18119  return 0;
18120}
18121_ACEOF
18122if ac_fn_c_try_compile "$LINENO"; then :
18123  _EXT_CHECK=yes
18124else
18125  _EXT_CHECK=no
18126fi
18127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18128	CFLAGS="$SAVE_CFLAGS"
18129	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18130$as_echo_n "checking if RENDER is defined... " >&6; }
18131	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18132$as_echo "$_EXT_CHECK" >&6; }
18133	if test "$_EXT_CHECK" != no; then
18134		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18135	fi
18136
18137
18138
18139	SAVE_CFLAGS="$CFLAGS"
18140	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18141	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18142/* end confdefs.h.  */
18143
18144#include "xorg-server.h"
18145#if !defined XV
18146#error XV not defined
18147#endif
18148
18149int
18150main ()
18151{
18152
18153  ;
18154  return 0;
18155}
18156_ACEOF
18157if ac_fn_c_try_compile "$LINENO"; then :
18158  _EXT_CHECK=yes
18159else
18160  _EXT_CHECK=no
18161fi
18162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18163	CFLAGS="$SAVE_CFLAGS"
18164	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18165$as_echo_n "checking if XV is defined... " >&6; }
18166	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18167$as_echo "$_EXT_CHECK" >&6; }
18168	if test "$_EXT_CHECK" != no; then
18169		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18170	fi
18171
18172
18173
18174	SAVE_CFLAGS="$CFLAGS"
18175	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18176	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18177/* end confdefs.h.  */
18178
18179#include "xorg-server.h"
18180#if !defined DPMSExtension
18181#error DPMSExtension not defined
18182#endif
18183
18184int
18185main ()
18186{
18187
18188  ;
18189  return 0;
18190}
18191_ACEOF
18192if ac_fn_c_try_compile "$LINENO"; then :
18193  _EXT_CHECK=yes
18194else
18195  _EXT_CHECK=no
18196fi
18197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18198	CFLAGS="$SAVE_CFLAGS"
18199	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18200$as_echo_n "checking if DPMSExtension is defined... " >&6; }
18201	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18202$as_echo "$_EXT_CHECK" >&6; }
18203	if test "$_EXT_CHECK" != no; then
18204		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18205	fi
18206
18207
18208# Obtain compiler/linker options for the Geode driver dependencies
18209
18210pkg_failed=no
18211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18212$as_echo_n "checking for XORG... " >&6; }
18213
18214if test -n "$XORG_CFLAGS"; then
18215    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18216 elif test -n "$PKG_CONFIG"; then
18217    if test -n "$PKG_CONFIG" && \
18218    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18219  ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5
18220  ac_status=$?
18221  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18222  test $ac_status = 0; }; then
18223  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18224		      test "x$?" != "x0" && pkg_failed=yes
18225else
18226  pkg_failed=yes
18227fi
18228 else
18229    pkg_failed=untried
18230fi
18231if test -n "$XORG_LIBS"; then
18232    pkg_cv_XORG_LIBS="$XORG_LIBS"
18233 elif test -n "$PKG_CONFIG"; then
18234    if test -n "$PKG_CONFIG" && \
18235    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18236  ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5
18237  ac_status=$?
18238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18239  test $ac_status = 0; }; then
18240  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18241		      test "x$?" != "x0" && pkg_failed=yes
18242else
18243  pkg_failed=yes
18244fi
18245 else
18246    pkg_failed=untried
18247fi
18248
18249
18250
18251if test $pkg_failed = yes; then
18252   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18253$as_echo "no" >&6; }
18254
18255if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18256        _pkg_short_errors_supported=yes
18257else
18258        _pkg_short_errors_supported=no
18259fi
18260        if test $_pkg_short_errors_supported = yes; then
18261	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>&1`
18262        else
18263	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>&1`
18264        fi
18265	# Put the nasty error message in config.log where it belongs
18266	echo "$XORG_PKG_ERRORS" >&5
18267
18268	as_fn_error $? "Package requirements (xorg-server xproto fontsproto $REQUIRED_MODULES) were not met:
18269
18270$XORG_PKG_ERRORS
18271
18272Consider adjusting the PKG_CONFIG_PATH environment variable if you
18273installed software in a non-standard prefix.
18274
18275Alternatively, you may set the environment variables XORG_CFLAGS
18276and XORG_LIBS to avoid the need to call pkg-config.
18277See the pkg-config man page for more details." "$LINENO" 5
18278elif test $pkg_failed = untried; then
18279     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18280$as_echo "no" >&6; }
18281	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18283as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18284is in your PATH or set the PKG_CONFIG environment variable to the full
18285path to pkg-config.
18286
18287Alternatively, you may set the environment variables XORG_CFLAGS
18288and XORG_LIBS to avoid the need to call pkg-config.
18289See the pkg-config man page for more details.
18290
18291To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18292See \`config.log' for more details" "$LINENO" 5; }
18293else
18294	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18295	XORG_LIBS=$pkg_cv_XORG_LIBS
18296        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18297$as_echo "yes" >&6; }
18298
18299fi
18300
18301pkg_failed=no
18302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18303$as_echo_n "checking for XEXT... " >&6; }
18304
18305if test -n "$XEXT_CFLAGS"; then
18306    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18307 elif test -n "$PKG_CONFIG"; then
18308    if test -n "$PKG_CONFIG" && \
18309    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18310  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18311  ac_status=$?
18312  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18313  test $ac_status = 0; }; then
18314  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18315		      test "x$?" != "x0" && pkg_failed=yes
18316else
18317  pkg_failed=yes
18318fi
18319 else
18320    pkg_failed=untried
18321fi
18322if test -n "$XEXT_LIBS"; then
18323    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18324 elif test -n "$PKG_CONFIG"; then
18325    if test -n "$PKG_CONFIG" && \
18326    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18327  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18328  ac_status=$?
18329  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18330  test $ac_status = 0; }; then
18331  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18332		      test "x$?" != "x0" && pkg_failed=yes
18333else
18334  pkg_failed=yes
18335fi
18336 else
18337    pkg_failed=untried
18338fi
18339
18340
18341
18342if test $pkg_failed = yes; then
18343   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18344$as_echo "no" >&6; }
18345
18346if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18347        _pkg_short_errors_supported=yes
18348else
18349        _pkg_short_errors_supported=no
18350fi
18351        if test $_pkg_short_errors_supported = yes; then
18352	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18353        else
18354	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18355        fi
18356	# Put the nasty error message in config.log where it belongs
18357	echo "$XEXT_PKG_ERRORS" >&5
18358
18359	HAVE_XEXTPROTO_71="no"
18360elif test $pkg_failed = untried; then
18361     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18362$as_echo "no" >&6; }
18363	HAVE_XEXTPROTO_71="no"
18364else
18365	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18366	XEXT_LIBS=$pkg_cv_XEXT_LIBS
18367        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18368$as_echo "yes" >&6; }
18369	HAVE_XEXTPROTO_71="yes";
18370$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18371
18372fi
18373
18374# Define a configure option to enable/disable XAA support;
18375# handles unavailability of XAA since xserver-1.13
18376# Check whether --enable-xaa was given.
18377if test "${enable_xaa+set}" = set; then :
18378  enableval=$enable_xaa;
18379fi
18380
18381
18382if test "x$enable_xaa" != "xno"; then :
18383
18384        save_CFLAGS=$CFLAGS
18385        save_CPPFLAGS=$CPPFLAGS
18386        CFLAGS=$XORG_CFLAGS
18387        CPPFLAGS="$XORG_CFLAGS"
18388        for ac_header in xaa.h
18389do :
18390  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18391if test "x$ac_cv_header_xaa_h" = xyes; then :
18392  cat >>confdefs.h <<_ACEOF
18393#define HAVE_XAA_H 1
18394_ACEOF
18395 have_XAA=yes
18396else
18397  have_XAA=no
18398fi
18399
18400done
18401
18402        CFLAGS=$save_CFLAGS
18403        CPPFLAGS=$save_CPPFLAGS
18404
18405fi
18406
18407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18408$as_echo_n "checking whether to include XAA support... " >&6; }
18409
18410if test "x$have_XAA" = "xyes"; then :
18411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18412$as_echo "yes" >&6; }
18413else
18414  if test "x$enable_xaa" = "xyes"; then :
18415  as_fn_error $? "XAA requested but not found (perhaps building against xserver-1.13 or newer?)" "$LINENO" 5
18416else
18417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18418$as_echo "no" >&6; }
18419
18420fi
18421
18422fi
18423
18424# Checks for libpciaccess support.
18425SAVE_CPPFLAGS="$CPPFLAGS"
18426CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18427ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18428"
18429if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18430  XSERVER_LIBPCIACCESS=yes
18431else
18432  XSERVER_LIBPCIACCESS=no
18433fi
18434
18435CPPFLAGS="$SAVE_CPPFLAGS"
18436
18437if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18438
18439pkg_failed=no
18440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18441$as_echo_n "checking for PCIACCESS... " >&6; }
18442
18443if test -n "$PCIACCESS_CFLAGS"; then
18444    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18445 elif test -n "$PKG_CONFIG"; then
18446    if test -n "$PKG_CONFIG" && \
18447    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18448  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18449  ac_status=$?
18450  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18451  test $ac_status = 0; }; then
18452  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18453		      test "x$?" != "x0" && pkg_failed=yes
18454else
18455  pkg_failed=yes
18456fi
18457 else
18458    pkg_failed=untried
18459fi
18460if test -n "$PCIACCESS_LIBS"; then
18461    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18462 elif test -n "$PKG_CONFIG"; then
18463    if test -n "$PKG_CONFIG" && \
18464    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18465  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18466  ac_status=$?
18467  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18468  test $ac_status = 0; }; then
18469  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18470		      test "x$?" != "x0" && pkg_failed=yes
18471else
18472  pkg_failed=yes
18473fi
18474 else
18475    pkg_failed=untried
18476fi
18477
18478
18479
18480if test $pkg_failed = yes; then
18481   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18482$as_echo "no" >&6; }
18483
18484if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18485        _pkg_short_errors_supported=yes
18486else
18487        _pkg_short_errors_supported=no
18488fi
18489        if test $_pkg_short_errors_supported = yes; then
18490	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18491        else
18492	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18493        fi
18494	# Put the nasty error message in config.log where it belongs
18495	echo "$PCIACCESS_PKG_ERRORS" >&5
18496
18497	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18498
18499$PCIACCESS_PKG_ERRORS
18500
18501Consider adjusting the PKG_CONFIG_PATH environment variable if you
18502installed software in a non-standard prefix.
18503
18504Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18505and PCIACCESS_LIBS to avoid the need to call pkg-config.
18506See the pkg-config man page for more details." "$LINENO" 5
18507elif test $pkg_failed = untried; then
18508     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18509$as_echo "no" >&6; }
18510	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18512as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18513is in your PATH or set the PKG_CONFIG environment variable to the full
18514path to pkg-config.
18515
18516Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18517and PCIACCESS_LIBS to avoid the need to call pkg-config.
18518See the pkg-config man page for more details.
18519
18520To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18521See \`config.log' for more details" "$LINENO" 5; }
18522else
18523	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18524	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18525        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18526$as_echo "yes" >&6; }
18527
18528fi
18529    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18530fi
18531
18532ac_config_files="$ac_config_files Makefile src/Makefile"
18533
18534cat >confcache <<\_ACEOF
18535# This file is a shell script that caches the results of configure
18536# tests run on this system so they can be shared between configure
18537# scripts and configure runs, see configure's option --config-cache.
18538# It is not useful on other systems.  If it contains results you don't
18539# want to keep, you may remove or edit it.
18540#
18541# config.status only pays attention to the cache file if you give it
18542# the --recheck option to rerun configure.
18543#
18544# `ac_cv_env_foo' variables (set or unset) will be overridden when
18545# loading this file, other *unset* `ac_cv_foo' will be assigned the
18546# following values.
18547
18548_ACEOF
18549
18550# The following way of writing the cache mishandles newlines in values,
18551# but we know of no workaround that is simple, portable, and efficient.
18552# So, we kill variables containing newlines.
18553# Ultrix sh set writes to stderr and can't be redirected directly,
18554# and sets the high bit in the cache file unless we assign to the vars.
18555(
18556  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18557    eval ac_val=\$$ac_var
18558    case $ac_val in #(
18559    *${as_nl}*)
18560      case $ac_var in #(
18561      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18562$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18563      esac
18564      case $ac_var in #(
18565      _ | IFS | as_nl) ;; #(
18566      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18567      *) { eval $ac_var=; unset $ac_var;} ;;
18568      esac ;;
18569    esac
18570  done
18571
18572  (set) 2>&1 |
18573    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18574    *${as_nl}ac_space=\ *)
18575      # `set' does not quote correctly, so add quotes: double-quote
18576      # substitution turns \\\\ into \\, and sed turns \\ into \.
18577      sed -n \
18578	"s/'/'\\\\''/g;
18579	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18580      ;; #(
18581    *)
18582      # `set' quotes correctly as required by POSIX, so do not add quotes.
18583      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18584      ;;
18585    esac |
18586    sort
18587) |
18588  sed '
18589     /^ac_cv_env_/b end
18590     t clear
18591     :clear
18592     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18593     t end
18594     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18595     :end' >>confcache
18596if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18597  if test -w "$cache_file"; then
18598    if test "x$cache_file" != "x/dev/null"; then
18599      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18600$as_echo "$as_me: updating cache $cache_file" >&6;}
18601      if test ! -f "$cache_file" || test -h "$cache_file"; then
18602	cat confcache >"$cache_file"
18603      else
18604        case $cache_file in #(
18605        */* | ?:*)
18606	  mv -f confcache "$cache_file"$$ &&
18607	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18608        *)
18609	  mv -f confcache "$cache_file" ;;
18610	esac
18611      fi
18612    fi
18613  else
18614    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18615$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18616  fi
18617fi
18618rm -f confcache
18619
18620test "x$prefix" = xNONE && prefix=$ac_default_prefix
18621# Let make expand exec_prefix.
18622test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18623
18624DEFS=-DHAVE_CONFIG_H
18625
18626ac_libobjs=
18627ac_ltlibobjs=
18628U=
18629for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18630  # 1. Remove the extension, and $U if already installed.
18631  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18632  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18633  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18634  #    will be set to the directory where LIBOBJS objects are built.
18635  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18636  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18637done
18638LIBOBJS=$ac_libobjs
18639
18640LTLIBOBJS=$ac_ltlibobjs
18641
18642
18643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18644$as_echo_n "checking that generated files are newer than configure... " >&6; }
18645   if test -n "$am_sleep_pid"; then
18646     # Hide warnings about reused PIDs.
18647     wait $am_sleep_pid 2>/dev/null
18648   fi
18649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18650$as_echo "done" >&6; }
18651 if test -n "$EXEEXT"; then
18652  am__EXEEXT_TRUE=
18653  am__EXEEXT_FALSE='#'
18654else
18655  am__EXEEXT_TRUE='#'
18656  am__EXEEXT_FALSE=
18657fi
18658
18659if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18660  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18661Usually this means the macro was only invoked conditionally." "$LINENO" 5
18662fi
18663if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18664  as_fn_error $? "conditional \"AMDEP\" was never defined.
18665Usually this means the macro was only invoked conditionally." "$LINENO" 5
18666fi
18667if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18668  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18669Usually this means the macro was only invoked conditionally." "$LINENO" 5
18670fi
18671if test -z "${BUILD_ZTV_TRUE}" && test -z "${BUILD_ZTV_FALSE}"; then
18672  as_fn_error $? "conditional \"BUILD_ZTV\" was never defined.
18673Usually this means the macro was only invoked conditionally." "$LINENO" 5
18674fi
18675
18676: "${CONFIG_STATUS=./config.status}"
18677ac_write_fail=0
18678ac_clean_files_save=$ac_clean_files
18679ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18680{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18681$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18682as_write_fail=0
18683cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18684#! $SHELL
18685# Generated by $as_me.
18686# Run this file to recreate the current configuration.
18687# Compiler output produced by configure, useful for debugging
18688# configure, is in config.log if it exists.
18689
18690debug=false
18691ac_cs_recheck=false
18692ac_cs_silent=false
18693
18694SHELL=\${CONFIG_SHELL-$SHELL}
18695export SHELL
18696_ASEOF
18697cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18698## -------------------- ##
18699## M4sh Initialization. ##
18700## -------------------- ##
18701
18702# Be more Bourne compatible
18703DUALCASE=1; export DUALCASE # for MKS sh
18704if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18705  emulate sh
18706  NULLCMD=:
18707  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18708  # is contrary to our usage.  Disable this feature.
18709  alias -g '${1+"$@"}'='"$@"'
18710  setopt NO_GLOB_SUBST
18711else
18712  case `(set -o) 2>/dev/null` in #(
18713  *posix*) :
18714    set -o posix ;; #(
18715  *) :
18716     ;;
18717esac
18718fi
18719
18720
18721as_nl='
18722'
18723export as_nl
18724# Printing a long string crashes Solaris 7 /usr/bin/printf.
18725as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18726as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18727as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18728# Prefer a ksh shell builtin over an external printf program on Solaris,
18729# but without wasting forks for bash or zsh.
18730if test -z "$BASH_VERSION$ZSH_VERSION" \
18731    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18732  as_echo='print -r --'
18733  as_echo_n='print -rn --'
18734elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18735  as_echo='printf %s\n'
18736  as_echo_n='printf %s'
18737else
18738  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18739    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18740    as_echo_n='/usr/ucb/echo -n'
18741  else
18742    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18743    as_echo_n_body='eval
18744      arg=$1;
18745      case $arg in #(
18746      *"$as_nl"*)
18747	expr "X$arg" : "X\\(.*\\)$as_nl";
18748	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18749      esac;
18750      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18751    '
18752    export as_echo_n_body
18753    as_echo_n='sh -c $as_echo_n_body as_echo'
18754  fi
18755  export as_echo_body
18756  as_echo='sh -c $as_echo_body as_echo'
18757fi
18758
18759# The user is always right.
18760if test "${PATH_SEPARATOR+set}" != set; then
18761  PATH_SEPARATOR=:
18762  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18763    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18764      PATH_SEPARATOR=';'
18765  }
18766fi
18767
18768
18769# IFS
18770# We need space, tab and new line, in precisely that order.  Quoting is
18771# there to prevent editors from complaining about space-tab.
18772# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18773# splitting by setting IFS to empty value.)
18774IFS=" ""	$as_nl"
18775
18776# Find who we are.  Look in the path if we contain no directory separator.
18777as_myself=
18778case $0 in #((
18779  *[\\/]* ) as_myself=$0 ;;
18780  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18781for as_dir in $PATH
18782do
18783  IFS=$as_save_IFS
18784  test -z "$as_dir" && as_dir=.
18785    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18786  done
18787IFS=$as_save_IFS
18788
18789     ;;
18790esac
18791# We did not find ourselves, most probably we were run as `sh COMMAND'
18792# in which case we are not to be found in the path.
18793if test "x$as_myself" = x; then
18794  as_myself=$0
18795fi
18796if test ! -f "$as_myself"; then
18797  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18798  exit 1
18799fi
18800
18801# Unset variables that we do not need and which cause bugs (e.g. in
18802# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18803# suppresses any "Segmentation fault" message there.  '((' could
18804# trigger a bug in pdksh 5.2.14.
18805for as_var in BASH_ENV ENV MAIL MAILPATH
18806do eval test x\${$as_var+set} = xset \
18807  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18808done
18809PS1='$ '
18810PS2='> '
18811PS4='+ '
18812
18813# NLS nuisances.
18814LC_ALL=C
18815export LC_ALL
18816LANGUAGE=C
18817export LANGUAGE
18818
18819# CDPATH.
18820(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18821
18822
18823# as_fn_error STATUS ERROR [LINENO LOG_FD]
18824# ----------------------------------------
18825# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18826# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18827# script with STATUS, using 1 if that was 0.
18828as_fn_error ()
18829{
18830  as_status=$1; test $as_status -eq 0 && as_status=1
18831  if test "$4"; then
18832    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18833    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18834  fi
18835  $as_echo "$as_me: error: $2" >&2
18836  as_fn_exit $as_status
18837} # as_fn_error
18838
18839
18840# as_fn_set_status STATUS
18841# -----------------------
18842# Set $? to STATUS, without forking.
18843as_fn_set_status ()
18844{
18845  return $1
18846} # as_fn_set_status
18847
18848# as_fn_exit STATUS
18849# -----------------
18850# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18851as_fn_exit ()
18852{
18853  set +e
18854  as_fn_set_status $1
18855  exit $1
18856} # as_fn_exit
18857
18858# as_fn_unset VAR
18859# ---------------
18860# Portably unset VAR.
18861as_fn_unset ()
18862{
18863  { eval $1=; unset $1;}
18864}
18865as_unset=as_fn_unset
18866# as_fn_append VAR VALUE
18867# ----------------------
18868# Append the text in VALUE to the end of the definition contained in VAR. Take
18869# advantage of any shell optimizations that allow amortized linear growth over
18870# repeated appends, instead of the typical quadratic growth present in naive
18871# implementations.
18872if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18873  eval 'as_fn_append ()
18874  {
18875    eval $1+=\$2
18876  }'
18877else
18878  as_fn_append ()
18879  {
18880    eval $1=\$$1\$2
18881  }
18882fi # as_fn_append
18883
18884# as_fn_arith ARG...
18885# ------------------
18886# Perform arithmetic evaluation on the ARGs, and store the result in the
18887# global $as_val. Take advantage of shells that can avoid forks. The arguments
18888# must be portable across $(()) and expr.
18889if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18890  eval 'as_fn_arith ()
18891  {
18892    as_val=$(( $* ))
18893  }'
18894else
18895  as_fn_arith ()
18896  {
18897    as_val=`expr "$@" || test $? -eq 1`
18898  }
18899fi # as_fn_arith
18900
18901
18902if expr a : '\(a\)' >/dev/null 2>&1 &&
18903   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18904  as_expr=expr
18905else
18906  as_expr=false
18907fi
18908
18909if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18910  as_basename=basename
18911else
18912  as_basename=false
18913fi
18914
18915if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18916  as_dirname=dirname
18917else
18918  as_dirname=false
18919fi
18920
18921as_me=`$as_basename -- "$0" ||
18922$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18923	 X"$0" : 'X\(//\)$' \| \
18924	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18925$as_echo X/"$0" |
18926    sed '/^.*\/\([^/][^/]*\)\/*$/{
18927	    s//\1/
18928	    q
18929	  }
18930	  /^X\/\(\/\/\)$/{
18931	    s//\1/
18932	    q
18933	  }
18934	  /^X\/\(\/\).*/{
18935	    s//\1/
18936	    q
18937	  }
18938	  s/.*/./; q'`
18939
18940# Avoid depending upon Character Ranges.
18941as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18942as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18943as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18944as_cr_digits='0123456789'
18945as_cr_alnum=$as_cr_Letters$as_cr_digits
18946
18947ECHO_C= ECHO_N= ECHO_T=
18948case `echo -n x` in #(((((
18949-n*)
18950  case `echo 'xy\c'` in
18951  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18952  xy)  ECHO_C='\c';;
18953  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18954       ECHO_T='	';;
18955  esac;;
18956*)
18957  ECHO_N='-n';;
18958esac
18959
18960rm -f conf$$ conf$$.exe conf$$.file
18961if test -d conf$$.dir; then
18962  rm -f conf$$.dir/conf$$.file
18963else
18964  rm -f conf$$.dir
18965  mkdir conf$$.dir 2>/dev/null
18966fi
18967if (echo >conf$$.file) 2>/dev/null; then
18968  if ln -s conf$$.file conf$$ 2>/dev/null; then
18969    as_ln_s='ln -s'
18970    # ... but there are two gotchas:
18971    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18972    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18973    # In both cases, we have to default to `cp -pR'.
18974    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18975      as_ln_s='cp -pR'
18976  elif ln conf$$.file conf$$ 2>/dev/null; then
18977    as_ln_s=ln
18978  else
18979    as_ln_s='cp -pR'
18980  fi
18981else
18982  as_ln_s='cp -pR'
18983fi
18984rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18985rmdir conf$$.dir 2>/dev/null
18986
18987
18988# as_fn_mkdir_p
18989# -------------
18990# Create "$as_dir" as a directory, including parents if necessary.
18991as_fn_mkdir_p ()
18992{
18993
18994  case $as_dir in #(
18995  -*) as_dir=./$as_dir;;
18996  esac
18997  test -d "$as_dir" || eval $as_mkdir_p || {
18998    as_dirs=
18999    while :; do
19000      case $as_dir in #(
19001      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19002      *) as_qdir=$as_dir;;
19003      esac
19004      as_dirs="'$as_qdir' $as_dirs"
19005      as_dir=`$as_dirname -- "$as_dir" ||
19006$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19007	 X"$as_dir" : 'X\(//\)[^/]' \| \
19008	 X"$as_dir" : 'X\(//\)$' \| \
19009	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19010$as_echo X"$as_dir" |
19011    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19012	    s//\1/
19013	    q
19014	  }
19015	  /^X\(\/\/\)[^/].*/{
19016	    s//\1/
19017	    q
19018	  }
19019	  /^X\(\/\/\)$/{
19020	    s//\1/
19021	    q
19022	  }
19023	  /^X\(\/\).*/{
19024	    s//\1/
19025	    q
19026	  }
19027	  s/.*/./; q'`
19028      test -d "$as_dir" && break
19029    done
19030    test -z "$as_dirs" || eval "mkdir $as_dirs"
19031  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19032
19033
19034} # as_fn_mkdir_p
19035if mkdir -p . 2>/dev/null; then
19036  as_mkdir_p='mkdir -p "$as_dir"'
19037else
19038  test -d ./-p && rmdir ./-p
19039  as_mkdir_p=false
19040fi
19041
19042
19043# as_fn_executable_p FILE
19044# -----------------------
19045# Test if FILE is an executable regular file.
19046as_fn_executable_p ()
19047{
19048  test -f "$1" && test -x "$1"
19049} # as_fn_executable_p
19050as_test_x='test -x'
19051as_executable_p=as_fn_executable_p
19052
19053# Sed expression to map a string onto a valid CPP name.
19054as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19055
19056# Sed expression to map a string onto a valid variable name.
19057as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19058
19059
19060exec 6>&1
19061## ----------------------------------- ##
19062## Main body of $CONFIG_STATUS script. ##
19063## ----------------------------------- ##
19064_ASEOF
19065test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19066
19067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19068# Save the log message, to keep $0 and so on meaningful, and to
19069# report actual input values of CONFIG_FILES etc. instead of their
19070# values after options handling.
19071ac_log="
19072This file was extended by xf86-video-geode $as_me 2.11.19, which was
19073generated by GNU Autoconf 2.69.  Invocation command line was
19074
19075  CONFIG_FILES    = $CONFIG_FILES
19076  CONFIG_HEADERS  = $CONFIG_HEADERS
19077  CONFIG_LINKS    = $CONFIG_LINKS
19078  CONFIG_COMMANDS = $CONFIG_COMMANDS
19079  $ $0 $@
19080
19081on `(hostname || uname -n) 2>/dev/null | sed 1q`
19082"
19083
19084_ACEOF
19085
19086case $ac_config_files in *"
19087"*) set x $ac_config_files; shift; ac_config_files=$*;;
19088esac
19089
19090case $ac_config_headers in *"
19091"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19092esac
19093
19094
19095cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19096# Files that config.status was made for.
19097config_files="$ac_config_files"
19098config_headers="$ac_config_headers"
19099config_commands="$ac_config_commands"
19100
19101_ACEOF
19102
19103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19104ac_cs_usage="\
19105\`$as_me' instantiates files and other configuration actions
19106from templates according to the current configuration.  Unless the files
19107and actions are specified as TAGs, all are instantiated by default.
19108
19109Usage: $0 [OPTION]... [TAG]...
19110
19111  -h, --help       print this help, then exit
19112  -V, --version    print version number and configuration settings, then exit
19113      --config     print configuration, then exit
19114  -q, --quiet, --silent
19115                   do not print progress messages
19116  -d, --debug      don't remove temporary files
19117      --recheck    update $as_me by reconfiguring in the same conditions
19118      --file=FILE[:TEMPLATE]
19119                   instantiate the configuration file FILE
19120      --header=FILE[:TEMPLATE]
19121                   instantiate the configuration header FILE
19122
19123Configuration files:
19124$config_files
19125
19126Configuration headers:
19127$config_headers
19128
19129Configuration commands:
19130$config_commands
19131
19132Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver%2Fgeode>.
19133xf86-video-geode home page: <http://www.x.org/wiki/GeodeDriver>."
19134
19135_ACEOF
19136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19137ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19138ac_cs_version="\\
19139xf86-video-geode config.status 2.11.19
19140configured by $0, generated by GNU Autoconf 2.69,
19141  with options \\"\$ac_cs_config\\"
19142
19143Copyright (C) 2012 Free Software Foundation, Inc.
19144This config.status script is free software; the Free Software Foundation
19145gives unlimited permission to copy, distribute and modify it."
19146
19147ac_pwd='$ac_pwd'
19148srcdir='$srcdir'
19149INSTALL='$INSTALL'
19150MKDIR_P='$MKDIR_P'
19151AWK='$AWK'
19152test -n "\$AWK" || AWK=awk
19153_ACEOF
19154
19155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19156# The default lists apply if the user does not specify any file.
19157ac_need_defaults=:
19158while test $# != 0
19159do
19160  case $1 in
19161  --*=?*)
19162    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19163    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19164    ac_shift=:
19165    ;;
19166  --*=)
19167    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19168    ac_optarg=
19169    ac_shift=:
19170    ;;
19171  *)
19172    ac_option=$1
19173    ac_optarg=$2
19174    ac_shift=shift
19175    ;;
19176  esac
19177
19178  case $ac_option in
19179  # Handling of the options.
19180  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19181    ac_cs_recheck=: ;;
19182  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19183    $as_echo "$ac_cs_version"; exit ;;
19184  --config | --confi | --conf | --con | --co | --c )
19185    $as_echo "$ac_cs_config"; exit ;;
19186  --debug | --debu | --deb | --de | --d | -d )
19187    debug=: ;;
19188  --file | --fil | --fi | --f )
19189    $ac_shift
19190    case $ac_optarg in
19191    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19192    '') as_fn_error $? "missing file argument" ;;
19193    esac
19194    as_fn_append CONFIG_FILES " '$ac_optarg'"
19195    ac_need_defaults=false;;
19196  --header | --heade | --head | --hea )
19197    $ac_shift
19198    case $ac_optarg in
19199    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19200    esac
19201    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19202    ac_need_defaults=false;;
19203  --he | --h)
19204    # Conflict between --help and --header
19205    as_fn_error $? "ambiguous option: \`$1'
19206Try \`$0 --help' for more information.";;
19207  --help | --hel | -h )
19208    $as_echo "$ac_cs_usage"; exit ;;
19209  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19210  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19211    ac_cs_silent=: ;;
19212
19213  # This is an error.
19214  -*) as_fn_error $? "unrecognized option: \`$1'
19215Try \`$0 --help' for more information." ;;
19216
19217  *) as_fn_append ac_config_targets " $1"
19218     ac_need_defaults=false ;;
19219
19220  esac
19221  shift
19222done
19223
19224ac_configure_extra_args=
19225
19226if $ac_cs_silent; then
19227  exec 6>/dev/null
19228  ac_configure_extra_args="$ac_configure_extra_args --silent"
19229fi
19230
19231_ACEOF
19232cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19233if \$ac_cs_recheck; then
19234  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19235  shift
19236  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19237  CONFIG_SHELL='$SHELL'
19238  export CONFIG_SHELL
19239  exec "\$@"
19240fi
19241
19242_ACEOF
19243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19244exec 5>>config.log
19245{
19246  echo
19247  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19248## Running $as_me. ##
19249_ASBOX
19250  $as_echo "$ac_log"
19251} >&5
19252
19253_ACEOF
19254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19255#
19256# INIT-COMMANDS
19257#
19258AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19259
19260
19261# The HP-UX ksh and POSIX shell print the target directory to stdout
19262# if CDPATH is set.
19263(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19264
19265sed_quote_subst='$sed_quote_subst'
19266double_quote_subst='$double_quote_subst'
19267delay_variable_subst='$delay_variable_subst'
19268enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19269macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19270macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19271enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19272pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19273enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19274SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19275ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19276PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19277host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19278host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19279host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19280build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19281build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19282build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19283SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19284Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19285GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19286EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19287FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19288LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19289NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19290LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19291max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19292ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19293exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19294lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19295lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19296lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19297lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19298lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19299reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19300reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19301OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19302deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19303file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19304file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19305want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19306DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19307sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19308AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19309AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19310archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19311STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19312RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19313old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19314old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19315old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19316lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19317CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19318CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19319compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19320GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19321lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19322lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19323lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19324lt_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"`'
19325nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19326lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19327objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19328MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19329lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19330lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19331lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19332lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19333lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19334need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19335MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19336DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19337NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19338LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19339OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19340OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19341libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19342shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19343extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19344archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19345enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19346export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19347whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19348compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19349old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19350old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19351archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19352archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19353module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19354module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19355with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19356allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19357no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19358hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19359hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19360hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19361hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19362hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19363hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19364hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19365inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19366link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19367always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19368export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19369exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19370include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19371prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19372postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19373file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19374variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19375need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19376need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19377version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19378runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19379shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19380shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19381libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19382library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19383soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19384install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19385postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19386postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19387finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19388finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19389hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19390sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19391sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19392hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19393enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19394enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19395enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19396old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19397striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19398
19399LTCC='$LTCC'
19400LTCFLAGS='$LTCFLAGS'
19401compiler='$compiler_DEFAULT'
19402
19403# A function that is used when there is no print builtin or printf.
19404func_fallback_echo ()
19405{
19406  eval 'cat <<_LTECHO_EOF
19407\$1
19408_LTECHO_EOF'
19409}
19410
19411# Quote evaled strings.
19412for var in SHELL \
19413ECHO \
19414PATH_SEPARATOR \
19415SED \
19416GREP \
19417EGREP \
19418FGREP \
19419LD \
19420NM \
19421LN_S \
19422lt_SP2NL \
19423lt_NL2SP \
19424reload_flag \
19425OBJDUMP \
19426deplibs_check_method \
19427file_magic_cmd \
19428file_magic_glob \
19429want_nocaseglob \
19430DLLTOOL \
19431sharedlib_from_linklib_cmd \
19432AR \
19433AR_FLAGS \
19434archiver_list_spec \
19435STRIP \
19436RANLIB \
19437CC \
19438CFLAGS \
19439compiler \
19440lt_cv_sys_global_symbol_pipe \
19441lt_cv_sys_global_symbol_to_cdecl \
19442lt_cv_sys_global_symbol_to_c_name_address \
19443lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19444nm_file_list_spec \
19445lt_prog_compiler_no_builtin_flag \
19446lt_prog_compiler_pic \
19447lt_prog_compiler_wl \
19448lt_prog_compiler_static \
19449lt_cv_prog_compiler_c_o \
19450need_locks \
19451MANIFEST_TOOL \
19452DSYMUTIL \
19453NMEDIT \
19454LIPO \
19455OTOOL \
19456OTOOL64 \
19457shrext_cmds \
19458export_dynamic_flag_spec \
19459whole_archive_flag_spec \
19460compiler_needs_object \
19461with_gnu_ld \
19462allow_undefined_flag \
19463no_undefined_flag \
19464hardcode_libdir_flag_spec \
19465hardcode_libdir_separator \
19466exclude_expsyms \
19467include_expsyms \
19468file_list_spec \
19469variables_saved_for_relink \
19470libname_spec \
19471library_names_spec \
19472soname_spec \
19473install_override_mode \
19474finish_eval \
19475old_striplib \
19476striplib; do
19477    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19478    *[\\\\\\\`\\"\\\$]*)
19479      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19480      ;;
19481    *)
19482      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19483      ;;
19484    esac
19485done
19486
19487# Double-quote double-evaled strings.
19488for var in reload_cmds \
19489old_postinstall_cmds \
19490old_postuninstall_cmds \
19491old_archive_cmds \
19492extract_expsyms_cmds \
19493old_archive_from_new_cmds \
19494old_archive_from_expsyms_cmds \
19495archive_cmds \
19496archive_expsym_cmds \
19497module_cmds \
19498module_expsym_cmds \
19499export_symbols_cmds \
19500prelink_cmds \
19501postlink_cmds \
19502postinstall_cmds \
19503postuninstall_cmds \
19504finish_cmds \
19505sys_lib_search_path_spec \
19506sys_lib_dlsearch_path_spec; do
19507    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19508    *[\\\\\\\`\\"\\\$]*)
19509      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19510      ;;
19511    *)
19512      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19513      ;;
19514    esac
19515done
19516
19517ac_aux_dir='$ac_aux_dir'
19518xsi_shell='$xsi_shell'
19519lt_shell_append='$lt_shell_append'
19520
19521# See if we are running on zsh, and set the options which allow our
19522# commands through without removal of \ escapes INIT.
19523if test -n "\${ZSH_VERSION+set}" ; then
19524   setopt NO_GLOB_SUBST
19525fi
19526
19527
19528    PACKAGE='$PACKAGE'
19529    VERSION='$VERSION'
19530    TIMESTAMP='$TIMESTAMP'
19531    RM='$RM'
19532    ofile='$ofile'
19533
19534
19535
19536
19537_ACEOF
19538
19539cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19540
19541# Handling of arguments.
19542for ac_config_target in $ac_config_targets
19543do
19544  case $ac_config_target in
19545    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19546    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19547    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19548    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19549    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19550
19551  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19552  esac
19553done
19554
19555
19556# If the user did not use the arguments to specify the items to instantiate,
19557# then the envvar interface is used.  Set only those that are not.
19558# We use the long form for the default assignment because of an extremely
19559# bizarre bug on SunOS 4.1.3.
19560if $ac_need_defaults; then
19561  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19562  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19563  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19564fi
19565
19566# Have a temporary directory for convenience.  Make it in the build tree
19567# simply because there is no reason against having it here, and in addition,
19568# creating and moving files from /tmp can sometimes cause problems.
19569# Hook for its removal unless debugging.
19570# Note that there is a small window in which the directory will not be cleaned:
19571# after its creation but before its name has been assigned to `$tmp'.
19572$debug ||
19573{
19574  tmp= ac_tmp=
19575  trap 'exit_status=$?
19576  : "${ac_tmp:=$tmp}"
19577  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19578' 0
19579  trap 'as_fn_exit 1' 1 2 13 15
19580}
19581# Create a (secure) tmp directory for tmp files.
19582
19583{
19584  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19585  test -d "$tmp"
19586}  ||
19587{
19588  tmp=./conf$$-$RANDOM
19589  (umask 077 && mkdir "$tmp")
19590} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19591ac_tmp=$tmp
19592
19593# Set up the scripts for CONFIG_FILES section.
19594# No need to generate them if there are no CONFIG_FILES.
19595# This happens for instance with `./config.status config.h'.
19596if test -n "$CONFIG_FILES"; then
19597
19598
19599ac_cr=`echo X | tr X '\015'`
19600# On cygwin, bash can eat \r inside `` if the user requested igncr.
19601# But we know of no other shell where ac_cr would be empty at this
19602# point, so we can use a bashism as a fallback.
19603if test "x$ac_cr" = x; then
19604  eval ac_cr=\$\'\\r\'
19605fi
19606ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19607if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19608  ac_cs_awk_cr='\\r'
19609else
19610  ac_cs_awk_cr=$ac_cr
19611fi
19612
19613echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19614_ACEOF
19615
19616
19617{
19618  echo "cat >conf$$subs.awk <<_ACEOF" &&
19619  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19620  echo "_ACEOF"
19621} >conf$$subs.sh ||
19622  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19623ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19624ac_delim='%!_!# '
19625for ac_last_try in false false false false false :; do
19626  . ./conf$$subs.sh ||
19627    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19628
19629  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19630  if test $ac_delim_n = $ac_delim_num; then
19631    break
19632  elif $ac_last_try; then
19633    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19634  else
19635    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19636  fi
19637done
19638rm -f conf$$subs.sh
19639
19640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19641cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19642_ACEOF
19643sed -n '
19644h
19645s/^/S["/; s/!.*/"]=/
19646p
19647g
19648s/^[^!]*!//
19649:repl
19650t repl
19651s/'"$ac_delim"'$//
19652t delim
19653:nl
19654h
19655s/\(.\{148\}\)..*/\1/
19656t more1
19657s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19658p
19659n
19660b repl
19661:more1
19662s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19663p
19664g
19665s/.\{148\}//
19666t nl
19667:delim
19668h
19669s/\(.\{148\}\)..*/\1/
19670t more2
19671s/["\\]/\\&/g; s/^/"/; s/$/"/
19672p
19673b
19674:more2
19675s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19676p
19677g
19678s/.\{148\}//
19679t delim
19680' <conf$$subs.awk | sed '
19681/^[^""]/{
19682  N
19683  s/\n//
19684}
19685' >>$CONFIG_STATUS || ac_write_fail=1
19686rm -f conf$$subs.awk
19687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19688_ACAWK
19689cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19690  for (key in S) S_is_set[key] = 1
19691  FS = ""
19692
19693}
19694{
19695  line = $ 0
19696  nfields = split(line, field, "@")
19697  substed = 0
19698  len = length(field[1])
19699  for (i = 2; i < nfields; i++) {
19700    key = field[i]
19701    keylen = length(key)
19702    if (S_is_set[key]) {
19703      value = S[key]
19704      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19705      len += length(value) + length(field[++i])
19706      substed = 1
19707    } else
19708      len += 1 + keylen
19709  }
19710
19711  print line
19712}
19713
19714_ACAWK
19715_ACEOF
19716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19717if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19718  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19719else
19720  cat
19721fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19722  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19723_ACEOF
19724
19725# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19726# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19727# trailing colons and then remove the whole line if VPATH becomes empty
19728# (actually we leave an empty line to preserve line numbers).
19729if test "x$srcdir" = x.; then
19730  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19731h
19732s///
19733s/^/:/
19734s/[	 ]*$/:/
19735s/:\$(srcdir):/:/g
19736s/:\${srcdir}:/:/g
19737s/:@srcdir@:/:/g
19738s/^:*//
19739s/:*$//
19740x
19741s/\(=[	 ]*\).*/\1/
19742G
19743s/\n//
19744s/^[^=]*=[	 ]*$//
19745}'
19746fi
19747
19748cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19749fi # test -n "$CONFIG_FILES"
19750
19751# Set up the scripts for CONFIG_HEADERS section.
19752# No need to generate them if there are no CONFIG_HEADERS.
19753# This happens for instance with `./config.status Makefile'.
19754if test -n "$CONFIG_HEADERS"; then
19755cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19756BEGIN {
19757_ACEOF
19758
19759# Transform confdefs.h into an awk script `defines.awk', embedded as
19760# here-document in config.status, that substitutes the proper values into
19761# config.h.in to produce config.h.
19762
19763# Create a delimiter string that does not exist in confdefs.h, to ease
19764# handling of long lines.
19765ac_delim='%!_!# '
19766for ac_last_try in false false :; do
19767  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19768  if test -z "$ac_tt"; then
19769    break
19770  elif $ac_last_try; then
19771    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19772  else
19773    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19774  fi
19775done
19776
19777# For the awk script, D is an array of macro values keyed by name,
19778# likewise P contains macro parameters if any.  Preserve backslash
19779# newline sequences.
19780
19781ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19782sed -n '
19783s/.\{148\}/&'"$ac_delim"'/g
19784t rset
19785:rset
19786s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19787t def
19788d
19789:def
19790s/\\$//
19791t bsnl
19792s/["\\]/\\&/g
19793s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19794D["\1"]=" \3"/p
19795s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19796d
19797:bsnl
19798s/["\\]/\\&/g
19799s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19800D["\1"]=" \3\\\\\\n"\\/p
19801t cont
19802s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19803t cont
19804d
19805:cont
19806n
19807s/.\{148\}/&'"$ac_delim"'/g
19808t clear
19809:clear
19810s/\\$//
19811t bsnlc
19812s/["\\]/\\&/g; s/^/"/; s/$/"/p
19813d
19814:bsnlc
19815s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19816b cont
19817' <confdefs.h | sed '
19818s/'"$ac_delim"'/"\\\
19819"/g' >>$CONFIG_STATUS || ac_write_fail=1
19820
19821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19822  for (key in D) D_is_set[key] = 1
19823  FS = ""
19824}
19825/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19826  line = \$ 0
19827  split(line, arg, " ")
19828  if (arg[1] == "#") {
19829    defundef = arg[2]
19830    mac1 = arg[3]
19831  } else {
19832    defundef = substr(arg[1], 2)
19833    mac1 = arg[2]
19834  }
19835  split(mac1, mac2, "(") #)
19836  macro = mac2[1]
19837  prefix = substr(line, 1, index(line, defundef) - 1)
19838  if (D_is_set[macro]) {
19839    # Preserve the white space surrounding the "#".
19840    print prefix "define", macro P[macro] D[macro]
19841    next
19842  } else {
19843    # Replace #undef with comments.  This is necessary, for example,
19844    # in the case of _POSIX_SOURCE, which is predefined and required
19845    # on some systems where configure will not decide to define it.
19846    if (defundef == "undef") {
19847      print "/*", prefix defundef, macro, "*/"
19848      next
19849    }
19850  }
19851}
19852{ print }
19853_ACAWK
19854_ACEOF
19855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19856  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19857fi # test -n "$CONFIG_HEADERS"
19858
19859
19860eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19861shift
19862for ac_tag
19863do
19864  case $ac_tag in
19865  :[FHLC]) ac_mode=$ac_tag; continue;;
19866  esac
19867  case $ac_mode$ac_tag in
19868  :[FHL]*:*);;
19869  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19870  :[FH]-) ac_tag=-:-;;
19871  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19872  esac
19873  ac_save_IFS=$IFS
19874  IFS=:
19875  set x $ac_tag
19876  IFS=$ac_save_IFS
19877  shift
19878  ac_file=$1
19879  shift
19880
19881  case $ac_mode in
19882  :L) ac_source=$1;;
19883  :[FH])
19884    ac_file_inputs=
19885    for ac_f
19886    do
19887      case $ac_f in
19888      -) ac_f="$ac_tmp/stdin";;
19889      *) # Look for the file first in the build tree, then in the source tree
19890	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19891	 # because $ac_f cannot contain `:'.
19892	 test -f "$ac_f" ||
19893	   case $ac_f in
19894	   [\\/$]*) false;;
19895	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19896	   esac ||
19897	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19898      esac
19899      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19900      as_fn_append ac_file_inputs " '$ac_f'"
19901    done
19902
19903    # Let's still pretend it is `configure' which instantiates (i.e., don't
19904    # use $as_me), people would be surprised to read:
19905    #    /* config.h.  Generated by config.status.  */
19906    configure_input='Generated from '`
19907	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19908	`' by configure.'
19909    if test x"$ac_file" != x-; then
19910      configure_input="$ac_file.  $configure_input"
19911      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19912$as_echo "$as_me: creating $ac_file" >&6;}
19913    fi
19914    # Neutralize special characters interpreted by sed in replacement strings.
19915    case $configure_input in #(
19916    *\&* | *\|* | *\\* )
19917       ac_sed_conf_input=`$as_echo "$configure_input" |
19918       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19919    *) ac_sed_conf_input=$configure_input;;
19920    esac
19921
19922    case $ac_tag in
19923    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19924      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19925    esac
19926    ;;
19927  esac
19928
19929  ac_dir=`$as_dirname -- "$ac_file" ||
19930$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19931	 X"$ac_file" : 'X\(//\)[^/]' \| \
19932	 X"$ac_file" : 'X\(//\)$' \| \
19933	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19934$as_echo X"$ac_file" |
19935    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19936	    s//\1/
19937	    q
19938	  }
19939	  /^X\(\/\/\)[^/].*/{
19940	    s//\1/
19941	    q
19942	  }
19943	  /^X\(\/\/\)$/{
19944	    s//\1/
19945	    q
19946	  }
19947	  /^X\(\/\).*/{
19948	    s//\1/
19949	    q
19950	  }
19951	  s/.*/./; q'`
19952  as_dir="$ac_dir"; as_fn_mkdir_p
19953  ac_builddir=.
19954
19955case "$ac_dir" in
19956.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19957*)
19958  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19959  # A ".." for each directory in $ac_dir_suffix.
19960  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19961  case $ac_top_builddir_sub in
19962  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19963  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19964  esac ;;
19965esac
19966ac_abs_top_builddir=$ac_pwd
19967ac_abs_builddir=$ac_pwd$ac_dir_suffix
19968# for backward compatibility:
19969ac_top_builddir=$ac_top_build_prefix
19970
19971case $srcdir in
19972  .)  # We are building in place.
19973    ac_srcdir=.
19974    ac_top_srcdir=$ac_top_builddir_sub
19975    ac_abs_top_srcdir=$ac_pwd ;;
19976  [\\/]* | ?:[\\/]* )  # Absolute name.
19977    ac_srcdir=$srcdir$ac_dir_suffix;
19978    ac_top_srcdir=$srcdir
19979    ac_abs_top_srcdir=$srcdir ;;
19980  *) # Relative name.
19981    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19982    ac_top_srcdir=$ac_top_build_prefix$srcdir
19983    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19984esac
19985ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19986
19987
19988  case $ac_mode in
19989  :F)
19990  #
19991  # CONFIG_FILE
19992  #
19993
19994  case $INSTALL in
19995  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19996  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19997  esac
19998  ac_MKDIR_P=$MKDIR_P
19999  case $MKDIR_P in
20000  [\\/$]* | ?:[\\/]* ) ;;
20001  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20002  esac
20003_ACEOF
20004
20005cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20006# If the template does not know about datarootdir, expand it.
20007# FIXME: This hack should be removed a few years after 2.60.
20008ac_datarootdir_hack=; ac_datarootdir_seen=
20009ac_sed_dataroot='
20010/datarootdir/ {
20011  p
20012  q
20013}
20014/@datadir@/p
20015/@docdir@/p
20016/@infodir@/p
20017/@localedir@/p
20018/@mandir@/p'
20019case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20020*datarootdir*) ac_datarootdir_seen=yes;;
20021*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20022  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20023$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20024_ACEOF
20025cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20026  ac_datarootdir_hack='
20027  s&@datadir@&$datadir&g
20028  s&@docdir@&$docdir&g
20029  s&@infodir@&$infodir&g
20030  s&@localedir@&$localedir&g
20031  s&@mandir@&$mandir&g
20032  s&\\\${datarootdir}&$datarootdir&g' ;;
20033esac
20034_ACEOF
20035
20036# Neutralize VPATH when `$srcdir' = `.'.
20037# Shell code in configure.ac might set extrasub.
20038# FIXME: do we really want to maintain this feature?
20039cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20040ac_sed_extra="$ac_vpsub
20041$extrasub
20042_ACEOF
20043cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20044:t
20045/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20046s|@configure_input@|$ac_sed_conf_input|;t t
20047s&@top_builddir@&$ac_top_builddir_sub&;t t
20048s&@top_build_prefix@&$ac_top_build_prefix&;t t
20049s&@srcdir@&$ac_srcdir&;t t
20050s&@abs_srcdir@&$ac_abs_srcdir&;t t
20051s&@top_srcdir@&$ac_top_srcdir&;t t
20052s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20053s&@builddir@&$ac_builddir&;t t
20054s&@abs_builddir@&$ac_abs_builddir&;t t
20055s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20056s&@INSTALL@&$ac_INSTALL&;t t
20057s&@MKDIR_P@&$ac_MKDIR_P&;t t
20058$ac_datarootdir_hack
20059"
20060eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20061  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20062
20063test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20064  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20065  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20066      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20067  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20068which seems to be undefined.  Please make sure it is defined" >&5
20069$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20070which seems to be undefined.  Please make sure it is defined" >&2;}
20071
20072  rm -f "$ac_tmp/stdin"
20073  case $ac_file in
20074  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20075  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20076  esac \
20077  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20078 ;;
20079  :H)
20080  #
20081  # CONFIG_HEADER
20082  #
20083  if test x"$ac_file" != x-; then
20084    {
20085      $as_echo "/* $configure_input  */" \
20086      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20087    } >"$ac_tmp/config.h" \
20088      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20089    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20090      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20091$as_echo "$as_me: $ac_file is unchanged" >&6;}
20092    else
20093      rm -f "$ac_file"
20094      mv "$ac_tmp/config.h" "$ac_file" \
20095	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20096    fi
20097  else
20098    $as_echo "/* $configure_input  */" \
20099      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20100      || as_fn_error $? "could not create -" "$LINENO" 5
20101  fi
20102# Compute "$ac_file"'s index in $config_headers.
20103_am_arg="$ac_file"
20104_am_stamp_count=1
20105for _am_header in $config_headers :; do
20106  case $_am_header in
20107    $_am_arg | $_am_arg:* )
20108      break ;;
20109    * )
20110      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20111  esac
20112done
20113echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20114$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20115	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20116	 X"$_am_arg" : 'X\(//\)$' \| \
20117	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20118$as_echo X"$_am_arg" |
20119    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20120	    s//\1/
20121	    q
20122	  }
20123	  /^X\(\/\/\)[^/].*/{
20124	    s//\1/
20125	    q
20126	  }
20127	  /^X\(\/\/\)$/{
20128	    s//\1/
20129	    q
20130	  }
20131	  /^X\(\/\).*/{
20132	    s//\1/
20133	    q
20134	  }
20135	  s/.*/./; q'`/stamp-h$_am_stamp_count
20136 ;;
20137
20138  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20139$as_echo "$as_me: executing $ac_file commands" >&6;}
20140 ;;
20141  esac
20142
20143
20144  case $ac_file$ac_mode in
20145    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20146  # Older Autoconf quotes --file arguments for eval, but not when files
20147  # are listed without --file.  Let's play safe and only enable the eval
20148  # if we detect the quoting.
20149  case $CONFIG_FILES in
20150  *\'*) eval set x "$CONFIG_FILES" ;;
20151  *)   set x $CONFIG_FILES ;;
20152  esac
20153  shift
20154  for mf
20155  do
20156    # Strip MF so we end up with the name of the file.
20157    mf=`echo "$mf" | sed -e 's/:.*$//'`
20158    # Check whether this is an Automake generated Makefile or not.
20159    # We used to match only the files named 'Makefile.in', but
20160    # some people rename them; so instead we look at the file content.
20161    # Grep'ing the first line is not enough: some people post-process
20162    # each Makefile.in and add a new line on top of each file to say so.
20163    # Grep'ing the whole file is not good either: AIX grep has a line
20164    # limit of 2048, but all sed's we know have understand at least 4000.
20165    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20166      dirpart=`$as_dirname -- "$mf" ||
20167$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20168	 X"$mf" : 'X\(//\)[^/]' \| \
20169	 X"$mf" : 'X\(//\)$' \| \
20170	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20171$as_echo X"$mf" |
20172    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20173	    s//\1/
20174	    q
20175	  }
20176	  /^X\(\/\/\)[^/].*/{
20177	    s//\1/
20178	    q
20179	  }
20180	  /^X\(\/\/\)$/{
20181	    s//\1/
20182	    q
20183	  }
20184	  /^X\(\/\).*/{
20185	    s//\1/
20186	    q
20187	  }
20188	  s/.*/./; q'`
20189    else
20190      continue
20191    fi
20192    # Extract the definition of DEPDIR, am__include, and am__quote
20193    # from the Makefile without running 'make'.
20194    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20195    test -z "$DEPDIR" && continue
20196    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20197    test -z "$am__include" && continue
20198    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20199    # Find all dependency output files, they are included files with
20200    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20201    # simplest approach to changing $(DEPDIR) to its actual value in the
20202    # expansion.
20203    for file in `sed -n "
20204      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20205	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20206      # Make sure the directory exists.
20207      test -f "$dirpart/$file" && continue
20208      fdir=`$as_dirname -- "$file" ||
20209$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20210	 X"$file" : 'X\(//\)[^/]' \| \
20211	 X"$file" : 'X\(//\)$' \| \
20212	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20213$as_echo X"$file" |
20214    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20215	    s//\1/
20216	    q
20217	  }
20218	  /^X\(\/\/\)[^/].*/{
20219	    s//\1/
20220	    q
20221	  }
20222	  /^X\(\/\/\)$/{
20223	    s//\1/
20224	    q
20225	  }
20226	  /^X\(\/\).*/{
20227	    s//\1/
20228	    q
20229	  }
20230	  s/.*/./; q'`
20231      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20232      # echo "creating $dirpart/$file"
20233      echo '# dummy' > "$dirpart/$file"
20234    done
20235  done
20236}
20237 ;;
20238    "libtool":C)
20239
20240    # See if we are running on zsh, and set the options which allow our
20241    # commands through without removal of \ escapes.
20242    if test -n "${ZSH_VERSION+set}" ; then
20243      setopt NO_GLOB_SUBST
20244    fi
20245
20246    cfgfile="${ofile}T"
20247    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20248    $RM "$cfgfile"
20249
20250    cat <<_LT_EOF >> "$cfgfile"
20251#! $SHELL
20252
20253# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20254# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20255# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20256# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20257#
20258#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20259#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20260#                 Foundation, Inc.
20261#   Written by Gordon Matzigkeit, 1996
20262#
20263#   This file is part of GNU Libtool.
20264#
20265# GNU Libtool is free software; you can redistribute it and/or
20266# modify it under the terms of the GNU General Public License as
20267# published by the Free Software Foundation; either version 2 of
20268# the License, or (at your option) any later version.
20269#
20270# As a special exception to the GNU General Public License,
20271# if you distribute this file as part of a program or library that
20272# is built using GNU Libtool, you may include this file under the
20273# same distribution terms that you use for the rest of that program.
20274#
20275# GNU Libtool is distributed in the hope that it will be useful,
20276# but WITHOUT ANY WARRANTY; without even the implied warranty of
20277# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20278# GNU General Public License for more details.
20279#
20280# You should have received a copy of the GNU General Public License
20281# along with GNU Libtool; see the file COPYING.  If not, a copy
20282# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20283# obtained by writing to the Free Software Foundation, Inc.,
20284# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20285
20286
20287# The names of the tagged configurations supported by this script.
20288available_tags=""
20289
20290# ### BEGIN LIBTOOL CONFIG
20291
20292# Whether or not to build static libraries.
20293build_old_libs=$enable_static
20294
20295# Which release of libtool.m4 was used?
20296macro_version=$macro_version
20297macro_revision=$macro_revision
20298
20299# Whether or not to build shared libraries.
20300build_libtool_libs=$enable_shared
20301
20302# What type of objects to build.
20303pic_mode=$pic_mode
20304
20305# Whether or not to optimize for fast installation.
20306fast_install=$enable_fast_install
20307
20308# Shell to use when invoking shell scripts.
20309SHELL=$lt_SHELL
20310
20311# An echo program that protects backslashes.
20312ECHO=$lt_ECHO
20313
20314# The PATH separator for the build system.
20315PATH_SEPARATOR=$lt_PATH_SEPARATOR
20316
20317# The host system.
20318host_alias=$host_alias
20319host=$host
20320host_os=$host_os
20321
20322# The build system.
20323build_alias=$build_alias
20324build=$build
20325build_os=$build_os
20326
20327# A sed program that does not truncate output.
20328SED=$lt_SED
20329
20330# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20331Xsed="\$SED -e 1s/^X//"
20332
20333# A grep program that handles long lines.
20334GREP=$lt_GREP
20335
20336# An ERE matcher.
20337EGREP=$lt_EGREP
20338
20339# A literal string matcher.
20340FGREP=$lt_FGREP
20341
20342# A BSD- or MS-compatible name lister.
20343NM=$lt_NM
20344
20345# Whether we need soft or hard links.
20346LN_S=$lt_LN_S
20347
20348# What is the maximum length of a command?
20349max_cmd_len=$max_cmd_len
20350
20351# Object file suffix (normally "o").
20352objext=$ac_objext
20353
20354# Executable file suffix (normally "").
20355exeext=$exeext
20356
20357# whether the shell understands "unset".
20358lt_unset=$lt_unset
20359
20360# turn spaces into newlines.
20361SP2NL=$lt_lt_SP2NL
20362
20363# turn newlines into spaces.
20364NL2SP=$lt_lt_NL2SP
20365
20366# convert \$build file names to \$host format.
20367to_host_file_cmd=$lt_cv_to_host_file_cmd
20368
20369# convert \$build files to toolchain format.
20370to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20371
20372# An object symbol dumper.
20373OBJDUMP=$lt_OBJDUMP
20374
20375# Method to check whether dependent libraries are shared objects.
20376deplibs_check_method=$lt_deplibs_check_method
20377
20378# Command to use when deplibs_check_method = "file_magic".
20379file_magic_cmd=$lt_file_magic_cmd
20380
20381# How to find potential files when deplibs_check_method = "file_magic".
20382file_magic_glob=$lt_file_magic_glob
20383
20384# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20385want_nocaseglob=$lt_want_nocaseglob
20386
20387# DLL creation program.
20388DLLTOOL=$lt_DLLTOOL
20389
20390# Command to associate shared and link libraries.
20391sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20392
20393# The archiver.
20394AR=$lt_AR
20395
20396# Flags to create an archive.
20397AR_FLAGS=$lt_AR_FLAGS
20398
20399# How to feed a file listing to the archiver.
20400archiver_list_spec=$lt_archiver_list_spec
20401
20402# A symbol stripping program.
20403STRIP=$lt_STRIP
20404
20405# Commands used to install an old-style archive.
20406RANLIB=$lt_RANLIB
20407old_postinstall_cmds=$lt_old_postinstall_cmds
20408old_postuninstall_cmds=$lt_old_postuninstall_cmds
20409
20410# Whether to use a lock for old archive extraction.
20411lock_old_archive_extraction=$lock_old_archive_extraction
20412
20413# A C compiler.
20414LTCC=$lt_CC
20415
20416# LTCC compiler flags.
20417LTCFLAGS=$lt_CFLAGS
20418
20419# Take the output of nm and produce a listing of raw symbols and C names.
20420global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20421
20422# Transform the output of nm in a proper C declaration.
20423global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20424
20425# Transform the output of nm in a C name address pair.
20426global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20427
20428# Transform the output of nm in a C name address pair when lib prefix is needed.
20429global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20430
20431# Specify filename containing input files for \$NM.
20432nm_file_list_spec=$lt_nm_file_list_spec
20433
20434# The root where to search for dependent libraries,and in which our libraries should be installed.
20435lt_sysroot=$lt_sysroot
20436
20437# The name of the directory that contains temporary libtool files.
20438objdir=$objdir
20439
20440# Used to examine libraries when file_magic_cmd begins with "file".
20441MAGIC_CMD=$MAGIC_CMD
20442
20443# Must we lock files when doing compilation?
20444need_locks=$lt_need_locks
20445
20446# Manifest tool.
20447MANIFEST_TOOL=$lt_MANIFEST_TOOL
20448
20449# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20450DSYMUTIL=$lt_DSYMUTIL
20451
20452# Tool to change global to local symbols on Mac OS X.
20453NMEDIT=$lt_NMEDIT
20454
20455# Tool to manipulate fat objects and archives on Mac OS X.
20456LIPO=$lt_LIPO
20457
20458# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20459OTOOL=$lt_OTOOL
20460
20461# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20462OTOOL64=$lt_OTOOL64
20463
20464# Old archive suffix (normally "a").
20465libext=$libext
20466
20467# Shared library suffix (normally ".so").
20468shrext_cmds=$lt_shrext_cmds
20469
20470# The commands to extract the exported symbol list from a shared archive.
20471extract_expsyms_cmds=$lt_extract_expsyms_cmds
20472
20473# Variables whose values should be saved in libtool wrapper scripts and
20474# restored at link time.
20475variables_saved_for_relink=$lt_variables_saved_for_relink
20476
20477# Do we need the "lib" prefix for modules?
20478need_lib_prefix=$need_lib_prefix
20479
20480# Do we need a version for libraries?
20481need_version=$need_version
20482
20483# Library versioning type.
20484version_type=$version_type
20485
20486# Shared library runtime path variable.
20487runpath_var=$runpath_var
20488
20489# Shared library path variable.
20490shlibpath_var=$shlibpath_var
20491
20492# Is shlibpath searched before the hard-coded library search path?
20493shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20494
20495# Format of library name prefix.
20496libname_spec=$lt_libname_spec
20497
20498# List of archive names.  First name is the real one, the rest are links.
20499# The last name is the one that the linker finds with -lNAME
20500library_names_spec=$lt_library_names_spec
20501
20502# The coded name of the library, if different from the real name.
20503soname_spec=$lt_soname_spec
20504
20505# Permission mode override for installation of shared libraries.
20506install_override_mode=$lt_install_override_mode
20507
20508# Command to use after installation of a shared archive.
20509postinstall_cmds=$lt_postinstall_cmds
20510
20511# Command to use after uninstallation of a shared archive.
20512postuninstall_cmds=$lt_postuninstall_cmds
20513
20514# Commands used to finish a libtool library installation in a directory.
20515finish_cmds=$lt_finish_cmds
20516
20517# As "finish_cmds", except a single script fragment to be evaled but
20518# not shown.
20519finish_eval=$lt_finish_eval
20520
20521# Whether we should hardcode library paths into libraries.
20522hardcode_into_libs=$hardcode_into_libs
20523
20524# Compile-time system search path for libraries.
20525sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20526
20527# Run-time system search path for libraries.
20528sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20529
20530# Whether dlopen is supported.
20531dlopen_support=$enable_dlopen
20532
20533# Whether dlopen of programs is supported.
20534dlopen_self=$enable_dlopen_self
20535
20536# Whether dlopen of statically linked programs is supported.
20537dlopen_self_static=$enable_dlopen_self_static
20538
20539# Commands to strip libraries.
20540old_striplib=$lt_old_striplib
20541striplib=$lt_striplib
20542
20543
20544# The linker used to build libraries.
20545LD=$lt_LD
20546
20547# How to create reloadable object files.
20548reload_flag=$lt_reload_flag
20549reload_cmds=$lt_reload_cmds
20550
20551# Commands used to build an old-style archive.
20552old_archive_cmds=$lt_old_archive_cmds
20553
20554# A language specific compiler.
20555CC=$lt_compiler
20556
20557# Is the compiler the GNU compiler?
20558with_gcc=$GCC
20559
20560# Compiler flag to turn off builtin functions.
20561no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20562
20563# Additional compiler flags for building library objects.
20564pic_flag=$lt_lt_prog_compiler_pic
20565
20566# How to pass a linker flag through the compiler.
20567wl=$lt_lt_prog_compiler_wl
20568
20569# Compiler flag to prevent dynamic linking.
20570link_static_flag=$lt_lt_prog_compiler_static
20571
20572# Does compiler simultaneously support -c and -o options?
20573compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20574
20575# Whether or not to add -lc for building shared libraries.
20576build_libtool_need_lc=$archive_cmds_need_lc
20577
20578# Whether or not to disallow shared libs when runtime libs are static.
20579allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20580
20581# Compiler flag to allow reflexive dlopens.
20582export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20583
20584# Compiler flag to generate shared objects directly from archives.
20585whole_archive_flag_spec=$lt_whole_archive_flag_spec
20586
20587# Whether the compiler copes with passing no objects directly.
20588compiler_needs_object=$lt_compiler_needs_object
20589
20590# Create an old-style archive from a shared archive.
20591old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20592
20593# Create a temporary old-style archive to link instead of a shared archive.
20594old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20595
20596# Commands used to build a shared archive.
20597archive_cmds=$lt_archive_cmds
20598archive_expsym_cmds=$lt_archive_expsym_cmds
20599
20600# Commands used to build a loadable module if different from building
20601# a shared archive.
20602module_cmds=$lt_module_cmds
20603module_expsym_cmds=$lt_module_expsym_cmds
20604
20605# Whether we are building with GNU ld or not.
20606with_gnu_ld=$lt_with_gnu_ld
20607
20608# Flag that allows shared libraries with undefined symbols to be built.
20609allow_undefined_flag=$lt_allow_undefined_flag
20610
20611# Flag that enforces no undefined symbols.
20612no_undefined_flag=$lt_no_undefined_flag
20613
20614# Flag to hardcode \$libdir into a binary during linking.
20615# This must work even if \$libdir does not exist
20616hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20617
20618# Whether we need a single "-rpath" flag with a separated argument.
20619hardcode_libdir_separator=$lt_hardcode_libdir_separator
20620
20621# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20622# DIR into the resulting binary.
20623hardcode_direct=$hardcode_direct
20624
20625# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20626# DIR into the resulting binary and the resulting library dependency is
20627# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20628# library is relocated.
20629hardcode_direct_absolute=$hardcode_direct_absolute
20630
20631# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20632# into the resulting binary.
20633hardcode_minus_L=$hardcode_minus_L
20634
20635# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20636# into the resulting binary.
20637hardcode_shlibpath_var=$hardcode_shlibpath_var
20638
20639# Set to "yes" if building a shared library automatically hardcodes DIR
20640# into the library and all subsequent libraries and executables linked
20641# against it.
20642hardcode_automatic=$hardcode_automatic
20643
20644# Set to yes if linker adds runtime paths of dependent libraries
20645# to runtime path list.
20646inherit_rpath=$inherit_rpath
20647
20648# Whether libtool must link a program against all its dependency libraries.
20649link_all_deplibs=$link_all_deplibs
20650
20651# Set to "yes" if exported symbols are required.
20652always_export_symbols=$always_export_symbols
20653
20654# The commands to list exported symbols.
20655export_symbols_cmds=$lt_export_symbols_cmds
20656
20657# Symbols that should not be listed in the preloaded symbols.
20658exclude_expsyms=$lt_exclude_expsyms
20659
20660# Symbols that must always be exported.
20661include_expsyms=$lt_include_expsyms
20662
20663# Commands necessary for linking programs (against libraries) with templates.
20664prelink_cmds=$lt_prelink_cmds
20665
20666# Commands necessary for finishing linking programs.
20667postlink_cmds=$lt_postlink_cmds
20668
20669# Specify filename containing input files.
20670file_list_spec=$lt_file_list_spec
20671
20672# How to hardcode a shared library path into an executable.
20673hardcode_action=$hardcode_action
20674
20675# ### END LIBTOOL CONFIG
20676
20677_LT_EOF
20678
20679  case $host_os in
20680  aix3*)
20681    cat <<\_LT_EOF >> "$cfgfile"
20682# AIX sometimes has problems with the GCC collect2 program.  For some
20683# reason, if we set the COLLECT_NAMES environment variable, the problems
20684# vanish in a puff of smoke.
20685if test "X${COLLECT_NAMES+set}" != Xset; then
20686  COLLECT_NAMES=
20687  export COLLECT_NAMES
20688fi
20689_LT_EOF
20690    ;;
20691  esac
20692
20693
20694ltmain="$ac_aux_dir/ltmain.sh"
20695
20696
20697  # We use sed instead of cat because bash on DJGPP gets confused if
20698  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20699  # text mode, it properly converts lines to CR/LF.  This bash problem
20700  # is reportedly fixed, but why not run on old versions too?
20701  sed '$q' "$ltmain" >> "$cfgfile" \
20702     || (rm -f "$cfgfile"; exit 1)
20703
20704  if test x"$xsi_shell" = xyes; then
20705  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20706func_dirname ()\
20707{\
20708\    case ${1} in\
20709\      */*) func_dirname_result="${1%/*}${2}" ;;\
20710\      *  ) func_dirname_result="${3}" ;;\
20711\    esac\
20712} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20713  && mv -f "$cfgfile.tmp" "$cfgfile" \
20714    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20715test 0 -eq $? || _lt_function_replace_fail=:
20716
20717
20718  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20719func_basename ()\
20720{\
20721\    func_basename_result="${1##*/}"\
20722} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20723  && mv -f "$cfgfile.tmp" "$cfgfile" \
20724    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20725test 0 -eq $? || _lt_function_replace_fail=:
20726
20727
20728  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20729func_dirname_and_basename ()\
20730{\
20731\    case ${1} in\
20732\      */*) func_dirname_result="${1%/*}${2}" ;;\
20733\      *  ) func_dirname_result="${3}" ;;\
20734\    esac\
20735\    func_basename_result="${1##*/}"\
20736} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20737  && mv -f "$cfgfile.tmp" "$cfgfile" \
20738    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20739test 0 -eq $? || _lt_function_replace_fail=:
20740
20741
20742  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20743func_stripname ()\
20744{\
20745\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20746\    # positional parameters, so assign one to ordinary parameter first.\
20747\    func_stripname_result=${3}\
20748\    func_stripname_result=${func_stripname_result#"${1}"}\
20749\    func_stripname_result=${func_stripname_result%"${2}"}\
20750} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20751  && mv -f "$cfgfile.tmp" "$cfgfile" \
20752    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20753test 0 -eq $? || _lt_function_replace_fail=:
20754
20755
20756  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20757func_split_long_opt ()\
20758{\
20759\    func_split_long_opt_name=${1%%=*}\
20760\    func_split_long_opt_arg=${1#*=}\
20761} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20762  && mv -f "$cfgfile.tmp" "$cfgfile" \
20763    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20764test 0 -eq $? || _lt_function_replace_fail=:
20765
20766
20767  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20768func_split_short_opt ()\
20769{\
20770\    func_split_short_opt_arg=${1#??}\
20771\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20772} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20773  && mv -f "$cfgfile.tmp" "$cfgfile" \
20774    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20775test 0 -eq $? || _lt_function_replace_fail=:
20776
20777
20778  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20779func_lo2o ()\
20780{\
20781\    case ${1} in\
20782\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20783\      *)    func_lo2o_result=${1} ;;\
20784\    esac\
20785} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20786  && mv -f "$cfgfile.tmp" "$cfgfile" \
20787    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20788test 0 -eq $? || _lt_function_replace_fail=:
20789
20790
20791  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20792func_xform ()\
20793{\
20794    func_xform_result=${1%.*}.lo\
20795} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20796  && mv -f "$cfgfile.tmp" "$cfgfile" \
20797    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20798test 0 -eq $? || _lt_function_replace_fail=:
20799
20800
20801  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20802func_arith ()\
20803{\
20804    func_arith_result=$(( $* ))\
20805} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20806  && mv -f "$cfgfile.tmp" "$cfgfile" \
20807    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20808test 0 -eq $? || _lt_function_replace_fail=:
20809
20810
20811  sed -e '/^func_len ()$/,/^} # func_len /c\
20812func_len ()\
20813{\
20814    func_len_result=${#1}\
20815} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20816  && mv -f "$cfgfile.tmp" "$cfgfile" \
20817    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20818test 0 -eq $? || _lt_function_replace_fail=:
20819
20820fi
20821
20822if test x"$lt_shell_append" = xyes; then
20823  sed -e '/^func_append ()$/,/^} # func_append /c\
20824func_append ()\
20825{\
20826    eval "${1}+=\\${2}"\
20827} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20828  && mv -f "$cfgfile.tmp" "$cfgfile" \
20829    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20830test 0 -eq $? || _lt_function_replace_fail=:
20831
20832
20833  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20834func_append_quoted ()\
20835{\
20836\    func_quote_for_eval "${2}"\
20837\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20838} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20839  && mv -f "$cfgfile.tmp" "$cfgfile" \
20840    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20841test 0 -eq $? || _lt_function_replace_fail=:
20842
20843
20844  # Save a `func_append' function call where possible by direct use of '+='
20845  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20846    && mv -f "$cfgfile.tmp" "$cfgfile" \
20847      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20848  test 0 -eq $? || _lt_function_replace_fail=:
20849else
20850  # Save a `func_append' function call even when '+=' is not available
20851  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20852    && mv -f "$cfgfile.tmp" "$cfgfile" \
20853      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20854  test 0 -eq $? || _lt_function_replace_fail=:
20855fi
20856
20857if test x"$_lt_function_replace_fail" = x":"; then
20858  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20859$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20860fi
20861
20862
20863   mv -f "$cfgfile" "$ofile" ||
20864    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20865  chmod +x "$ofile"
20866
20867 ;;
20868
20869  esac
20870done # for ac_tag
20871
20872
20873as_fn_exit 0
20874_ACEOF
20875ac_clean_files=$ac_clean_files_save
20876
20877test $ac_write_fail = 0 ||
20878  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20879
20880
20881# configure is writing to config.log, and then calls config.status.
20882# config.status does its own redirection, appending to config.log.
20883# Unfortunately, on DOS this fails, as config.log is still kept open
20884# by configure, so config.status won't be able to write to it; its
20885# output is simply discarded.  So we exec the FD to /dev/null,
20886# effectively closing config.log, so it can be properly (re)opened and
20887# appended to by config.status.  When coming back to configure, we
20888# need to make the FD available again.
20889if test "$no_create" != yes; then
20890  ac_cs_success=:
20891  ac_config_status_args=
20892  test "$silent" = yes &&
20893    ac_config_status_args="$ac_config_status_args --quiet"
20894  exec 5>/dev/null
20895  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20896  exec 5>>config.log
20897  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20898  # would make configure fail if this is the last instruction.
20899  $ac_cs_success || as_fn_exit 1
20900fi
20901if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20902  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20903$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20904fi
20905
20906