configure revision 4e00c014
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-video-chips 1.2.7.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='xf86-video-chips'
593PACKAGE_TARNAME='xf86-video-chips'
594PACKAGE_VERSION='1.2.7'
595PACKAGE_STRING='xf86-video-chips 1.2.7'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597PACKAGE_URL=''
598
599ac_unique_file="Makefile.am"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640DRIVER_NAME
641moduledir
642BUILD_UTILS_FALSE
643BUILD_UTILS_TRUE
644XAA_FALSE
645XAA_TRUE
646XSERVER_LIBPCIACCESS_FALSE
647XSERVER_LIBPCIACCESS_TRUE
648PCIACCESS_LIBS
649PCIACCESS_CFLAGS
650XORG_LIBS
651XORG_CFLAGS
652LT_SYS_LIBRARY_PATH
653OTOOL64
654OTOOL
655LIPO
656NMEDIT
657DSYMUTIL
658MANIFEST_TOOL
659RANLIB
660ac_ct_AR
661AR
662DLLTOOL
663OBJDUMP
664LN_S
665NM
666ac_ct_DUMPBIN
667DUMPBIN
668LD
669FGREP
670LIBTOOL
671MAN_SUBSTS
672XORG_MAN_PAGE
673ADMIN_MAN_DIR
674DRIVER_MAN_DIR
675MISC_MAN_DIR
676FILE_MAN_DIR
677LIB_MAN_DIR
678APP_MAN_DIR
679ADMIN_MAN_SUFFIX
680DRIVER_MAN_SUFFIX
681MISC_MAN_SUFFIX
682FILE_MAN_SUFFIX
683LIB_MAN_SUFFIX
684APP_MAN_SUFFIX
685SED
686host_os
687host_vendor
688host_cpu
689host
690build_os
691build_vendor
692build_cpu
693build
694INSTALL_CMD
695PKG_CONFIG_LIBDIR
696PKG_CONFIG_PATH
697PKG_CONFIG
698CHANGELOG_CMD
699STRICT_CFLAGS
700CWARNFLAGS
701BASE_CFLAGS
702EGREP
703GREP
704CPP
705am__fastdepCC_FALSE
706am__fastdepCC_TRUE
707CCDEPMODE
708am__nodep
709AMDEPBACKSLASH
710AMDEP_FALSE
711AMDEP_TRUE
712am__quote
713am__include
714DEPDIR
715OBJEXT
716EXEEXT
717ac_ct_CC
718CPPFLAGS
719LDFLAGS
720CFLAGS
721CC
722MAINT
723MAINTAINER_MODE_FALSE
724MAINTAINER_MODE_TRUE
725AM_BACKSLASH
726AM_DEFAULT_VERBOSITY
727AM_DEFAULT_V
728AM_V
729am__untar
730am__tar
731AMTAR
732am__leading_dot
733SET_MAKE
734AWK
735mkdir_p
736MKDIR_P
737INSTALL_STRIP_PROGRAM
738STRIP
739install_sh
740MAKEINFO
741AUTOHEADER
742AUTOMAKE
743AUTOCONF
744ACLOCAL
745VERSION
746PACKAGE
747CYGPATH_W
748am__isrc
749INSTALL_DATA
750INSTALL_SCRIPT
751INSTALL_PROGRAM
752target_alias
753host_alias
754build_alias
755LIBS
756ECHO_T
757ECHO_N
758ECHO_C
759DEFS
760mandir
761localedir
762libdir
763psdir
764pdfdir
765dvidir
766htmldir
767infodir
768docdir
769oldincludedir
770includedir
771localstatedir
772sharedstatedir
773sysconfdir
774datadir
775datarootdir
776libexecdir
777sbindir
778bindir
779program_transform_name
780prefix
781exec_prefix
782PACKAGE_URL
783PACKAGE_BUGREPORT
784PACKAGE_STRING
785PACKAGE_VERSION
786PACKAGE_TARNAME
787PACKAGE_NAME
788PATH_SEPARATOR
789SHELL'
790ac_subst_files=''
791ac_user_opts='
792enable_option_checking
793enable_silent_rules
794enable_maintainer_mode
795enable_dependency_tracking
796enable_selective_werror
797enable_strict_compilation
798enable_static
799enable_shared
800with_pic
801enable_fast_install
802with_aix_soname
803with_gnu_ld
804with_sysroot
805enable_libtool_lock
806with_xorg_module_dir
807enable_xaa
808'
809      ac_precious_vars='build_alias
810host_alias
811target_alias
812CC
813CFLAGS
814LDFLAGS
815LIBS
816CPPFLAGS
817CPP
818PKG_CONFIG
819PKG_CONFIG_PATH
820PKG_CONFIG_LIBDIR
821LT_SYS_LIBRARY_PATH
822XORG_CFLAGS
823XORG_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-chips 1.2.7 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-chips]
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-chips 1.2.7:";;
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-dependency-tracking
1451                          do not reject slow dependency extractors
1452  --disable-dependency-tracking
1453                          speeds up one-time build
1454  --disable-selective-werror
1455                          Turn off selective compiler errors. (default:
1456                          enabled)
1457  --enable-strict-compilation
1458                          Enable all warnings from compiler and make them
1459                          errors (default: disabled)
1460  --enable-static[=PKGS]  build static libraries [default=no]
1461  --enable-shared[=PKGS]  build shared libraries [default=yes]
1462  --enable-fast-install[=PKGS]
1463                          optimize for fast installation [default=yes]
1464  --disable-libtool-lock  avoid locking (might break parallel builds)
1465  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1466                          [default=auto]
1467
1468Optional Packages:
1469  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1470  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1471  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1472                          both]
1473  --with-aix-soname=aix|svr4|both
1474                          shared library versioning (aka "SONAME") variant to
1475                          provide on AIX, [default=aix].
1476  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1477  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1478                          compiler's sysroot if not specified).
1479  --with-xorg-module-dir=DIR
1480                          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  LT_SYS_LIBRARY_PATH
1498              User-defined run-time library search path.
1499  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1500  XORG_LIBS   linker flags for XORG, overriding pkg-config
1501  PCIACCESS_CFLAGS
1502              C compiler flags for PCIACCESS, overriding pkg-config
1503  PCIACCESS_LIBS
1504              linker flags for PCIACCESS, overriding pkg-config
1505
1506Use these variables to override the choices made by `configure' or to help
1507it to find libraries and programs with nonstandard names/locations.
1508
1509Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1510_ACEOF
1511ac_status=$?
1512fi
1513
1514if test "$ac_init_help" = "recursive"; then
1515  # If there are subdirs, report their specific --help.
1516  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517    test -d "$ac_dir" ||
1518      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1519      continue
1520    ac_builddir=.
1521
1522case "$ac_dir" in
1523.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524*)
1525  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1526  # A ".." for each directory in $ac_dir_suffix.
1527  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1528  case $ac_top_builddir_sub in
1529  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1531  esac ;;
1532esac
1533ac_abs_top_builddir=$ac_pwd
1534ac_abs_builddir=$ac_pwd$ac_dir_suffix
1535# for backward compatibility:
1536ac_top_builddir=$ac_top_build_prefix
1537
1538case $srcdir in
1539  .)  # We are building in place.
1540    ac_srcdir=.
1541    ac_top_srcdir=$ac_top_builddir_sub
1542    ac_abs_top_srcdir=$ac_pwd ;;
1543  [\\/]* | ?:[\\/]* )  # Absolute name.
1544    ac_srcdir=$srcdir$ac_dir_suffix;
1545    ac_top_srcdir=$srcdir
1546    ac_abs_top_srcdir=$srcdir ;;
1547  *) # Relative name.
1548    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1549    ac_top_srcdir=$ac_top_build_prefix$srcdir
1550    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1551esac
1552ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553
1554    cd "$ac_dir" || { ac_status=$?; continue; }
1555    # Check for guested configure.
1556    if test -f "$ac_srcdir/configure.gnu"; then
1557      echo &&
1558      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1559    elif test -f "$ac_srcdir/configure"; then
1560      echo &&
1561      $SHELL "$ac_srcdir/configure" --help=recursive
1562    else
1563      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1564    fi || ac_status=$?
1565    cd "$ac_pwd" || { ac_status=$?; break; }
1566  done
1567fi
1568
1569test -n "$ac_init_help" && exit $ac_status
1570if $ac_init_version; then
1571  cat <<\_ACEOF
1572xf86-video-chips configure 1.2.7
1573generated by GNU Autoconf 2.69
1574
1575Copyright (C) 2012 Free Software Foundation, Inc.
1576This configure script is free software; the Free Software Foundation
1577gives unlimited permission to copy, distribute and modify it.
1578_ACEOF
1579  exit
1580fi
1581
1582## ------------------------ ##
1583## Autoconf initialization. ##
1584## ------------------------ ##
1585
1586# ac_fn_c_try_compile LINENO
1587# --------------------------
1588# Try to compile conftest.$ac_ext, and return whether this succeeded.
1589ac_fn_c_try_compile ()
1590{
1591  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592  rm -f conftest.$ac_objext
1593  if { { ac_try="$ac_compile"
1594case "(($ac_try" in
1595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596  *) ac_try_echo=$ac_try;;
1597esac
1598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599$as_echo "$ac_try_echo"; } >&5
1600  (eval "$ac_compile") 2>conftest.err
1601  ac_status=$?
1602  if test -s conftest.err; then
1603    grep -v '^ *+' conftest.err >conftest.er1
1604    cat conftest.er1 >&5
1605    mv -f conftest.er1 conftest.err
1606  fi
1607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608  test $ac_status = 0; } && {
1609	 test -z "$ac_c_werror_flag" ||
1610	 test ! -s conftest.err
1611       } && test -s conftest.$ac_objext; then :
1612  ac_retval=0
1613else
1614  $as_echo "$as_me: failed program was:" >&5
1615sed 's/^/| /' conftest.$ac_ext >&5
1616
1617	ac_retval=1
1618fi
1619  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620  as_fn_set_status $ac_retval
1621
1622} # ac_fn_c_try_compile
1623
1624# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1625# ---------------------------------------------
1626# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1627# accordingly.
1628ac_fn_c_check_decl ()
1629{
1630  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631  as_decl_name=`echo $2|sed 's/ *(.*//'`
1632  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1633  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1634$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1635if eval \${$3+:} false; then :
1636  $as_echo_n "(cached) " >&6
1637else
1638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639/* end confdefs.h.  */
1640$4
1641int
1642main ()
1643{
1644#ifndef $as_decl_name
1645#ifdef __cplusplus
1646  (void) $as_decl_use;
1647#else
1648  (void) $as_decl_name;
1649#endif
1650#endif
1651
1652  ;
1653  return 0;
1654}
1655_ACEOF
1656if ac_fn_c_try_compile "$LINENO"; then :
1657  eval "$3=yes"
1658else
1659  eval "$3=no"
1660fi
1661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1662fi
1663eval ac_res=\$$3
1664	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665$as_echo "$ac_res" >&6; }
1666  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667
1668} # ac_fn_c_check_decl
1669
1670# ac_fn_c_try_cpp LINENO
1671# ----------------------
1672# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1673ac_fn_c_try_cpp ()
1674{
1675  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676  if { { ac_try="$ac_cpp conftest.$ac_ext"
1677case "(($ac_try" in
1678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679  *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1684  ac_status=$?
1685  if test -s conftest.err; then
1686    grep -v '^ *+' conftest.err >conftest.er1
1687    cat conftest.er1 >&5
1688    mv -f conftest.er1 conftest.err
1689  fi
1690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691  test $ac_status = 0; } > conftest.i && {
1692	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1693	 test ! -s conftest.err
1694       }; then :
1695  ac_retval=0
1696else
1697  $as_echo "$as_me: failed program was:" >&5
1698sed 's/^/| /' conftest.$ac_ext >&5
1699
1700    ac_retval=1
1701fi
1702  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703  as_fn_set_status $ac_retval
1704
1705} # ac_fn_c_try_cpp
1706
1707# ac_fn_c_try_run LINENO
1708# ----------------------
1709# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1710# that executables *can* be run.
1711ac_fn_c_try_run ()
1712{
1713  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714  if { { ac_try="$ac_link"
1715case "(($ac_try" in
1716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717  *) ac_try_echo=$ac_try;;
1718esac
1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720$as_echo "$ac_try_echo"; } >&5
1721  (eval "$ac_link") 2>&5
1722  ac_status=$?
1723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1725  { { case "(($ac_try" in
1726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727  *) ac_try_echo=$ac_try;;
1728esac
1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730$as_echo "$ac_try_echo"; } >&5
1731  (eval "$ac_try") 2>&5
1732  ac_status=$?
1733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734  test $ac_status = 0; }; }; then :
1735  ac_retval=0
1736else
1737  $as_echo "$as_me: program exited with status $ac_status" >&5
1738       $as_echo "$as_me: failed program was:" >&5
1739sed 's/^/| /' conftest.$ac_ext >&5
1740
1741       ac_retval=$ac_status
1742fi
1743  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745  as_fn_set_status $ac_retval
1746
1747} # ac_fn_c_try_run
1748
1749# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1750# -------------------------------------------------------
1751# Tests whether HEADER exists and can be compiled using the include files in
1752# INCLUDES, setting the cache variable VAR accordingly.
1753ac_fn_c_check_header_compile ()
1754{
1755  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757$as_echo_n "checking for $2... " >&6; }
1758if eval \${$3+:} false; then :
1759  $as_echo_n "(cached) " >&6
1760else
1761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762/* end confdefs.h.  */
1763$4
1764#include <$2>
1765_ACEOF
1766if ac_fn_c_try_compile "$LINENO"; then :
1767  eval "$3=yes"
1768else
1769  eval "$3=no"
1770fi
1771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772fi
1773eval ac_res=\$$3
1774	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775$as_echo "$ac_res" >&6; }
1776  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777
1778} # ac_fn_c_check_header_compile
1779
1780# ac_fn_c_try_link LINENO
1781# -----------------------
1782# Try to link conftest.$ac_ext, and return whether this succeeded.
1783ac_fn_c_try_link ()
1784{
1785  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786  rm -f conftest.$ac_objext conftest$ac_exeext
1787  if { { ac_try="$ac_link"
1788case "(($ac_try" in
1789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790  *) ac_try_echo=$ac_try;;
1791esac
1792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793$as_echo "$ac_try_echo"; } >&5
1794  (eval "$ac_link") 2>conftest.err
1795  ac_status=$?
1796  if test -s conftest.err; then
1797    grep -v '^ *+' conftest.err >conftest.er1
1798    cat conftest.er1 >&5
1799    mv -f conftest.er1 conftest.err
1800  fi
1801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802  test $ac_status = 0; } && {
1803	 test -z "$ac_c_werror_flag" ||
1804	 test ! -s conftest.err
1805       } && test -s conftest$ac_exeext && {
1806	 test "$cross_compiling" = yes ||
1807	 test -x conftest$ac_exeext
1808       }; then :
1809  ac_retval=0
1810else
1811  $as_echo "$as_me: failed program was:" >&5
1812sed 's/^/| /' conftest.$ac_ext >&5
1813
1814	ac_retval=1
1815fi
1816  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818  # interfere with the next link command; also delete a directory that is
1819  # left behind by Apple's compiler.  We do this before executing the actions.
1820  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822  as_fn_set_status $ac_retval
1823
1824} # ac_fn_c_try_link
1825
1826# ac_fn_c_check_func LINENO FUNC VAR
1827# ----------------------------------
1828# Tests whether FUNC exists, setting the cache variable VAR accordingly
1829ac_fn_c_check_func ()
1830{
1831  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833$as_echo_n "checking for $2... " >&6; }
1834if eval \${$3+:} false; then :
1835  $as_echo_n "(cached) " >&6
1836else
1837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838/* end confdefs.h.  */
1839/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1841#define $2 innocuous_$2
1842
1843/* System header to define __stub macros and hopefully few prototypes,
1844    which can conflict with char $2 (); below.
1845    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846    <limits.h> exists even on freestanding compilers.  */
1847
1848#ifdef __STDC__
1849# include <limits.h>
1850#else
1851# include <assert.h>
1852#endif
1853
1854#undef $2
1855
1856/* Override any GCC internal prototype to avoid an error.
1857   Use char because int might match the return type of a GCC
1858   builtin and then its argument prototype would still apply.  */
1859#ifdef __cplusplus
1860extern "C"
1861#endif
1862char $2 ();
1863/* The GNU C library defines this for functions which it implements
1864    to always fail with ENOSYS.  Some functions are actually named
1865    something starting with __ and the normal name is an alias.  */
1866#if defined __stub_$2 || defined __stub___$2
1867choke me
1868#endif
1869
1870int
1871main ()
1872{
1873return $2 ();
1874  ;
1875  return 0;
1876}
1877_ACEOF
1878if ac_fn_c_try_link "$LINENO"; then :
1879  eval "$3=yes"
1880else
1881  eval "$3=no"
1882fi
1883rm -f core conftest.err conftest.$ac_objext \
1884    conftest$ac_exeext conftest.$ac_ext
1885fi
1886eval ac_res=\$$3
1887	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888$as_echo "$ac_res" >&6; }
1889  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891} # ac_fn_c_check_func
1892
1893# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1894# -------------------------------------------------------
1895# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1896# the include files in INCLUDES and setting the cache variable VAR
1897# accordingly.
1898ac_fn_c_check_header_mongrel ()
1899{
1900  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901  if eval \${$3+:} false; then :
1902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903$as_echo_n "checking for $2... " >&6; }
1904if eval \${$3+:} false; then :
1905  $as_echo_n "(cached) " >&6
1906fi
1907eval ac_res=\$$3
1908	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909$as_echo "$ac_res" >&6; }
1910else
1911  # Is the header compilable?
1912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1913$as_echo_n "checking $2 usability... " >&6; }
1914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915/* end confdefs.h.  */
1916$4
1917#include <$2>
1918_ACEOF
1919if ac_fn_c_try_compile "$LINENO"; then :
1920  ac_header_compiler=yes
1921else
1922  ac_header_compiler=no
1923fi
1924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1926$as_echo "$ac_header_compiler" >&6; }
1927
1928# Is the header present?
1929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1930$as_echo_n "checking $2 presence... " >&6; }
1931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932/* end confdefs.h.  */
1933#include <$2>
1934_ACEOF
1935if ac_fn_c_try_cpp "$LINENO"; then :
1936  ac_header_preproc=yes
1937else
1938  ac_header_preproc=no
1939fi
1940rm -f conftest.err conftest.i conftest.$ac_ext
1941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1942$as_echo "$ac_header_preproc" >&6; }
1943
1944# So?  What about this header?
1945case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1946  yes:no: )
1947    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1948$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1949    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1950$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1951    ;;
1952  no:yes:* )
1953    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1954$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1955    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1956$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1957    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1958$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1959    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1960$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1961    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1962$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1963( $as_echo "## ---------------------------------------------------------------------- ##
1964## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1965## ---------------------------------------------------------------------- ##"
1966     ) | sed "s/^/$as_me: WARNING:     /" >&2
1967    ;;
1968esac
1969  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970$as_echo_n "checking for $2... " >&6; }
1971if eval \${$3+:} false; then :
1972  $as_echo_n "(cached) " >&6
1973else
1974  eval "$3=\$ac_header_compiler"
1975fi
1976eval ac_res=\$$3
1977	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978$as_echo "$ac_res" >&6; }
1979fi
1980  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981
1982} # ac_fn_c_check_header_mongrel
1983cat >config.log <<_ACEOF
1984This file contains any messages produced by compilers while
1985running configure, to aid debugging if configure makes a mistake.
1986
1987It was created by xf86-video-chips $as_me 1.2.7, which was
1988generated by GNU Autoconf 2.69.  Invocation command line was
1989
1990  $ $0 $@
1991
1992_ACEOF
1993exec 5>>config.log
1994{
1995cat <<_ASUNAME
1996## --------- ##
1997## Platform. ##
1998## --------- ##
1999
2000hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2001uname -m = `(uname -m) 2>/dev/null || echo unknown`
2002uname -r = `(uname -r) 2>/dev/null || echo unknown`
2003uname -s = `(uname -s) 2>/dev/null || echo unknown`
2004uname -v = `(uname -v) 2>/dev/null || echo unknown`
2005
2006/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2007/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2008
2009/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2010/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2011/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2012/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2013/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2014/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2015/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2016
2017_ASUNAME
2018
2019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020for as_dir in $PATH
2021do
2022  IFS=$as_save_IFS
2023  test -z "$as_dir" && as_dir=.
2024    $as_echo "PATH: $as_dir"
2025  done
2026IFS=$as_save_IFS
2027
2028} >&5
2029
2030cat >&5 <<_ACEOF
2031
2032
2033## ----------- ##
2034## Core tests. ##
2035## ----------- ##
2036
2037_ACEOF
2038
2039
2040# Keep a trace of the command line.
2041# Strip out --no-create and --no-recursion so they do not pile up.
2042# Strip out --silent because we don't want to record it for future runs.
2043# Also quote any args containing shell meta-characters.
2044# Make two passes to allow for proper duplicate-argument suppression.
2045ac_configure_args=
2046ac_configure_args0=
2047ac_configure_args1=
2048ac_must_keep_next=false
2049for ac_pass in 1 2
2050do
2051  for ac_arg
2052  do
2053    case $ac_arg in
2054    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2055    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2056    | -silent | --silent | --silen | --sile | --sil)
2057      continue ;;
2058    *\'*)
2059      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2060    esac
2061    case $ac_pass in
2062    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2063    2)
2064      as_fn_append ac_configure_args1 " '$ac_arg'"
2065      if test $ac_must_keep_next = true; then
2066	ac_must_keep_next=false # Got value, back to normal.
2067      else
2068	case $ac_arg in
2069	  *=* | --config-cache | -C | -disable-* | --disable-* \
2070	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2071	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2072	  | -with-* | --with-* | -without-* | --without-* | --x)
2073	    case "$ac_configure_args0 " in
2074	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2075	    esac
2076	    ;;
2077	  -* ) ac_must_keep_next=true ;;
2078	esac
2079      fi
2080      as_fn_append ac_configure_args " '$ac_arg'"
2081      ;;
2082    esac
2083  done
2084done
2085{ ac_configure_args0=; unset ac_configure_args0;}
2086{ ac_configure_args1=; unset ac_configure_args1;}
2087
2088# When interrupted or exit'd, cleanup temporary files, and complete
2089# config.log.  We remove comments because anyway the quotes in there
2090# would cause problems or look ugly.
2091# WARNING: Use '\'' to represent an apostrophe within the trap.
2092# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2093trap 'exit_status=$?
2094  # Save into config.log some information that might help in debugging.
2095  {
2096    echo
2097
2098    $as_echo "## ---------------- ##
2099## Cache variables. ##
2100## ---------------- ##"
2101    echo
2102    # The following way of writing the cache mishandles newlines in values,
2103(
2104  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2105    eval ac_val=\$$ac_var
2106    case $ac_val in #(
2107    *${as_nl}*)
2108      case $ac_var in #(
2109      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2110$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2111      esac
2112      case $ac_var in #(
2113      _ | IFS | as_nl) ;; #(
2114      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2115      *) { eval $ac_var=; unset $ac_var;} ;;
2116      esac ;;
2117    esac
2118  done
2119  (set) 2>&1 |
2120    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2121    *${as_nl}ac_space=\ *)
2122      sed -n \
2123	"s/'\''/'\''\\\\'\'''\''/g;
2124	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2125      ;; #(
2126    *)
2127      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2128      ;;
2129    esac |
2130    sort
2131)
2132    echo
2133
2134    $as_echo "## ----------------- ##
2135## Output variables. ##
2136## ----------------- ##"
2137    echo
2138    for ac_var in $ac_subst_vars
2139    do
2140      eval ac_val=\$$ac_var
2141      case $ac_val in
2142      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2143      esac
2144      $as_echo "$ac_var='\''$ac_val'\''"
2145    done | sort
2146    echo
2147
2148    if test -n "$ac_subst_files"; then
2149      $as_echo "## ------------------- ##
2150## File substitutions. ##
2151## ------------------- ##"
2152      echo
2153      for ac_var in $ac_subst_files
2154      do
2155	eval ac_val=\$$ac_var
2156	case $ac_val in
2157	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2158	esac
2159	$as_echo "$ac_var='\''$ac_val'\''"
2160      done | sort
2161      echo
2162    fi
2163
2164    if test -s confdefs.h; then
2165      $as_echo "## ----------- ##
2166## confdefs.h. ##
2167## ----------- ##"
2168      echo
2169      cat confdefs.h
2170      echo
2171    fi
2172    test "$ac_signal" != 0 &&
2173      $as_echo "$as_me: caught signal $ac_signal"
2174    $as_echo "$as_me: exit $exit_status"
2175  } >&5
2176  rm -f core *.core core.conftest.* &&
2177    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2178    exit $exit_status
2179' 0
2180for ac_signal in 1 2 13 15; do
2181  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2182done
2183ac_signal=0
2184
2185# confdefs.h avoids OS command line length limits that DEFS can exceed.
2186rm -f -r conftest* confdefs.h
2187
2188$as_echo "/* confdefs.h */" > confdefs.h
2189
2190# Predefined preprocessor variables.
2191
2192cat >>confdefs.h <<_ACEOF
2193#define PACKAGE_NAME "$PACKAGE_NAME"
2194_ACEOF
2195
2196cat >>confdefs.h <<_ACEOF
2197#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2198_ACEOF
2199
2200cat >>confdefs.h <<_ACEOF
2201#define PACKAGE_VERSION "$PACKAGE_VERSION"
2202_ACEOF
2203
2204cat >>confdefs.h <<_ACEOF
2205#define PACKAGE_STRING "$PACKAGE_STRING"
2206_ACEOF
2207
2208cat >>confdefs.h <<_ACEOF
2209#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2210_ACEOF
2211
2212cat >>confdefs.h <<_ACEOF
2213#define PACKAGE_URL "$PACKAGE_URL"
2214_ACEOF
2215
2216
2217# Let the site file select an alternate cache file if it wants to.
2218# Prefer an explicitly selected file to automatically selected ones.
2219ac_site_file1=NONE
2220ac_site_file2=NONE
2221if test -n "$CONFIG_SITE"; then
2222  # We do not want a PATH search for config.site.
2223  case $CONFIG_SITE in #((
2224    -*)  ac_site_file1=./$CONFIG_SITE;;
2225    */*) ac_site_file1=$CONFIG_SITE;;
2226    *)   ac_site_file1=./$CONFIG_SITE;;
2227  esac
2228elif test "x$prefix" != xNONE; then
2229  ac_site_file1=$prefix/share/config.site
2230  ac_site_file2=$prefix/etc/config.site
2231else
2232  ac_site_file1=$ac_default_prefix/share/config.site
2233  ac_site_file2=$ac_default_prefix/etc/config.site
2234fi
2235for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2236do
2237  test "x$ac_site_file" = xNONE && continue
2238  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2239    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2240$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2241    sed 's/^/| /' "$ac_site_file" >&5
2242    . "$ac_site_file" \
2243      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2245as_fn_error $? "failed to load site script $ac_site_file
2246See \`config.log' for more details" "$LINENO" 5; }
2247  fi
2248done
2249
2250if test -r "$cache_file"; then
2251  # Some versions of bash will fail to source /dev/null (special files
2252  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2253  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2254    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2255$as_echo "$as_me: loading cache $cache_file" >&6;}
2256    case $cache_file in
2257      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2258      *)                      . "./$cache_file";;
2259    esac
2260  fi
2261else
2262  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2263$as_echo "$as_me: creating cache $cache_file" >&6;}
2264  >$cache_file
2265fi
2266
2267# Check that the precious variables saved in the cache have kept the same
2268# value.
2269ac_cache_corrupted=false
2270for ac_var in $ac_precious_vars; do
2271  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2272  eval ac_new_set=\$ac_env_${ac_var}_set
2273  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2274  eval ac_new_val=\$ac_env_${ac_var}_value
2275  case $ac_old_set,$ac_new_set in
2276    set,)
2277      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2278$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2279      ac_cache_corrupted=: ;;
2280    ,set)
2281      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2282$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2283      ac_cache_corrupted=: ;;
2284    ,);;
2285    *)
2286      if test "x$ac_old_val" != "x$ac_new_val"; then
2287	# differences in whitespace do not lead to failure.
2288	ac_old_val_w=`echo x $ac_old_val`
2289	ac_new_val_w=`echo x $ac_new_val`
2290	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2291	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2292$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2293	  ac_cache_corrupted=:
2294	else
2295	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2296$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2297	  eval $ac_var=\$ac_old_val
2298	fi
2299	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2300$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2301	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2302$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2303      fi;;
2304  esac
2305  # Pass precious variables to config.status.
2306  if test "$ac_new_set" = set; then
2307    case $ac_new_val in
2308    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2309    *) ac_arg=$ac_var=$ac_new_val ;;
2310    esac
2311    case " $ac_configure_args " in
2312      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2313      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2314    esac
2315  fi
2316done
2317if $ac_cache_corrupted; then
2318  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2320  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2321$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2322  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2323fi
2324## -------------------- ##
2325## Main body of script. ##
2326## -------------------- ##
2327
2328ac_ext=c
2329ac_cpp='$CPP $CPPFLAGS'
2330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333
2334
2335
2336ac_config_headers="$ac_config_headers config.h"
2337
2338ac_aux_dir=
2339for ac_dir in . "$srcdir"/.; do
2340  if test -f "$ac_dir/install-sh"; then
2341    ac_aux_dir=$ac_dir
2342    ac_install_sh="$ac_aux_dir/install-sh -c"
2343    break
2344  elif test -f "$ac_dir/install.sh"; then
2345    ac_aux_dir=$ac_dir
2346    ac_install_sh="$ac_aux_dir/install.sh -c"
2347    break
2348  elif test -f "$ac_dir/shtool"; then
2349    ac_aux_dir=$ac_dir
2350    ac_install_sh="$ac_aux_dir/shtool install -c"
2351    break
2352  fi
2353done
2354if test -z "$ac_aux_dir"; then
2355  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2356fi
2357
2358# These three variables are undocumented and unsupported,
2359# and are intended to be withdrawn in a future Autoconf release.
2360# They can cause serious problems if a builder's source tree is in a directory
2361# whose full name contains unusual characters.
2362ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2363ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2364ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2365
2366
2367
2368# Initialize Automake
2369am__api_version='1.15'
2370
2371# Find a good install program.  We prefer a C program (faster),
2372# so one script is as good as another.  But avoid the broken or
2373# incompatible versions:
2374# SysV /etc/install, /usr/sbin/install
2375# SunOS /usr/etc/install
2376# IRIX /sbin/install
2377# AIX /bin/install
2378# AmigaOS /C/install, which installs bootblocks on floppy discs
2379# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2380# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2381# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2382# OS/2's system install, which has a completely different semantic
2383# ./install, which can be erroneously created by make from ./install.sh.
2384# Reject install programs that cannot install multiple files.
2385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2386$as_echo_n "checking for a BSD-compatible install... " >&6; }
2387if test -z "$INSTALL"; then
2388if ${ac_cv_path_install+:} false; then :
2389  $as_echo_n "(cached) " >&6
2390else
2391  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392for as_dir in $PATH
2393do
2394  IFS=$as_save_IFS
2395  test -z "$as_dir" && as_dir=.
2396    # Account for people who put trailing slashes in PATH elements.
2397case $as_dir/ in #((
2398  ./ | .// | /[cC]/* | \
2399  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2400  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2401  /usr/ucb/* ) ;;
2402  *)
2403    # OSF1 and SCO ODT 3.0 have their own names for install.
2404    # Don't use installbsd from OSF since it installs stuff as root
2405    # by default.
2406    for ac_prog in ginstall scoinst install; do
2407      for ac_exec_ext in '' $ac_executable_extensions; do
2408	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2409	  if test $ac_prog = install &&
2410	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2411	    # AIX install.  It has an incompatible calling convention.
2412	    :
2413	  elif test $ac_prog = install &&
2414	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2415	    # program-specific install script used by HP pwplus--don't use.
2416	    :
2417	  else
2418	    rm -rf conftest.one conftest.two conftest.dir
2419	    echo one > conftest.one
2420	    echo two > conftest.two
2421	    mkdir conftest.dir
2422	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2423	      test -s conftest.one && test -s conftest.two &&
2424	      test -s conftest.dir/conftest.one &&
2425	      test -s conftest.dir/conftest.two
2426	    then
2427	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2428	      break 3
2429	    fi
2430	  fi
2431	fi
2432      done
2433    done
2434    ;;
2435esac
2436
2437  done
2438IFS=$as_save_IFS
2439
2440rm -rf conftest.one conftest.two conftest.dir
2441
2442fi
2443  if test "${ac_cv_path_install+set}" = set; then
2444    INSTALL=$ac_cv_path_install
2445  else
2446    # As a last resort, use the slow shell script.  Don't cache a
2447    # value for INSTALL within a source directory, because that will
2448    # break other packages using the cache if that directory is
2449    # removed, or if the value is a relative name.
2450    INSTALL=$ac_install_sh
2451  fi
2452fi
2453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2454$as_echo "$INSTALL" >&6; }
2455
2456# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2457# It thinks the first close brace ends the variable substitution.
2458test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2459
2460test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2461
2462test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2463
2464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2465$as_echo_n "checking whether build environment is sane... " >&6; }
2466# Reject unsafe characters in $srcdir or the absolute working directory
2467# name.  Accept space and tab only in the latter.
2468am_lf='
2469'
2470case `pwd` in
2471  *[\\\"\#\$\&\'\`$am_lf]*)
2472    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2473esac
2474case $srcdir in
2475  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2476    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2477esac
2478
2479# Do 'set' in a subshell so we don't clobber the current shell's
2480# arguments.  Must try -L first in case configure is actually a
2481# symlink; some systems play weird games with the mod time of symlinks
2482# (eg FreeBSD returns the mod time of the symlink's containing
2483# directory).
2484if (
2485   am_has_slept=no
2486   for am_try in 1 2; do
2487     echo "timestamp, slept: $am_has_slept" > conftest.file
2488     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2489     if test "$*" = "X"; then
2490	# -L didn't work.
2491	set X `ls -t "$srcdir/configure" conftest.file`
2492     fi
2493     if test "$*" != "X $srcdir/configure conftest.file" \
2494	&& test "$*" != "X conftest.file $srcdir/configure"; then
2495
2496	# If neither matched, then we have a broken ls.  This can happen
2497	# if, for instance, CONFIG_SHELL is bash and it inherits a
2498	# broken ls alias from the environment.  This has actually
2499	# happened.  Such a system could not be considered "sane".
2500	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2501  alias in your environment" "$LINENO" 5
2502     fi
2503     if test "$2" = conftest.file || test $am_try -eq 2; then
2504       break
2505     fi
2506     # Just in case.
2507     sleep 1
2508     am_has_slept=yes
2509   done
2510   test "$2" = conftest.file
2511   )
2512then
2513   # Ok.
2514   :
2515else
2516   as_fn_error $? "newly created file is older than distributed files!
2517Check your system clock" "$LINENO" 5
2518fi
2519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2520$as_echo "yes" >&6; }
2521# If we didn't sleep, we still need to ensure time stamps of config.status and
2522# generated files are strictly newer.
2523am_sleep_pid=
2524if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2525  ( sleep 1 ) &
2526  am_sleep_pid=$!
2527fi
2528
2529rm -f conftest.file
2530
2531test "$program_prefix" != NONE &&
2532  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2533# Use a double $ so make ignores it.
2534test "$program_suffix" != NONE &&
2535  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2536# Double any \ or $.
2537# By default was `s,x,x', remove it if useless.
2538ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2539program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2540
2541# Expand $ac_aux_dir to an absolute path.
2542am_aux_dir=`cd "$ac_aux_dir" && pwd`
2543
2544if test x"${MISSING+set}" != xset; then
2545  case $am_aux_dir in
2546  *\ * | *\	*)
2547    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2548  *)
2549    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2550  esac
2551fi
2552# Use eval to expand $SHELL
2553if eval "$MISSING --is-lightweight"; then
2554  am_missing_run="$MISSING "
2555else
2556  am_missing_run=
2557  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2558$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2559fi
2560
2561if test x"${install_sh+set}" != xset; then
2562  case $am_aux_dir in
2563  *\ * | *\	*)
2564    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2565  *)
2566    install_sh="\${SHELL} $am_aux_dir/install-sh"
2567  esac
2568fi
2569
2570# Installed binaries are usually stripped using 'strip' when the user
2571# run "make install-strip".  However 'strip' might not be the right
2572# tool to use in cross-compilation environments, therefore Automake
2573# will honor the 'STRIP' environment variable to overrule this program.
2574if test "$cross_compiling" != no; then
2575  if test -n "$ac_tool_prefix"; then
2576  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2577set dummy ${ac_tool_prefix}strip; ac_word=$2
2578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579$as_echo_n "checking for $ac_word... " >&6; }
2580if ${ac_cv_prog_STRIP+:} false; then :
2581  $as_echo_n "(cached) " >&6
2582else
2583  if test -n "$STRIP"; then
2584  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2585else
2586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587for as_dir in $PATH
2588do
2589  IFS=$as_save_IFS
2590  test -z "$as_dir" && as_dir=.
2591    for ac_exec_ext in '' $ac_executable_extensions; do
2592  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2594    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2595    break 2
2596  fi
2597done
2598  done
2599IFS=$as_save_IFS
2600
2601fi
2602fi
2603STRIP=$ac_cv_prog_STRIP
2604if test -n "$STRIP"; then
2605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2606$as_echo "$STRIP" >&6; }
2607else
2608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2609$as_echo "no" >&6; }
2610fi
2611
2612
2613fi
2614if test -z "$ac_cv_prog_STRIP"; then
2615  ac_ct_STRIP=$STRIP
2616  # Extract the first word of "strip", so it can be a program name with args.
2617set dummy strip; ac_word=$2
2618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2619$as_echo_n "checking for $ac_word... " >&6; }
2620if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2621  $as_echo_n "(cached) " >&6
2622else
2623  if test -n "$ac_ct_STRIP"; then
2624  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2625else
2626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627for as_dir in $PATH
2628do
2629  IFS=$as_save_IFS
2630  test -z "$as_dir" && as_dir=.
2631    for ac_exec_ext in '' $ac_executable_extensions; do
2632  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2633    ac_cv_prog_ac_ct_STRIP="strip"
2634    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2635    break 2
2636  fi
2637done
2638  done
2639IFS=$as_save_IFS
2640
2641fi
2642fi
2643ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2644if test -n "$ac_ct_STRIP"; then
2645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2646$as_echo "$ac_ct_STRIP" >&6; }
2647else
2648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649$as_echo "no" >&6; }
2650fi
2651
2652  if test "x$ac_ct_STRIP" = x; then
2653    STRIP=":"
2654  else
2655    case $cross_compiling:$ac_tool_warned in
2656yes:)
2657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2659ac_tool_warned=yes ;;
2660esac
2661    STRIP=$ac_ct_STRIP
2662  fi
2663else
2664  STRIP="$ac_cv_prog_STRIP"
2665fi
2666
2667fi
2668INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2669
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2671$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2672if test -z "$MKDIR_P"; then
2673  if ${ac_cv_path_mkdir+:} false; then :
2674  $as_echo_n "(cached) " >&6
2675else
2676  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2678do
2679  IFS=$as_save_IFS
2680  test -z "$as_dir" && as_dir=.
2681    for ac_prog in mkdir gmkdir; do
2682	 for ac_exec_ext in '' $ac_executable_extensions; do
2683	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2684	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2685	     'mkdir (GNU coreutils) '* | \
2686	     'mkdir (coreutils) '* | \
2687	     'mkdir (fileutils) '4.1*)
2688	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2689	       break 3;;
2690	   esac
2691	 done
2692       done
2693  done
2694IFS=$as_save_IFS
2695
2696fi
2697
2698  test -d ./--version && rmdir ./--version
2699  if test "${ac_cv_path_mkdir+set}" = set; then
2700    MKDIR_P="$ac_cv_path_mkdir -p"
2701  else
2702    # As a last resort, use the slow shell script.  Don't cache a
2703    # value for MKDIR_P within a source directory, because that will
2704    # break other packages using the cache if that directory is
2705    # removed, or if the value is a relative name.
2706    MKDIR_P="$ac_install_sh -d"
2707  fi
2708fi
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2710$as_echo "$MKDIR_P" >&6; }
2711
2712for ac_prog in gawk mawk nawk awk
2713do
2714  # Extract the first word of "$ac_prog", so it can be a program name with args.
2715set dummy $ac_prog; ac_word=$2
2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717$as_echo_n "checking for $ac_word... " >&6; }
2718if ${ac_cv_prog_AWK+:} false; then :
2719  $as_echo_n "(cached) " >&6
2720else
2721  if test -n "$AWK"; then
2722  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2723else
2724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725for as_dir in $PATH
2726do
2727  IFS=$as_save_IFS
2728  test -z "$as_dir" && as_dir=.
2729    for ac_exec_ext in '' $ac_executable_extensions; do
2730  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2731    ac_cv_prog_AWK="$ac_prog"
2732    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733    break 2
2734  fi
2735done
2736  done
2737IFS=$as_save_IFS
2738
2739fi
2740fi
2741AWK=$ac_cv_prog_AWK
2742if test -n "$AWK"; then
2743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2744$as_echo "$AWK" >&6; }
2745else
2746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747$as_echo "no" >&6; }
2748fi
2749
2750
2751  test -n "$AWK" && break
2752done
2753
2754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2755$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2756set x ${MAKE-make}
2757ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2758if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2759  $as_echo_n "(cached) " >&6
2760else
2761  cat >conftest.make <<\_ACEOF
2762SHELL = /bin/sh
2763all:
2764	@echo '@@@%%%=$(MAKE)=@@@%%%'
2765_ACEOF
2766# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2767case `${MAKE-make} -f conftest.make 2>/dev/null` in
2768  *@@@%%%=?*=@@@%%%*)
2769    eval ac_cv_prog_make_${ac_make}_set=yes;;
2770  *)
2771    eval ac_cv_prog_make_${ac_make}_set=no;;
2772esac
2773rm -f conftest.make
2774fi
2775if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2777$as_echo "yes" >&6; }
2778  SET_MAKE=
2779else
2780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781$as_echo "no" >&6; }
2782  SET_MAKE="MAKE=${MAKE-make}"
2783fi
2784
2785rm -rf .tst 2>/dev/null
2786mkdir .tst 2>/dev/null
2787if test -d .tst; then
2788  am__leading_dot=.
2789else
2790  am__leading_dot=_
2791fi
2792rmdir .tst 2>/dev/null
2793
2794# Check whether --enable-silent-rules was given.
2795if test "${enable_silent_rules+set}" = set; then :
2796  enableval=$enable_silent_rules;
2797fi
2798
2799case $enable_silent_rules in # (((
2800  yes) AM_DEFAULT_VERBOSITY=0;;
2801   no) AM_DEFAULT_VERBOSITY=1;;
2802    *) AM_DEFAULT_VERBOSITY=1;;
2803esac
2804am_make=${MAKE-make}
2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2806$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2807if ${am_cv_make_support_nested_variables+:} false; then :
2808  $as_echo_n "(cached) " >&6
2809else
2810  if $as_echo 'TRUE=$(BAR$(V))
2811BAR0=false
2812BAR1=true
2813V=1
2814am__doit:
2815	@$(TRUE)
2816.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2817  am_cv_make_support_nested_variables=yes
2818else
2819  am_cv_make_support_nested_variables=no
2820fi
2821fi
2822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2823$as_echo "$am_cv_make_support_nested_variables" >&6; }
2824if test $am_cv_make_support_nested_variables = yes; then
2825    AM_V='$(V)'
2826  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2827else
2828  AM_V=$AM_DEFAULT_VERBOSITY
2829  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2830fi
2831AM_BACKSLASH='\'
2832
2833if test "`cd $srcdir && pwd`" != "`pwd`"; then
2834  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2835  # is not polluted with repeated "-I."
2836  am__isrc=' -I$(srcdir)'
2837  # test to see if srcdir already configured
2838  if test -f $srcdir/config.status; then
2839    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2840  fi
2841fi
2842
2843# test whether we have cygpath
2844if test -z "$CYGPATH_W"; then
2845  if (cygpath --version) >/dev/null 2>/dev/null; then
2846    CYGPATH_W='cygpath -w'
2847  else
2848    CYGPATH_W=echo
2849  fi
2850fi
2851
2852
2853# Define the identity of the package.
2854 PACKAGE='xf86-video-chips'
2855 VERSION='1.2.7'
2856
2857
2858cat >>confdefs.h <<_ACEOF
2859#define PACKAGE "$PACKAGE"
2860_ACEOF
2861
2862
2863cat >>confdefs.h <<_ACEOF
2864#define VERSION "$VERSION"
2865_ACEOF
2866
2867# Some tools Automake needs.
2868
2869ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2870
2871
2872AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2873
2874
2875AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2876
2877
2878AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2879
2880
2881MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2882
2883# For better backward compatibility.  To be removed once Automake 1.9.x
2884# dies out for good.  For more background, see:
2885# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2886# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2887mkdir_p='$(MKDIR_P)'
2888
2889# We need awk for the "check" target (and possibly the TAP driver).  The
2890# system "awk" is bad on some platforms.
2891# Always define AMTAR for backward compatibility.  Yes, it's still used
2892# in the wild :-(  We should find a proper way to deprecate it ...
2893AMTAR='$${TAR-tar}'
2894
2895
2896# We'll loop over all known methods to create a tar archive until one works.
2897_am_tools='gnutar  pax cpio none'
2898
2899am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2900
2901
2902
2903
2904
2905
2906# POSIX will say in a future version that running "rm -f" with no argument
2907# is OK; and we want to be able to make that assumption in our Makefile
2908# recipes.  So use an aggressive probe to check that the usage we want is
2909# actually supported "in the wild" to an acceptable degree.
2910# See automake bug#10828.
2911# To make any issue more visible, cause the running configure to be aborted
2912# by default if the 'rm' program in use doesn't match our expectations; the
2913# user can still override this though.
2914if rm -f && rm -fr && rm -rf; then : OK; else
2915  cat >&2 <<'END'
2916Oops!
2917
2918Your 'rm' program seems unable to run without file operands specified
2919on the command line, even when the '-f' option is present.  This is contrary
2920to the behaviour of most rm programs out there, and not conforming with
2921the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2922
2923Please tell bug-automake@gnu.org about your system, including the value
2924of your $PATH and any error possibly output before this message.  This
2925can help us improve future automake versions.
2926
2927END
2928  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2929    echo 'Configuration will proceed anyway, since you have set the' >&2
2930    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2931    echo >&2
2932  else
2933    cat >&2 <<'END'
2934Aborting the configuration process, to ensure you take notice of the issue.
2935
2936You can download and install GNU coreutils to get an 'rm' implementation
2937that behaves properly: <http://www.gnu.org/software/coreutils/>.
2938
2939If you want to complete the configuration process using your problematic
2940'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2941to "yes", and re-run configure.
2942
2943END
2944    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2945  fi
2946fi
2947
2948
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2950$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2951    # Check whether --enable-maintainer-mode was given.
2952if test "${enable_maintainer_mode+set}" = set; then :
2953  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2954else
2955  USE_MAINTAINER_MODE=no
2956fi
2957
2958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2959$as_echo "$USE_MAINTAINER_MODE" >&6; }
2960   if test $USE_MAINTAINER_MODE = yes; then
2961  MAINTAINER_MODE_TRUE=
2962  MAINTAINER_MODE_FALSE='#'
2963else
2964  MAINTAINER_MODE_TRUE='#'
2965  MAINTAINER_MODE_FALSE=
2966fi
2967
2968  MAINT=$MAINTAINER_MODE_TRUE
2969
2970
2971
2972# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984DEPDIR="${am__leading_dot}deps"
2985
2986ac_config_commands="$ac_config_commands depfiles"
2987
2988
2989am_make=${MAKE-make}
2990cat > confinc << 'END'
2991am__doit:
2992	@echo this is the am__doit target
2993.PHONY: am__doit
2994END
2995# If we don't find an include directive, just comment out the code.
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2997$as_echo_n "checking for style of include used by $am_make... " >&6; }
2998am__include="#"
2999am__quote=
3000_am_result=none
3001# First try GNU make style include.
3002echo "include confinc" > confmf
3003# Ignore all kinds of additional output from 'make'.
3004case `$am_make -s -f confmf 2> /dev/null` in #(
3005*the\ am__doit\ target*)
3006  am__include=include
3007  am__quote=
3008  _am_result=GNU
3009  ;;
3010esac
3011# Now try BSD make style include.
3012if test "$am__include" = "#"; then
3013   echo '.include "confinc"' > confmf
3014   case `$am_make -s -f confmf 2> /dev/null` in #(
3015   *the\ am__doit\ target*)
3016     am__include=.include
3017     am__quote="\""
3018     _am_result=BSD
3019     ;;
3020   esac
3021fi
3022
3023
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3025$as_echo "$_am_result" >&6; }
3026rm -f confinc confmf
3027
3028# Check whether --enable-dependency-tracking was given.
3029if test "${enable_dependency_tracking+set}" = set; then :
3030  enableval=$enable_dependency_tracking;
3031fi
3032
3033if test "x$enable_dependency_tracking" != xno; then
3034  am_depcomp="$ac_aux_dir/depcomp"
3035  AMDEPBACKSLASH='\'
3036  am__nodep='_no'
3037fi
3038 if test "x$enable_dependency_tracking" != xno; then
3039  AMDEP_TRUE=
3040  AMDEP_FALSE='#'
3041else
3042  AMDEP_TRUE='#'
3043  AMDEP_FALSE=
3044fi
3045
3046
3047ac_ext=c
3048ac_cpp='$CPP $CPPFLAGS'
3049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051ac_compiler_gnu=$ac_cv_c_compiler_gnu
3052if test -n "$ac_tool_prefix"; then
3053  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3054set dummy ${ac_tool_prefix}gcc; ac_word=$2
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056$as_echo_n "checking for $ac_word... " >&6; }
3057if ${ac_cv_prog_CC+:} false; then :
3058  $as_echo_n "(cached) " >&6
3059else
3060  if test -n "$CC"; then
3061  ac_cv_prog_CC="$CC" # Let the user override the test.
3062else
3063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064for as_dir in $PATH
3065do
3066  IFS=$as_save_IFS
3067  test -z "$as_dir" && as_dir=.
3068    for ac_exec_ext in '' $ac_executable_extensions; do
3069  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3070    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3071    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072    break 2
3073  fi
3074done
3075  done
3076IFS=$as_save_IFS
3077
3078fi
3079fi
3080CC=$ac_cv_prog_CC
3081if test -n "$CC"; then
3082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3083$as_echo "$CC" >&6; }
3084else
3085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086$as_echo "no" >&6; }
3087fi
3088
3089
3090fi
3091if test -z "$ac_cv_prog_CC"; then
3092  ac_ct_CC=$CC
3093  # Extract the first word of "gcc", so it can be a program name with args.
3094set dummy gcc; ac_word=$2
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096$as_echo_n "checking for $ac_word... " >&6; }
3097if ${ac_cv_prog_ac_ct_CC+:} false; then :
3098  $as_echo_n "(cached) " >&6
3099else
3100  if test -n "$ac_ct_CC"; then
3101  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3102else
3103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104for as_dir in $PATH
3105do
3106  IFS=$as_save_IFS
3107  test -z "$as_dir" && as_dir=.
3108    for ac_exec_ext in '' $ac_executable_extensions; do
3109  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110    ac_cv_prog_ac_ct_CC="gcc"
3111    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112    break 2
3113  fi
3114done
3115  done
3116IFS=$as_save_IFS
3117
3118fi
3119fi
3120ac_ct_CC=$ac_cv_prog_ac_ct_CC
3121if test -n "$ac_ct_CC"; then
3122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3123$as_echo "$ac_ct_CC" >&6; }
3124else
3125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126$as_echo "no" >&6; }
3127fi
3128
3129  if test "x$ac_ct_CC" = x; then
3130    CC=""
3131  else
3132    case $cross_compiling:$ac_tool_warned in
3133yes:)
3134{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3135$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3136ac_tool_warned=yes ;;
3137esac
3138    CC=$ac_ct_CC
3139  fi
3140else
3141  CC="$ac_cv_prog_CC"
3142fi
3143
3144if test -z "$CC"; then
3145          if test -n "$ac_tool_prefix"; then
3146    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3147set dummy ${ac_tool_prefix}cc; ac_word=$2
3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149$as_echo_n "checking for $ac_word... " >&6; }
3150if ${ac_cv_prog_CC+:} false; then :
3151  $as_echo_n "(cached) " >&6
3152else
3153  if test -n "$CC"; then
3154  ac_cv_prog_CC="$CC" # Let the user override the test.
3155else
3156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157for as_dir in $PATH
3158do
3159  IFS=$as_save_IFS
3160  test -z "$as_dir" && as_dir=.
3161    for ac_exec_ext in '' $ac_executable_extensions; do
3162  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3163    ac_cv_prog_CC="${ac_tool_prefix}cc"
3164    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165    break 2
3166  fi
3167done
3168  done
3169IFS=$as_save_IFS
3170
3171fi
3172fi
3173CC=$ac_cv_prog_CC
3174if test -n "$CC"; then
3175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3176$as_echo "$CC" >&6; }
3177else
3178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179$as_echo "no" >&6; }
3180fi
3181
3182
3183  fi
3184fi
3185if test -z "$CC"; then
3186  # Extract the first word of "cc", so it can be a program name with args.
3187set dummy cc; ac_word=$2
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189$as_echo_n "checking for $ac_word... " >&6; }
3190if ${ac_cv_prog_CC+:} false; then :
3191  $as_echo_n "(cached) " >&6
3192else
3193  if test -n "$CC"; then
3194  ac_cv_prog_CC="$CC" # Let the user override the test.
3195else
3196  ac_prog_rejected=no
3197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198for as_dir in $PATH
3199do
3200  IFS=$as_save_IFS
3201  test -z "$as_dir" && as_dir=.
3202    for ac_exec_ext in '' $ac_executable_extensions; do
3203  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3205       ac_prog_rejected=yes
3206       continue
3207     fi
3208    ac_cv_prog_CC="cc"
3209    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210    break 2
3211  fi
3212done
3213  done
3214IFS=$as_save_IFS
3215
3216if test $ac_prog_rejected = yes; then
3217  # We found a bogon in the path, so make sure we never use it.
3218  set dummy $ac_cv_prog_CC
3219  shift
3220  if test $# != 0; then
3221    # We chose a different compiler from the bogus one.
3222    # However, it has the same basename, so the bogon will be chosen
3223    # first if we set CC to just the basename; use the full file name.
3224    shift
3225    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3226  fi
3227fi
3228fi
3229fi
3230CC=$ac_cv_prog_CC
3231if test -n "$CC"; then
3232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3233$as_echo "$CC" >&6; }
3234else
3235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236$as_echo "no" >&6; }
3237fi
3238
3239
3240fi
3241if test -z "$CC"; then
3242  if test -n "$ac_tool_prefix"; then
3243  for ac_prog in cl.exe
3244  do
3245    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3246set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248$as_echo_n "checking for $ac_word... " >&6; }
3249if ${ac_cv_prog_CC+:} false; then :
3250  $as_echo_n "(cached) " >&6
3251else
3252  if test -n "$CC"; then
3253  ac_cv_prog_CC="$CC" # Let the user override the test.
3254else
3255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256for as_dir in $PATH
3257do
3258  IFS=$as_save_IFS
3259  test -z "$as_dir" && as_dir=.
3260    for ac_exec_ext in '' $ac_executable_extensions; do
3261  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3262    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264    break 2
3265  fi
3266done
3267  done
3268IFS=$as_save_IFS
3269
3270fi
3271fi
3272CC=$ac_cv_prog_CC
3273if test -n "$CC"; then
3274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275$as_echo "$CC" >&6; }
3276else
3277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278$as_echo "no" >&6; }
3279fi
3280
3281
3282    test -n "$CC" && break
3283  done
3284fi
3285if test -z "$CC"; then
3286  ac_ct_CC=$CC
3287  for ac_prog in cl.exe
3288do
3289  # Extract the first word of "$ac_prog", so it can be a program name with args.
3290set dummy $ac_prog; ac_word=$2
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292$as_echo_n "checking for $ac_word... " >&6; }
3293if ${ac_cv_prog_ac_ct_CC+:} false; then :
3294  $as_echo_n "(cached) " >&6
3295else
3296  if test -n "$ac_ct_CC"; then
3297  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3298else
3299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300for as_dir in $PATH
3301do
3302  IFS=$as_save_IFS
3303  test -z "$as_dir" && as_dir=.
3304    for ac_exec_ext in '' $ac_executable_extensions; do
3305  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306    ac_cv_prog_ac_ct_CC="$ac_prog"
3307    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308    break 2
3309  fi
3310done
3311  done
3312IFS=$as_save_IFS
3313
3314fi
3315fi
3316ac_ct_CC=$ac_cv_prog_ac_ct_CC
3317if test -n "$ac_ct_CC"; then
3318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3319$as_echo "$ac_ct_CC" >&6; }
3320else
3321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322$as_echo "no" >&6; }
3323fi
3324
3325
3326  test -n "$ac_ct_CC" && break
3327done
3328
3329  if test "x$ac_ct_CC" = x; then
3330    CC=""
3331  else
3332    case $cross_compiling:$ac_tool_warned in
3333yes:)
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3336ac_tool_warned=yes ;;
3337esac
3338    CC=$ac_ct_CC
3339  fi
3340fi
3341
3342fi
3343
3344
3345test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347as_fn_error $? "no acceptable C compiler found in \$PATH
3348See \`config.log' for more details" "$LINENO" 5; }
3349
3350# Provide some information about the compiler.
3351$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3352set X $ac_compile
3353ac_compiler=$2
3354for ac_option in --version -v -V -qversion; do
3355  { { ac_try="$ac_compiler $ac_option >&5"
3356case "(($ac_try" in
3357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358  *) ac_try_echo=$ac_try;;
3359esac
3360eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361$as_echo "$ac_try_echo"; } >&5
3362  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3363  ac_status=$?
3364  if test -s conftest.err; then
3365    sed '10a\
3366... rest of stderr output deleted ...
3367         10q' conftest.err >conftest.er1
3368    cat conftest.er1 >&5
3369  fi
3370  rm -f conftest.er1 conftest.err
3371  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372  test $ac_status = 0; }
3373done
3374
3375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376/* end confdefs.h.  */
3377
3378int
3379main ()
3380{
3381
3382  ;
3383  return 0;
3384}
3385_ACEOF
3386ac_clean_files_save=$ac_clean_files
3387ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3388# Try to create an executable without -o first, disregard a.out.
3389# It will help us diagnose broken compilers, and finding out an intuition
3390# of exeext.
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3392$as_echo_n "checking whether the C compiler works... " >&6; }
3393ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3394
3395# The possible output files:
3396ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3397
3398ac_rmfiles=
3399for ac_file in $ac_files
3400do
3401  case $ac_file in
3402    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3403    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3404  esac
3405done
3406rm -f $ac_rmfiles
3407
3408if { { ac_try="$ac_link_default"
3409case "(($ac_try" in
3410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411  *) ac_try_echo=$ac_try;;
3412esac
3413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414$as_echo "$ac_try_echo"; } >&5
3415  (eval "$ac_link_default") 2>&5
3416  ac_status=$?
3417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418  test $ac_status = 0; }; then :
3419  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3420# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3421# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3422# so that the user can short-circuit this test for compilers unknown to
3423# Autoconf.
3424for ac_file in $ac_files ''
3425do
3426  test -f "$ac_file" || continue
3427  case $ac_file in
3428    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3429	;;
3430    [ab].out )
3431	# We found the default executable, but exeext='' is most
3432	# certainly right.
3433	break;;
3434    *.* )
3435	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3436	then :; else
3437	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3438	fi
3439	# We set ac_cv_exeext here because the later test for it is not
3440	# safe: cross compilers may not add the suffix if given an `-o'
3441	# argument, so we may need to know it at that point already.
3442	# Even if this section looks crufty: it has the advantage of
3443	# actually working.
3444	break;;
3445    * )
3446	break;;
3447  esac
3448done
3449test "$ac_cv_exeext" = no && ac_cv_exeext=
3450
3451else
3452  ac_file=''
3453fi
3454if test -z "$ac_file"; then :
3455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456$as_echo "no" >&6; }
3457$as_echo "$as_me: failed program was:" >&5
3458sed 's/^/| /' conftest.$ac_ext >&5
3459
3460{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3461$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3462as_fn_error 77 "C compiler cannot create executables
3463See \`config.log' for more details" "$LINENO" 5; }
3464else
3465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3466$as_echo "yes" >&6; }
3467fi
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3469$as_echo_n "checking for C compiler default output file name... " >&6; }
3470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3471$as_echo "$ac_file" >&6; }
3472ac_exeext=$ac_cv_exeext
3473
3474rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3475ac_clean_files=$ac_clean_files_save
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3477$as_echo_n "checking for suffix of executables... " >&6; }
3478if { { ac_try="$ac_link"
3479case "(($ac_try" in
3480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481  *) ac_try_echo=$ac_try;;
3482esac
3483eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484$as_echo "$ac_try_echo"; } >&5
3485  (eval "$ac_link") 2>&5
3486  ac_status=$?
3487  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488  test $ac_status = 0; }; then :
3489  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3490# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3491# work properly (i.e., refer to `conftest.exe'), while it won't with
3492# `rm'.
3493for ac_file in conftest.exe conftest conftest.*; do
3494  test -f "$ac_file" || continue
3495  case $ac_file in
3496    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3497    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3498	  break;;
3499    * ) break;;
3500  esac
3501done
3502else
3503  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3505as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3506See \`config.log' for more details" "$LINENO" 5; }
3507fi
3508rm -f conftest conftest$ac_cv_exeext
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3510$as_echo "$ac_cv_exeext" >&6; }
3511
3512rm -f conftest.$ac_ext
3513EXEEXT=$ac_cv_exeext
3514ac_exeext=$EXEEXT
3515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516/* end confdefs.h.  */
3517#include <stdio.h>
3518int
3519main ()
3520{
3521FILE *f = fopen ("conftest.out", "w");
3522 return ferror (f) || fclose (f) != 0;
3523
3524  ;
3525  return 0;
3526}
3527_ACEOF
3528ac_clean_files="$ac_clean_files conftest.out"
3529# Check that the compiler produces executables we can run.  If not, either
3530# the compiler is broken, or we cross compile.
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3532$as_echo_n "checking whether we are cross compiling... " >&6; }
3533if test "$cross_compiling" != yes; then
3534  { { ac_try="$ac_link"
3535case "(($ac_try" in
3536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537  *) ac_try_echo=$ac_try;;
3538esac
3539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3540$as_echo "$ac_try_echo"; } >&5
3541  (eval "$ac_link") 2>&5
3542  ac_status=$?
3543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3544  test $ac_status = 0; }
3545  if { ac_try='./conftest$ac_cv_exeext'
3546  { { case "(($ac_try" in
3547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548  *) ac_try_echo=$ac_try;;
3549esac
3550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3551$as_echo "$ac_try_echo"; } >&5
3552  (eval "$ac_try") 2>&5
3553  ac_status=$?
3554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555  test $ac_status = 0; }; }; then
3556    cross_compiling=no
3557  else
3558    if test "$cross_compiling" = maybe; then
3559	cross_compiling=yes
3560    else
3561	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563as_fn_error $? "cannot run C compiled programs.
3564If you meant to cross compile, use \`--host'.
3565See \`config.log' for more details" "$LINENO" 5; }
3566    fi
3567  fi
3568fi
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3570$as_echo "$cross_compiling" >&6; }
3571
3572rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3573ac_clean_files=$ac_clean_files_save
3574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3575$as_echo_n "checking for suffix of object files... " >&6; }
3576if ${ac_cv_objext+:} false; then :
3577  $as_echo_n "(cached) " >&6
3578else
3579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580/* end confdefs.h.  */
3581
3582int
3583main ()
3584{
3585
3586  ;
3587  return 0;
3588}
3589_ACEOF
3590rm -f conftest.o conftest.obj
3591if { { ac_try="$ac_compile"
3592case "(($ac_try" in
3593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594  *) ac_try_echo=$ac_try;;
3595esac
3596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3597$as_echo "$ac_try_echo"; } >&5
3598  (eval "$ac_compile") 2>&5
3599  ac_status=$?
3600  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601  test $ac_status = 0; }; then :
3602  for ac_file in conftest.o conftest.obj conftest.*; do
3603  test -f "$ac_file" || continue;
3604  case $ac_file in
3605    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3606    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3607       break;;
3608  esac
3609done
3610else
3611  $as_echo "$as_me: failed program was:" >&5
3612sed 's/^/| /' conftest.$ac_ext >&5
3613
3614{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3616as_fn_error $? "cannot compute suffix of object files: cannot compile
3617See \`config.log' for more details" "$LINENO" 5; }
3618fi
3619rm -f conftest.$ac_cv_objext conftest.$ac_ext
3620fi
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3622$as_echo "$ac_cv_objext" >&6; }
3623OBJEXT=$ac_cv_objext
3624ac_objext=$OBJEXT
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3626$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3627if ${ac_cv_c_compiler_gnu+:} false; then :
3628  $as_echo_n "(cached) " >&6
3629else
3630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631/* end confdefs.h.  */
3632
3633int
3634main ()
3635{
3636#ifndef __GNUC__
3637       choke me
3638#endif
3639
3640  ;
3641  return 0;
3642}
3643_ACEOF
3644if ac_fn_c_try_compile "$LINENO"; then :
3645  ac_compiler_gnu=yes
3646else
3647  ac_compiler_gnu=no
3648fi
3649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650ac_cv_c_compiler_gnu=$ac_compiler_gnu
3651
3652fi
3653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3654$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3655if test $ac_compiler_gnu = yes; then
3656  GCC=yes
3657else
3658  GCC=
3659fi
3660ac_test_CFLAGS=${CFLAGS+set}
3661ac_save_CFLAGS=$CFLAGS
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3663$as_echo_n "checking whether $CC accepts -g... " >&6; }
3664if ${ac_cv_prog_cc_g+:} false; then :
3665  $as_echo_n "(cached) " >&6
3666else
3667  ac_save_c_werror_flag=$ac_c_werror_flag
3668   ac_c_werror_flag=yes
3669   ac_cv_prog_cc_g=no
3670   CFLAGS="-g"
3671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672/* end confdefs.h.  */
3673
3674int
3675main ()
3676{
3677
3678  ;
3679  return 0;
3680}
3681_ACEOF
3682if ac_fn_c_try_compile "$LINENO"; then :
3683  ac_cv_prog_cc_g=yes
3684else
3685  CFLAGS=""
3686      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687/* end confdefs.h.  */
3688
3689int
3690main ()
3691{
3692
3693  ;
3694  return 0;
3695}
3696_ACEOF
3697if ac_fn_c_try_compile "$LINENO"; then :
3698
3699else
3700  ac_c_werror_flag=$ac_save_c_werror_flag
3701	 CFLAGS="-g"
3702	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703/* end confdefs.h.  */
3704
3705int
3706main ()
3707{
3708
3709  ;
3710  return 0;
3711}
3712_ACEOF
3713if ac_fn_c_try_compile "$LINENO"; then :
3714  ac_cv_prog_cc_g=yes
3715fi
3716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717fi
3718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719fi
3720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721   ac_c_werror_flag=$ac_save_c_werror_flag
3722fi
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3724$as_echo "$ac_cv_prog_cc_g" >&6; }
3725if test "$ac_test_CFLAGS" = set; then
3726  CFLAGS=$ac_save_CFLAGS
3727elif test $ac_cv_prog_cc_g = yes; then
3728  if test "$GCC" = yes; then
3729    CFLAGS="-g -O2"
3730  else
3731    CFLAGS="-g"
3732  fi
3733else
3734  if test "$GCC" = yes; then
3735    CFLAGS="-O2"
3736  else
3737    CFLAGS=
3738  fi
3739fi
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3741$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3742if ${ac_cv_prog_cc_c89+:} false; then :
3743  $as_echo_n "(cached) " >&6
3744else
3745  ac_cv_prog_cc_c89=no
3746ac_save_CC=$CC
3747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748/* end confdefs.h.  */
3749#include <stdarg.h>
3750#include <stdio.h>
3751struct stat;
3752/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3753struct buf { int x; };
3754FILE * (*rcsopen) (struct buf *, struct stat *, int);
3755static char *e (p, i)
3756     char **p;
3757     int i;
3758{
3759  return p[i];
3760}
3761static char *f (char * (*g) (char **, int), char **p, ...)
3762{
3763  char *s;
3764  va_list v;
3765  va_start (v,p);
3766  s = g (p, va_arg (v,int));
3767  va_end (v);
3768  return s;
3769}
3770
3771/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3772   function prototypes and stuff, but not '\xHH' hex character constants.
3773   These don't provoke an error unfortunately, instead are silently treated
3774   as 'x'.  The following induces an error, until -std is added to get
3775   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3776   array size at least.  It's necessary to write '\x00'==0 to get something
3777   that's true only with -std.  */
3778int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3779
3780/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3781   inside strings and character constants.  */
3782#define FOO(x) 'x'
3783int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3784
3785int test (int i, double x);
3786struct s1 {int (*f) (int a);};
3787struct s2 {int (*f) (double a);};
3788int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3789int argc;
3790char **argv;
3791int
3792main ()
3793{
3794return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3795  ;
3796  return 0;
3797}
3798_ACEOF
3799for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3800	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3801do
3802  CC="$ac_save_CC $ac_arg"
3803  if ac_fn_c_try_compile "$LINENO"; then :
3804  ac_cv_prog_cc_c89=$ac_arg
3805fi
3806rm -f core conftest.err conftest.$ac_objext
3807  test "x$ac_cv_prog_cc_c89" != "xno" && break
3808done
3809rm -f conftest.$ac_ext
3810CC=$ac_save_CC
3811
3812fi
3813# AC_CACHE_VAL
3814case "x$ac_cv_prog_cc_c89" in
3815  x)
3816    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3817$as_echo "none needed" >&6; } ;;
3818  xno)
3819    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3820$as_echo "unsupported" >&6; } ;;
3821  *)
3822    CC="$CC $ac_cv_prog_cc_c89"
3823    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3824$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3825esac
3826if test "x$ac_cv_prog_cc_c89" != xno; then :
3827
3828fi
3829
3830ac_ext=c
3831ac_cpp='$CPP $CPPFLAGS'
3832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835
3836ac_ext=c
3837ac_cpp='$CPP $CPPFLAGS'
3838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3840ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3842$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3843if ${am_cv_prog_cc_c_o+:} false; then :
3844  $as_echo_n "(cached) " >&6
3845else
3846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847/* end confdefs.h.  */
3848
3849int
3850main ()
3851{
3852
3853  ;
3854  return 0;
3855}
3856_ACEOF
3857  # Make sure it works both with $CC and with simple cc.
3858  # Following AC_PROG_CC_C_O, we do the test twice because some
3859  # compilers refuse to overwrite an existing .o file with -o,
3860  # though they will create one.
3861  am_cv_prog_cc_c_o=yes
3862  for am_i in 1 2; do
3863    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3864   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3865   ac_status=$?
3866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867   (exit $ac_status); } \
3868         && test -f conftest2.$ac_objext; then
3869      : OK
3870    else
3871      am_cv_prog_cc_c_o=no
3872      break
3873    fi
3874  done
3875  rm -f core conftest*
3876  unset am_i
3877fi
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3879$as_echo "$am_cv_prog_cc_c_o" >&6; }
3880if test "$am_cv_prog_cc_c_o" != yes; then
3881   # Losing compiler, so override with the script.
3882   # FIXME: It is wrong to rewrite CC.
3883   # But if we don't then we get into trouble of one sort or another.
3884   # A longer-term fix would be to have automake use am__CC in this case,
3885   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3886   CC="$am_aux_dir/compile $CC"
3887fi
3888ac_ext=c
3889ac_cpp='$CPP $CPPFLAGS'
3890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3892ac_compiler_gnu=$ac_cv_c_compiler_gnu
3893
3894
3895depcc="$CC"   am_compiler_list=
3896
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3898$as_echo_n "checking dependency style of $depcc... " >&6; }
3899if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3900  $as_echo_n "(cached) " >&6
3901else
3902  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3903  # We make a subdir and do the tests there.  Otherwise we can end up
3904  # making bogus files that we don't know about and never remove.  For
3905  # instance it was reported that on HP-UX the gcc test will end up
3906  # making a dummy file named 'D' -- because '-MD' means "put the output
3907  # in D".
3908  rm -rf conftest.dir
3909  mkdir conftest.dir
3910  # Copy depcomp to subdir because otherwise we won't find it if we're
3911  # using a relative directory.
3912  cp "$am_depcomp" conftest.dir
3913  cd conftest.dir
3914  # We will build objects and dependencies in a subdirectory because
3915  # it helps to detect inapplicable dependency modes.  For instance
3916  # both Tru64's cc and ICC support -MD to output dependencies as a
3917  # side effect of compilation, but ICC will put the dependencies in
3918  # the current directory while Tru64 will put them in the object
3919  # directory.
3920  mkdir sub
3921
3922  am_cv_CC_dependencies_compiler_type=none
3923  if test "$am_compiler_list" = ""; then
3924     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3925  fi
3926  am__universal=false
3927  case " $depcc " in #(
3928     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3929     esac
3930
3931  for depmode in $am_compiler_list; do
3932    # Setup a source with many dependencies, because some compilers
3933    # like to wrap large dependency lists on column 80 (with \), and
3934    # we should not choose a depcomp mode which is confused by this.
3935    #
3936    # We need to recreate these files for each test, as the compiler may
3937    # overwrite some of them when testing with obscure command lines.
3938    # This happens at least with the AIX C compiler.
3939    : > sub/conftest.c
3940    for i in 1 2 3 4 5 6; do
3941      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3942      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3943      # Solaris 10 /bin/sh.
3944      echo '/* dummy */' > sub/conftst$i.h
3945    done
3946    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3947
3948    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3949    # mode.  It turns out that the SunPro C++ compiler does not properly
3950    # handle '-M -o', and we need to detect this.  Also, some Intel
3951    # versions had trouble with output in subdirs.
3952    am__obj=sub/conftest.${OBJEXT-o}
3953    am__minus_obj="-o $am__obj"
3954    case $depmode in
3955    gcc)
3956      # This depmode causes a compiler race in universal mode.
3957      test "$am__universal" = false || continue
3958      ;;
3959    nosideeffect)
3960      # After this tag, mechanisms are not by side-effect, so they'll
3961      # only be used when explicitly requested.
3962      if test "x$enable_dependency_tracking" = xyes; then
3963	continue
3964      else
3965	break
3966      fi
3967      ;;
3968    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3969      # This compiler won't grok '-c -o', but also, the minuso test has
3970      # not run yet.  These depmodes are late enough in the game, and
3971      # so weak that their functioning should not be impacted.
3972      am__obj=conftest.${OBJEXT-o}
3973      am__minus_obj=
3974      ;;
3975    none) break ;;
3976    esac
3977    if depmode=$depmode \
3978       source=sub/conftest.c object=$am__obj \
3979       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3980       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3981         >/dev/null 2>conftest.err &&
3982       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3983       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3984       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3985       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3986      # icc doesn't choke on unknown options, it will just issue warnings
3987      # or remarks (even with -Werror).  So we grep stderr for any message
3988      # that says an option was ignored or not supported.
3989      # When given -MP, icc 7.0 and 7.1 complain thusly:
3990      #   icc: Command line warning: ignoring option '-M'; no argument required
3991      # The diagnosis changed in icc 8.0:
3992      #   icc: Command line remark: option '-MP' not supported
3993      if (grep 'ignoring option' conftest.err ||
3994          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3995        am_cv_CC_dependencies_compiler_type=$depmode
3996        break
3997      fi
3998    fi
3999  done
4000
4001  cd ..
4002  rm -rf conftest.dir
4003else
4004  am_cv_CC_dependencies_compiler_type=none
4005fi
4006
4007fi
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4009$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4010CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4011
4012 if
4013  test "x$enable_dependency_tracking" != xno \
4014  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4015  am__fastdepCC_TRUE=
4016  am__fastdepCC_FALSE='#'
4017else
4018  am__fastdepCC_TRUE='#'
4019  am__fastdepCC_FALSE=
4020fi
4021
4022
4023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4024$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4025if ${ac_cv_prog_cc_c99+:} false; then :
4026  $as_echo_n "(cached) " >&6
4027else
4028  ac_cv_prog_cc_c99=no
4029ac_save_CC=$CC
4030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031/* end confdefs.h.  */
4032#include <stdarg.h>
4033#include <stdbool.h>
4034#include <stdlib.h>
4035#include <wchar.h>
4036#include <stdio.h>
4037
4038// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4039#define debug(...) fprintf (stderr, __VA_ARGS__)
4040#define showlist(...) puts (#__VA_ARGS__)
4041#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4042static void
4043test_varargs_macros (void)
4044{
4045  int x = 1234;
4046  int y = 5678;
4047  debug ("Flag");
4048  debug ("X = %d\n", x);
4049  showlist (The first, second, and third items.);
4050  report (x>y, "x is %d but y is %d", x, y);
4051}
4052
4053// Check long long types.
4054#define BIG64 18446744073709551615ull
4055#define BIG32 4294967295ul
4056#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4057#if !BIG_OK
4058  your preprocessor is broken;
4059#endif
4060#if BIG_OK
4061#else
4062  your preprocessor is broken;
4063#endif
4064static long long int bignum = -9223372036854775807LL;
4065static unsigned long long int ubignum = BIG64;
4066
4067struct incomplete_array
4068{
4069  int datasize;
4070  double data[];
4071};
4072
4073struct named_init {
4074  int number;
4075  const wchar_t *name;
4076  double average;
4077};
4078
4079typedef const char *ccp;
4080
4081static inline int
4082test_restrict (ccp restrict text)
4083{
4084  // See if C++-style comments work.
4085  // Iterate through items via the restricted pointer.
4086  // Also check for declarations in for loops.
4087  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4088    continue;
4089  return 0;
4090}
4091
4092// Check varargs and va_copy.
4093static void
4094test_varargs (const char *format, ...)
4095{
4096  va_list args;
4097  va_start (args, format);
4098  va_list args_copy;
4099  va_copy (args_copy, args);
4100
4101  const char *str;
4102  int number;
4103  float fnumber;
4104
4105  while (*format)
4106    {
4107      switch (*format++)
4108	{
4109	case 's': // string
4110	  str = va_arg (args_copy, const char *);
4111	  break;
4112	case 'd': // int
4113	  number = va_arg (args_copy, int);
4114	  break;
4115	case 'f': // float
4116	  fnumber = va_arg (args_copy, double);
4117	  break;
4118	default:
4119	  break;
4120	}
4121    }
4122  va_end (args_copy);
4123  va_end (args);
4124}
4125
4126int
4127main ()
4128{
4129
4130  // Check bool.
4131  _Bool success = false;
4132
4133  // Check restrict.
4134  if (test_restrict ("String literal") == 0)
4135    success = true;
4136  char *restrict newvar = "Another string";
4137
4138  // Check varargs.
4139  test_varargs ("s, d' f .", "string", 65, 34.234);
4140  test_varargs_macros ();
4141
4142  // Check flexible array members.
4143  struct incomplete_array *ia =
4144    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4145  ia->datasize = 10;
4146  for (int i = 0; i < ia->datasize; ++i)
4147    ia->data[i] = i * 1.234;
4148
4149  // Check named initializers.
4150  struct named_init ni = {
4151    .number = 34,
4152    .name = L"Test wide string",
4153    .average = 543.34343,
4154  };
4155
4156  ni.number = 58;
4157
4158  int dynamic_array[ni.number];
4159  dynamic_array[ni.number - 1] = 543;
4160
4161  // work around unused variable warnings
4162  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4163	  || dynamic_array[ni.number - 1] != 543);
4164
4165  ;
4166  return 0;
4167}
4168_ACEOF
4169for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4170do
4171  CC="$ac_save_CC $ac_arg"
4172  if ac_fn_c_try_compile "$LINENO"; then :
4173  ac_cv_prog_cc_c99=$ac_arg
4174fi
4175rm -f core conftest.err conftest.$ac_objext
4176  test "x$ac_cv_prog_cc_c99" != "xno" && break
4177done
4178rm -f conftest.$ac_ext
4179CC=$ac_save_CC
4180
4181fi
4182# AC_CACHE_VAL
4183case "x$ac_cv_prog_cc_c99" in
4184  x)
4185    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4186$as_echo "none needed" >&6; } ;;
4187  xno)
4188    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4189$as_echo "unsupported" >&6; } ;;
4190  *)
4191    CC="$CC $ac_cv_prog_cc_c99"
4192    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4193$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4194esac
4195if test "x$ac_cv_prog_cc_c99" != xno; then :
4196
4197fi
4198
4199
4200
4201ac_ext=c
4202ac_cpp='$CPP $CPPFLAGS'
4203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205ac_compiler_gnu=$ac_cv_c_compiler_gnu
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4207$as_echo_n "checking how to run the C preprocessor... " >&6; }
4208# On Suns, sometimes $CPP names a directory.
4209if test -n "$CPP" && test -d "$CPP"; then
4210  CPP=
4211fi
4212if test -z "$CPP"; then
4213  if ${ac_cv_prog_CPP+:} false; then :
4214  $as_echo_n "(cached) " >&6
4215else
4216      # Double quotes because CPP needs to be expanded
4217    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4218    do
4219      ac_preproc_ok=false
4220for ac_c_preproc_warn_flag in '' yes
4221do
4222  # Use a header file that comes with gcc, so configuring glibc
4223  # with a fresh cross-compiler works.
4224  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4225  # <limits.h> exists even on freestanding compilers.
4226  # On the NeXT, cc -E runs the code through the compiler's parser,
4227  # not just through cpp. "Syntax error" is here to catch this case.
4228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229/* end confdefs.h.  */
4230#ifdef __STDC__
4231# include <limits.h>
4232#else
4233# include <assert.h>
4234#endif
4235		     Syntax error
4236_ACEOF
4237if ac_fn_c_try_cpp "$LINENO"; then :
4238
4239else
4240  # Broken: fails on valid input.
4241continue
4242fi
4243rm -f conftest.err conftest.i conftest.$ac_ext
4244
4245  # OK, works on sane cases.  Now check whether nonexistent headers
4246  # can be detected and how.
4247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248/* end confdefs.h.  */
4249#include <ac_nonexistent.h>
4250_ACEOF
4251if ac_fn_c_try_cpp "$LINENO"; then :
4252  # Broken: success on invalid input.
4253continue
4254else
4255  # Passes both tests.
4256ac_preproc_ok=:
4257break
4258fi
4259rm -f conftest.err conftest.i conftest.$ac_ext
4260
4261done
4262# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263rm -f conftest.i conftest.err conftest.$ac_ext
4264if $ac_preproc_ok; then :
4265  break
4266fi
4267
4268    done
4269    ac_cv_prog_CPP=$CPP
4270
4271fi
4272  CPP=$ac_cv_prog_CPP
4273else
4274  ac_cv_prog_CPP=$CPP
4275fi
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4277$as_echo "$CPP" >&6; }
4278ac_preproc_ok=false
4279for ac_c_preproc_warn_flag in '' yes
4280do
4281  # Use a header file that comes with gcc, so configuring glibc
4282  # with a fresh cross-compiler works.
4283  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4284  # <limits.h> exists even on freestanding compilers.
4285  # On the NeXT, cc -E runs the code through the compiler's parser,
4286  # not just through cpp. "Syntax error" is here to catch this case.
4287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288/* end confdefs.h.  */
4289#ifdef __STDC__
4290# include <limits.h>
4291#else
4292# include <assert.h>
4293#endif
4294		     Syntax error
4295_ACEOF
4296if ac_fn_c_try_cpp "$LINENO"; then :
4297
4298else
4299  # Broken: fails on valid input.
4300continue
4301fi
4302rm -f conftest.err conftest.i conftest.$ac_ext
4303
4304  # OK, works on sane cases.  Now check whether nonexistent headers
4305  # can be detected and how.
4306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307/* end confdefs.h.  */
4308#include <ac_nonexistent.h>
4309_ACEOF
4310if ac_fn_c_try_cpp "$LINENO"; then :
4311  # Broken: success on invalid input.
4312continue
4313else
4314  # Passes both tests.
4315ac_preproc_ok=:
4316break
4317fi
4318rm -f conftest.err conftest.i conftest.$ac_ext
4319
4320done
4321# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4322rm -f conftest.i conftest.err conftest.$ac_ext
4323if $ac_preproc_ok; then :
4324
4325else
4326  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4328as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4329See \`config.log' for more details" "$LINENO" 5; }
4330fi
4331
4332ac_ext=c
4333ac_cpp='$CPP $CPPFLAGS'
4334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337
4338
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4340$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4341if ${ac_cv_path_GREP+:} false; then :
4342  $as_echo_n "(cached) " >&6
4343else
4344  if test -z "$GREP"; then
4345  ac_path_GREP_found=false
4346  # Loop through the user's path and test for each of PROGNAME-LIST
4347  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4349do
4350  IFS=$as_save_IFS
4351  test -z "$as_dir" && as_dir=.
4352    for ac_prog in grep ggrep; do
4353    for ac_exec_ext in '' $ac_executable_extensions; do
4354      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4355      as_fn_executable_p "$ac_path_GREP" || continue
4356# Check for GNU ac_path_GREP and select it if it is found.
4357  # Check for GNU $ac_path_GREP
4358case `"$ac_path_GREP" --version 2>&1` in
4359*GNU*)
4360  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4361*)
4362  ac_count=0
4363  $as_echo_n 0123456789 >"conftest.in"
4364  while :
4365  do
4366    cat "conftest.in" "conftest.in" >"conftest.tmp"
4367    mv "conftest.tmp" "conftest.in"
4368    cp "conftest.in" "conftest.nl"
4369    $as_echo 'GREP' >> "conftest.nl"
4370    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4371    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4372    as_fn_arith $ac_count + 1 && ac_count=$as_val
4373    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4374      # Best one so far, save it but keep looking for a better one
4375      ac_cv_path_GREP="$ac_path_GREP"
4376      ac_path_GREP_max=$ac_count
4377    fi
4378    # 10*(2^10) chars as input seems more than enough
4379    test $ac_count -gt 10 && break
4380  done
4381  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4382esac
4383
4384      $ac_path_GREP_found && break 3
4385    done
4386  done
4387  done
4388IFS=$as_save_IFS
4389  if test -z "$ac_cv_path_GREP"; then
4390    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4391  fi
4392else
4393  ac_cv_path_GREP=$GREP
4394fi
4395
4396fi
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4398$as_echo "$ac_cv_path_GREP" >&6; }
4399 GREP="$ac_cv_path_GREP"
4400
4401
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4403$as_echo_n "checking for egrep... " >&6; }
4404if ${ac_cv_path_EGREP+:} false; then :
4405  $as_echo_n "(cached) " >&6
4406else
4407  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4408   then ac_cv_path_EGREP="$GREP -E"
4409   else
4410     if test -z "$EGREP"; then
4411  ac_path_EGREP_found=false
4412  # Loop through the user's path and test for each of PROGNAME-LIST
4413  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4415do
4416  IFS=$as_save_IFS
4417  test -z "$as_dir" && as_dir=.
4418    for ac_prog in egrep; do
4419    for ac_exec_ext in '' $ac_executable_extensions; do
4420      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4421      as_fn_executable_p "$ac_path_EGREP" || continue
4422# Check for GNU ac_path_EGREP and select it if it is found.
4423  # Check for GNU $ac_path_EGREP
4424case `"$ac_path_EGREP" --version 2>&1` in
4425*GNU*)
4426  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4427*)
4428  ac_count=0
4429  $as_echo_n 0123456789 >"conftest.in"
4430  while :
4431  do
4432    cat "conftest.in" "conftest.in" >"conftest.tmp"
4433    mv "conftest.tmp" "conftest.in"
4434    cp "conftest.in" "conftest.nl"
4435    $as_echo 'EGREP' >> "conftest.nl"
4436    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4437    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4438    as_fn_arith $ac_count + 1 && ac_count=$as_val
4439    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4440      # Best one so far, save it but keep looking for a better one
4441      ac_cv_path_EGREP="$ac_path_EGREP"
4442      ac_path_EGREP_max=$ac_count
4443    fi
4444    # 10*(2^10) chars as input seems more than enough
4445    test $ac_count -gt 10 && break
4446  done
4447  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4448esac
4449
4450      $ac_path_EGREP_found && break 3
4451    done
4452  done
4453  done
4454IFS=$as_save_IFS
4455  if test -z "$ac_cv_path_EGREP"; then
4456    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4457  fi
4458else
4459  ac_cv_path_EGREP=$EGREP
4460fi
4461
4462   fi
4463fi
4464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4465$as_echo "$ac_cv_path_EGREP" >&6; }
4466 EGREP="$ac_cv_path_EGREP"
4467
4468
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4470$as_echo_n "checking for ANSI C header files... " >&6; }
4471if ${ac_cv_header_stdc+:} false; then :
4472  $as_echo_n "(cached) " >&6
4473else
4474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475/* end confdefs.h.  */
4476#include <stdlib.h>
4477#include <stdarg.h>
4478#include <string.h>
4479#include <float.h>
4480
4481int
4482main ()
4483{
4484
4485  ;
4486  return 0;
4487}
4488_ACEOF
4489if ac_fn_c_try_compile "$LINENO"; then :
4490  ac_cv_header_stdc=yes
4491else
4492  ac_cv_header_stdc=no
4493fi
4494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4495
4496if test $ac_cv_header_stdc = yes; then
4497  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499/* end confdefs.h.  */
4500#include <string.h>
4501
4502_ACEOF
4503if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4504  $EGREP "memchr" >/dev/null 2>&1; then :
4505
4506else
4507  ac_cv_header_stdc=no
4508fi
4509rm -f conftest*
4510
4511fi
4512
4513if test $ac_cv_header_stdc = yes; then
4514  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516/* end confdefs.h.  */
4517#include <stdlib.h>
4518
4519_ACEOF
4520if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4521  $EGREP "free" >/dev/null 2>&1; then :
4522
4523else
4524  ac_cv_header_stdc=no
4525fi
4526rm -f conftest*
4527
4528fi
4529
4530if test $ac_cv_header_stdc = yes; then
4531  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4532  if test "$cross_compiling" = yes; then :
4533  :
4534else
4535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536/* end confdefs.h.  */
4537#include <ctype.h>
4538#include <stdlib.h>
4539#if ((' ' & 0x0FF) == 0x020)
4540# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4541# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4542#else
4543# define ISLOWER(c) \
4544		   (('a' <= (c) && (c) <= 'i') \
4545		     || ('j' <= (c) && (c) <= 'r') \
4546		     || ('s' <= (c) && (c) <= 'z'))
4547# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4548#endif
4549
4550#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4551int
4552main ()
4553{
4554  int i;
4555  for (i = 0; i < 256; i++)
4556    if (XOR (islower (i), ISLOWER (i))
4557	|| toupper (i) != TOUPPER (i))
4558      return 2;
4559  return 0;
4560}
4561_ACEOF
4562if ac_fn_c_try_run "$LINENO"; then :
4563
4564else
4565  ac_cv_header_stdc=no
4566fi
4567rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4568  conftest.$ac_objext conftest.beam conftest.$ac_ext
4569fi
4570
4571fi
4572fi
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4574$as_echo "$ac_cv_header_stdc" >&6; }
4575if test $ac_cv_header_stdc = yes; then
4576
4577$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4578
4579fi
4580
4581# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4582for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4583		  inttypes.h stdint.h unistd.h
4584do :
4585  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4586ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4587"
4588if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4589  cat >>confdefs.h <<_ACEOF
4590#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4591_ACEOF
4592
4593fi
4594
4595done
4596
4597
4598
4599
4600
4601
4602ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4603if test "x$ac_cv_have_decl___clang__" = xyes; then :
4604  CLANGCC="yes"
4605else
4606  CLANGCC="no"
4607fi
4608
4609ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4610if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4611  INTELCC="yes"
4612else
4613  INTELCC="no"
4614fi
4615
4616ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4617if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4618  SUNCC="yes"
4619else
4620  SUNCC="no"
4621fi
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4632	if test -n "$ac_tool_prefix"; then
4633  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4634set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636$as_echo_n "checking for $ac_word... " >&6; }
4637if ${ac_cv_path_PKG_CONFIG+:} false; then :
4638  $as_echo_n "(cached) " >&6
4639else
4640  case $PKG_CONFIG in
4641  [\\/]* | ?:[\\/]*)
4642  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4643  ;;
4644  *)
4645  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646for as_dir in $PATH
4647do
4648  IFS=$as_save_IFS
4649  test -z "$as_dir" && as_dir=.
4650    for ac_exec_ext in '' $ac_executable_extensions; do
4651  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4652    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4653    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654    break 2
4655  fi
4656done
4657  done
4658IFS=$as_save_IFS
4659
4660  ;;
4661esac
4662fi
4663PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4664if test -n "$PKG_CONFIG"; then
4665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4666$as_echo "$PKG_CONFIG" >&6; }
4667else
4668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669$as_echo "no" >&6; }
4670fi
4671
4672
4673fi
4674if test -z "$ac_cv_path_PKG_CONFIG"; then
4675  ac_pt_PKG_CONFIG=$PKG_CONFIG
4676  # Extract the first word of "pkg-config", so it can be a program name with args.
4677set dummy pkg-config; ac_word=$2
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679$as_echo_n "checking for $ac_word... " >&6; }
4680if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4681  $as_echo_n "(cached) " >&6
4682else
4683  case $ac_pt_PKG_CONFIG in
4684  [\\/]* | ?:[\\/]*)
4685  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4686  ;;
4687  *)
4688  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689for as_dir in $PATH
4690do
4691  IFS=$as_save_IFS
4692  test -z "$as_dir" && as_dir=.
4693    for ac_exec_ext in '' $ac_executable_extensions; do
4694  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4695    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4697    break 2
4698  fi
4699done
4700  done
4701IFS=$as_save_IFS
4702
4703  ;;
4704esac
4705fi
4706ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4707if test -n "$ac_pt_PKG_CONFIG"; then
4708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4709$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4710else
4711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712$as_echo "no" >&6; }
4713fi
4714
4715  if test "x$ac_pt_PKG_CONFIG" = x; then
4716    PKG_CONFIG=""
4717  else
4718    case $cross_compiling:$ac_tool_warned in
4719yes:)
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4722ac_tool_warned=yes ;;
4723esac
4724    PKG_CONFIG=$ac_pt_PKG_CONFIG
4725  fi
4726else
4727  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4728fi
4729
4730fi
4731if test -n "$PKG_CONFIG"; then
4732	_pkg_min_version=0.9.0
4733	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4734$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4735	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4736		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4737$as_echo "yes" >&6; }
4738	else
4739		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4740$as_echo "no" >&6; }
4741		PKG_CONFIG=""
4742	fi
4743fi
4744# Make sure we can run config.sub.
4745$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4746  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4747
4748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4749$as_echo_n "checking build system type... " >&6; }
4750if ${ac_cv_build+:} false; then :
4751  $as_echo_n "(cached) " >&6
4752else
4753  ac_build_alias=$build_alias
4754test "x$ac_build_alias" = x &&
4755  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4756test "x$ac_build_alias" = x &&
4757  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4758ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4759  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4760
4761fi
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4763$as_echo "$ac_cv_build" >&6; }
4764case $ac_cv_build in
4765*-*-*) ;;
4766*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4767esac
4768build=$ac_cv_build
4769ac_save_IFS=$IFS; IFS='-'
4770set x $ac_cv_build
4771shift
4772build_cpu=$1
4773build_vendor=$2
4774shift; shift
4775# Remember, the first character of IFS is used to create $*,
4776# except with old shells:
4777build_os=$*
4778IFS=$ac_save_IFS
4779case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4780
4781
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4783$as_echo_n "checking host system type... " >&6; }
4784if ${ac_cv_host+:} false; then :
4785  $as_echo_n "(cached) " >&6
4786else
4787  if test "x$host_alias" = x; then
4788  ac_cv_host=$ac_cv_build
4789else
4790  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4791    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4792fi
4793
4794fi
4795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4796$as_echo "$ac_cv_host" >&6; }
4797case $ac_cv_host in
4798*-*-*) ;;
4799*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4800esac
4801host=$ac_cv_host
4802ac_save_IFS=$IFS; IFS='-'
4803set x $ac_cv_host
4804shift
4805host_cpu=$1
4806host_vendor=$2
4807shift; shift
4808# Remember, the first character of IFS is used to create $*,
4809# except with old shells:
4810host_os=$*
4811IFS=$ac_save_IFS
4812case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4813
4814
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4816$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4817if ${ac_cv_path_SED+:} false; then :
4818  $as_echo_n "(cached) " >&6
4819else
4820            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4821     for ac_i in 1 2 3 4 5 6 7; do
4822       ac_script="$ac_script$as_nl$ac_script"
4823     done
4824     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4825     { ac_script=; unset ac_script;}
4826     if test -z "$SED"; then
4827  ac_path_SED_found=false
4828  # Loop through the user's path and test for each of PROGNAME-LIST
4829  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830for as_dir in $PATH
4831do
4832  IFS=$as_save_IFS
4833  test -z "$as_dir" && as_dir=.
4834    for ac_prog in sed gsed; do
4835    for ac_exec_ext in '' $ac_executable_extensions; do
4836      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4837      as_fn_executable_p "$ac_path_SED" || continue
4838# Check for GNU ac_path_SED and select it if it is found.
4839  # Check for GNU $ac_path_SED
4840case `"$ac_path_SED" --version 2>&1` in
4841*GNU*)
4842  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4843*)
4844  ac_count=0
4845  $as_echo_n 0123456789 >"conftest.in"
4846  while :
4847  do
4848    cat "conftest.in" "conftest.in" >"conftest.tmp"
4849    mv "conftest.tmp" "conftest.in"
4850    cp "conftest.in" "conftest.nl"
4851    $as_echo '' >> "conftest.nl"
4852    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4853    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4854    as_fn_arith $ac_count + 1 && ac_count=$as_val
4855    if test $ac_count -gt ${ac_path_SED_max-0}; then
4856      # Best one so far, save it but keep looking for a better one
4857      ac_cv_path_SED="$ac_path_SED"
4858      ac_path_SED_max=$ac_count
4859    fi
4860    # 10*(2^10) chars as input seems more than enough
4861    test $ac_count -gt 10 && break
4862  done
4863  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4864esac
4865
4866      $ac_path_SED_found && break 3
4867    done
4868  done
4869  done
4870IFS=$as_save_IFS
4871  if test -z "$ac_cv_path_SED"; then
4872    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4873  fi
4874else
4875  ac_cv_path_SED=$SED
4876fi
4877
4878fi
4879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4880$as_echo "$ac_cv_path_SED" >&6; }
4881 SED="$ac_cv_path_SED"
4882  rm -f conftest.sed
4883
4884
4885
4886
4887
4888
4889# Check whether --enable-selective-werror was given.
4890if test "${enable_selective_werror+set}" = set; then :
4891  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4892else
4893  SELECTIVE_WERROR=yes
4894fi
4895
4896
4897
4898
4899
4900# -v is too short to test reliably with XORG_TESTSET_CFLAG
4901if test "x$SUNCC" = "xyes"; then
4902    BASE_CFLAGS="-v"
4903else
4904    BASE_CFLAGS=""
4905fi
4906
4907# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921xorg_testset_save_CFLAGS="$CFLAGS"
4922
4923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4924	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4925	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4926$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4927if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4928  $as_echo_n "(cached) " >&6
4929else
4930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931/* end confdefs.h.  */
4932int i;
4933_ACEOF
4934if ac_fn_c_try_compile "$LINENO"; then :
4935  xorg_cv_cc_flag_unknown_warning_option=yes
4936else
4937  xorg_cv_cc_flag_unknown_warning_option=no
4938fi
4939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940fi
4941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4942$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4943	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4944	CFLAGS="$xorg_testset_save_CFLAGS"
4945fi
4946
4947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4948	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4949		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4950	fi
4951	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4952	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4953$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4954if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4955  $as_echo_n "(cached) " >&6
4956else
4957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958/* end confdefs.h.  */
4959int i;
4960_ACEOF
4961if ac_fn_c_try_compile "$LINENO"; then :
4962  xorg_cv_cc_flag_unused_command_line_argument=yes
4963else
4964  xorg_cv_cc_flag_unused_command_line_argument=no
4965fi
4966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967fi
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4969$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4970	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4971	CFLAGS="$xorg_testset_save_CFLAGS"
4972fi
4973
4974found="no"
4975
4976	if test $found = "no" ; then
4977		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4978			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4979		fi
4980
4981		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4982			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4983		fi
4984
4985		CFLAGS="$CFLAGS -Wall"
4986
4987		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4988$as_echo_n "checking if $CC supports -Wall... " >&6; }
4989		cacheid=xorg_cv_cc_flag__Wall
4990		if eval \${$cacheid+:} false; then :
4991  $as_echo_n "(cached) " >&6
4992else
4993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994/* end confdefs.h.  */
4995int i;
4996int
4997main ()
4998{
4999
5000  ;
5001  return 0;
5002}
5003_ACEOF
5004if ac_fn_c_try_link "$LINENO"; then :
5005  eval $cacheid=yes
5006else
5007  eval $cacheid=no
5008fi
5009rm -f core conftest.err conftest.$ac_objext \
5010    conftest$ac_exeext conftest.$ac_ext
5011fi
5012
5013
5014		CFLAGS="$xorg_testset_save_CFLAGS"
5015
5016		eval supported=\$$cacheid
5017		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5018$as_echo "$supported" >&6; }
5019		if test "$supported" = "yes" ; then
5020			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5021			found="yes"
5022		fi
5023	fi
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039xorg_testset_save_CFLAGS="$CFLAGS"
5040
5041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5042	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5043	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5044$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5045if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5046  $as_echo_n "(cached) " >&6
5047else
5048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049/* end confdefs.h.  */
5050int i;
5051_ACEOF
5052if ac_fn_c_try_compile "$LINENO"; then :
5053  xorg_cv_cc_flag_unknown_warning_option=yes
5054else
5055  xorg_cv_cc_flag_unknown_warning_option=no
5056fi
5057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058fi
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5060$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5061	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5062	CFLAGS="$xorg_testset_save_CFLAGS"
5063fi
5064
5065if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5066	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5067		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5068	fi
5069	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5070	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5071$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5072if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5073  $as_echo_n "(cached) " >&6
5074else
5075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076/* end confdefs.h.  */
5077int i;
5078_ACEOF
5079if ac_fn_c_try_compile "$LINENO"; then :
5080  xorg_cv_cc_flag_unused_command_line_argument=yes
5081else
5082  xorg_cv_cc_flag_unused_command_line_argument=no
5083fi
5084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5085fi
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5087$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5088	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5089	CFLAGS="$xorg_testset_save_CFLAGS"
5090fi
5091
5092found="no"
5093
5094	if test $found = "no" ; then
5095		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5096			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5097		fi
5098
5099		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5100			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5101		fi
5102
5103		CFLAGS="$CFLAGS -Wpointer-arith"
5104
5105		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5106$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5107		cacheid=xorg_cv_cc_flag__Wpointer_arith
5108		if eval \${$cacheid+:} false; then :
5109  $as_echo_n "(cached) " >&6
5110else
5111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112/* end confdefs.h.  */
5113int i;
5114int
5115main ()
5116{
5117
5118  ;
5119  return 0;
5120}
5121_ACEOF
5122if ac_fn_c_try_link "$LINENO"; then :
5123  eval $cacheid=yes
5124else
5125  eval $cacheid=no
5126fi
5127rm -f core conftest.err conftest.$ac_objext \
5128    conftest$ac_exeext conftest.$ac_ext
5129fi
5130
5131
5132		CFLAGS="$xorg_testset_save_CFLAGS"
5133
5134		eval supported=\$$cacheid
5135		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5136$as_echo "$supported" >&6; }
5137		if test "$supported" = "yes" ; then
5138			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5139			found="yes"
5140		fi
5141	fi
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157xorg_testset_save_CFLAGS="$CFLAGS"
5158
5159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5160	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5161	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5162$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5163if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5164  $as_echo_n "(cached) " >&6
5165else
5166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167/* end confdefs.h.  */
5168int i;
5169_ACEOF
5170if ac_fn_c_try_compile "$LINENO"; then :
5171  xorg_cv_cc_flag_unknown_warning_option=yes
5172else
5173  xorg_cv_cc_flag_unknown_warning_option=no
5174fi
5175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5176fi
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5178$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5179	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5180	CFLAGS="$xorg_testset_save_CFLAGS"
5181fi
5182
5183if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5184	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5185		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5186	fi
5187	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5188	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5189$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5190if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5191  $as_echo_n "(cached) " >&6
5192else
5193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194/* end confdefs.h.  */
5195int i;
5196_ACEOF
5197if ac_fn_c_try_compile "$LINENO"; then :
5198  xorg_cv_cc_flag_unused_command_line_argument=yes
5199else
5200  xorg_cv_cc_flag_unused_command_line_argument=no
5201fi
5202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5203fi
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5205$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5206	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5207	CFLAGS="$xorg_testset_save_CFLAGS"
5208fi
5209
5210found="no"
5211
5212	if test $found = "no" ; then
5213		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5214			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5215		fi
5216
5217		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5218			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5219		fi
5220
5221		CFLAGS="$CFLAGS -Wmissing-declarations"
5222
5223		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5224$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5225		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5226		if eval \${$cacheid+:} false; then :
5227  $as_echo_n "(cached) " >&6
5228else
5229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5230/* end confdefs.h.  */
5231int i;
5232int
5233main ()
5234{
5235
5236  ;
5237  return 0;
5238}
5239_ACEOF
5240if ac_fn_c_try_link "$LINENO"; then :
5241  eval $cacheid=yes
5242else
5243  eval $cacheid=no
5244fi
5245rm -f core conftest.err conftest.$ac_objext \
5246    conftest$ac_exeext conftest.$ac_ext
5247fi
5248
5249
5250		CFLAGS="$xorg_testset_save_CFLAGS"
5251
5252		eval supported=\$$cacheid
5253		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5254$as_echo "$supported" >&6; }
5255		if test "$supported" = "yes" ; then
5256			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5257			found="yes"
5258		fi
5259	fi
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275xorg_testset_save_CFLAGS="$CFLAGS"
5276
5277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5278	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5279	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5280$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5281if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5282  $as_echo_n "(cached) " >&6
5283else
5284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285/* end confdefs.h.  */
5286int i;
5287_ACEOF
5288if ac_fn_c_try_compile "$LINENO"; then :
5289  xorg_cv_cc_flag_unknown_warning_option=yes
5290else
5291  xorg_cv_cc_flag_unknown_warning_option=no
5292fi
5293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294fi
5295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5296$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5297	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5298	CFLAGS="$xorg_testset_save_CFLAGS"
5299fi
5300
5301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5302	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5303		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5304	fi
5305	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5306	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5307$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5308if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5309  $as_echo_n "(cached) " >&6
5310else
5311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312/* end confdefs.h.  */
5313int i;
5314_ACEOF
5315if ac_fn_c_try_compile "$LINENO"; then :
5316  xorg_cv_cc_flag_unused_command_line_argument=yes
5317else
5318  xorg_cv_cc_flag_unused_command_line_argument=no
5319fi
5320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5321fi
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5323$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5324	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5325	CFLAGS="$xorg_testset_save_CFLAGS"
5326fi
5327
5328found="no"
5329
5330	if test $found = "no" ; then
5331		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5332			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5333		fi
5334
5335		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5336			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5337		fi
5338
5339		CFLAGS="$CFLAGS -Wformat=2"
5340
5341		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5342$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5343		cacheid=xorg_cv_cc_flag__Wformat_2
5344		if eval \${$cacheid+:} false; then :
5345  $as_echo_n "(cached) " >&6
5346else
5347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348/* end confdefs.h.  */
5349int i;
5350int
5351main ()
5352{
5353
5354  ;
5355  return 0;
5356}
5357_ACEOF
5358if ac_fn_c_try_link "$LINENO"; then :
5359  eval $cacheid=yes
5360else
5361  eval $cacheid=no
5362fi
5363rm -f core conftest.err conftest.$ac_objext \
5364    conftest$ac_exeext conftest.$ac_ext
5365fi
5366
5367
5368		CFLAGS="$xorg_testset_save_CFLAGS"
5369
5370		eval supported=\$$cacheid
5371		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5372$as_echo "$supported" >&6; }
5373		if test "$supported" = "yes" ; then
5374			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5375			found="yes"
5376		fi
5377	fi
5378
5379	if test $found = "no" ; then
5380		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5381			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5382		fi
5383
5384		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5385			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5386		fi
5387
5388		CFLAGS="$CFLAGS -Wformat"
5389
5390		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5391$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5392		cacheid=xorg_cv_cc_flag__Wformat
5393		if eval \${$cacheid+:} false; then :
5394  $as_echo_n "(cached) " >&6
5395else
5396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397/* end confdefs.h.  */
5398int i;
5399int
5400main ()
5401{
5402
5403  ;
5404  return 0;
5405}
5406_ACEOF
5407if ac_fn_c_try_link "$LINENO"; then :
5408  eval $cacheid=yes
5409else
5410  eval $cacheid=no
5411fi
5412rm -f core conftest.err conftest.$ac_objext \
5413    conftest$ac_exeext conftest.$ac_ext
5414fi
5415
5416
5417		CFLAGS="$xorg_testset_save_CFLAGS"
5418
5419		eval supported=\$$cacheid
5420		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5421$as_echo "$supported" >&6; }
5422		if test "$supported" = "yes" ; then
5423			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5424			found="yes"
5425		fi
5426	fi
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444xorg_testset_save_CFLAGS="$CFLAGS"
5445
5446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5447	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5448	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5449$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5450if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5451  $as_echo_n "(cached) " >&6
5452else
5453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454/* end confdefs.h.  */
5455int i;
5456_ACEOF
5457if ac_fn_c_try_compile "$LINENO"; then :
5458  xorg_cv_cc_flag_unknown_warning_option=yes
5459else
5460  xorg_cv_cc_flag_unknown_warning_option=no
5461fi
5462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463fi
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5465$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5466	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5467	CFLAGS="$xorg_testset_save_CFLAGS"
5468fi
5469
5470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5471	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5472		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5473	fi
5474	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5475	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5476$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5477if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5478  $as_echo_n "(cached) " >&6
5479else
5480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481/* end confdefs.h.  */
5482int i;
5483_ACEOF
5484if ac_fn_c_try_compile "$LINENO"; then :
5485  xorg_cv_cc_flag_unused_command_line_argument=yes
5486else
5487  xorg_cv_cc_flag_unused_command_line_argument=no
5488fi
5489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490fi
5491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5492$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5493	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5494	CFLAGS="$xorg_testset_save_CFLAGS"
5495fi
5496
5497found="no"
5498
5499	if test $found = "no" ; then
5500		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5501			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5502		fi
5503
5504		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5505			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5506		fi
5507
5508		CFLAGS="$CFLAGS -Wstrict-prototypes"
5509
5510		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5511$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5512		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5513		if eval \${$cacheid+:} false; then :
5514  $as_echo_n "(cached) " >&6
5515else
5516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517/* end confdefs.h.  */
5518int i;
5519int
5520main ()
5521{
5522
5523  ;
5524  return 0;
5525}
5526_ACEOF
5527if ac_fn_c_try_link "$LINENO"; then :
5528  eval $cacheid=yes
5529else
5530  eval $cacheid=no
5531fi
5532rm -f core conftest.err conftest.$ac_objext \
5533    conftest$ac_exeext conftest.$ac_ext
5534fi
5535
5536
5537		CFLAGS="$xorg_testset_save_CFLAGS"
5538
5539		eval supported=\$$cacheid
5540		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5541$as_echo "$supported" >&6; }
5542		if test "$supported" = "yes" ; then
5543			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5544			found="yes"
5545		fi
5546	fi
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562xorg_testset_save_CFLAGS="$CFLAGS"
5563
5564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5565	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5566	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5567$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5568if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5569  $as_echo_n "(cached) " >&6
5570else
5571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572/* end confdefs.h.  */
5573int i;
5574_ACEOF
5575if ac_fn_c_try_compile "$LINENO"; then :
5576  xorg_cv_cc_flag_unknown_warning_option=yes
5577else
5578  xorg_cv_cc_flag_unknown_warning_option=no
5579fi
5580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581fi
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5583$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5584	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5585	CFLAGS="$xorg_testset_save_CFLAGS"
5586fi
5587
5588if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5589	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5590		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5591	fi
5592	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5593	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5594$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5595if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5596  $as_echo_n "(cached) " >&6
5597else
5598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599/* end confdefs.h.  */
5600int i;
5601_ACEOF
5602if ac_fn_c_try_compile "$LINENO"; then :
5603  xorg_cv_cc_flag_unused_command_line_argument=yes
5604else
5605  xorg_cv_cc_flag_unused_command_line_argument=no
5606fi
5607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608fi
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5610$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5611	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5612	CFLAGS="$xorg_testset_save_CFLAGS"
5613fi
5614
5615found="no"
5616
5617	if test $found = "no" ; then
5618		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5619			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5620		fi
5621
5622		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5623			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5624		fi
5625
5626		CFLAGS="$CFLAGS -Wmissing-prototypes"
5627
5628		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5629$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5630		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5631		if eval \${$cacheid+:} false; then :
5632  $as_echo_n "(cached) " >&6
5633else
5634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635/* end confdefs.h.  */
5636int i;
5637int
5638main ()
5639{
5640
5641  ;
5642  return 0;
5643}
5644_ACEOF
5645if ac_fn_c_try_link "$LINENO"; then :
5646  eval $cacheid=yes
5647else
5648  eval $cacheid=no
5649fi
5650rm -f core conftest.err conftest.$ac_objext \
5651    conftest$ac_exeext conftest.$ac_ext
5652fi
5653
5654
5655		CFLAGS="$xorg_testset_save_CFLAGS"
5656
5657		eval supported=\$$cacheid
5658		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5659$as_echo "$supported" >&6; }
5660		if test "$supported" = "yes" ; then
5661			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5662			found="yes"
5663		fi
5664	fi
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680xorg_testset_save_CFLAGS="$CFLAGS"
5681
5682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5683	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5684	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5685$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5686if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5687  $as_echo_n "(cached) " >&6
5688else
5689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690/* end confdefs.h.  */
5691int i;
5692_ACEOF
5693if ac_fn_c_try_compile "$LINENO"; then :
5694  xorg_cv_cc_flag_unknown_warning_option=yes
5695else
5696  xorg_cv_cc_flag_unknown_warning_option=no
5697fi
5698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699fi
5700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5701$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5702	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5703	CFLAGS="$xorg_testset_save_CFLAGS"
5704fi
5705
5706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5707	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5708		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5709	fi
5710	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5711	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5712$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5713if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5714  $as_echo_n "(cached) " >&6
5715else
5716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717/* end confdefs.h.  */
5718int i;
5719_ACEOF
5720if ac_fn_c_try_compile "$LINENO"; then :
5721  xorg_cv_cc_flag_unused_command_line_argument=yes
5722else
5723  xorg_cv_cc_flag_unused_command_line_argument=no
5724fi
5725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726fi
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5728$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5729	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5730	CFLAGS="$xorg_testset_save_CFLAGS"
5731fi
5732
5733found="no"
5734
5735	if test $found = "no" ; then
5736		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5737			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5738		fi
5739
5740		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5741			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5742		fi
5743
5744		CFLAGS="$CFLAGS -Wnested-externs"
5745
5746		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5747$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5748		cacheid=xorg_cv_cc_flag__Wnested_externs
5749		if eval \${$cacheid+:} false; then :
5750  $as_echo_n "(cached) " >&6
5751else
5752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753/* end confdefs.h.  */
5754int i;
5755int
5756main ()
5757{
5758
5759  ;
5760  return 0;
5761}
5762_ACEOF
5763if ac_fn_c_try_link "$LINENO"; then :
5764  eval $cacheid=yes
5765else
5766  eval $cacheid=no
5767fi
5768rm -f core conftest.err conftest.$ac_objext \
5769    conftest$ac_exeext conftest.$ac_ext
5770fi
5771
5772
5773		CFLAGS="$xorg_testset_save_CFLAGS"
5774
5775		eval supported=\$$cacheid
5776		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5777$as_echo "$supported" >&6; }
5778		if test "$supported" = "yes" ; then
5779			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5780			found="yes"
5781		fi
5782	fi
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798xorg_testset_save_CFLAGS="$CFLAGS"
5799
5800if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5801	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5802	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5803$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5804if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5805  $as_echo_n "(cached) " >&6
5806else
5807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808/* end confdefs.h.  */
5809int i;
5810_ACEOF
5811if ac_fn_c_try_compile "$LINENO"; then :
5812  xorg_cv_cc_flag_unknown_warning_option=yes
5813else
5814  xorg_cv_cc_flag_unknown_warning_option=no
5815fi
5816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5817fi
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5819$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5820	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5821	CFLAGS="$xorg_testset_save_CFLAGS"
5822fi
5823
5824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5825	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5826		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5827	fi
5828	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5829	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5830$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5831if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5832  $as_echo_n "(cached) " >&6
5833else
5834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835/* end confdefs.h.  */
5836int i;
5837_ACEOF
5838if ac_fn_c_try_compile "$LINENO"; then :
5839  xorg_cv_cc_flag_unused_command_line_argument=yes
5840else
5841  xorg_cv_cc_flag_unused_command_line_argument=no
5842fi
5843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5844fi
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5846$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5847	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5848	CFLAGS="$xorg_testset_save_CFLAGS"
5849fi
5850
5851found="no"
5852
5853	if test $found = "no" ; then
5854		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5855			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5856		fi
5857
5858		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5859			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5860		fi
5861
5862		CFLAGS="$CFLAGS -Wbad-function-cast"
5863
5864		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5865$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5866		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5867		if eval \${$cacheid+:} false; then :
5868  $as_echo_n "(cached) " >&6
5869else
5870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871/* end confdefs.h.  */
5872int i;
5873int
5874main ()
5875{
5876
5877  ;
5878  return 0;
5879}
5880_ACEOF
5881if ac_fn_c_try_link "$LINENO"; then :
5882  eval $cacheid=yes
5883else
5884  eval $cacheid=no
5885fi
5886rm -f core conftest.err conftest.$ac_objext \
5887    conftest$ac_exeext conftest.$ac_ext
5888fi
5889
5890
5891		CFLAGS="$xorg_testset_save_CFLAGS"
5892
5893		eval supported=\$$cacheid
5894		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5895$as_echo "$supported" >&6; }
5896		if test "$supported" = "yes" ; then
5897			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5898			found="yes"
5899		fi
5900	fi
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916xorg_testset_save_CFLAGS="$CFLAGS"
5917
5918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5919	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5920	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5921$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5922if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5923  $as_echo_n "(cached) " >&6
5924else
5925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926/* end confdefs.h.  */
5927int i;
5928_ACEOF
5929if ac_fn_c_try_compile "$LINENO"; then :
5930  xorg_cv_cc_flag_unknown_warning_option=yes
5931else
5932  xorg_cv_cc_flag_unknown_warning_option=no
5933fi
5934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5935fi
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5937$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5938	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5939	CFLAGS="$xorg_testset_save_CFLAGS"
5940fi
5941
5942if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5943	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5944		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5945	fi
5946	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5947	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5948$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5949if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5950  $as_echo_n "(cached) " >&6
5951else
5952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953/* end confdefs.h.  */
5954int i;
5955_ACEOF
5956if ac_fn_c_try_compile "$LINENO"; then :
5957  xorg_cv_cc_flag_unused_command_line_argument=yes
5958else
5959  xorg_cv_cc_flag_unused_command_line_argument=no
5960fi
5961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5962fi
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5964$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5965	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5966	CFLAGS="$xorg_testset_save_CFLAGS"
5967fi
5968
5969found="no"
5970
5971	if test $found = "no" ; then
5972		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5973			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5974		fi
5975
5976		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5977			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5978		fi
5979
5980		CFLAGS="$CFLAGS -Wold-style-definition"
5981
5982		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5983$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5984		cacheid=xorg_cv_cc_flag__Wold_style_definition
5985		if eval \${$cacheid+:} false; then :
5986  $as_echo_n "(cached) " >&6
5987else
5988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989/* end confdefs.h.  */
5990int i;
5991int
5992main ()
5993{
5994
5995  ;
5996  return 0;
5997}
5998_ACEOF
5999if ac_fn_c_try_link "$LINENO"; then :
6000  eval $cacheid=yes
6001else
6002  eval $cacheid=no
6003fi
6004rm -f core conftest.err conftest.$ac_objext \
6005    conftest$ac_exeext conftest.$ac_ext
6006fi
6007
6008
6009		CFLAGS="$xorg_testset_save_CFLAGS"
6010
6011		eval supported=\$$cacheid
6012		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6013$as_echo "$supported" >&6; }
6014		if test "$supported" = "yes" ; then
6015			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6016			found="yes"
6017		fi
6018	fi
6019
6020	if test $found = "no" ; then
6021		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6022			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6023		fi
6024
6025		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6026			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6027		fi
6028
6029		CFLAGS="$CFLAGS -fd"
6030
6031		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6032$as_echo_n "checking if $CC supports -fd... " >&6; }
6033		cacheid=xorg_cv_cc_flag__fd
6034		if eval \${$cacheid+:} false; then :
6035  $as_echo_n "(cached) " >&6
6036else
6037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038/* end confdefs.h.  */
6039int i;
6040int
6041main ()
6042{
6043
6044  ;
6045  return 0;
6046}
6047_ACEOF
6048if ac_fn_c_try_link "$LINENO"; then :
6049  eval $cacheid=yes
6050else
6051  eval $cacheid=no
6052fi
6053rm -f core conftest.err conftest.$ac_objext \
6054    conftest$ac_exeext conftest.$ac_ext
6055fi
6056
6057
6058		CFLAGS="$xorg_testset_save_CFLAGS"
6059
6060		eval supported=\$$cacheid
6061		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6062$as_echo "$supported" >&6; }
6063		if test "$supported" = "yes" ; then
6064			BASE_CFLAGS="$BASE_CFLAGS -fd"
6065			found="yes"
6066		fi
6067	fi
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083xorg_testset_save_CFLAGS="$CFLAGS"
6084
6085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6086	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6087	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6088$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6089if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6090  $as_echo_n "(cached) " >&6
6091else
6092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093/* end confdefs.h.  */
6094int i;
6095_ACEOF
6096if ac_fn_c_try_compile "$LINENO"; then :
6097  xorg_cv_cc_flag_unknown_warning_option=yes
6098else
6099  xorg_cv_cc_flag_unknown_warning_option=no
6100fi
6101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102fi
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6104$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6105	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6106	CFLAGS="$xorg_testset_save_CFLAGS"
6107fi
6108
6109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6110	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6111		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6112	fi
6113	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6114	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6115$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6116if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6117  $as_echo_n "(cached) " >&6
6118else
6119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120/* end confdefs.h.  */
6121int i;
6122_ACEOF
6123if ac_fn_c_try_compile "$LINENO"; then :
6124  xorg_cv_cc_flag_unused_command_line_argument=yes
6125else
6126  xorg_cv_cc_flag_unused_command_line_argument=no
6127fi
6128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129fi
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6131$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6132	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6133	CFLAGS="$xorg_testset_save_CFLAGS"
6134fi
6135
6136found="no"
6137
6138	if test $found = "no" ; then
6139		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6140			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6141		fi
6142
6143		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6144			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6145		fi
6146
6147		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6148
6149		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6150$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6151		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6152		if eval \${$cacheid+:} false; then :
6153  $as_echo_n "(cached) " >&6
6154else
6155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6156/* end confdefs.h.  */
6157int i;
6158int
6159main ()
6160{
6161
6162  ;
6163  return 0;
6164}
6165_ACEOF
6166if ac_fn_c_try_link "$LINENO"; then :
6167  eval $cacheid=yes
6168else
6169  eval $cacheid=no
6170fi
6171rm -f core conftest.err conftest.$ac_objext \
6172    conftest$ac_exeext conftest.$ac_ext
6173fi
6174
6175
6176		CFLAGS="$xorg_testset_save_CFLAGS"
6177
6178		eval supported=\$$cacheid
6179		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6180$as_echo "$supported" >&6; }
6181		if test "$supported" = "yes" ; then
6182			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6183			found="yes"
6184		fi
6185	fi
6186
6187
6188
6189
6190
6191# This chunk adds additional warnings that could catch undesired effects.
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205xorg_testset_save_CFLAGS="$CFLAGS"
6206
6207if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6208	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6209	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6210$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6211if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6212  $as_echo_n "(cached) " >&6
6213else
6214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215/* end confdefs.h.  */
6216int i;
6217_ACEOF
6218if ac_fn_c_try_compile "$LINENO"; then :
6219  xorg_cv_cc_flag_unknown_warning_option=yes
6220else
6221  xorg_cv_cc_flag_unknown_warning_option=no
6222fi
6223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6224fi
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6226$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6227	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6228	CFLAGS="$xorg_testset_save_CFLAGS"
6229fi
6230
6231if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6232	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6233		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6234	fi
6235	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6236	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6237$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6238if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6239  $as_echo_n "(cached) " >&6
6240else
6241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242/* end confdefs.h.  */
6243int i;
6244_ACEOF
6245if ac_fn_c_try_compile "$LINENO"; then :
6246  xorg_cv_cc_flag_unused_command_line_argument=yes
6247else
6248  xorg_cv_cc_flag_unused_command_line_argument=no
6249fi
6250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6251fi
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6253$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6254	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6255	CFLAGS="$xorg_testset_save_CFLAGS"
6256fi
6257
6258found="no"
6259
6260	if test $found = "no" ; then
6261		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6262			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6263		fi
6264
6265		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6266			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6267		fi
6268
6269		CFLAGS="$CFLAGS -Wunused"
6270
6271		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6272$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6273		cacheid=xorg_cv_cc_flag__Wunused
6274		if eval \${$cacheid+:} false; then :
6275  $as_echo_n "(cached) " >&6
6276else
6277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278/* end confdefs.h.  */
6279int i;
6280int
6281main ()
6282{
6283
6284  ;
6285  return 0;
6286}
6287_ACEOF
6288if ac_fn_c_try_link "$LINENO"; then :
6289  eval $cacheid=yes
6290else
6291  eval $cacheid=no
6292fi
6293rm -f core conftest.err conftest.$ac_objext \
6294    conftest$ac_exeext conftest.$ac_ext
6295fi
6296
6297
6298		CFLAGS="$xorg_testset_save_CFLAGS"
6299
6300		eval supported=\$$cacheid
6301		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6302$as_echo "$supported" >&6; }
6303		if test "$supported" = "yes" ; then
6304			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6305			found="yes"
6306		fi
6307	fi
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323xorg_testset_save_CFLAGS="$CFLAGS"
6324
6325if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6326	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6327	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6328$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6329if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6330  $as_echo_n "(cached) " >&6
6331else
6332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333/* end confdefs.h.  */
6334int i;
6335_ACEOF
6336if ac_fn_c_try_compile "$LINENO"; then :
6337  xorg_cv_cc_flag_unknown_warning_option=yes
6338else
6339  xorg_cv_cc_flag_unknown_warning_option=no
6340fi
6341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6342fi
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6344$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6345	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6346	CFLAGS="$xorg_testset_save_CFLAGS"
6347fi
6348
6349if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6350	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6351		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6352	fi
6353	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6354	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6355$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6356if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6357  $as_echo_n "(cached) " >&6
6358else
6359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360/* end confdefs.h.  */
6361int i;
6362_ACEOF
6363if ac_fn_c_try_compile "$LINENO"; then :
6364  xorg_cv_cc_flag_unused_command_line_argument=yes
6365else
6366  xorg_cv_cc_flag_unused_command_line_argument=no
6367fi
6368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6369fi
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6371$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6372	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6373	CFLAGS="$xorg_testset_save_CFLAGS"
6374fi
6375
6376found="no"
6377
6378	if test $found = "no" ; then
6379		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6380			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6381		fi
6382
6383		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6384			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6385		fi
6386
6387		CFLAGS="$CFLAGS -Wuninitialized"
6388
6389		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6390$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6391		cacheid=xorg_cv_cc_flag__Wuninitialized
6392		if eval \${$cacheid+:} false; then :
6393  $as_echo_n "(cached) " >&6
6394else
6395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396/* end confdefs.h.  */
6397int i;
6398int
6399main ()
6400{
6401
6402  ;
6403  return 0;
6404}
6405_ACEOF
6406if ac_fn_c_try_link "$LINENO"; then :
6407  eval $cacheid=yes
6408else
6409  eval $cacheid=no
6410fi
6411rm -f core conftest.err conftest.$ac_objext \
6412    conftest$ac_exeext conftest.$ac_ext
6413fi
6414
6415
6416		CFLAGS="$xorg_testset_save_CFLAGS"
6417
6418		eval supported=\$$cacheid
6419		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6420$as_echo "$supported" >&6; }
6421		if test "$supported" = "yes" ; then
6422			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6423			found="yes"
6424		fi
6425	fi
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441xorg_testset_save_CFLAGS="$CFLAGS"
6442
6443if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6444	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6445	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6446$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6447if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6448  $as_echo_n "(cached) " >&6
6449else
6450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451/* end confdefs.h.  */
6452int i;
6453_ACEOF
6454if ac_fn_c_try_compile "$LINENO"; then :
6455  xorg_cv_cc_flag_unknown_warning_option=yes
6456else
6457  xorg_cv_cc_flag_unknown_warning_option=no
6458fi
6459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6460fi
6461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6462$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6463	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6464	CFLAGS="$xorg_testset_save_CFLAGS"
6465fi
6466
6467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6468	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6469		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6470	fi
6471	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6472	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6473$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6474if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6475  $as_echo_n "(cached) " >&6
6476else
6477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478/* end confdefs.h.  */
6479int i;
6480_ACEOF
6481if ac_fn_c_try_compile "$LINENO"; then :
6482  xorg_cv_cc_flag_unused_command_line_argument=yes
6483else
6484  xorg_cv_cc_flag_unused_command_line_argument=no
6485fi
6486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6487fi
6488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6489$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6490	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6491	CFLAGS="$xorg_testset_save_CFLAGS"
6492fi
6493
6494found="no"
6495
6496	if test $found = "no" ; then
6497		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6498			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6499		fi
6500
6501		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6502			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6503		fi
6504
6505		CFLAGS="$CFLAGS -Wshadow"
6506
6507		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6508$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6509		cacheid=xorg_cv_cc_flag__Wshadow
6510		if eval \${$cacheid+:} false; then :
6511  $as_echo_n "(cached) " >&6
6512else
6513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514/* end confdefs.h.  */
6515int i;
6516int
6517main ()
6518{
6519
6520  ;
6521  return 0;
6522}
6523_ACEOF
6524if ac_fn_c_try_link "$LINENO"; then :
6525  eval $cacheid=yes
6526else
6527  eval $cacheid=no
6528fi
6529rm -f core conftest.err conftest.$ac_objext \
6530    conftest$ac_exeext conftest.$ac_ext
6531fi
6532
6533
6534		CFLAGS="$xorg_testset_save_CFLAGS"
6535
6536		eval supported=\$$cacheid
6537		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6538$as_echo "$supported" >&6; }
6539		if test "$supported" = "yes" ; then
6540			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6541			found="yes"
6542		fi
6543	fi
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559xorg_testset_save_CFLAGS="$CFLAGS"
6560
6561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6562	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6563	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6564$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6565if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6566  $as_echo_n "(cached) " >&6
6567else
6568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569/* end confdefs.h.  */
6570int i;
6571_ACEOF
6572if ac_fn_c_try_compile "$LINENO"; then :
6573  xorg_cv_cc_flag_unknown_warning_option=yes
6574else
6575  xorg_cv_cc_flag_unknown_warning_option=no
6576fi
6577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578fi
6579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6580$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6581	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6582	CFLAGS="$xorg_testset_save_CFLAGS"
6583fi
6584
6585if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6586	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6587		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6588	fi
6589	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6590	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6591$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6592if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6593  $as_echo_n "(cached) " >&6
6594else
6595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596/* end confdefs.h.  */
6597int i;
6598_ACEOF
6599if ac_fn_c_try_compile "$LINENO"; then :
6600  xorg_cv_cc_flag_unused_command_line_argument=yes
6601else
6602  xorg_cv_cc_flag_unused_command_line_argument=no
6603fi
6604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6605fi
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6607$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6608	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6609	CFLAGS="$xorg_testset_save_CFLAGS"
6610fi
6611
6612found="no"
6613
6614	if test $found = "no" ; then
6615		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6616			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6617		fi
6618
6619		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6620			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6621		fi
6622
6623		CFLAGS="$CFLAGS -Wmissing-noreturn"
6624
6625		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6626$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6627		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6628		if eval \${$cacheid+:} false; then :
6629  $as_echo_n "(cached) " >&6
6630else
6631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6632/* end confdefs.h.  */
6633int i;
6634int
6635main ()
6636{
6637
6638  ;
6639  return 0;
6640}
6641_ACEOF
6642if ac_fn_c_try_link "$LINENO"; then :
6643  eval $cacheid=yes
6644else
6645  eval $cacheid=no
6646fi
6647rm -f core conftest.err conftest.$ac_objext \
6648    conftest$ac_exeext conftest.$ac_ext
6649fi
6650
6651
6652		CFLAGS="$xorg_testset_save_CFLAGS"
6653
6654		eval supported=\$$cacheid
6655		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6656$as_echo "$supported" >&6; }
6657		if test "$supported" = "yes" ; then
6658			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6659			found="yes"
6660		fi
6661	fi
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677xorg_testset_save_CFLAGS="$CFLAGS"
6678
6679if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6680	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6681	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6682$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6683if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6684  $as_echo_n "(cached) " >&6
6685else
6686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687/* end confdefs.h.  */
6688int i;
6689_ACEOF
6690if ac_fn_c_try_compile "$LINENO"; then :
6691  xorg_cv_cc_flag_unknown_warning_option=yes
6692else
6693  xorg_cv_cc_flag_unknown_warning_option=no
6694fi
6695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6696fi
6697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6698$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6699	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6700	CFLAGS="$xorg_testset_save_CFLAGS"
6701fi
6702
6703if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6704	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6705		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6706	fi
6707	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6708	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6709$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6710if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6711  $as_echo_n "(cached) " >&6
6712else
6713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714/* end confdefs.h.  */
6715int i;
6716_ACEOF
6717if ac_fn_c_try_compile "$LINENO"; then :
6718  xorg_cv_cc_flag_unused_command_line_argument=yes
6719else
6720  xorg_cv_cc_flag_unused_command_line_argument=no
6721fi
6722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6723fi
6724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6725$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6726	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6727	CFLAGS="$xorg_testset_save_CFLAGS"
6728fi
6729
6730found="no"
6731
6732	if test $found = "no" ; then
6733		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6734			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6735		fi
6736
6737		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6738			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6739		fi
6740
6741		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6742
6743		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6744$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6745		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6746		if eval \${$cacheid+:} false; then :
6747  $as_echo_n "(cached) " >&6
6748else
6749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750/* end confdefs.h.  */
6751int i;
6752int
6753main ()
6754{
6755
6756  ;
6757  return 0;
6758}
6759_ACEOF
6760if ac_fn_c_try_link "$LINENO"; then :
6761  eval $cacheid=yes
6762else
6763  eval $cacheid=no
6764fi
6765rm -f core conftest.err conftest.$ac_objext \
6766    conftest$ac_exeext conftest.$ac_ext
6767fi
6768
6769
6770		CFLAGS="$xorg_testset_save_CFLAGS"
6771
6772		eval supported=\$$cacheid
6773		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6774$as_echo "$supported" >&6; }
6775		if test "$supported" = "yes" ; then
6776			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6777			found="yes"
6778		fi
6779	fi
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795xorg_testset_save_CFLAGS="$CFLAGS"
6796
6797if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6798	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6799	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6800$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6801if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6802  $as_echo_n "(cached) " >&6
6803else
6804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6805/* end confdefs.h.  */
6806int i;
6807_ACEOF
6808if ac_fn_c_try_compile "$LINENO"; then :
6809  xorg_cv_cc_flag_unknown_warning_option=yes
6810else
6811  xorg_cv_cc_flag_unknown_warning_option=no
6812fi
6813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6814fi
6815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6816$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6817	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6818	CFLAGS="$xorg_testset_save_CFLAGS"
6819fi
6820
6821if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6822	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6823		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6824	fi
6825	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6826	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6827$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6828if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6829  $as_echo_n "(cached) " >&6
6830else
6831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832/* end confdefs.h.  */
6833int i;
6834_ACEOF
6835if ac_fn_c_try_compile "$LINENO"; then :
6836  xorg_cv_cc_flag_unused_command_line_argument=yes
6837else
6838  xorg_cv_cc_flag_unused_command_line_argument=no
6839fi
6840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6841fi
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6843$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6844	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6845	CFLAGS="$xorg_testset_save_CFLAGS"
6846fi
6847
6848found="no"
6849
6850	if test $found = "no" ; then
6851		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6852			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6853		fi
6854
6855		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6856			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6857		fi
6858
6859		CFLAGS="$CFLAGS -Wredundant-decls"
6860
6861		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6862$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6863		cacheid=xorg_cv_cc_flag__Wredundant_decls
6864		if eval \${$cacheid+:} false; then :
6865  $as_echo_n "(cached) " >&6
6866else
6867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6868/* end confdefs.h.  */
6869int i;
6870int
6871main ()
6872{
6873
6874  ;
6875  return 0;
6876}
6877_ACEOF
6878if ac_fn_c_try_link "$LINENO"; then :
6879  eval $cacheid=yes
6880else
6881  eval $cacheid=no
6882fi
6883rm -f core conftest.err conftest.$ac_objext \
6884    conftest$ac_exeext conftest.$ac_ext
6885fi
6886
6887
6888		CFLAGS="$xorg_testset_save_CFLAGS"
6889
6890		eval supported=\$$cacheid
6891		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6892$as_echo "$supported" >&6; }
6893		if test "$supported" = "yes" ; then
6894			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6895			found="yes"
6896		fi
6897	fi
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913xorg_testset_save_CFLAGS="$CFLAGS"
6914
6915if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6916	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6917	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6918$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6919if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6920  $as_echo_n "(cached) " >&6
6921else
6922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923/* end confdefs.h.  */
6924int i;
6925_ACEOF
6926if ac_fn_c_try_compile "$LINENO"; then :
6927  xorg_cv_cc_flag_unknown_warning_option=yes
6928else
6929  xorg_cv_cc_flag_unknown_warning_option=no
6930fi
6931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6932fi
6933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6934$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6935	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6936	CFLAGS="$xorg_testset_save_CFLAGS"
6937fi
6938
6939if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6940	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6941		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6942	fi
6943	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6944	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6945$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6946if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6947  $as_echo_n "(cached) " >&6
6948else
6949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950/* end confdefs.h.  */
6951int i;
6952_ACEOF
6953if ac_fn_c_try_compile "$LINENO"; then :
6954  xorg_cv_cc_flag_unused_command_line_argument=yes
6955else
6956  xorg_cv_cc_flag_unused_command_line_argument=no
6957fi
6958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6959fi
6960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6961$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6962	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6963	CFLAGS="$xorg_testset_save_CFLAGS"
6964fi
6965
6966found="no"
6967
6968	if test $found = "no" ; then
6969		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6970			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6971		fi
6972
6973		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6974			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6975		fi
6976
6977		CFLAGS="$CFLAGS -Wlogical-op"
6978
6979		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6980$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6981		cacheid=xorg_cv_cc_flag__Wlogical_op
6982		if eval \${$cacheid+:} false; then :
6983  $as_echo_n "(cached) " >&6
6984else
6985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6986/* end confdefs.h.  */
6987int i;
6988int
6989main ()
6990{
6991
6992  ;
6993  return 0;
6994}
6995_ACEOF
6996if ac_fn_c_try_link "$LINENO"; then :
6997  eval $cacheid=yes
6998else
6999  eval $cacheid=no
7000fi
7001rm -f core conftest.err conftest.$ac_objext \
7002    conftest$ac_exeext conftest.$ac_ext
7003fi
7004
7005
7006		CFLAGS="$xorg_testset_save_CFLAGS"
7007
7008		eval supported=\$$cacheid
7009		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7010$as_echo "$supported" >&6; }
7011		if test "$supported" = "yes" ; then
7012			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7013			found="yes"
7014		fi
7015	fi
7016
7017
7018
7019# These are currently disabled because they are noisy.  They will be enabled
7020# in the future once the codebase is sufficiently modernized to silence
7021# them.  For now, I don't want them to drown out the other warnings.
7022# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7023# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7024# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7025
7026# Turn some warnings into errors, so we don't accidently get successful builds
7027# when there are problems that should be fixed.
7028
7029if test "x$SELECTIVE_WERROR" = "xyes" ; then
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043xorg_testset_save_CFLAGS="$CFLAGS"
7044
7045if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7046	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7047	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7048$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7049if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7050  $as_echo_n "(cached) " >&6
7051else
7052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053/* end confdefs.h.  */
7054int i;
7055_ACEOF
7056if ac_fn_c_try_compile "$LINENO"; then :
7057  xorg_cv_cc_flag_unknown_warning_option=yes
7058else
7059  xorg_cv_cc_flag_unknown_warning_option=no
7060fi
7061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7062fi
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7064$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7065	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7066	CFLAGS="$xorg_testset_save_CFLAGS"
7067fi
7068
7069if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7070	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7071		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7072	fi
7073	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7074	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7075$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7076if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7077  $as_echo_n "(cached) " >&6
7078else
7079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080/* end confdefs.h.  */
7081int i;
7082_ACEOF
7083if ac_fn_c_try_compile "$LINENO"; then :
7084  xorg_cv_cc_flag_unused_command_line_argument=yes
7085else
7086  xorg_cv_cc_flag_unused_command_line_argument=no
7087fi
7088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7089fi
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7091$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7092	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7093	CFLAGS="$xorg_testset_save_CFLAGS"
7094fi
7095
7096found="no"
7097
7098	if test $found = "no" ; then
7099		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7100			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7101		fi
7102
7103		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7104			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7105		fi
7106
7107		CFLAGS="$CFLAGS -Werror=implicit"
7108
7109		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7110$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7111		cacheid=xorg_cv_cc_flag__Werror_implicit
7112		if eval \${$cacheid+:} false; then :
7113  $as_echo_n "(cached) " >&6
7114else
7115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116/* end confdefs.h.  */
7117int i;
7118int
7119main ()
7120{
7121
7122  ;
7123  return 0;
7124}
7125_ACEOF
7126if ac_fn_c_try_link "$LINENO"; then :
7127  eval $cacheid=yes
7128else
7129  eval $cacheid=no
7130fi
7131rm -f core conftest.err conftest.$ac_objext \
7132    conftest$ac_exeext conftest.$ac_ext
7133fi
7134
7135
7136		CFLAGS="$xorg_testset_save_CFLAGS"
7137
7138		eval supported=\$$cacheid
7139		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7140$as_echo "$supported" >&6; }
7141		if test "$supported" = "yes" ; then
7142			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7143			found="yes"
7144		fi
7145	fi
7146
7147	if test $found = "no" ; then
7148		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7149			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7150		fi
7151
7152		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7153			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7154		fi
7155
7156		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7157
7158		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7159$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7160		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7161		if eval \${$cacheid+:} false; then :
7162  $as_echo_n "(cached) " >&6
7163else
7164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7165/* end confdefs.h.  */
7166int i;
7167int
7168main ()
7169{
7170
7171  ;
7172  return 0;
7173}
7174_ACEOF
7175if ac_fn_c_try_link "$LINENO"; then :
7176  eval $cacheid=yes
7177else
7178  eval $cacheid=no
7179fi
7180rm -f core conftest.err conftest.$ac_objext \
7181    conftest$ac_exeext conftest.$ac_ext
7182fi
7183
7184
7185		CFLAGS="$xorg_testset_save_CFLAGS"
7186
7187		eval supported=\$$cacheid
7188		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7189$as_echo "$supported" >&6; }
7190		if test "$supported" = "yes" ; then
7191			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7192			found="yes"
7193		fi
7194	fi
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210xorg_testset_save_CFLAGS="$CFLAGS"
7211
7212if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7213	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7214	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7215$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7216if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7217  $as_echo_n "(cached) " >&6
7218else
7219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220/* end confdefs.h.  */
7221int i;
7222_ACEOF
7223if ac_fn_c_try_compile "$LINENO"; then :
7224  xorg_cv_cc_flag_unknown_warning_option=yes
7225else
7226  xorg_cv_cc_flag_unknown_warning_option=no
7227fi
7228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7229fi
7230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7231$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7232	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7233	CFLAGS="$xorg_testset_save_CFLAGS"
7234fi
7235
7236if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7237	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7238		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7239	fi
7240	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7241	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7242$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7243if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7244  $as_echo_n "(cached) " >&6
7245else
7246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247/* end confdefs.h.  */
7248int i;
7249_ACEOF
7250if ac_fn_c_try_compile "$LINENO"; then :
7251  xorg_cv_cc_flag_unused_command_line_argument=yes
7252else
7253  xorg_cv_cc_flag_unused_command_line_argument=no
7254fi
7255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7256fi
7257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7258$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7259	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7260	CFLAGS="$xorg_testset_save_CFLAGS"
7261fi
7262
7263found="no"
7264
7265	if test $found = "no" ; then
7266		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7267			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7268		fi
7269
7270		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7271			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7272		fi
7273
7274		CFLAGS="$CFLAGS -Werror=nonnull"
7275
7276		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7277$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7278		cacheid=xorg_cv_cc_flag__Werror_nonnull
7279		if eval \${$cacheid+:} false; then :
7280  $as_echo_n "(cached) " >&6
7281else
7282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283/* end confdefs.h.  */
7284int i;
7285int
7286main ()
7287{
7288
7289  ;
7290  return 0;
7291}
7292_ACEOF
7293if ac_fn_c_try_link "$LINENO"; then :
7294  eval $cacheid=yes
7295else
7296  eval $cacheid=no
7297fi
7298rm -f core conftest.err conftest.$ac_objext \
7299    conftest$ac_exeext conftest.$ac_ext
7300fi
7301
7302
7303		CFLAGS="$xorg_testset_save_CFLAGS"
7304
7305		eval supported=\$$cacheid
7306		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7307$as_echo "$supported" >&6; }
7308		if test "$supported" = "yes" ; then
7309			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7310			found="yes"
7311		fi
7312	fi
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328xorg_testset_save_CFLAGS="$CFLAGS"
7329
7330if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7331	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7332	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7333$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7334if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7335  $as_echo_n "(cached) " >&6
7336else
7337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338/* end confdefs.h.  */
7339int i;
7340_ACEOF
7341if ac_fn_c_try_compile "$LINENO"; then :
7342  xorg_cv_cc_flag_unknown_warning_option=yes
7343else
7344  xorg_cv_cc_flag_unknown_warning_option=no
7345fi
7346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7347fi
7348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7349$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7350	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7351	CFLAGS="$xorg_testset_save_CFLAGS"
7352fi
7353
7354if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7355	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7356		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7357	fi
7358	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7359	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7360$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7361if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7362  $as_echo_n "(cached) " >&6
7363else
7364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365/* end confdefs.h.  */
7366int i;
7367_ACEOF
7368if ac_fn_c_try_compile "$LINENO"; then :
7369  xorg_cv_cc_flag_unused_command_line_argument=yes
7370else
7371  xorg_cv_cc_flag_unused_command_line_argument=no
7372fi
7373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374fi
7375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7376$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7377	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7378	CFLAGS="$xorg_testset_save_CFLAGS"
7379fi
7380
7381found="no"
7382
7383	if test $found = "no" ; then
7384		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7385			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7386		fi
7387
7388		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7389			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7390		fi
7391
7392		CFLAGS="$CFLAGS -Werror=init-self"
7393
7394		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7395$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7396		cacheid=xorg_cv_cc_flag__Werror_init_self
7397		if eval \${$cacheid+:} false; then :
7398  $as_echo_n "(cached) " >&6
7399else
7400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401/* end confdefs.h.  */
7402int i;
7403int
7404main ()
7405{
7406
7407  ;
7408  return 0;
7409}
7410_ACEOF
7411if ac_fn_c_try_link "$LINENO"; then :
7412  eval $cacheid=yes
7413else
7414  eval $cacheid=no
7415fi
7416rm -f core conftest.err conftest.$ac_objext \
7417    conftest$ac_exeext conftest.$ac_ext
7418fi
7419
7420
7421		CFLAGS="$xorg_testset_save_CFLAGS"
7422
7423		eval supported=\$$cacheid
7424		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7425$as_echo "$supported" >&6; }
7426		if test "$supported" = "yes" ; then
7427			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7428			found="yes"
7429		fi
7430	fi
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446xorg_testset_save_CFLAGS="$CFLAGS"
7447
7448if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7449	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7450	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7451$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7452if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7453  $as_echo_n "(cached) " >&6
7454else
7455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456/* end confdefs.h.  */
7457int i;
7458_ACEOF
7459if ac_fn_c_try_compile "$LINENO"; then :
7460  xorg_cv_cc_flag_unknown_warning_option=yes
7461else
7462  xorg_cv_cc_flag_unknown_warning_option=no
7463fi
7464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7465fi
7466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7467$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7468	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7469	CFLAGS="$xorg_testset_save_CFLAGS"
7470fi
7471
7472if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7473	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7474		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7475	fi
7476	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7477	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7478$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7479if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7480  $as_echo_n "(cached) " >&6
7481else
7482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483/* end confdefs.h.  */
7484int i;
7485_ACEOF
7486if ac_fn_c_try_compile "$LINENO"; then :
7487  xorg_cv_cc_flag_unused_command_line_argument=yes
7488else
7489  xorg_cv_cc_flag_unused_command_line_argument=no
7490fi
7491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7492fi
7493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7494$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7495	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7496	CFLAGS="$xorg_testset_save_CFLAGS"
7497fi
7498
7499found="no"
7500
7501	if test $found = "no" ; then
7502		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7503			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7504		fi
7505
7506		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7507			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7508		fi
7509
7510		CFLAGS="$CFLAGS -Werror=main"
7511
7512		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7513$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7514		cacheid=xorg_cv_cc_flag__Werror_main
7515		if eval \${$cacheid+:} false; then :
7516  $as_echo_n "(cached) " >&6
7517else
7518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519/* end confdefs.h.  */
7520int i;
7521int
7522main ()
7523{
7524
7525  ;
7526  return 0;
7527}
7528_ACEOF
7529if ac_fn_c_try_link "$LINENO"; then :
7530  eval $cacheid=yes
7531else
7532  eval $cacheid=no
7533fi
7534rm -f core conftest.err conftest.$ac_objext \
7535    conftest$ac_exeext conftest.$ac_ext
7536fi
7537
7538
7539		CFLAGS="$xorg_testset_save_CFLAGS"
7540
7541		eval supported=\$$cacheid
7542		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7543$as_echo "$supported" >&6; }
7544		if test "$supported" = "yes" ; then
7545			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7546			found="yes"
7547		fi
7548	fi
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564xorg_testset_save_CFLAGS="$CFLAGS"
7565
7566if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7567	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7568	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7569$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7570if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7571  $as_echo_n "(cached) " >&6
7572else
7573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574/* end confdefs.h.  */
7575int i;
7576_ACEOF
7577if ac_fn_c_try_compile "$LINENO"; then :
7578  xorg_cv_cc_flag_unknown_warning_option=yes
7579else
7580  xorg_cv_cc_flag_unknown_warning_option=no
7581fi
7582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7583fi
7584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7585$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7586	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7587	CFLAGS="$xorg_testset_save_CFLAGS"
7588fi
7589
7590if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7591	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7592		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7593	fi
7594	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7595	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7596$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7597if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7598  $as_echo_n "(cached) " >&6
7599else
7600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601/* end confdefs.h.  */
7602int i;
7603_ACEOF
7604if ac_fn_c_try_compile "$LINENO"; then :
7605  xorg_cv_cc_flag_unused_command_line_argument=yes
7606else
7607  xorg_cv_cc_flag_unused_command_line_argument=no
7608fi
7609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7610fi
7611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7612$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7613	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7614	CFLAGS="$xorg_testset_save_CFLAGS"
7615fi
7616
7617found="no"
7618
7619	if test $found = "no" ; then
7620		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7621			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7622		fi
7623
7624		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7625			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7626		fi
7627
7628		CFLAGS="$CFLAGS -Werror=missing-braces"
7629
7630		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7631$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7632		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7633		if eval \${$cacheid+:} false; then :
7634  $as_echo_n "(cached) " >&6
7635else
7636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637/* end confdefs.h.  */
7638int i;
7639int
7640main ()
7641{
7642
7643  ;
7644  return 0;
7645}
7646_ACEOF
7647if ac_fn_c_try_link "$LINENO"; then :
7648  eval $cacheid=yes
7649else
7650  eval $cacheid=no
7651fi
7652rm -f core conftest.err conftest.$ac_objext \
7653    conftest$ac_exeext conftest.$ac_ext
7654fi
7655
7656
7657		CFLAGS="$xorg_testset_save_CFLAGS"
7658
7659		eval supported=\$$cacheid
7660		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7661$as_echo "$supported" >&6; }
7662		if test "$supported" = "yes" ; then
7663			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7664			found="yes"
7665		fi
7666	fi
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682xorg_testset_save_CFLAGS="$CFLAGS"
7683
7684if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7685	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7686	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7687$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7688if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7689  $as_echo_n "(cached) " >&6
7690else
7691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692/* end confdefs.h.  */
7693int i;
7694_ACEOF
7695if ac_fn_c_try_compile "$LINENO"; then :
7696  xorg_cv_cc_flag_unknown_warning_option=yes
7697else
7698  xorg_cv_cc_flag_unknown_warning_option=no
7699fi
7700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7701fi
7702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7703$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7704	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7705	CFLAGS="$xorg_testset_save_CFLAGS"
7706fi
7707
7708if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7709	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7710		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7711	fi
7712	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7713	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7714$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7715if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7716  $as_echo_n "(cached) " >&6
7717else
7718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719/* end confdefs.h.  */
7720int i;
7721_ACEOF
7722if ac_fn_c_try_compile "$LINENO"; then :
7723  xorg_cv_cc_flag_unused_command_line_argument=yes
7724else
7725  xorg_cv_cc_flag_unused_command_line_argument=no
7726fi
7727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7728fi
7729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7730$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7731	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7732	CFLAGS="$xorg_testset_save_CFLAGS"
7733fi
7734
7735found="no"
7736
7737	if test $found = "no" ; then
7738		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7739			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7740		fi
7741
7742		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7743			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7744		fi
7745
7746		CFLAGS="$CFLAGS -Werror=sequence-point"
7747
7748		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7749$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7750		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7751		if eval \${$cacheid+:} false; then :
7752  $as_echo_n "(cached) " >&6
7753else
7754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755/* end confdefs.h.  */
7756int i;
7757int
7758main ()
7759{
7760
7761  ;
7762  return 0;
7763}
7764_ACEOF
7765if ac_fn_c_try_link "$LINENO"; then :
7766  eval $cacheid=yes
7767else
7768  eval $cacheid=no
7769fi
7770rm -f core conftest.err conftest.$ac_objext \
7771    conftest$ac_exeext conftest.$ac_ext
7772fi
7773
7774
7775		CFLAGS="$xorg_testset_save_CFLAGS"
7776
7777		eval supported=\$$cacheid
7778		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7779$as_echo "$supported" >&6; }
7780		if test "$supported" = "yes" ; then
7781			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7782			found="yes"
7783		fi
7784	fi
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800xorg_testset_save_CFLAGS="$CFLAGS"
7801
7802if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7803	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7804	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7805$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7806if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7807  $as_echo_n "(cached) " >&6
7808else
7809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810/* end confdefs.h.  */
7811int i;
7812_ACEOF
7813if ac_fn_c_try_compile "$LINENO"; then :
7814  xorg_cv_cc_flag_unknown_warning_option=yes
7815else
7816  xorg_cv_cc_flag_unknown_warning_option=no
7817fi
7818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7819fi
7820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7821$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7822	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7823	CFLAGS="$xorg_testset_save_CFLAGS"
7824fi
7825
7826if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7827	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7828		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7829	fi
7830	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7831	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7832$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7833if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7834  $as_echo_n "(cached) " >&6
7835else
7836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837/* end confdefs.h.  */
7838int i;
7839_ACEOF
7840if ac_fn_c_try_compile "$LINENO"; then :
7841  xorg_cv_cc_flag_unused_command_line_argument=yes
7842else
7843  xorg_cv_cc_flag_unused_command_line_argument=no
7844fi
7845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7846fi
7847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7848$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7849	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7850	CFLAGS="$xorg_testset_save_CFLAGS"
7851fi
7852
7853found="no"
7854
7855	if test $found = "no" ; then
7856		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7857			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7858		fi
7859
7860		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7861			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7862		fi
7863
7864		CFLAGS="$CFLAGS -Werror=return-type"
7865
7866		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7867$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7868		cacheid=xorg_cv_cc_flag__Werror_return_type
7869		if eval \${$cacheid+:} false; then :
7870  $as_echo_n "(cached) " >&6
7871else
7872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873/* end confdefs.h.  */
7874int i;
7875int
7876main ()
7877{
7878
7879  ;
7880  return 0;
7881}
7882_ACEOF
7883if ac_fn_c_try_link "$LINENO"; then :
7884  eval $cacheid=yes
7885else
7886  eval $cacheid=no
7887fi
7888rm -f core conftest.err conftest.$ac_objext \
7889    conftest$ac_exeext conftest.$ac_ext
7890fi
7891
7892
7893		CFLAGS="$xorg_testset_save_CFLAGS"
7894
7895		eval supported=\$$cacheid
7896		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7897$as_echo "$supported" >&6; }
7898		if test "$supported" = "yes" ; then
7899			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7900			found="yes"
7901		fi
7902	fi
7903
7904	if test $found = "no" ; then
7905		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7906			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7907		fi
7908
7909		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7910			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7911		fi
7912
7913		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7914
7915		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7916$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7917		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7918		if eval \${$cacheid+:} false; then :
7919  $as_echo_n "(cached) " >&6
7920else
7921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922/* end confdefs.h.  */
7923int i;
7924int
7925main ()
7926{
7927
7928  ;
7929  return 0;
7930}
7931_ACEOF
7932if ac_fn_c_try_link "$LINENO"; then :
7933  eval $cacheid=yes
7934else
7935  eval $cacheid=no
7936fi
7937rm -f core conftest.err conftest.$ac_objext \
7938    conftest$ac_exeext conftest.$ac_ext
7939fi
7940
7941
7942		CFLAGS="$xorg_testset_save_CFLAGS"
7943
7944		eval supported=\$$cacheid
7945		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7946$as_echo "$supported" >&6; }
7947		if test "$supported" = "yes" ; then
7948			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7949			found="yes"
7950		fi
7951	fi
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967xorg_testset_save_CFLAGS="$CFLAGS"
7968
7969if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7970	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7971	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7972$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7973if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7974  $as_echo_n "(cached) " >&6
7975else
7976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977/* end confdefs.h.  */
7978int i;
7979_ACEOF
7980if ac_fn_c_try_compile "$LINENO"; then :
7981  xorg_cv_cc_flag_unknown_warning_option=yes
7982else
7983  xorg_cv_cc_flag_unknown_warning_option=no
7984fi
7985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7986fi
7987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7988$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7989	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7990	CFLAGS="$xorg_testset_save_CFLAGS"
7991fi
7992
7993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7994	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7995		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7996	fi
7997	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7998	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7999$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8000if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8001  $as_echo_n "(cached) " >&6
8002else
8003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004/* end confdefs.h.  */
8005int i;
8006_ACEOF
8007if ac_fn_c_try_compile "$LINENO"; then :
8008  xorg_cv_cc_flag_unused_command_line_argument=yes
8009else
8010  xorg_cv_cc_flag_unused_command_line_argument=no
8011fi
8012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8013fi
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8015$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8016	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8017	CFLAGS="$xorg_testset_save_CFLAGS"
8018fi
8019
8020found="no"
8021
8022	if test $found = "no" ; then
8023		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8024			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8025		fi
8026
8027		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8028			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8029		fi
8030
8031		CFLAGS="$CFLAGS -Werror=trigraphs"
8032
8033		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8034$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8035		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8036		if eval \${$cacheid+:} false; then :
8037  $as_echo_n "(cached) " >&6
8038else
8039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040/* end confdefs.h.  */
8041int i;
8042int
8043main ()
8044{
8045
8046  ;
8047  return 0;
8048}
8049_ACEOF
8050if ac_fn_c_try_link "$LINENO"; then :
8051  eval $cacheid=yes
8052else
8053  eval $cacheid=no
8054fi
8055rm -f core conftest.err conftest.$ac_objext \
8056    conftest$ac_exeext conftest.$ac_ext
8057fi
8058
8059
8060		CFLAGS="$xorg_testset_save_CFLAGS"
8061
8062		eval supported=\$$cacheid
8063		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8064$as_echo "$supported" >&6; }
8065		if test "$supported" = "yes" ; then
8066			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8067			found="yes"
8068		fi
8069	fi
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085xorg_testset_save_CFLAGS="$CFLAGS"
8086
8087if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8088	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8089	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8090$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8091if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8092  $as_echo_n "(cached) " >&6
8093else
8094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095/* end confdefs.h.  */
8096int i;
8097_ACEOF
8098if ac_fn_c_try_compile "$LINENO"; then :
8099  xorg_cv_cc_flag_unknown_warning_option=yes
8100else
8101  xorg_cv_cc_flag_unknown_warning_option=no
8102fi
8103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8104fi
8105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8106$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8107	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8108	CFLAGS="$xorg_testset_save_CFLAGS"
8109fi
8110
8111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8112	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8113		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8114	fi
8115	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8116	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8117$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8118if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8119  $as_echo_n "(cached) " >&6
8120else
8121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8122/* end confdefs.h.  */
8123int i;
8124_ACEOF
8125if ac_fn_c_try_compile "$LINENO"; then :
8126  xorg_cv_cc_flag_unused_command_line_argument=yes
8127else
8128  xorg_cv_cc_flag_unused_command_line_argument=no
8129fi
8130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8131fi
8132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8133$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8134	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8135	CFLAGS="$xorg_testset_save_CFLAGS"
8136fi
8137
8138found="no"
8139
8140	if test $found = "no" ; then
8141		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8142			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8143		fi
8144
8145		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8146			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8147		fi
8148
8149		CFLAGS="$CFLAGS -Werror=array-bounds"
8150
8151		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8152$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8153		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8154		if eval \${$cacheid+:} false; then :
8155  $as_echo_n "(cached) " >&6
8156else
8157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158/* end confdefs.h.  */
8159int i;
8160int
8161main ()
8162{
8163
8164  ;
8165  return 0;
8166}
8167_ACEOF
8168if ac_fn_c_try_link "$LINENO"; then :
8169  eval $cacheid=yes
8170else
8171  eval $cacheid=no
8172fi
8173rm -f core conftest.err conftest.$ac_objext \
8174    conftest$ac_exeext conftest.$ac_ext
8175fi
8176
8177
8178		CFLAGS="$xorg_testset_save_CFLAGS"
8179
8180		eval supported=\$$cacheid
8181		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8182$as_echo "$supported" >&6; }
8183		if test "$supported" = "yes" ; then
8184			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8185			found="yes"
8186		fi
8187	fi
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203xorg_testset_save_CFLAGS="$CFLAGS"
8204
8205if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8206	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8207	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8208$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8209if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8210  $as_echo_n "(cached) " >&6
8211else
8212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213/* end confdefs.h.  */
8214int i;
8215_ACEOF
8216if ac_fn_c_try_compile "$LINENO"; then :
8217  xorg_cv_cc_flag_unknown_warning_option=yes
8218else
8219  xorg_cv_cc_flag_unknown_warning_option=no
8220fi
8221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8222fi
8223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8224$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8225	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8226	CFLAGS="$xorg_testset_save_CFLAGS"
8227fi
8228
8229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8230	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8231		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8232	fi
8233	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8234	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8235$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8236if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8237  $as_echo_n "(cached) " >&6
8238else
8239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240/* end confdefs.h.  */
8241int i;
8242_ACEOF
8243if ac_fn_c_try_compile "$LINENO"; then :
8244  xorg_cv_cc_flag_unused_command_line_argument=yes
8245else
8246  xorg_cv_cc_flag_unused_command_line_argument=no
8247fi
8248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8249fi
8250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8251$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8252	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8253	CFLAGS="$xorg_testset_save_CFLAGS"
8254fi
8255
8256found="no"
8257
8258	if test $found = "no" ; then
8259		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8260			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8261		fi
8262
8263		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8264			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8265		fi
8266
8267		CFLAGS="$CFLAGS -Werror=write-strings"
8268
8269		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8270$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8271		cacheid=xorg_cv_cc_flag__Werror_write_strings
8272		if eval \${$cacheid+:} false; then :
8273  $as_echo_n "(cached) " >&6
8274else
8275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276/* end confdefs.h.  */
8277int i;
8278int
8279main ()
8280{
8281
8282  ;
8283  return 0;
8284}
8285_ACEOF
8286if ac_fn_c_try_link "$LINENO"; then :
8287  eval $cacheid=yes
8288else
8289  eval $cacheid=no
8290fi
8291rm -f core conftest.err conftest.$ac_objext \
8292    conftest$ac_exeext conftest.$ac_ext
8293fi
8294
8295
8296		CFLAGS="$xorg_testset_save_CFLAGS"
8297
8298		eval supported=\$$cacheid
8299		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8300$as_echo "$supported" >&6; }
8301		if test "$supported" = "yes" ; then
8302			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8303			found="yes"
8304		fi
8305	fi
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321xorg_testset_save_CFLAGS="$CFLAGS"
8322
8323if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8324	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8326$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8327if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8328  $as_echo_n "(cached) " >&6
8329else
8330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331/* end confdefs.h.  */
8332int i;
8333_ACEOF
8334if ac_fn_c_try_compile "$LINENO"; then :
8335  xorg_cv_cc_flag_unknown_warning_option=yes
8336else
8337  xorg_cv_cc_flag_unknown_warning_option=no
8338fi
8339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8340fi
8341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8342$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8343	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8344	CFLAGS="$xorg_testset_save_CFLAGS"
8345fi
8346
8347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8348	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8349		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8350	fi
8351	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8352	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8353$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8354if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8355  $as_echo_n "(cached) " >&6
8356else
8357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358/* end confdefs.h.  */
8359int i;
8360_ACEOF
8361if ac_fn_c_try_compile "$LINENO"; then :
8362  xorg_cv_cc_flag_unused_command_line_argument=yes
8363else
8364  xorg_cv_cc_flag_unused_command_line_argument=no
8365fi
8366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8367fi
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8369$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8370	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8371	CFLAGS="$xorg_testset_save_CFLAGS"
8372fi
8373
8374found="no"
8375
8376	if test $found = "no" ; then
8377		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8378			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8379		fi
8380
8381		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8382			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8383		fi
8384
8385		CFLAGS="$CFLAGS -Werror=address"
8386
8387		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8388$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8389		cacheid=xorg_cv_cc_flag__Werror_address
8390		if eval \${$cacheid+:} false; then :
8391  $as_echo_n "(cached) " >&6
8392else
8393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394/* end confdefs.h.  */
8395int i;
8396int
8397main ()
8398{
8399
8400  ;
8401  return 0;
8402}
8403_ACEOF
8404if ac_fn_c_try_link "$LINENO"; then :
8405  eval $cacheid=yes
8406else
8407  eval $cacheid=no
8408fi
8409rm -f core conftest.err conftest.$ac_objext \
8410    conftest$ac_exeext conftest.$ac_ext
8411fi
8412
8413
8414		CFLAGS="$xorg_testset_save_CFLAGS"
8415
8416		eval supported=\$$cacheid
8417		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8418$as_echo "$supported" >&6; }
8419		if test "$supported" = "yes" ; then
8420			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8421			found="yes"
8422		fi
8423	fi
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439xorg_testset_save_CFLAGS="$CFLAGS"
8440
8441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8442	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8444$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8445if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8446  $as_echo_n "(cached) " >&6
8447else
8448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449/* end confdefs.h.  */
8450int i;
8451_ACEOF
8452if ac_fn_c_try_compile "$LINENO"; then :
8453  xorg_cv_cc_flag_unknown_warning_option=yes
8454else
8455  xorg_cv_cc_flag_unknown_warning_option=no
8456fi
8457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8458fi
8459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8460$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8461	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8462	CFLAGS="$xorg_testset_save_CFLAGS"
8463fi
8464
8465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8466	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8467		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8468	fi
8469	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8470	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8471$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8472if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8473  $as_echo_n "(cached) " >&6
8474else
8475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476/* end confdefs.h.  */
8477int i;
8478_ACEOF
8479if ac_fn_c_try_compile "$LINENO"; then :
8480  xorg_cv_cc_flag_unused_command_line_argument=yes
8481else
8482  xorg_cv_cc_flag_unused_command_line_argument=no
8483fi
8484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8485fi
8486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8487$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8488	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8489	CFLAGS="$xorg_testset_save_CFLAGS"
8490fi
8491
8492found="no"
8493
8494	if test $found = "no" ; then
8495		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8496			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8497		fi
8498
8499		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8500			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8501		fi
8502
8503		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8504
8505		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8506$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8507		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8508		if eval \${$cacheid+:} false; then :
8509  $as_echo_n "(cached) " >&6
8510else
8511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8512/* end confdefs.h.  */
8513int i;
8514int
8515main ()
8516{
8517
8518  ;
8519  return 0;
8520}
8521_ACEOF
8522if ac_fn_c_try_link "$LINENO"; then :
8523  eval $cacheid=yes
8524else
8525  eval $cacheid=no
8526fi
8527rm -f core conftest.err conftest.$ac_objext \
8528    conftest$ac_exeext conftest.$ac_ext
8529fi
8530
8531
8532		CFLAGS="$xorg_testset_save_CFLAGS"
8533
8534		eval supported=\$$cacheid
8535		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8536$as_echo "$supported" >&6; }
8537		if test "$supported" = "yes" ; then
8538			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8539			found="yes"
8540		fi
8541	fi
8542
8543	if test $found = "no" ; then
8544		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8545			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8546		fi
8547
8548		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8549			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8550		fi
8551
8552		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8553
8554		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8555$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8556		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8557		if eval \${$cacheid+:} false; then :
8558  $as_echo_n "(cached) " >&6
8559else
8560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8561/* end confdefs.h.  */
8562int i;
8563int
8564main ()
8565{
8566
8567  ;
8568  return 0;
8569}
8570_ACEOF
8571if ac_fn_c_try_link "$LINENO"; then :
8572  eval $cacheid=yes
8573else
8574  eval $cacheid=no
8575fi
8576rm -f core conftest.err conftest.$ac_objext \
8577    conftest$ac_exeext conftest.$ac_ext
8578fi
8579
8580
8581		CFLAGS="$xorg_testset_save_CFLAGS"
8582
8583		eval supported=\$$cacheid
8584		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8585$as_echo "$supported" >&6; }
8586		if test "$supported" = "yes" ; then
8587			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8588			found="yes"
8589		fi
8590	fi
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606xorg_testset_save_CFLAGS="$CFLAGS"
8607
8608if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8609	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8610	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8611$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8612if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8613  $as_echo_n "(cached) " >&6
8614else
8615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616/* end confdefs.h.  */
8617int i;
8618_ACEOF
8619if ac_fn_c_try_compile "$LINENO"; then :
8620  xorg_cv_cc_flag_unknown_warning_option=yes
8621else
8622  xorg_cv_cc_flag_unknown_warning_option=no
8623fi
8624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8625fi
8626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8627$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8628	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8629	CFLAGS="$xorg_testset_save_CFLAGS"
8630fi
8631
8632if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8633	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8634		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8635	fi
8636	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8637	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8638$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8639if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8640  $as_echo_n "(cached) " >&6
8641else
8642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643/* end confdefs.h.  */
8644int i;
8645_ACEOF
8646if ac_fn_c_try_compile "$LINENO"; then :
8647  xorg_cv_cc_flag_unused_command_line_argument=yes
8648else
8649  xorg_cv_cc_flag_unused_command_line_argument=no
8650fi
8651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8652fi
8653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8654$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8655	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8656	CFLAGS="$xorg_testset_save_CFLAGS"
8657fi
8658
8659found="no"
8660
8661	if test $found = "no" ; then
8662		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8663			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8664		fi
8665
8666		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8667			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8668		fi
8669
8670		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8671
8672		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8673$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8674		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8675		if eval \${$cacheid+:} false; then :
8676  $as_echo_n "(cached) " >&6
8677else
8678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8679/* end confdefs.h.  */
8680int i;
8681int
8682main ()
8683{
8684
8685  ;
8686  return 0;
8687}
8688_ACEOF
8689if ac_fn_c_try_link "$LINENO"; then :
8690  eval $cacheid=yes
8691else
8692  eval $cacheid=no
8693fi
8694rm -f core conftest.err conftest.$ac_objext \
8695    conftest$ac_exeext conftest.$ac_ext
8696fi
8697
8698
8699		CFLAGS="$xorg_testset_save_CFLAGS"
8700
8701		eval supported=\$$cacheid
8702		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8703$as_echo "$supported" >&6; }
8704		if test "$supported" = "yes" ; then
8705			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8706			found="yes"
8707		fi
8708	fi
8709
8710 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8711else
8712{ $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
8713$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;}
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727xorg_testset_save_CFLAGS="$CFLAGS"
8728
8729if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8730	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8731	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8732$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8733if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8734  $as_echo_n "(cached) " >&6
8735else
8736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8737/* end confdefs.h.  */
8738int i;
8739_ACEOF
8740if ac_fn_c_try_compile "$LINENO"; then :
8741  xorg_cv_cc_flag_unknown_warning_option=yes
8742else
8743  xorg_cv_cc_flag_unknown_warning_option=no
8744fi
8745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8746fi
8747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8748$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8749	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8750	CFLAGS="$xorg_testset_save_CFLAGS"
8751fi
8752
8753if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8754	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8755		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8756	fi
8757	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8758	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8759$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8760if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8761  $as_echo_n "(cached) " >&6
8762else
8763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8764/* end confdefs.h.  */
8765int i;
8766_ACEOF
8767if ac_fn_c_try_compile "$LINENO"; then :
8768  xorg_cv_cc_flag_unused_command_line_argument=yes
8769else
8770  xorg_cv_cc_flag_unused_command_line_argument=no
8771fi
8772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8773fi
8774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8775$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8776	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8777	CFLAGS="$xorg_testset_save_CFLAGS"
8778fi
8779
8780found="no"
8781
8782	if test $found = "no" ; then
8783		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8784			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8785		fi
8786
8787		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8788			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8789		fi
8790
8791		CFLAGS="$CFLAGS -Wimplicit"
8792
8793		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8794$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8795		cacheid=xorg_cv_cc_flag__Wimplicit
8796		if eval \${$cacheid+:} false; then :
8797  $as_echo_n "(cached) " >&6
8798else
8799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800/* end confdefs.h.  */
8801int i;
8802int
8803main ()
8804{
8805
8806  ;
8807  return 0;
8808}
8809_ACEOF
8810if ac_fn_c_try_link "$LINENO"; then :
8811  eval $cacheid=yes
8812else
8813  eval $cacheid=no
8814fi
8815rm -f core conftest.err conftest.$ac_objext \
8816    conftest$ac_exeext conftest.$ac_ext
8817fi
8818
8819
8820		CFLAGS="$xorg_testset_save_CFLAGS"
8821
8822		eval supported=\$$cacheid
8823		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8824$as_echo "$supported" >&6; }
8825		if test "$supported" = "yes" ; then
8826			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8827			found="yes"
8828		fi
8829	fi
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845xorg_testset_save_CFLAGS="$CFLAGS"
8846
8847if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8848	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8849	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8850$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8851if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8852  $as_echo_n "(cached) " >&6
8853else
8854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8855/* end confdefs.h.  */
8856int i;
8857_ACEOF
8858if ac_fn_c_try_compile "$LINENO"; then :
8859  xorg_cv_cc_flag_unknown_warning_option=yes
8860else
8861  xorg_cv_cc_flag_unknown_warning_option=no
8862fi
8863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8864fi
8865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8866$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8867	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8868	CFLAGS="$xorg_testset_save_CFLAGS"
8869fi
8870
8871if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8872	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8873		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8874	fi
8875	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8876	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8877$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8878if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8879  $as_echo_n "(cached) " >&6
8880else
8881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882/* end confdefs.h.  */
8883int i;
8884_ACEOF
8885if ac_fn_c_try_compile "$LINENO"; then :
8886  xorg_cv_cc_flag_unused_command_line_argument=yes
8887else
8888  xorg_cv_cc_flag_unused_command_line_argument=no
8889fi
8890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8891fi
8892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8893$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8894	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8895	CFLAGS="$xorg_testset_save_CFLAGS"
8896fi
8897
8898found="no"
8899
8900	if test $found = "no" ; then
8901		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8902			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8903		fi
8904
8905		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8906			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8907		fi
8908
8909		CFLAGS="$CFLAGS -Wnonnull"
8910
8911		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8912$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8913		cacheid=xorg_cv_cc_flag__Wnonnull
8914		if eval \${$cacheid+:} false; then :
8915  $as_echo_n "(cached) " >&6
8916else
8917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918/* end confdefs.h.  */
8919int i;
8920int
8921main ()
8922{
8923
8924  ;
8925  return 0;
8926}
8927_ACEOF
8928if ac_fn_c_try_link "$LINENO"; then :
8929  eval $cacheid=yes
8930else
8931  eval $cacheid=no
8932fi
8933rm -f core conftest.err conftest.$ac_objext \
8934    conftest$ac_exeext conftest.$ac_ext
8935fi
8936
8937
8938		CFLAGS="$xorg_testset_save_CFLAGS"
8939
8940		eval supported=\$$cacheid
8941		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8942$as_echo "$supported" >&6; }
8943		if test "$supported" = "yes" ; then
8944			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8945			found="yes"
8946		fi
8947	fi
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963xorg_testset_save_CFLAGS="$CFLAGS"
8964
8965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8966	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8967	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8968$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8969if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8970  $as_echo_n "(cached) " >&6
8971else
8972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973/* end confdefs.h.  */
8974int i;
8975_ACEOF
8976if ac_fn_c_try_compile "$LINENO"; then :
8977  xorg_cv_cc_flag_unknown_warning_option=yes
8978else
8979  xorg_cv_cc_flag_unknown_warning_option=no
8980fi
8981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8982fi
8983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8984$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8985	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8986	CFLAGS="$xorg_testset_save_CFLAGS"
8987fi
8988
8989if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8990	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8991		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8992	fi
8993	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8994	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8995$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8996if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8997  $as_echo_n "(cached) " >&6
8998else
8999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000/* end confdefs.h.  */
9001int i;
9002_ACEOF
9003if ac_fn_c_try_compile "$LINENO"; then :
9004  xorg_cv_cc_flag_unused_command_line_argument=yes
9005else
9006  xorg_cv_cc_flag_unused_command_line_argument=no
9007fi
9008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9009fi
9010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9011$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9012	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9013	CFLAGS="$xorg_testset_save_CFLAGS"
9014fi
9015
9016found="no"
9017
9018	if test $found = "no" ; then
9019		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9020			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9021		fi
9022
9023		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9024			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9025		fi
9026
9027		CFLAGS="$CFLAGS -Winit-self"
9028
9029		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9030$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9031		cacheid=xorg_cv_cc_flag__Winit_self
9032		if eval \${$cacheid+:} false; then :
9033  $as_echo_n "(cached) " >&6
9034else
9035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9036/* end confdefs.h.  */
9037int i;
9038int
9039main ()
9040{
9041
9042  ;
9043  return 0;
9044}
9045_ACEOF
9046if ac_fn_c_try_link "$LINENO"; then :
9047  eval $cacheid=yes
9048else
9049  eval $cacheid=no
9050fi
9051rm -f core conftest.err conftest.$ac_objext \
9052    conftest$ac_exeext conftest.$ac_ext
9053fi
9054
9055
9056		CFLAGS="$xorg_testset_save_CFLAGS"
9057
9058		eval supported=\$$cacheid
9059		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9060$as_echo "$supported" >&6; }
9061		if test "$supported" = "yes" ; then
9062			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9063			found="yes"
9064		fi
9065	fi
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081xorg_testset_save_CFLAGS="$CFLAGS"
9082
9083if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9084	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9085	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9086$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9087if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9088  $as_echo_n "(cached) " >&6
9089else
9090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091/* end confdefs.h.  */
9092int i;
9093_ACEOF
9094if ac_fn_c_try_compile "$LINENO"; then :
9095  xorg_cv_cc_flag_unknown_warning_option=yes
9096else
9097  xorg_cv_cc_flag_unknown_warning_option=no
9098fi
9099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9100fi
9101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9102$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9103	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9104	CFLAGS="$xorg_testset_save_CFLAGS"
9105fi
9106
9107if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9108	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9109		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9110	fi
9111	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9112	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9113$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9114if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9115  $as_echo_n "(cached) " >&6
9116else
9117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118/* end confdefs.h.  */
9119int i;
9120_ACEOF
9121if ac_fn_c_try_compile "$LINENO"; then :
9122  xorg_cv_cc_flag_unused_command_line_argument=yes
9123else
9124  xorg_cv_cc_flag_unused_command_line_argument=no
9125fi
9126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9127fi
9128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9129$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9130	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9131	CFLAGS="$xorg_testset_save_CFLAGS"
9132fi
9133
9134found="no"
9135
9136	if test $found = "no" ; then
9137		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9138			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9139		fi
9140
9141		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9142			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9143		fi
9144
9145		CFLAGS="$CFLAGS -Wmain"
9146
9147		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9148$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9149		cacheid=xorg_cv_cc_flag__Wmain
9150		if eval \${$cacheid+:} false; then :
9151  $as_echo_n "(cached) " >&6
9152else
9153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154/* end confdefs.h.  */
9155int i;
9156int
9157main ()
9158{
9159
9160  ;
9161  return 0;
9162}
9163_ACEOF
9164if ac_fn_c_try_link "$LINENO"; then :
9165  eval $cacheid=yes
9166else
9167  eval $cacheid=no
9168fi
9169rm -f core conftest.err conftest.$ac_objext \
9170    conftest$ac_exeext conftest.$ac_ext
9171fi
9172
9173
9174		CFLAGS="$xorg_testset_save_CFLAGS"
9175
9176		eval supported=\$$cacheid
9177		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9178$as_echo "$supported" >&6; }
9179		if test "$supported" = "yes" ; then
9180			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9181			found="yes"
9182		fi
9183	fi
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199xorg_testset_save_CFLAGS="$CFLAGS"
9200
9201if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9202	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9203	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9204$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9205if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9206  $as_echo_n "(cached) " >&6
9207else
9208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209/* end confdefs.h.  */
9210int i;
9211_ACEOF
9212if ac_fn_c_try_compile "$LINENO"; then :
9213  xorg_cv_cc_flag_unknown_warning_option=yes
9214else
9215  xorg_cv_cc_flag_unknown_warning_option=no
9216fi
9217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9218fi
9219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9220$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9221	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9222	CFLAGS="$xorg_testset_save_CFLAGS"
9223fi
9224
9225if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9226	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9227		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9228	fi
9229	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9230	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9231$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9232if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9233  $as_echo_n "(cached) " >&6
9234else
9235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9236/* end confdefs.h.  */
9237int i;
9238_ACEOF
9239if ac_fn_c_try_compile "$LINENO"; then :
9240  xorg_cv_cc_flag_unused_command_line_argument=yes
9241else
9242  xorg_cv_cc_flag_unused_command_line_argument=no
9243fi
9244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9245fi
9246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9247$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9248	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9249	CFLAGS="$xorg_testset_save_CFLAGS"
9250fi
9251
9252found="no"
9253
9254	if test $found = "no" ; then
9255		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9256			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9257		fi
9258
9259		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9260			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9261		fi
9262
9263		CFLAGS="$CFLAGS -Wmissing-braces"
9264
9265		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9266$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9267		cacheid=xorg_cv_cc_flag__Wmissing_braces
9268		if eval \${$cacheid+:} false; then :
9269  $as_echo_n "(cached) " >&6
9270else
9271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272/* end confdefs.h.  */
9273int i;
9274int
9275main ()
9276{
9277
9278  ;
9279  return 0;
9280}
9281_ACEOF
9282if ac_fn_c_try_link "$LINENO"; then :
9283  eval $cacheid=yes
9284else
9285  eval $cacheid=no
9286fi
9287rm -f core conftest.err conftest.$ac_objext \
9288    conftest$ac_exeext conftest.$ac_ext
9289fi
9290
9291
9292		CFLAGS="$xorg_testset_save_CFLAGS"
9293
9294		eval supported=\$$cacheid
9295		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9296$as_echo "$supported" >&6; }
9297		if test "$supported" = "yes" ; then
9298			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9299			found="yes"
9300		fi
9301	fi
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317xorg_testset_save_CFLAGS="$CFLAGS"
9318
9319if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9320	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9321	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9322$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9323if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9324  $as_echo_n "(cached) " >&6
9325else
9326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9327/* end confdefs.h.  */
9328int i;
9329_ACEOF
9330if ac_fn_c_try_compile "$LINENO"; then :
9331  xorg_cv_cc_flag_unknown_warning_option=yes
9332else
9333  xorg_cv_cc_flag_unknown_warning_option=no
9334fi
9335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9336fi
9337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9338$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9339	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9340	CFLAGS="$xorg_testset_save_CFLAGS"
9341fi
9342
9343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9344	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9345		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9346	fi
9347	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9348	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9349$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9350if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9351  $as_echo_n "(cached) " >&6
9352else
9353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354/* end confdefs.h.  */
9355int i;
9356_ACEOF
9357if ac_fn_c_try_compile "$LINENO"; then :
9358  xorg_cv_cc_flag_unused_command_line_argument=yes
9359else
9360  xorg_cv_cc_flag_unused_command_line_argument=no
9361fi
9362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9363fi
9364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9365$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9366	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9367	CFLAGS="$xorg_testset_save_CFLAGS"
9368fi
9369
9370found="no"
9371
9372	if test $found = "no" ; then
9373		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9374			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9375		fi
9376
9377		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9378			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9379		fi
9380
9381		CFLAGS="$CFLAGS -Wsequence-point"
9382
9383		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9384$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9385		cacheid=xorg_cv_cc_flag__Wsequence_point
9386		if eval \${$cacheid+:} false; then :
9387  $as_echo_n "(cached) " >&6
9388else
9389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390/* end confdefs.h.  */
9391int i;
9392int
9393main ()
9394{
9395
9396  ;
9397  return 0;
9398}
9399_ACEOF
9400if ac_fn_c_try_link "$LINENO"; then :
9401  eval $cacheid=yes
9402else
9403  eval $cacheid=no
9404fi
9405rm -f core conftest.err conftest.$ac_objext \
9406    conftest$ac_exeext conftest.$ac_ext
9407fi
9408
9409
9410		CFLAGS="$xorg_testset_save_CFLAGS"
9411
9412		eval supported=\$$cacheid
9413		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9414$as_echo "$supported" >&6; }
9415		if test "$supported" = "yes" ; then
9416			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9417			found="yes"
9418		fi
9419	fi
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435xorg_testset_save_CFLAGS="$CFLAGS"
9436
9437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9438	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9439	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9440$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9441if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9442  $as_echo_n "(cached) " >&6
9443else
9444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9445/* end confdefs.h.  */
9446int i;
9447_ACEOF
9448if ac_fn_c_try_compile "$LINENO"; then :
9449  xorg_cv_cc_flag_unknown_warning_option=yes
9450else
9451  xorg_cv_cc_flag_unknown_warning_option=no
9452fi
9453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9454fi
9455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9456$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9457	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9458	CFLAGS="$xorg_testset_save_CFLAGS"
9459fi
9460
9461if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9462	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9463		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9464	fi
9465	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9466	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9467$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9468if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9469  $as_echo_n "(cached) " >&6
9470else
9471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9472/* end confdefs.h.  */
9473int i;
9474_ACEOF
9475if ac_fn_c_try_compile "$LINENO"; then :
9476  xorg_cv_cc_flag_unused_command_line_argument=yes
9477else
9478  xorg_cv_cc_flag_unused_command_line_argument=no
9479fi
9480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9481fi
9482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9483$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9484	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9485	CFLAGS="$xorg_testset_save_CFLAGS"
9486fi
9487
9488found="no"
9489
9490	if test $found = "no" ; then
9491		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9492			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9493		fi
9494
9495		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9496			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9497		fi
9498
9499		CFLAGS="$CFLAGS -Wreturn-type"
9500
9501		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9502$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9503		cacheid=xorg_cv_cc_flag__Wreturn_type
9504		if eval \${$cacheid+:} false; then :
9505  $as_echo_n "(cached) " >&6
9506else
9507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508/* end confdefs.h.  */
9509int i;
9510int
9511main ()
9512{
9513
9514  ;
9515  return 0;
9516}
9517_ACEOF
9518if ac_fn_c_try_link "$LINENO"; then :
9519  eval $cacheid=yes
9520else
9521  eval $cacheid=no
9522fi
9523rm -f core conftest.err conftest.$ac_objext \
9524    conftest$ac_exeext conftest.$ac_ext
9525fi
9526
9527
9528		CFLAGS="$xorg_testset_save_CFLAGS"
9529
9530		eval supported=\$$cacheid
9531		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9532$as_echo "$supported" >&6; }
9533		if test "$supported" = "yes" ; then
9534			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9535			found="yes"
9536		fi
9537	fi
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553xorg_testset_save_CFLAGS="$CFLAGS"
9554
9555if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9556	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9557	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9558$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9559if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9560  $as_echo_n "(cached) " >&6
9561else
9562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9563/* end confdefs.h.  */
9564int i;
9565_ACEOF
9566if ac_fn_c_try_compile "$LINENO"; then :
9567  xorg_cv_cc_flag_unknown_warning_option=yes
9568else
9569  xorg_cv_cc_flag_unknown_warning_option=no
9570fi
9571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9572fi
9573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9574$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9575	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9576	CFLAGS="$xorg_testset_save_CFLAGS"
9577fi
9578
9579if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9580	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9581		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9582	fi
9583	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9584	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9585$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9586if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9587  $as_echo_n "(cached) " >&6
9588else
9589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590/* end confdefs.h.  */
9591int i;
9592_ACEOF
9593if ac_fn_c_try_compile "$LINENO"; then :
9594  xorg_cv_cc_flag_unused_command_line_argument=yes
9595else
9596  xorg_cv_cc_flag_unused_command_line_argument=no
9597fi
9598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9599fi
9600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9601$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9602	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9603	CFLAGS="$xorg_testset_save_CFLAGS"
9604fi
9605
9606found="no"
9607
9608	if test $found = "no" ; then
9609		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9610			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9611		fi
9612
9613		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9614			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9615		fi
9616
9617		CFLAGS="$CFLAGS -Wtrigraphs"
9618
9619		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9620$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9621		cacheid=xorg_cv_cc_flag__Wtrigraphs
9622		if eval \${$cacheid+:} false; then :
9623  $as_echo_n "(cached) " >&6
9624else
9625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626/* end confdefs.h.  */
9627int i;
9628int
9629main ()
9630{
9631
9632  ;
9633  return 0;
9634}
9635_ACEOF
9636if ac_fn_c_try_link "$LINENO"; then :
9637  eval $cacheid=yes
9638else
9639  eval $cacheid=no
9640fi
9641rm -f core conftest.err conftest.$ac_objext \
9642    conftest$ac_exeext conftest.$ac_ext
9643fi
9644
9645
9646		CFLAGS="$xorg_testset_save_CFLAGS"
9647
9648		eval supported=\$$cacheid
9649		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9650$as_echo "$supported" >&6; }
9651		if test "$supported" = "yes" ; then
9652			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9653			found="yes"
9654		fi
9655	fi
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671xorg_testset_save_CFLAGS="$CFLAGS"
9672
9673if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9674	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9675	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9676$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9677if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9678  $as_echo_n "(cached) " >&6
9679else
9680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9681/* end confdefs.h.  */
9682int i;
9683_ACEOF
9684if ac_fn_c_try_compile "$LINENO"; then :
9685  xorg_cv_cc_flag_unknown_warning_option=yes
9686else
9687  xorg_cv_cc_flag_unknown_warning_option=no
9688fi
9689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9690fi
9691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9692$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9693	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9694	CFLAGS="$xorg_testset_save_CFLAGS"
9695fi
9696
9697if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9698	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9699		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9700	fi
9701	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9702	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9703$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9704if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9705  $as_echo_n "(cached) " >&6
9706else
9707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708/* end confdefs.h.  */
9709int i;
9710_ACEOF
9711if ac_fn_c_try_compile "$LINENO"; then :
9712  xorg_cv_cc_flag_unused_command_line_argument=yes
9713else
9714  xorg_cv_cc_flag_unused_command_line_argument=no
9715fi
9716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9717fi
9718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9719$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9720	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9721	CFLAGS="$xorg_testset_save_CFLAGS"
9722fi
9723
9724found="no"
9725
9726	if test $found = "no" ; then
9727		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9728			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9729		fi
9730
9731		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9732			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9733		fi
9734
9735		CFLAGS="$CFLAGS -Warray-bounds"
9736
9737		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9738$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9739		cacheid=xorg_cv_cc_flag__Warray_bounds
9740		if eval \${$cacheid+:} false; then :
9741  $as_echo_n "(cached) " >&6
9742else
9743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744/* end confdefs.h.  */
9745int i;
9746int
9747main ()
9748{
9749
9750  ;
9751  return 0;
9752}
9753_ACEOF
9754if ac_fn_c_try_link "$LINENO"; then :
9755  eval $cacheid=yes
9756else
9757  eval $cacheid=no
9758fi
9759rm -f core conftest.err conftest.$ac_objext \
9760    conftest$ac_exeext conftest.$ac_ext
9761fi
9762
9763
9764		CFLAGS="$xorg_testset_save_CFLAGS"
9765
9766		eval supported=\$$cacheid
9767		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9768$as_echo "$supported" >&6; }
9769		if test "$supported" = "yes" ; then
9770			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9771			found="yes"
9772		fi
9773	fi
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789xorg_testset_save_CFLAGS="$CFLAGS"
9790
9791if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9792	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9793	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9794$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9795if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9796  $as_echo_n "(cached) " >&6
9797else
9798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799/* end confdefs.h.  */
9800int i;
9801_ACEOF
9802if ac_fn_c_try_compile "$LINENO"; then :
9803  xorg_cv_cc_flag_unknown_warning_option=yes
9804else
9805  xorg_cv_cc_flag_unknown_warning_option=no
9806fi
9807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9808fi
9809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9810$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9811	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9812	CFLAGS="$xorg_testset_save_CFLAGS"
9813fi
9814
9815if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9816	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9817		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9818	fi
9819	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9820	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9821$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9822if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9823  $as_echo_n "(cached) " >&6
9824else
9825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826/* end confdefs.h.  */
9827int i;
9828_ACEOF
9829if ac_fn_c_try_compile "$LINENO"; then :
9830  xorg_cv_cc_flag_unused_command_line_argument=yes
9831else
9832  xorg_cv_cc_flag_unused_command_line_argument=no
9833fi
9834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9835fi
9836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9837$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9838	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9839	CFLAGS="$xorg_testset_save_CFLAGS"
9840fi
9841
9842found="no"
9843
9844	if test $found = "no" ; then
9845		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9846			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9847		fi
9848
9849		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9850			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9851		fi
9852
9853		CFLAGS="$CFLAGS -Wwrite-strings"
9854
9855		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9856$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9857		cacheid=xorg_cv_cc_flag__Wwrite_strings
9858		if eval \${$cacheid+:} false; then :
9859  $as_echo_n "(cached) " >&6
9860else
9861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9862/* end confdefs.h.  */
9863int i;
9864int
9865main ()
9866{
9867
9868  ;
9869  return 0;
9870}
9871_ACEOF
9872if ac_fn_c_try_link "$LINENO"; then :
9873  eval $cacheid=yes
9874else
9875  eval $cacheid=no
9876fi
9877rm -f core conftest.err conftest.$ac_objext \
9878    conftest$ac_exeext conftest.$ac_ext
9879fi
9880
9881
9882		CFLAGS="$xorg_testset_save_CFLAGS"
9883
9884		eval supported=\$$cacheid
9885		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9886$as_echo "$supported" >&6; }
9887		if test "$supported" = "yes" ; then
9888			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9889			found="yes"
9890		fi
9891	fi
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907xorg_testset_save_CFLAGS="$CFLAGS"
9908
9909if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9910	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9911	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9912$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9913if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9914  $as_echo_n "(cached) " >&6
9915else
9916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9917/* end confdefs.h.  */
9918int i;
9919_ACEOF
9920if ac_fn_c_try_compile "$LINENO"; then :
9921  xorg_cv_cc_flag_unknown_warning_option=yes
9922else
9923  xorg_cv_cc_flag_unknown_warning_option=no
9924fi
9925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9926fi
9927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9928$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9929	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9930	CFLAGS="$xorg_testset_save_CFLAGS"
9931fi
9932
9933if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9934	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9935		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9936	fi
9937	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9938	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9939$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9940if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9941  $as_echo_n "(cached) " >&6
9942else
9943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944/* end confdefs.h.  */
9945int i;
9946_ACEOF
9947if ac_fn_c_try_compile "$LINENO"; then :
9948  xorg_cv_cc_flag_unused_command_line_argument=yes
9949else
9950  xorg_cv_cc_flag_unused_command_line_argument=no
9951fi
9952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9953fi
9954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9955$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9956	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9957	CFLAGS="$xorg_testset_save_CFLAGS"
9958fi
9959
9960found="no"
9961
9962	if test $found = "no" ; then
9963		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9964			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9965		fi
9966
9967		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9968			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9969		fi
9970
9971		CFLAGS="$CFLAGS -Waddress"
9972
9973		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9974$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9975		cacheid=xorg_cv_cc_flag__Waddress
9976		if eval \${$cacheid+:} false; then :
9977  $as_echo_n "(cached) " >&6
9978else
9979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980/* end confdefs.h.  */
9981int i;
9982int
9983main ()
9984{
9985
9986  ;
9987  return 0;
9988}
9989_ACEOF
9990if ac_fn_c_try_link "$LINENO"; then :
9991  eval $cacheid=yes
9992else
9993  eval $cacheid=no
9994fi
9995rm -f core conftest.err conftest.$ac_objext \
9996    conftest$ac_exeext conftest.$ac_ext
9997fi
9998
9999
10000		CFLAGS="$xorg_testset_save_CFLAGS"
10001
10002		eval supported=\$$cacheid
10003		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10004$as_echo "$supported" >&6; }
10005		if test "$supported" = "yes" ; then
10006			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10007			found="yes"
10008		fi
10009	fi
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025xorg_testset_save_CFLAGS="$CFLAGS"
10026
10027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10028	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10029	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10030$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10031if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10032  $as_echo_n "(cached) " >&6
10033else
10034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10035/* end confdefs.h.  */
10036int i;
10037_ACEOF
10038if ac_fn_c_try_compile "$LINENO"; then :
10039  xorg_cv_cc_flag_unknown_warning_option=yes
10040else
10041  xorg_cv_cc_flag_unknown_warning_option=no
10042fi
10043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10044fi
10045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10046$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10047	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10048	CFLAGS="$xorg_testset_save_CFLAGS"
10049fi
10050
10051if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10052	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10053		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10054	fi
10055	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10056	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10057$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10058if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10059  $as_echo_n "(cached) " >&6
10060else
10061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062/* end confdefs.h.  */
10063int i;
10064_ACEOF
10065if ac_fn_c_try_compile "$LINENO"; then :
10066  xorg_cv_cc_flag_unused_command_line_argument=yes
10067else
10068  xorg_cv_cc_flag_unused_command_line_argument=no
10069fi
10070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10071fi
10072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10073$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10074	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10075	CFLAGS="$xorg_testset_save_CFLAGS"
10076fi
10077
10078found="no"
10079
10080	if test $found = "no" ; then
10081		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10082			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10083		fi
10084
10085		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10086			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10087		fi
10088
10089		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10090
10091		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10092$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10093		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10094		if eval \${$cacheid+:} false; then :
10095  $as_echo_n "(cached) " >&6
10096else
10097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10098/* end confdefs.h.  */
10099int i;
10100int
10101main ()
10102{
10103
10104  ;
10105  return 0;
10106}
10107_ACEOF
10108if ac_fn_c_try_link "$LINENO"; then :
10109  eval $cacheid=yes
10110else
10111  eval $cacheid=no
10112fi
10113rm -f core conftest.err conftest.$ac_objext \
10114    conftest$ac_exeext conftest.$ac_ext
10115fi
10116
10117
10118		CFLAGS="$xorg_testset_save_CFLAGS"
10119
10120		eval supported=\$$cacheid
10121		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10122$as_echo "$supported" >&6; }
10123		if test "$supported" = "yes" ; then
10124			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10125			found="yes"
10126		fi
10127	fi
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143xorg_testset_save_CFLAGS="$CFLAGS"
10144
10145if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10146	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10147	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10148$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10149if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10150  $as_echo_n "(cached) " >&6
10151else
10152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153/* end confdefs.h.  */
10154int i;
10155_ACEOF
10156if ac_fn_c_try_compile "$LINENO"; then :
10157  xorg_cv_cc_flag_unknown_warning_option=yes
10158else
10159  xorg_cv_cc_flag_unknown_warning_option=no
10160fi
10161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10162fi
10163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10164$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10165	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10166	CFLAGS="$xorg_testset_save_CFLAGS"
10167fi
10168
10169if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10170	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10171		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10172	fi
10173	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10174	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10175$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10176if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10177  $as_echo_n "(cached) " >&6
10178else
10179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180/* end confdefs.h.  */
10181int i;
10182_ACEOF
10183if ac_fn_c_try_compile "$LINENO"; then :
10184  xorg_cv_cc_flag_unused_command_line_argument=yes
10185else
10186  xorg_cv_cc_flag_unused_command_line_argument=no
10187fi
10188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10189fi
10190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10191$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10192	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10193	CFLAGS="$xorg_testset_save_CFLAGS"
10194fi
10195
10196found="no"
10197
10198	if test $found = "no" ; then
10199		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10200			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10201		fi
10202
10203		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10204			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10205		fi
10206
10207		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10208
10209		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10210$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10211		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10212		if eval \${$cacheid+:} false; then :
10213  $as_echo_n "(cached) " >&6
10214else
10215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10216/* end confdefs.h.  */
10217int i;
10218int
10219main ()
10220{
10221
10222  ;
10223  return 0;
10224}
10225_ACEOF
10226if ac_fn_c_try_link "$LINENO"; then :
10227  eval $cacheid=yes
10228else
10229  eval $cacheid=no
10230fi
10231rm -f core conftest.err conftest.$ac_objext \
10232    conftest$ac_exeext conftest.$ac_ext
10233fi
10234
10235
10236		CFLAGS="$xorg_testset_save_CFLAGS"
10237
10238		eval supported=\$$cacheid
10239		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10240$as_echo "$supported" >&6; }
10241		if test "$supported" = "yes" ; then
10242			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10243			found="yes"
10244		fi
10245	fi
10246
10247
10248fi
10249
10250
10251
10252
10253
10254
10255
10256		CWARNFLAGS="$BASE_CFLAGS"
10257		if  test "x$GCC" = xyes ; then
10258		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10259		fi
10260
10261
10262
10263
10264
10265
10266
10267
10268# Check whether --enable-strict-compilation was given.
10269if test "${enable_strict_compilation+set}" = set; then :
10270  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10271else
10272  STRICT_COMPILE=no
10273fi
10274
10275
10276
10277
10278
10279
10280STRICT_CFLAGS=""
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294xorg_testset_save_CFLAGS="$CFLAGS"
10295
10296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10297	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10298	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10299$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10300if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10301  $as_echo_n "(cached) " >&6
10302else
10303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10304/* end confdefs.h.  */
10305int i;
10306_ACEOF
10307if ac_fn_c_try_compile "$LINENO"; then :
10308  xorg_cv_cc_flag_unknown_warning_option=yes
10309else
10310  xorg_cv_cc_flag_unknown_warning_option=no
10311fi
10312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10313fi
10314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10315$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10316	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10317	CFLAGS="$xorg_testset_save_CFLAGS"
10318fi
10319
10320if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10321	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10322		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10323	fi
10324	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10326$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10327if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10328  $as_echo_n "(cached) " >&6
10329else
10330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331/* end confdefs.h.  */
10332int i;
10333_ACEOF
10334if ac_fn_c_try_compile "$LINENO"; then :
10335  xorg_cv_cc_flag_unused_command_line_argument=yes
10336else
10337  xorg_cv_cc_flag_unused_command_line_argument=no
10338fi
10339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10340fi
10341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10342$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10343	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10344	CFLAGS="$xorg_testset_save_CFLAGS"
10345fi
10346
10347found="no"
10348
10349	if test $found = "no" ; then
10350		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10351			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10352		fi
10353
10354		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10355			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10356		fi
10357
10358		CFLAGS="$CFLAGS -pedantic"
10359
10360		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10361$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10362		cacheid=xorg_cv_cc_flag__pedantic
10363		if eval \${$cacheid+:} false; then :
10364  $as_echo_n "(cached) " >&6
10365else
10366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367/* end confdefs.h.  */
10368int i;
10369int
10370main ()
10371{
10372
10373  ;
10374  return 0;
10375}
10376_ACEOF
10377if ac_fn_c_try_link "$LINENO"; then :
10378  eval $cacheid=yes
10379else
10380  eval $cacheid=no
10381fi
10382rm -f core conftest.err conftest.$ac_objext \
10383    conftest$ac_exeext conftest.$ac_ext
10384fi
10385
10386
10387		CFLAGS="$xorg_testset_save_CFLAGS"
10388
10389		eval supported=\$$cacheid
10390		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10391$as_echo "$supported" >&6; }
10392		if test "$supported" = "yes" ; then
10393			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10394			found="yes"
10395		fi
10396	fi
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412xorg_testset_save_CFLAGS="$CFLAGS"
10413
10414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10415	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10416	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10417$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10418if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10419  $as_echo_n "(cached) " >&6
10420else
10421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422/* end confdefs.h.  */
10423int i;
10424_ACEOF
10425if ac_fn_c_try_compile "$LINENO"; then :
10426  xorg_cv_cc_flag_unknown_warning_option=yes
10427else
10428  xorg_cv_cc_flag_unknown_warning_option=no
10429fi
10430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10431fi
10432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10433$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10434	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10435	CFLAGS="$xorg_testset_save_CFLAGS"
10436fi
10437
10438if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10439	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10440		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10441	fi
10442	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10444$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10445if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10446  $as_echo_n "(cached) " >&6
10447else
10448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449/* end confdefs.h.  */
10450int i;
10451_ACEOF
10452if ac_fn_c_try_compile "$LINENO"; then :
10453  xorg_cv_cc_flag_unused_command_line_argument=yes
10454else
10455  xorg_cv_cc_flag_unused_command_line_argument=no
10456fi
10457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10458fi
10459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10460$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10461	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10462	CFLAGS="$xorg_testset_save_CFLAGS"
10463fi
10464
10465found="no"
10466
10467	if test $found = "no" ; then
10468		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10469			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10470		fi
10471
10472		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10473			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10474		fi
10475
10476		CFLAGS="$CFLAGS -Werror"
10477
10478		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10479$as_echo_n "checking if $CC supports -Werror... " >&6; }
10480		cacheid=xorg_cv_cc_flag__Werror
10481		if eval \${$cacheid+:} false; then :
10482  $as_echo_n "(cached) " >&6
10483else
10484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10485/* end confdefs.h.  */
10486int i;
10487int
10488main ()
10489{
10490
10491  ;
10492  return 0;
10493}
10494_ACEOF
10495if ac_fn_c_try_link "$LINENO"; then :
10496  eval $cacheid=yes
10497else
10498  eval $cacheid=no
10499fi
10500rm -f core conftest.err conftest.$ac_objext \
10501    conftest$ac_exeext conftest.$ac_ext
10502fi
10503
10504
10505		CFLAGS="$xorg_testset_save_CFLAGS"
10506
10507		eval supported=\$$cacheid
10508		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10509$as_echo "$supported" >&6; }
10510		if test "$supported" = "yes" ; then
10511			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10512			found="yes"
10513		fi
10514	fi
10515
10516	if test $found = "no" ; then
10517		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10518			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10519		fi
10520
10521		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10522			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10523		fi
10524
10525		CFLAGS="$CFLAGS -errwarn"
10526
10527		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10528$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10529		cacheid=xorg_cv_cc_flag__errwarn
10530		if eval \${$cacheid+:} false; then :
10531  $as_echo_n "(cached) " >&6
10532else
10533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10534/* end confdefs.h.  */
10535int i;
10536int
10537main ()
10538{
10539
10540  ;
10541  return 0;
10542}
10543_ACEOF
10544if ac_fn_c_try_link "$LINENO"; then :
10545  eval $cacheid=yes
10546else
10547  eval $cacheid=no
10548fi
10549rm -f core conftest.err conftest.$ac_objext \
10550    conftest$ac_exeext conftest.$ac_ext
10551fi
10552
10553
10554		CFLAGS="$xorg_testset_save_CFLAGS"
10555
10556		eval supported=\$$cacheid
10557		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10558$as_echo "$supported" >&6; }
10559		if test "$supported" = "yes" ; then
10560			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10561			found="yes"
10562		fi
10563	fi
10564
10565
10566
10567# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10568# activate it with -Werror, so we add it here explicitly.
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582xorg_testset_save_CFLAGS="$CFLAGS"
10583
10584if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10585	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10586	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10587$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10588if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10589  $as_echo_n "(cached) " >&6
10590else
10591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592/* end confdefs.h.  */
10593int i;
10594_ACEOF
10595if ac_fn_c_try_compile "$LINENO"; then :
10596  xorg_cv_cc_flag_unknown_warning_option=yes
10597else
10598  xorg_cv_cc_flag_unknown_warning_option=no
10599fi
10600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10601fi
10602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10603$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10604	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10605	CFLAGS="$xorg_testset_save_CFLAGS"
10606fi
10607
10608if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10609	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10610		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10611	fi
10612	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10613	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10614$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10615if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10616  $as_echo_n "(cached) " >&6
10617else
10618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10619/* end confdefs.h.  */
10620int i;
10621_ACEOF
10622if ac_fn_c_try_compile "$LINENO"; then :
10623  xorg_cv_cc_flag_unused_command_line_argument=yes
10624else
10625  xorg_cv_cc_flag_unused_command_line_argument=no
10626fi
10627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10628fi
10629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10630$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10631	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10632	CFLAGS="$xorg_testset_save_CFLAGS"
10633fi
10634
10635found="no"
10636
10637	if test $found = "no" ; then
10638		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10639			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10640		fi
10641
10642		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10643			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10644		fi
10645
10646		CFLAGS="$CFLAGS -Werror=attributes"
10647
10648		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10649$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10650		cacheid=xorg_cv_cc_flag__Werror_attributes
10651		if eval \${$cacheid+:} false; then :
10652  $as_echo_n "(cached) " >&6
10653else
10654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10655/* end confdefs.h.  */
10656int i;
10657int
10658main ()
10659{
10660
10661  ;
10662  return 0;
10663}
10664_ACEOF
10665if ac_fn_c_try_link "$LINENO"; then :
10666  eval $cacheid=yes
10667else
10668  eval $cacheid=no
10669fi
10670rm -f core conftest.err conftest.$ac_objext \
10671    conftest$ac_exeext conftest.$ac_ext
10672fi
10673
10674
10675		CFLAGS="$xorg_testset_save_CFLAGS"
10676
10677		eval supported=\$$cacheid
10678		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10679$as_echo "$supported" >&6; }
10680		if test "$supported" = "yes" ; then
10681			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10682			found="yes"
10683		fi
10684	fi
10685
10686
10687
10688if test "x$STRICT_COMPILE" = "xyes"; then
10689    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10690    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10691fi
10692
10693
10694
10695
10696
10697
10698cat >>confdefs.h <<_ACEOF
10699#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10700_ACEOF
10701
10702	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10703	if test "x$PVM" = "x"; then
10704		PVM="0"
10705	fi
10706
10707cat >>confdefs.h <<_ACEOF
10708#define PACKAGE_VERSION_MINOR $PVM
10709_ACEOF
10710
10711	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10712	if test "x$PVP" = "x"; then
10713		PVP="0"
10714	fi
10715
10716cat >>confdefs.h <<_ACEOF
10717#define PACKAGE_VERSION_PATCHLEVEL $PVP
10718_ACEOF
10719
10720
10721
10722CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10723mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10724|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10725echo 'git directory not found: installing possibly empty changelog.' >&2)"
10726
10727
10728
10729
10730macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10731INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10732mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10733|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10734echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10735
10736
10737
10738
10739
10740
10741if test x$APP_MAN_SUFFIX = x    ; then
10742    APP_MAN_SUFFIX=1
10743fi
10744if test x$APP_MAN_DIR = x    ; then
10745    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10746fi
10747
10748if test x$LIB_MAN_SUFFIX = x    ; then
10749    LIB_MAN_SUFFIX=3
10750fi
10751if test x$LIB_MAN_DIR = x    ; then
10752    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10753fi
10754
10755if test x$FILE_MAN_SUFFIX = x    ; then
10756    case $host_os in
10757	solaris*)	FILE_MAN_SUFFIX=4  ;;
10758	*)		FILE_MAN_SUFFIX=5  ;;
10759    esac
10760fi
10761if test x$FILE_MAN_DIR = x    ; then
10762    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10763fi
10764
10765if test x$MISC_MAN_SUFFIX = x    ; then
10766    case $host_os in
10767	solaris*)	MISC_MAN_SUFFIX=5  ;;
10768	*)		MISC_MAN_SUFFIX=7  ;;
10769    esac
10770fi
10771if test x$MISC_MAN_DIR = x    ; then
10772    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10773fi
10774
10775if test x$DRIVER_MAN_SUFFIX = x    ; then
10776    case $host_os in
10777	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10778	*)		DRIVER_MAN_SUFFIX=4  ;;
10779    esac
10780fi
10781if test x$DRIVER_MAN_DIR = x    ; then
10782    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10783fi
10784
10785if test x$ADMIN_MAN_SUFFIX = x    ; then
10786    case $host_os in
10787	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10788	*)		ADMIN_MAN_SUFFIX=8  ;;
10789    esac
10790fi
10791if test x$ADMIN_MAN_DIR = x    ; then
10792    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10793fi
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809XORG_MAN_PAGE="X Version 11"
10810
10811MAN_SUBSTS="\
10812	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10813	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10814	-e 's|__xservername__|Xorg|g' \
10815	-e 's|__xconfigfile__|xorg.conf|g' \
10816	-e 's|__projectroot__|\$(prefix)|g' \
10817	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10818	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10819	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10820	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10821	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10822	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10823	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10824
10825
10826
10827# Check whether --enable-silent-rules was given.
10828if test "${enable_silent_rules+set}" = set; then :
10829  enableval=$enable_silent_rules;
10830fi
10831
10832case $enable_silent_rules in # (((
10833  yes) AM_DEFAULT_VERBOSITY=0;;
10834   no) AM_DEFAULT_VERBOSITY=1;;
10835    *) AM_DEFAULT_VERBOSITY=0;;
10836esac
10837am_make=${MAKE-make}
10838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10839$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10840if ${am_cv_make_support_nested_variables+:} false; then :
10841  $as_echo_n "(cached) " >&6
10842else
10843  if $as_echo 'TRUE=$(BAR$(V))
10844BAR0=false
10845BAR1=true
10846V=1
10847am__doit:
10848	@$(TRUE)
10849.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10850  am_cv_make_support_nested_variables=yes
10851else
10852  am_cv_make_support_nested_variables=no
10853fi
10854fi
10855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10856$as_echo "$am_cv_make_support_nested_variables" >&6; }
10857if test $am_cv_make_support_nested_variables = yes; then
10858    AM_V='$(V)'
10859  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10860else
10861  AM_V=$AM_DEFAULT_VERBOSITY
10862  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10863fi
10864AM_BACKSLASH='\'
10865
10866
10867
10868# Initialize libtool
10869# Check whether --enable-static was given.
10870if test "${enable_static+set}" = set; then :
10871  enableval=$enable_static; p=${PACKAGE-default}
10872    case $enableval in
10873    yes) enable_static=yes ;;
10874    no) enable_static=no ;;
10875    *)
10876     enable_static=no
10877      # Look at the argument we got.  We use all the common list separators.
10878      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10879      for pkg in $enableval; do
10880	IFS=$lt_save_ifs
10881	if test "X$pkg" = "X$p"; then
10882	  enable_static=yes
10883	fi
10884      done
10885      IFS=$lt_save_ifs
10886      ;;
10887    esac
10888else
10889  enable_static=no
10890fi
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900case `pwd` in
10901  *\ * | *\	*)
10902    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10903$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10904esac
10905
10906
10907
10908macro_version='2.4.6'
10909macro_revision='2.4.6'
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923ltmain=$ac_aux_dir/ltmain.sh
10924
10925# Backslashify metacharacters that are still active within
10926# double-quoted strings.
10927sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10928
10929# Same as above, but do not quote variable references.
10930double_quote_subst='s/\(["`\\]\)/\\\1/g'
10931
10932# Sed substitution to delay expansion of an escaped shell variable in a
10933# double_quote_subst'ed string.
10934delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10935
10936# Sed substitution to delay expansion of an escaped single quote.
10937delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10938
10939# Sed substitution to avoid accidental globbing in evaled expressions
10940no_glob_subst='s/\*/\\\*/g'
10941
10942ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10943ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10944ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10945
10946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10947$as_echo_n "checking how to print strings... " >&6; }
10948# Test print first, because it will be a builtin if present.
10949if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10950   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10951  ECHO='print -r --'
10952elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10953  ECHO='printf %s\n'
10954else
10955  # Use this function as a fallback that always works.
10956  func_fallback_echo ()
10957  {
10958    eval 'cat <<_LTECHO_EOF
10959$1
10960_LTECHO_EOF'
10961  }
10962  ECHO='func_fallback_echo'
10963fi
10964
10965# func_echo_all arg...
10966# Invoke $ECHO with all args, space-separated.
10967func_echo_all ()
10968{
10969    $ECHO ""
10970}
10971
10972case $ECHO in
10973  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10974$as_echo "printf" >&6; } ;;
10975  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10976$as_echo "print -r" >&6; } ;;
10977  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10978$as_echo "cat" >&6; } ;;
10979esac
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10995$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10996if ${ac_cv_path_SED+:} false; then :
10997  $as_echo_n "(cached) " >&6
10998else
10999            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11000     for ac_i in 1 2 3 4 5 6 7; do
11001       ac_script="$ac_script$as_nl$ac_script"
11002     done
11003     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11004     { ac_script=; unset ac_script;}
11005     if test -z "$SED"; then
11006  ac_path_SED_found=false
11007  # Loop through the user's path and test for each of PROGNAME-LIST
11008  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11009for as_dir in $PATH
11010do
11011  IFS=$as_save_IFS
11012  test -z "$as_dir" && as_dir=.
11013    for ac_prog in sed gsed; do
11014    for ac_exec_ext in '' $ac_executable_extensions; do
11015      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11016      as_fn_executable_p "$ac_path_SED" || continue
11017# Check for GNU ac_path_SED and select it if it is found.
11018  # Check for GNU $ac_path_SED
11019case `"$ac_path_SED" --version 2>&1` in
11020*GNU*)
11021  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11022*)
11023  ac_count=0
11024  $as_echo_n 0123456789 >"conftest.in"
11025  while :
11026  do
11027    cat "conftest.in" "conftest.in" >"conftest.tmp"
11028    mv "conftest.tmp" "conftest.in"
11029    cp "conftest.in" "conftest.nl"
11030    $as_echo '' >> "conftest.nl"
11031    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11032    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11033    as_fn_arith $ac_count + 1 && ac_count=$as_val
11034    if test $ac_count -gt ${ac_path_SED_max-0}; then
11035      # Best one so far, save it but keep looking for a better one
11036      ac_cv_path_SED="$ac_path_SED"
11037      ac_path_SED_max=$ac_count
11038    fi
11039    # 10*(2^10) chars as input seems more than enough
11040    test $ac_count -gt 10 && break
11041  done
11042  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11043esac
11044
11045      $ac_path_SED_found && break 3
11046    done
11047  done
11048  done
11049IFS=$as_save_IFS
11050  if test -z "$ac_cv_path_SED"; then
11051    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11052  fi
11053else
11054  ac_cv_path_SED=$SED
11055fi
11056
11057fi
11058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11059$as_echo "$ac_cv_path_SED" >&6; }
11060 SED="$ac_cv_path_SED"
11061  rm -f conftest.sed
11062
11063test -z "$SED" && SED=sed
11064Xsed="$SED -e 1s/^X//"
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11077$as_echo_n "checking for fgrep... " >&6; }
11078if ${ac_cv_path_FGREP+:} false; then :
11079  $as_echo_n "(cached) " >&6
11080else
11081  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11082   then ac_cv_path_FGREP="$GREP -F"
11083   else
11084     if test -z "$FGREP"; then
11085  ac_path_FGREP_found=false
11086  # Loop through the user's path and test for each of PROGNAME-LIST
11087  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11088for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11089do
11090  IFS=$as_save_IFS
11091  test -z "$as_dir" && as_dir=.
11092    for ac_prog in fgrep; do
11093    for ac_exec_ext in '' $ac_executable_extensions; do
11094      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11095      as_fn_executable_p "$ac_path_FGREP" || continue
11096# Check for GNU ac_path_FGREP and select it if it is found.
11097  # Check for GNU $ac_path_FGREP
11098case `"$ac_path_FGREP" --version 2>&1` in
11099*GNU*)
11100  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11101*)
11102  ac_count=0
11103  $as_echo_n 0123456789 >"conftest.in"
11104  while :
11105  do
11106    cat "conftest.in" "conftest.in" >"conftest.tmp"
11107    mv "conftest.tmp" "conftest.in"
11108    cp "conftest.in" "conftest.nl"
11109    $as_echo 'FGREP' >> "conftest.nl"
11110    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11111    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11112    as_fn_arith $ac_count + 1 && ac_count=$as_val
11113    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11114      # Best one so far, save it but keep looking for a better one
11115      ac_cv_path_FGREP="$ac_path_FGREP"
11116      ac_path_FGREP_max=$ac_count
11117    fi
11118    # 10*(2^10) chars as input seems more than enough
11119    test $ac_count -gt 10 && break
11120  done
11121  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11122esac
11123
11124      $ac_path_FGREP_found && break 3
11125    done
11126  done
11127  done
11128IFS=$as_save_IFS
11129  if test -z "$ac_cv_path_FGREP"; then
11130    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11131  fi
11132else
11133  ac_cv_path_FGREP=$FGREP
11134fi
11135
11136   fi
11137fi
11138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11139$as_echo "$ac_cv_path_FGREP" >&6; }
11140 FGREP="$ac_cv_path_FGREP"
11141
11142
11143test -z "$GREP" && GREP=grep
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163# Check whether --with-gnu-ld was given.
11164if test "${with_gnu_ld+set}" = set; then :
11165  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11166else
11167  with_gnu_ld=no
11168fi
11169
11170ac_prog=ld
11171if test yes = "$GCC"; then
11172  # Check if gcc -print-prog-name=ld gives a path.
11173  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11174$as_echo_n "checking for ld used by $CC... " >&6; }
11175  case $host in
11176  *-*-mingw*)
11177    # gcc leaves a trailing carriage return, which upsets mingw
11178    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11179  *)
11180    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11181  esac
11182  case $ac_prog in
11183    # Accept absolute paths.
11184    [\\/]* | ?:[\\/]*)
11185      re_direlt='/[^/][^/]*/\.\./'
11186      # Canonicalize the pathname of ld
11187      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11188      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11189	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11190      done
11191      test -z "$LD" && LD=$ac_prog
11192      ;;
11193  "")
11194    # If it fails, then pretend we aren't using GCC.
11195    ac_prog=ld
11196    ;;
11197  *)
11198    # If it is relative, then search for the first ld in PATH.
11199    with_gnu_ld=unknown
11200    ;;
11201  esac
11202elif test yes = "$with_gnu_ld"; then
11203  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11204$as_echo_n "checking for GNU ld... " >&6; }
11205else
11206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11207$as_echo_n "checking for non-GNU ld... " >&6; }
11208fi
11209if ${lt_cv_path_LD+:} false; then :
11210  $as_echo_n "(cached) " >&6
11211else
11212  if test -z "$LD"; then
11213  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11214  for ac_dir in $PATH; do
11215    IFS=$lt_save_ifs
11216    test -z "$ac_dir" && ac_dir=.
11217    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11218      lt_cv_path_LD=$ac_dir/$ac_prog
11219      # Check to see if the program is GNU ld.  I'd rather use --version,
11220      # but apparently some variants of GNU ld only accept -v.
11221      # Break only if it was the GNU/non-GNU ld that we prefer.
11222      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11223      *GNU* | *'with BFD'*)
11224	test no != "$with_gnu_ld" && break
11225	;;
11226      *)
11227	test yes != "$with_gnu_ld" && break
11228	;;
11229      esac
11230    fi
11231  done
11232  IFS=$lt_save_ifs
11233else
11234  lt_cv_path_LD=$LD # Let the user override the test with a path.
11235fi
11236fi
11237
11238LD=$lt_cv_path_LD
11239if test -n "$LD"; then
11240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11241$as_echo "$LD" >&6; }
11242else
11243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11244$as_echo "no" >&6; }
11245fi
11246test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11248$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11249if ${lt_cv_prog_gnu_ld+:} false; then :
11250  $as_echo_n "(cached) " >&6
11251else
11252  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11253case `$LD -v 2>&1 </dev/null` in
11254*GNU* | *'with BFD'*)
11255  lt_cv_prog_gnu_ld=yes
11256  ;;
11257*)
11258  lt_cv_prog_gnu_ld=no
11259  ;;
11260esac
11261fi
11262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11263$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11264with_gnu_ld=$lt_cv_prog_gnu_ld
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11275$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11276if ${lt_cv_path_NM+:} false; then :
11277  $as_echo_n "(cached) " >&6
11278else
11279  if test -n "$NM"; then
11280  # Let the user override the test.
11281  lt_cv_path_NM=$NM
11282else
11283  lt_nm_to_check=${ac_tool_prefix}nm
11284  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11285    lt_nm_to_check="$lt_nm_to_check nm"
11286  fi
11287  for lt_tmp_nm in $lt_nm_to_check; do
11288    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11289    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11290      IFS=$lt_save_ifs
11291      test -z "$ac_dir" && ac_dir=.
11292      tmp_nm=$ac_dir/$lt_tmp_nm
11293      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11294	# Check to see if the nm accepts a BSD-compat flag.
11295	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11296	#   nm: unknown option "B" ignored
11297	# Tru64's nm complains that /dev/null is an invalid object file
11298	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11299	case $build_os in
11300	mingw*) lt_bad_file=conftest.nm/nofile ;;
11301	*) lt_bad_file=/dev/null ;;
11302	esac
11303	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11304	*$lt_bad_file* | *'Invalid file or object type'*)
11305	  lt_cv_path_NM="$tmp_nm -B"
11306	  break 2
11307	  ;;
11308	*)
11309	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11310	  */dev/null*)
11311	    lt_cv_path_NM="$tmp_nm -p"
11312	    break 2
11313	    ;;
11314	  *)
11315	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11316	    continue # so that we can try to find one that supports BSD flags
11317	    ;;
11318	  esac
11319	  ;;
11320	esac
11321      fi
11322    done
11323    IFS=$lt_save_ifs
11324  done
11325  : ${lt_cv_path_NM=no}
11326fi
11327fi
11328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11329$as_echo "$lt_cv_path_NM" >&6; }
11330if test no != "$lt_cv_path_NM"; then
11331  NM=$lt_cv_path_NM
11332else
11333  # Didn't find any BSD compatible name lister, look for dumpbin.
11334  if test -n "$DUMPBIN"; then :
11335    # Let the user override the test.
11336  else
11337    if test -n "$ac_tool_prefix"; then
11338  for ac_prog in dumpbin "link -dump"
11339  do
11340    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11341set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11343$as_echo_n "checking for $ac_word... " >&6; }
11344if ${ac_cv_prog_DUMPBIN+:} false; then :
11345  $as_echo_n "(cached) " >&6
11346else
11347  if test -n "$DUMPBIN"; then
11348  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11349else
11350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351for as_dir in $PATH
11352do
11353  IFS=$as_save_IFS
11354  test -z "$as_dir" && as_dir=.
11355    for ac_exec_ext in '' $ac_executable_extensions; do
11356  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11357    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11359    break 2
11360  fi
11361done
11362  done
11363IFS=$as_save_IFS
11364
11365fi
11366fi
11367DUMPBIN=$ac_cv_prog_DUMPBIN
11368if test -n "$DUMPBIN"; then
11369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11370$as_echo "$DUMPBIN" >&6; }
11371else
11372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11373$as_echo "no" >&6; }
11374fi
11375
11376
11377    test -n "$DUMPBIN" && break
11378  done
11379fi
11380if test -z "$DUMPBIN"; then
11381  ac_ct_DUMPBIN=$DUMPBIN
11382  for ac_prog in dumpbin "link -dump"
11383do
11384  # Extract the first word of "$ac_prog", so it can be a program name with args.
11385set dummy $ac_prog; ac_word=$2
11386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11387$as_echo_n "checking for $ac_word... " >&6; }
11388if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11389  $as_echo_n "(cached) " >&6
11390else
11391  if test -n "$ac_ct_DUMPBIN"; then
11392  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11393else
11394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11395for as_dir in $PATH
11396do
11397  IFS=$as_save_IFS
11398  test -z "$as_dir" && as_dir=.
11399    for ac_exec_ext in '' $ac_executable_extensions; do
11400  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11401    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11403    break 2
11404  fi
11405done
11406  done
11407IFS=$as_save_IFS
11408
11409fi
11410fi
11411ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11412if test -n "$ac_ct_DUMPBIN"; then
11413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11414$as_echo "$ac_ct_DUMPBIN" >&6; }
11415else
11416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11417$as_echo "no" >&6; }
11418fi
11419
11420
11421  test -n "$ac_ct_DUMPBIN" && break
11422done
11423
11424  if test "x$ac_ct_DUMPBIN" = x; then
11425    DUMPBIN=":"
11426  else
11427    case $cross_compiling:$ac_tool_warned in
11428yes:)
11429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11431ac_tool_warned=yes ;;
11432esac
11433    DUMPBIN=$ac_ct_DUMPBIN
11434  fi
11435fi
11436
11437    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11438    *COFF*)
11439      DUMPBIN="$DUMPBIN -symbols -headers"
11440      ;;
11441    *)
11442      DUMPBIN=:
11443      ;;
11444    esac
11445  fi
11446
11447  if test : != "$DUMPBIN"; then
11448    NM=$DUMPBIN
11449  fi
11450fi
11451test -z "$NM" && NM=nm
11452
11453
11454
11455
11456
11457
11458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11459$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11460if ${lt_cv_nm_interface+:} false; then :
11461  $as_echo_n "(cached) " >&6
11462else
11463  lt_cv_nm_interface="BSD nm"
11464  echo "int some_variable = 0;" > conftest.$ac_ext
11465  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11466  (eval "$ac_compile" 2>conftest.err)
11467  cat conftest.err >&5
11468  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11469  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11470  cat conftest.err >&5
11471  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11472  cat conftest.out >&5
11473  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11474    lt_cv_nm_interface="MS dumpbin"
11475  fi
11476  rm -f conftest*
11477fi
11478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11479$as_echo "$lt_cv_nm_interface" >&6; }
11480
11481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11482$as_echo_n "checking whether ln -s works... " >&6; }
11483LN_S=$as_ln_s
11484if test "$LN_S" = "ln -s"; then
11485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11486$as_echo "yes" >&6; }
11487else
11488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11489$as_echo "no, using $LN_S" >&6; }
11490fi
11491
11492# find the maximum length of command line arguments
11493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11494$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11495if ${lt_cv_sys_max_cmd_len+:} false; then :
11496  $as_echo_n "(cached) " >&6
11497else
11498    i=0
11499  teststring=ABCD
11500
11501  case $build_os in
11502  msdosdjgpp*)
11503    # On DJGPP, this test can blow up pretty badly due to problems in libc
11504    # (any single argument exceeding 2000 bytes causes a buffer overrun
11505    # during glob expansion).  Even if it were fixed, the result of this
11506    # check would be larger than it should be.
11507    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11508    ;;
11509
11510  gnu*)
11511    # Under GNU Hurd, this test is not required because there is
11512    # no limit to the length of command line arguments.
11513    # Libtool will interpret -1 as no limit whatsoever
11514    lt_cv_sys_max_cmd_len=-1;
11515    ;;
11516
11517  cygwin* | mingw* | cegcc*)
11518    # On Win9x/ME, this test blows up -- it succeeds, but takes
11519    # about 5 minutes as the teststring grows exponentially.
11520    # Worse, since 9x/ME are not pre-emptively multitasking,
11521    # you end up with a "frozen" computer, even though with patience
11522    # the test eventually succeeds (with a max line length of 256k).
11523    # Instead, let's just punt: use the minimum linelength reported by
11524    # all of the supported platforms: 8192 (on NT/2K/XP).
11525    lt_cv_sys_max_cmd_len=8192;
11526    ;;
11527
11528  mint*)
11529    # On MiNT this can take a long time and run out of memory.
11530    lt_cv_sys_max_cmd_len=8192;
11531    ;;
11532
11533  amigaos*)
11534    # On AmigaOS with pdksh, this test takes hours, literally.
11535    # So we just punt and use a minimum line length of 8192.
11536    lt_cv_sys_max_cmd_len=8192;
11537    ;;
11538
11539  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11540    # This has been around since 386BSD, at least.  Likely further.
11541    if test -x /sbin/sysctl; then
11542      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11543    elif test -x /usr/sbin/sysctl; then
11544      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11545    else
11546      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11547    fi
11548    # And add a safety zone
11549    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11550    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11551    ;;
11552
11553  interix*)
11554    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11555    lt_cv_sys_max_cmd_len=196608
11556    ;;
11557
11558  os2*)
11559    # The test takes a long time on OS/2.
11560    lt_cv_sys_max_cmd_len=8192
11561    ;;
11562
11563  osf*)
11564    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11565    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11566    # nice to cause kernel panics so lets avoid the loop below.
11567    # First set a reasonable default.
11568    lt_cv_sys_max_cmd_len=16384
11569    #
11570    if test -x /sbin/sysconfig; then
11571      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11572        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11573      esac
11574    fi
11575    ;;
11576  sco3.2v5*)
11577    lt_cv_sys_max_cmd_len=102400
11578    ;;
11579  sysv5* | sco5v6* | sysv4.2uw2*)
11580    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11581    if test -n "$kargmax"; then
11582      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11583    else
11584      lt_cv_sys_max_cmd_len=32768
11585    fi
11586    ;;
11587  *)
11588    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11589    if test -n "$lt_cv_sys_max_cmd_len" && \
11590       test undefined != "$lt_cv_sys_max_cmd_len"; then
11591      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11592      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11593    else
11594      # Make teststring a little bigger before we do anything with it.
11595      # a 1K string should be a reasonable start.
11596      for i in 1 2 3 4 5 6 7 8; do
11597        teststring=$teststring$teststring
11598      done
11599      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11600      # If test is not a shell built-in, we'll probably end up computing a
11601      # maximum length that is only half of the actual maximum length, but
11602      # we can't tell.
11603      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11604	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11605	      test 17 != "$i" # 1/2 MB should be enough
11606      do
11607        i=`expr $i + 1`
11608        teststring=$teststring$teststring
11609      done
11610      # Only check the string length outside the loop.
11611      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11612      teststring=
11613      # Add a significant safety factor because C++ compilers can tack on
11614      # massive amounts of additional arguments before passing them to the
11615      # linker.  It appears as though 1/2 is a usable value.
11616      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11617    fi
11618    ;;
11619  esac
11620
11621fi
11622
11623if test -n "$lt_cv_sys_max_cmd_len"; then
11624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11625$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11626else
11627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11628$as_echo "none" >&6; }
11629fi
11630max_cmd_len=$lt_cv_sys_max_cmd_len
11631
11632
11633
11634
11635
11636
11637: ${CP="cp -f"}
11638: ${MV="mv -f"}
11639: ${RM="rm -f"}
11640
11641if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11642  lt_unset=unset
11643else
11644  lt_unset=false
11645fi
11646
11647
11648
11649
11650
11651# test EBCDIC or ASCII
11652case `echo X|tr X '\101'` in
11653 A) # ASCII based system
11654    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11655  lt_SP2NL='tr \040 \012'
11656  lt_NL2SP='tr \015\012 \040\040'
11657  ;;
11658 *) # EBCDIC based system
11659  lt_SP2NL='tr \100 \n'
11660  lt_NL2SP='tr \r\n \100\100'
11661  ;;
11662esac
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11673$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11674if ${lt_cv_to_host_file_cmd+:} false; then :
11675  $as_echo_n "(cached) " >&6
11676else
11677  case $host in
11678  *-*-mingw* )
11679    case $build in
11680      *-*-mingw* ) # actually msys
11681        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11682        ;;
11683      *-*-cygwin* )
11684        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11685        ;;
11686      * ) # otherwise, assume *nix
11687        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11688        ;;
11689    esac
11690    ;;
11691  *-*-cygwin* )
11692    case $build in
11693      *-*-mingw* ) # actually msys
11694        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11695        ;;
11696      *-*-cygwin* )
11697        lt_cv_to_host_file_cmd=func_convert_file_noop
11698        ;;
11699      * ) # otherwise, assume *nix
11700        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11701        ;;
11702    esac
11703    ;;
11704  * ) # unhandled hosts (and "normal" native builds)
11705    lt_cv_to_host_file_cmd=func_convert_file_noop
11706    ;;
11707esac
11708
11709fi
11710
11711to_host_file_cmd=$lt_cv_to_host_file_cmd
11712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11713$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11714
11715
11716
11717
11718
11719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11720$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11721if ${lt_cv_to_tool_file_cmd+:} false; then :
11722  $as_echo_n "(cached) " >&6
11723else
11724  #assume ordinary cross tools, or native build.
11725lt_cv_to_tool_file_cmd=func_convert_file_noop
11726case $host in
11727  *-*-mingw* )
11728    case $build in
11729      *-*-mingw* ) # actually msys
11730        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11731        ;;
11732    esac
11733    ;;
11734esac
11735
11736fi
11737
11738to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11740$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11741
11742
11743
11744
11745
11746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11747$as_echo_n "checking for $LD option to reload object files... " >&6; }
11748if ${lt_cv_ld_reload_flag+:} false; then :
11749  $as_echo_n "(cached) " >&6
11750else
11751  lt_cv_ld_reload_flag='-r'
11752fi
11753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11754$as_echo "$lt_cv_ld_reload_flag" >&6; }
11755reload_flag=$lt_cv_ld_reload_flag
11756case $reload_flag in
11757"" | " "*) ;;
11758*) reload_flag=" $reload_flag" ;;
11759esac
11760reload_cmds='$LD$reload_flag -o $output$reload_objs'
11761case $host_os in
11762  cygwin* | mingw* | pw32* | cegcc*)
11763    if test yes != "$GCC"; then
11764      reload_cmds=false
11765    fi
11766    ;;
11767  darwin*)
11768    if test yes = "$GCC"; then
11769      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11770    else
11771      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11772    fi
11773    ;;
11774esac
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784if test -n "$ac_tool_prefix"; then
11785  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11786set dummy ${ac_tool_prefix}objdump; ac_word=$2
11787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11788$as_echo_n "checking for $ac_word... " >&6; }
11789if ${ac_cv_prog_OBJDUMP+:} false; then :
11790  $as_echo_n "(cached) " >&6
11791else
11792  if test -n "$OBJDUMP"; then
11793  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11794else
11795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11796for as_dir in $PATH
11797do
11798  IFS=$as_save_IFS
11799  test -z "$as_dir" && as_dir=.
11800    for ac_exec_ext in '' $ac_executable_extensions; do
11801  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11802    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11804    break 2
11805  fi
11806done
11807  done
11808IFS=$as_save_IFS
11809
11810fi
11811fi
11812OBJDUMP=$ac_cv_prog_OBJDUMP
11813if test -n "$OBJDUMP"; then
11814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11815$as_echo "$OBJDUMP" >&6; }
11816else
11817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11818$as_echo "no" >&6; }
11819fi
11820
11821
11822fi
11823if test -z "$ac_cv_prog_OBJDUMP"; then
11824  ac_ct_OBJDUMP=$OBJDUMP
11825  # Extract the first word of "objdump", so it can be a program name with args.
11826set dummy objdump; ac_word=$2
11827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11828$as_echo_n "checking for $ac_word... " >&6; }
11829if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11830  $as_echo_n "(cached) " >&6
11831else
11832  if test -n "$ac_ct_OBJDUMP"; then
11833  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11834else
11835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11836for as_dir in $PATH
11837do
11838  IFS=$as_save_IFS
11839  test -z "$as_dir" && as_dir=.
11840    for ac_exec_ext in '' $ac_executable_extensions; do
11841  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11842    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11844    break 2
11845  fi
11846done
11847  done
11848IFS=$as_save_IFS
11849
11850fi
11851fi
11852ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11853if test -n "$ac_ct_OBJDUMP"; then
11854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11855$as_echo "$ac_ct_OBJDUMP" >&6; }
11856else
11857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11858$as_echo "no" >&6; }
11859fi
11860
11861  if test "x$ac_ct_OBJDUMP" = x; then
11862    OBJDUMP="false"
11863  else
11864    case $cross_compiling:$ac_tool_warned in
11865yes:)
11866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11868ac_tool_warned=yes ;;
11869esac
11870    OBJDUMP=$ac_ct_OBJDUMP
11871  fi
11872else
11873  OBJDUMP="$ac_cv_prog_OBJDUMP"
11874fi
11875
11876test -z "$OBJDUMP" && OBJDUMP=objdump
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11887$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11888if ${lt_cv_deplibs_check_method+:} false; then :
11889  $as_echo_n "(cached) " >&6
11890else
11891  lt_cv_file_magic_cmd='$MAGIC_CMD'
11892lt_cv_file_magic_test_file=
11893lt_cv_deplibs_check_method='unknown'
11894# Need to set the preceding variable on all platforms that support
11895# interlibrary dependencies.
11896# 'none' -- dependencies not supported.
11897# 'unknown' -- same as none, but documents that we really don't know.
11898# 'pass_all' -- all dependencies passed with no checks.
11899# 'test_compile' -- check by making test program.
11900# 'file_magic [[regex]]' -- check by looking for files in library path
11901# that responds to the $file_magic_cmd with a given extended regex.
11902# If you have 'file' or equivalent on your system and you're not sure
11903# whether 'pass_all' will *always* work, you probably want this one.
11904
11905case $host_os in
11906aix[4-9]*)
11907  lt_cv_deplibs_check_method=pass_all
11908  ;;
11909
11910beos*)
11911  lt_cv_deplibs_check_method=pass_all
11912  ;;
11913
11914bsdi[45]*)
11915  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11916  lt_cv_file_magic_cmd='/usr/bin/file -L'
11917  lt_cv_file_magic_test_file=/shlib/libc.so
11918  ;;
11919
11920cygwin*)
11921  # func_win32_libid is a shell function defined in ltmain.sh
11922  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11923  lt_cv_file_magic_cmd='func_win32_libid'
11924  ;;
11925
11926mingw* | pw32*)
11927  # Base MSYS/MinGW do not provide the 'file' command needed by
11928  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11929  # unless we find 'file', for example because we are cross-compiling.
11930  if ( file / ) >/dev/null 2>&1; then
11931    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11932    lt_cv_file_magic_cmd='func_win32_libid'
11933  else
11934    # Keep this pattern in sync with the one in func_win32_libid.
11935    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11936    lt_cv_file_magic_cmd='$OBJDUMP -f'
11937  fi
11938  ;;
11939
11940cegcc*)
11941  # use the weaker test based on 'objdump'. See mingw*.
11942  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11943  lt_cv_file_magic_cmd='$OBJDUMP -f'
11944  ;;
11945
11946darwin* | rhapsody*)
11947  lt_cv_deplibs_check_method=pass_all
11948  ;;
11949
11950freebsd* | dragonfly*)
11951  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11952    case $host_cpu in
11953    i*86 )
11954      # Not sure whether the presence of OpenBSD here was a mistake.
11955      # Let's accept both of them until this is cleared up.
11956      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11957      lt_cv_file_magic_cmd=/usr/bin/file
11958      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11959      ;;
11960    esac
11961  else
11962    lt_cv_deplibs_check_method=pass_all
11963  fi
11964  ;;
11965
11966haiku*)
11967  lt_cv_deplibs_check_method=pass_all
11968  ;;
11969
11970hpux10.20* | hpux11*)
11971  lt_cv_file_magic_cmd=/usr/bin/file
11972  case $host_cpu in
11973  ia64*)
11974    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11975    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11976    ;;
11977  hppa*64*)
11978    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]'
11979    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11980    ;;
11981  *)
11982    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11983    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11984    ;;
11985  esac
11986  ;;
11987
11988interix[3-9]*)
11989  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11990  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11991  ;;
11992
11993irix5* | irix6* | nonstopux*)
11994  case $LD in
11995  *-32|*"-32 ") libmagic=32-bit;;
11996  *-n32|*"-n32 ") libmagic=N32;;
11997  *-64|*"-64 ") libmagic=64-bit;;
11998  *) libmagic=never-match;;
11999  esac
12000  lt_cv_deplibs_check_method=pass_all
12001  ;;
12002
12003# This must be glibc/ELF.
12004linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12005  lt_cv_deplibs_check_method=pass_all
12006  ;;
12007
12008netbsd*)
12009  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12010    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12011  else
12012    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12013  fi
12014  ;;
12015
12016newos6*)
12017  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12018  lt_cv_file_magic_cmd=/usr/bin/file
12019  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12020  ;;
12021
12022*nto* | *qnx*)
12023  lt_cv_deplibs_check_method=pass_all
12024  ;;
12025
12026openbsd* | bitrig*)
12027  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12028    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12029  else
12030    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12031  fi
12032  ;;
12033
12034osf3* | osf4* | osf5*)
12035  lt_cv_deplibs_check_method=pass_all
12036  ;;
12037
12038rdos*)
12039  lt_cv_deplibs_check_method=pass_all
12040  ;;
12041
12042solaris*)
12043  lt_cv_deplibs_check_method=pass_all
12044  ;;
12045
12046sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12047  lt_cv_deplibs_check_method=pass_all
12048  ;;
12049
12050sysv4 | sysv4.3*)
12051  case $host_vendor in
12052  motorola)
12053    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]'
12054    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12055    ;;
12056  ncr)
12057    lt_cv_deplibs_check_method=pass_all
12058    ;;
12059  sequent)
12060    lt_cv_file_magic_cmd='/bin/file'
12061    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12062    ;;
12063  sni)
12064    lt_cv_file_magic_cmd='/bin/file'
12065    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12066    lt_cv_file_magic_test_file=/lib/libc.so
12067    ;;
12068  siemens)
12069    lt_cv_deplibs_check_method=pass_all
12070    ;;
12071  pc)
12072    lt_cv_deplibs_check_method=pass_all
12073    ;;
12074  esac
12075  ;;
12076
12077tpf*)
12078  lt_cv_deplibs_check_method=pass_all
12079  ;;
12080os2*)
12081  lt_cv_deplibs_check_method=pass_all
12082  ;;
12083esac
12084
12085fi
12086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12087$as_echo "$lt_cv_deplibs_check_method" >&6; }
12088
12089file_magic_glob=
12090want_nocaseglob=no
12091if test "$build" = "$host"; then
12092  case $host_os in
12093  mingw* | pw32*)
12094    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12095      want_nocaseglob=yes
12096    else
12097      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12098    fi
12099    ;;
12100  esac
12101fi
12102
12103file_magic_cmd=$lt_cv_file_magic_cmd
12104deplibs_check_method=$lt_cv_deplibs_check_method
12105test -z "$deplibs_check_method" && deplibs_check_method=unknown
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128if test -n "$ac_tool_prefix"; then
12129  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12130set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12132$as_echo_n "checking for $ac_word... " >&6; }
12133if ${ac_cv_prog_DLLTOOL+:} false; then :
12134  $as_echo_n "(cached) " >&6
12135else
12136  if test -n "$DLLTOOL"; then
12137  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12138else
12139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12140for as_dir in $PATH
12141do
12142  IFS=$as_save_IFS
12143  test -z "$as_dir" && as_dir=.
12144    for ac_exec_ext in '' $ac_executable_extensions; do
12145  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12146    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12147    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12148    break 2
12149  fi
12150done
12151  done
12152IFS=$as_save_IFS
12153
12154fi
12155fi
12156DLLTOOL=$ac_cv_prog_DLLTOOL
12157if test -n "$DLLTOOL"; then
12158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12159$as_echo "$DLLTOOL" >&6; }
12160else
12161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12162$as_echo "no" >&6; }
12163fi
12164
12165
12166fi
12167if test -z "$ac_cv_prog_DLLTOOL"; then
12168  ac_ct_DLLTOOL=$DLLTOOL
12169  # Extract the first word of "dlltool", so it can be a program name with args.
12170set dummy dlltool; ac_word=$2
12171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12172$as_echo_n "checking for $ac_word... " >&6; }
12173if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12174  $as_echo_n "(cached) " >&6
12175else
12176  if test -n "$ac_ct_DLLTOOL"; then
12177  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12178else
12179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180for as_dir in $PATH
12181do
12182  IFS=$as_save_IFS
12183  test -z "$as_dir" && as_dir=.
12184    for ac_exec_ext in '' $ac_executable_extensions; do
12185  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12186    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12188    break 2
12189  fi
12190done
12191  done
12192IFS=$as_save_IFS
12193
12194fi
12195fi
12196ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12197if test -n "$ac_ct_DLLTOOL"; then
12198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12199$as_echo "$ac_ct_DLLTOOL" >&6; }
12200else
12201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202$as_echo "no" >&6; }
12203fi
12204
12205  if test "x$ac_ct_DLLTOOL" = x; then
12206    DLLTOOL="false"
12207  else
12208    case $cross_compiling:$ac_tool_warned in
12209yes:)
12210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12212ac_tool_warned=yes ;;
12213esac
12214    DLLTOOL=$ac_ct_DLLTOOL
12215  fi
12216else
12217  DLLTOOL="$ac_cv_prog_DLLTOOL"
12218fi
12219
12220test -z "$DLLTOOL" && DLLTOOL=dlltool
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12232$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12233if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12234  $as_echo_n "(cached) " >&6
12235else
12236  lt_cv_sharedlib_from_linklib_cmd='unknown'
12237
12238case $host_os in
12239cygwin* | mingw* | pw32* | cegcc*)
12240  # two different shell functions defined in ltmain.sh;
12241  # decide which one to use based on capabilities of $DLLTOOL
12242  case `$DLLTOOL --help 2>&1` in
12243  *--identify-strict*)
12244    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12245    ;;
12246  *)
12247    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12248    ;;
12249  esac
12250  ;;
12251*)
12252  # fallback: assume linklib IS sharedlib
12253  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12254  ;;
12255esac
12256
12257fi
12258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12259$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12260sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12261test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12262
12263
12264
12265
12266
12267
12268
12269if test -n "$ac_tool_prefix"; then
12270  for ac_prog in ar
12271  do
12272    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12273set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12275$as_echo_n "checking for $ac_word... " >&6; }
12276if ${ac_cv_prog_AR+:} false; then :
12277  $as_echo_n "(cached) " >&6
12278else
12279  if test -n "$AR"; then
12280  ac_cv_prog_AR="$AR" # Let the user override the test.
12281else
12282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12283for as_dir in $PATH
12284do
12285  IFS=$as_save_IFS
12286  test -z "$as_dir" && as_dir=.
12287    for ac_exec_ext in '' $ac_executable_extensions; do
12288  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12289    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12291    break 2
12292  fi
12293done
12294  done
12295IFS=$as_save_IFS
12296
12297fi
12298fi
12299AR=$ac_cv_prog_AR
12300if test -n "$AR"; then
12301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12302$as_echo "$AR" >&6; }
12303else
12304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12305$as_echo "no" >&6; }
12306fi
12307
12308
12309    test -n "$AR" && break
12310  done
12311fi
12312if test -z "$AR"; then
12313  ac_ct_AR=$AR
12314  for ac_prog in ar
12315do
12316  # Extract the first word of "$ac_prog", so it can be a program name with args.
12317set dummy $ac_prog; ac_word=$2
12318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12319$as_echo_n "checking for $ac_word... " >&6; }
12320if ${ac_cv_prog_ac_ct_AR+:} false; then :
12321  $as_echo_n "(cached) " >&6
12322else
12323  if test -n "$ac_ct_AR"; then
12324  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12325else
12326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12327for as_dir in $PATH
12328do
12329  IFS=$as_save_IFS
12330  test -z "$as_dir" && as_dir=.
12331    for ac_exec_ext in '' $ac_executable_extensions; do
12332  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12333    ac_cv_prog_ac_ct_AR="$ac_prog"
12334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12335    break 2
12336  fi
12337done
12338  done
12339IFS=$as_save_IFS
12340
12341fi
12342fi
12343ac_ct_AR=$ac_cv_prog_ac_ct_AR
12344if test -n "$ac_ct_AR"; then
12345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12346$as_echo "$ac_ct_AR" >&6; }
12347else
12348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12349$as_echo "no" >&6; }
12350fi
12351
12352
12353  test -n "$ac_ct_AR" && break
12354done
12355
12356  if test "x$ac_ct_AR" = x; then
12357    AR="false"
12358  else
12359    case $cross_compiling:$ac_tool_warned in
12360yes:)
12361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12363ac_tool_warned=yes ;;
12364esac
12365    AR=$ac_ct_AR
12366  fi
12367fi
12368
12369: ${AR=ar}
12370: ${AR_FLAGS=cru}
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12383$as_echo_n "checking for archiver @FILE support... " >&6; }
12384if ${lt_cv_ar_at_file+:} false; then :
12385  $as_echo_n "(cached) " >&6
12386else
12387  lt_cv_ar_at_file=no
12388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12389/* end confdefs.h.  */
12390
12391int
12392main ()
12393{
12394
12395  ;
12396  return 0;
12397}
12398_ACEOF
12399if ac_fn_c_try_compile "$LINENO"; then :
12400  echo conftest.$ac_objext > conftest.lst
12401      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12402      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12403  (eval $lt_ar_try) 2>&5
12404  ac_status=$?
12405  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12406  test $ac_status = 0; }
12407      if test 0 -eq "$ac_status"; then
12408	# Ensure the archiver fails upon bogus file names.
12409	rm -f conftest.$ac_objext libconftest.a
12410	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12411  (eval $lt_ar_try) 2>&5
12412  ac_status=$?
12413  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12414  test $ac_status = 0; }
12415	if test 0 -ne "$ac_status"; then
12416          lt_cv_ar_at_file=@
12417        fi
12418      fi
12419      rm -f conftest.* libconftest.a
12420
12421fi
12422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12423
12424fi
12425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12426$as_echo "$lt_cv_ar_at_file" >&6; }
12427
12428if test no = "$lt_cv_ar_at_file"; then
12429  archiver_list_spec=
12430else
12431  archiver_list_spec=$lt_cv_ar_at_file
12432fi
12433
12434
12435
12436
12437
12438
12439
12440if test -n "$ac_tool_prefix"; then
12441  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12442set dummy ${ac_tool_prefix}strip; ac_word=$2
12443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12444$as_echo_n "checking for $ac_word... " >&6; }
12445if ${ac_cv_prog_STRIP+:} false; then :
12446  $as_echo_n "(cached) " >&6
12447else
12448  if test -n "$STRIP"; then
12449  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12450else
12451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12452for as_dir in $PATH
12453do
12454  IFS=$as_save_IFS
12455  test -z "$as_dir" && as_dir=.
12456    for ac_exec_ext in '' $ac_executable_extensions; do
12457  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12458    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12459    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12460    break 2
12461  fi
12462done
12463  done
12464IFS=$as_save_IFS
12465
12466fi
12467fi
12468STRIP=$ac_cv_prog_STRIP
12469if test -n "$STRIP"; then
12470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12471$as_echo "$STRIP" >&6; }
12472else
12473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12474$as_echo "no" >&6; }
12475fi
12476
12477
12478fi
12479if test -z "$ac_cv_prog_STRIP"; then
12480  ac_ct_STRIP=$STRIP
12481  # Extract the first word of "strip", so it can be a program name with args.
12482set dummy strip; ac_word=$2
12483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12484$as_echo_n "checking for $ac_word... " >&6; }
12485if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12486  $as_echo_n "(cached) " >&6
12487else
12488  if test -n "$ac_ct_STRIP"; then
12489  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12490else
12491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12492for as_dir in $PATH
12493do
12494  IFS=$as_save_IFS
12495  test -z "$as_dir" && as_dir=.
12496    for ac_exec_ext in '' $ac_executable_extensions; do
12497  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12498    ac_cv_prog_ac_ct_STRIP="strip"
12499    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12500    break 2
12501  fi
12502done
12503  done
12504IFS=$as_save_IFS
12505
12506fi
12507fi
12508ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12509if test -n "$ac_ct_STRIP"; then
12510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12511$as_echo "$ac_ct_STRIP" >&6; }
12512else
12513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12514$as_echo "no" >&6; }
12515fi
12516
12517  if test "x$ac_ct_STRIP" = x; then
12518    STRIP=":"
12519  else
12520    case $cross_compiling:$ac_tool_warned in
12521yes:)
12522{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12523$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12524ac_tool_warned=yes ;;
12525esac
12526    STRIP=$ac_ct_STRIP
12527  fi
12528else
12529  STRIP="$ac_cv_prog_STRIP"
12530fi
12531
12532test -z "$STRIP" && STRIP=:
12533
12534
12535
12536
12537
12538
12539if test -n "$ac_tool_prefix"; then
12540  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12541set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12543$as_echo_n "checking for $ac_word... " >&6; }
12544if ${ac_cv_prog_RANLIB+:} false; then :
12545  $as_echo_n "(cached) " >&6
12546else
12547  if test -n "$RANLIB"; then
12548  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12549else
12550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12551for as_dir in $PATH
12552do
12553  IFS=$as_save_IFS
12554  test -z "$as_dir" && as_dir=.
12555    for ac_exec_ext in '' $ac_executable_extensions; do
12556  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12557    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12558    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12559    break 2
12560  fi
12561done
12562  done
12563IFS=$as_save_IFS
12564
12565fi
12566fi
12567RANLIB=$ac_cv_prog_RANLIB
12568if test -n "$RANLIB"; then
12569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12570$as_echo "$RANLIB" >&6; }
12571else
12572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12573$as_echo "no" >&6; }
12574fi
12575
12576
12577fi
12578if test -z "$ac_cv_prog_RANLIB"; then
12579  ac_ct_RANLIB=$RANLIB
12580  # Extract the first word of "ranlib", so it can be a program name with args.
12581set dummy ranlib; ac_word=$2
12582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12583$as_echo_n "checking for $ac_word... " >&6; }
12584if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12585  $as_echo_n "(cached) " >&6
12586else
12587  if test -n "$ac_ct_RANLIB"; then
12588  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12589else
12590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12591for as_dir in $PATH
12592do
12593  IFS=$as_save_IFS
12594  test -z "$as_dir" && as_dir=.
12595    for ac_exec_ext in '' $ac_executable_extensions; do
12596  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12597    ac_cv_prog_ac_ct_RANLIB="ranlib"
12598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12599    break 2
12600  fi
12601done
12602  done
12603IFS=$as_save_IFS
12604
12605fi
12606fi
12607ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12608if test -n "$ac_ct_RANLIB"; then
12609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12610$as_echo "$ac_ct_RANLIB" >&6; }
12611else
12612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12613$as_echo "no" >&6; }
12614fi
12615
12616  if test "x$ac_ct_RANLIB" = x; then
12617    RANLIB=":"
12618  else
12619    case $cross_compiling:$ac_tool_warned in
12620yes:)
12621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12623ac_tool_warned=yes ;;
12624esac
12625    RANLIB=$ac_ct_RANLIB
12626  fi
12627else
12628  RANLIB="$ac_cv_prog_RANLIB"
12629fi
12630
12631test -z "$RANLIB" && RANLIB=:
12632
12633
12634
12635
12636
12637
12638# Determine commands to create old-style static archives.
12639old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12640old_postinstall_cmds='chmod 644 $oldlib'
12641old_postuninstall_cmds=
12642
12643if test -n "$RANLIB"; then
12644  case $host_os in
12645  bitrig* | openbsd*)
12646    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12647    ;;
12648  *)
12649    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12650    ;;
12651  esac
12652  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12653fi
12654
12655case $host_os in
12656  darwin*)
12657    lock_old_archive_extraction=yes ;;
12658  *)
12659    lock_old_archive_extraction=no ;;
12660esac
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700# If no C compiler was specified, use CC.
12701LTCC=${LTCC-"$CC"}
12702
12703# If no C compiler flags were specified, use CFLAGS.
12704LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12705
12706# Allow CC to be a program name with arguments.
12707compiler=$CC
12708
12709
12710# Check for command to grab the raw symbol name followed by C symbol from nm.
12711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12712$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12713if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12714  $as_echo_n "(cached) " >&6
12715else
12716
12717# These are sane defaults that work on at least a few old systems.
12718# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12719
12720# Character class describing NM global symbol codes.
12721symcode='[BCDEGRST]'
12722
12723# Regexp to match symbols that can be accessed directly from C.
12724sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12725
12726# Define system-specific variables.
12727case $host_os in
12728aix*)
12729  symcode='[BCDT]'
12730  ;;
12731cygwin* | mingw* | pw32* | cegcc*)
12732  symcode='[ABCDGISTW]'
12733  ;;
12734hpux*)
12735  if test ia64 = "$host_cpu"; then
12736    symcode='[ABCDEGRST]'
12737  fi
12738  ;;
12739irix* | nonstopux*)
12740  symcode='[BCDEGRST]'
12741  ;;
12742osf*)
12743  symcode='[BCDEGQRST]'
12744  ;;
12745solaris*)
12746  symcode='[BDRT]'
12747  ;;
12748sco3.2v5*)
12749  symcode='[DT]'
12750  ;;
12751sysv4.2uw2*)
12752  symcode='[DT]'
12753  ;;
12754sysv5* | sco5v6* | unixware* | OpenUNIX*)
12755  symcode='[ABDT]'
12756  ;;
12757sysv4)
12758  symcode='[DFNSTU]'
12759  ;;
12760esac
12761
12762# If we're using GNU nm, then use its standard symbol codes.
12763case `$NM -V 2>&1` in
12764*GNU* | *'with BFD'*)
12765  symcode='[ABCDGIRSTW]' ;;
12766esac
12767
12768if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12769  # Gets list of data symbols to import.
12770  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12771  # Adjust the below global symbol transforms to fixup imported variables.
12772  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12773  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
12774  lt_c_name_lib_hook="\
12775  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
12776  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
12777else
12778  # Disable hooks by default.
12779  lt_cv_sys_global_symbol_to_import=
12780  lt_cdecl_hook=
12781  lt_c_name_hook=
12782  lt_c_name_lib_hook=
12783fi
12784
12785# Transform an extracted symbol line into a proper C declaration.
12786# Some systems (esp. on ia64) link data and code symbols differently,
12787# so use this general approach.
12788lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12789$lt_cdecl_hook\
12790" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12791" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12792
12793# Transform an extracted symbol line into symbol name and symbol address
12794lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12795$lt_c_name_hook\
12796" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12797" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
12798
12799# Transform an extracted symbol line into symbol name with lib prefix and
12800# symbol address.
12801lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12802$lt_c_name_lib_hook\
12803" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12804" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
12805" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
12806
12807# Handle CRLF in mingw tool chain
12808opt_cr=
12809case $build_os in
12810mingw*)
12811  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12812  ;;
12813esac
12814
12815# Try without a prefix underscore, then with it.
12816for ac_symprfx in "" "_"; do
12817
12818  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12819  symxfrm="\\1 $ac_symprfx\\2 \\2"
12820
12821  # Write the raw and C identifiers.
12822  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12823    # Fake it for dumpbin and say T for any non-static function,
12824    # D for any global variable and I for any imported variable.
12825    # Also find C++ and __fastcall symbols from MSVC++,
12826    # which start with @ or ?.
12827    lt_cv_sys_global_symbol_pipe="$AWK '"\
12828"     {last_section=section; section=\$ 3};"\
12829"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12830"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12831"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12832"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12833"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12834"     \$ 0!~/External *\|/{next};"\
12835"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12836"     {if(hide[section]) next};"\
12837"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12838"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12839"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12840"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12841"     ' prfx=^$ac_symprfx"
12842  else
12843    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12844  fi
12845  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12846
12847  # Check to see that the pipe works correctly.
12848  pipe_works=no
12849
12850  rm -f conftest*
12851  cat > conftest.$ac_ext <<_LT_EOF
12852#ifdef __cplusplus
12853extern "C" {
12854#endif
12855char nm_test_var;
12856void nm_test_func(void);
12857void nm_test_func(void){}
12858#ifdef __cplusplus
12859}
12860#endif
12861int main(){nm_test_var='a';nm_test_func();return(0);}
12862_LT_EOF
12863
12864  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12865  (eval $ac_compile) 2>&5
12866  ac_status=$?
12867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12868  test $ac_status = 0; }; then
12869    # Now try to grab the symbols.
12870    nlist=conftest.nm
12871    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12872  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12873  ac_status=$?
12874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12875  test $ac_status = 0; } && test -s "$nlist"; then
12876      # Try sorting and uniquifying the output.
12877      if sort "$nlist" | uniq > "$nlist"T; then
12878	mv -f "$nlist"T "$nlist"
12879      else
12880	rm -f "$nlist"T
12881      fi
12882
12883      # Make sure that we snagged all the symbols we need.
12884      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12885	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12886	  cat <<_LT_EOF > conftest.$ac_ext
12887/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12888#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12889/* DATA imports from DLLs on WIN32 can't be const, because runtime
12890   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12891# define LT_DLSYM_CONST
12892#elif defined __osf__
12893/* This system does not cope well with relocations in const data.  */
12894# define LT_DLSYM_CONST
12895#else
12896# define LT_DLSYM_CONST const
12897#endif
12898
12899#ifdef __cplusplus
12900extern "C" {
12901#endif
12902
12903_LT_EOF
12904	  # Now generate the symbol file.
12905	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12906
12907	  cat <<_LT_EOF >> conftest.$ac_ext
12908
12909/* The mapping between symbol names and symbols.  */
12910LT_DLSYM_CONST struct {
12911  const char *name;
12912  void       *address;
12913}
12914lt__PROGRAM__LTX_preloaded_symbols[] =
12915{
12916  { "@PROGRAM@", (void *) 0 },
12917_LT_EOF
12918	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12919	  cat <<\_LT_EOF >> conftest.$ac_ext
12920  {0, (void *) 0}
12921};
12922
12923/* This works around a problem in FreeBSD linker */
12924#ifdef FREEBSD_WORKAROUND
12925static const void *lt_preloaded_setup() {
12926  return lt__PROGRAM__LTX_preloaded_symbols;
12927}
12928#endif
12929
12930#ifdef __cplusplus
12931}
12932#endif
12933_LT_EOF
12934	  # Now try linking the two files.
12935	  mv conftest.$ac_objext conftstm.$ac_objext
12936	  lt_globsym_save_LIBS=$LIBS
12937	  lt_globsym_save_CFLAGS=$CFLAGS
12938	  LIBS=conftstm.$ac_objext
12939	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12940	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12941  (eval $ac_link) 2>&5
12942  ac_status=$?
12943  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12944  test $ac_status = 0; } && test -s conftest$ac_exeext; then
12945	    pipe_works=yes
12946	  fi
12947	  LIBS=$lt_globsym_save_LIBS
12948	  CFLAGS=$lt_globsym_save_CFLAGS
12949	else
12950	  echo "cannot find nm_test_func in $nlist" >&5
12951	fi
12952      else
12953	echo "cannot find nm_test_var in $nlist" >&5
12954      fi
12955    else
12956      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12957    fi
12958  else
12959    echo "$progname: failed program was:" >&5
12960    cat conftest.$ac_ext >&5
12961  fi
12962  rm -rf conftest* conftst*
12963
12964  # Do not use the global_symbol_pipe unless it works.
12965  if test yes = "$pipe_works"; then
12966    break
12967  else
12968    lt_cv_sys_global_symbol_pipe=
12969  fi
12970done
12971
12972fi
12973
12974if test -z "$lt_cv_sys_global_symbol_pipe"; then
12975  lt_cv_sys_global_symbol_to_cdecl=
12976fi
12977if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12979$as_echo "failed" >&6; }
12980else
12981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12982$as_echo "ok" >&6; }
12983fi
12984
12985# Response file support.
12986if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12987  nm_file_list_spec='@'
12988elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12989  nm_file_list_spec='@'
12990fi
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13029$as_echo_n "checking for sysroot... " >&6; }
13030
13031# Check whether --with-sysroot was given.
13032if test "${with_sysroot+set}" = set; then :
13033  withval=$with_sysroot;
13034else
13035  with_sysroot=no
13036fi
13037
13038
13039lt_sysroot=
13040case $with_sysroot in #(
13041 yes)
13042   if test yes = "$GCC"; then
13043     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13044   fi
13045   ;; #(
13046 /*)
13047   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13048   ;; #(
13049 no|'')
13050   ;; #(
13051 *)
13052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13053$as_echo "$with_sysroot" >&6; }
13054   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13055   ;;
13056esac
13057
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13059$as_echo "${lt_sysroot:-no}" >&6; }
13060
13061
13062
13063
13064
13065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13066$as_echo_n "checking for a working dd... " >&6; }
13067if ${ac_cv_path_lt_DD+:} false; then :
13068  $as_echo_n "(cached) " >&6
13069else
13070  printf 0123456789abcdef0123456789abcdef >conftest.i
13071cat conftest.i conftest.i >conftest2.i
13072: ${lt_DD:=$DD}
13073if test -z "$lt_DD"; then
13074  ac_path_lt_DD_found=false
13075  # Loop through the user's path and test for each of PROGNAME-LIST
13076  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13077for as_dir in $PATH
13078do
13079  IFS=$as_save_IFS
13080  test -z "$as_dir" && as_dir=.
13081    for ac_prog in dd; do
13082    for ac_exec_ext in '' $ac_executable_extensions; do
13083      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13084      as_fn_executable_p "$ac_path_lt_DD" || continue
13085if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13086  cmp -s conftest.i conftest.out \
13087  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13088fi
13089      $ac_path_lt_DD_found && break 3
13090    done
13091  done
13092  done
13093IFS=$as_save_IFS
13094  if test -z "$ac_cv_path_lt_DD"; then
13095    :
13096  fi
13097else
13098  ac_cv_path_lt_DD=$lt_DD
13099fi
13100
13101rm -f conftest.i conftest2.i conftest.out
13102fi
13103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13104$as_echo "$ac_cv_path_lt_DD" >&6; }
13105
13106
13107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13108$as_echo_n "checking how to truncate binary pipes... " >&6; }
13109if ${lt_cv_truncate_bin+:} false; then :
13110  $as_echo_n "(cached) " >&6
13111else
13112  printf 0123456789abcdef0123456789abcdef >conftest.i
13113cat conftest.i conftest.i >conftest2.i
13114lt_cv_truncate_bin=
13115if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13116  cmp -s conftest.i conftest.out \
13117  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13118fi
13119rm -f conftest.i conftest2.i conftest.out
13120test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13121fi
13122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13123$as_echo "$lt_cv_truncate_bin" >&6; }
13124
13125
13126
13127
13128
13129
13130
13131# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
13132func_cc_basename ()
13133{
13134    for cc_temp in $*""; do
13135      case $cc_temp in
13136        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13137        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13138        \-*) ;;
13139        *) break;;
13140      esac
13141    done
13142    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13143}
13144
13145# Check whether --enable-libtool-lock was given.
13146if test "${enable_libtool_lock+set}" = set; then :
13147  enableval=$enable_libtool_lock;
13148fi
13149
13150test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13151
13152# Some flags need to be propagated to the compiler or linker for good
13153# libtool support.
13154case $host in
13155ia64-*-hpux*)
13156  # Find out what ABI is being produced by ac_compile, and set mode
13157  # options accordingly.
13158  echo 'int i;' > conftest.$ac_ext
13159  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13160  (eval $ac_compile) 2>&5
13161  ac_status=$?
13162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13163  test $ac_status = 0; }; then
13164    case `/usr/bin/file conftest.$ac_objext` in
13165      *ELF-32*)
13166	HPUX_IA64_MODE=32
13167	;;
13168      *ELF-64*)
13169	HPUX_IA64_MODE=64
13170	;;
13171    esac
13172  fi
13173  rm -rf conftest*
13174  ;;
13175*-*-irix6*)
13176  # Find out what ABI is being produced by ac_compile, and set linker
13177  # options accordingly.
13178  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13179  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13180  (eval $ac_compile) 2>&5
13181  ac_status=$?
13182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13183  test $ac_status = 0; }; then
13184    if test yes = "$lt_cv_prog_gnu_ld"; then
13185      case `/usr/bin/file conftest.$ac_objext` in
13186	*32-bit*)
13187	  LD="${LD-ld} -melf32bsmip"
13188	  ;;
13189	*N32*)
13190	  LD="${LD-ld} -melf32bmipn32"
13191	  ;;
13192	*64-bit*)
13193	  LD="${LD-ld} -melf64bmip"
13194	;;
13195      esac
13196    else
13197      case `/usr/bin/file conftest.$ac_objext` in
13198	*32-bit*)
13199	  LD="${LD-ld} -32"
13200	  ;;
13201	*N32*)
13202	  LD="${LD-ld} -n32"
13203	  ;;
13204	*64-bit*)
13205	  LD="${LD-ld} -64"
13206	  ;;
13207      esac
13208    fi
13209  fi
13210  rm -rf conftest*
13211  ;;
13212
13213mips64*-*linux*)
13214  # Find out what ABI is being produced by ac_compile, and set linker
13215  # options accordingly.
13216  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13217  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13218  (eval $ac_compile) 2>&5
13219  ac_status=$?
13220  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13221  test $ac_status = 0; }; then
13222    emul=elf
13223    case `/usr/bin/file conftest.$ac_objext` in
13224      *32-bit*)
13225	emul="${emul}32"
13226	;;
13227      *64-bit*)
13228	emul="${emul}64"
13229	;;
13230    esac
13231    case `/usr/bin/file conftest.$ac_objext` in
13232      *MSB*)
13233	emul="${emul}btsmip"
13234	;;
13235      *LSB*)
13236	emul="${emul}ltsmip"
13237	;;
13238    esac
13239    case `/usr/bin/file conftest.$ac_objext` in
13240      *N32*)
13241	emul="${emul}n32"
13242	;;
13243    esac
13244    LD="${LD-ld} -m $emul"
13245  fi
13246  rm -rf conftest*
13247  ;;
13248
13249x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13250s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13251  # Find out what ABI is being produced by ac_compile, and set linker
13252  # options accordingly.  Note that the listed cases only cover the
13253  # situations where additional linker options are needed (such as when
13254  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13255  # vice versa); the common cases where no linker options are needed do
13256  # not appear in the list.
13257  echo 'int i;' > conftest.$ac_ext
13258  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13259  (eval $ac_compile) 2>&5
13260  ac_status=$?
13261  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13262  test $ac_status = 0; }; then
13263    case `/usr/bin/file conftest.o` in
13264      *32-bit*)
13265	case $host in
13266	  x86_64-*kfreebsd*-gnu)
13267	    LD="${LD-ld} -m elf_i386_fbsd"
13268	    ;;
13269	  x86_64-*linux*)
13270	    case `/usr/bin/file conftest.o` in
13271	      *x86-64*)
13272		LD="${LD-ld} -m elf32_x86_64"
13273		;;
13274	      *)
13275		LD="${LD-ld} -m elf_i386"
13276		;;
13277	    esac
13278	    ;;
13279	  powerpc64le-*linux*)
13280	    LD="${LD-ld} -m elf32lppclinux"
13281	    ;;
13282	  powerpc64-*linux*)
13283	    LD="${LD-ld} -m elf32ppclinux"
13284	    ;;
13285	  s390x-*linux*)
13286	    LD="${LD-ld} -m elf_s390"
13287	    ;;
13288	  sparc64-*linux*)
13289	    LD="${LD-ld} -m elf32_sparc"
13290	    ;;
13291	esac
13292	;;
13293      *64-bit*)
13294	case $host in
13295	  x86_64-*kfreebsd*-gnu)
13296	    LD="${LD-ld} -m elf_x86_64_fbsd"
13297	    ;;
13298	  x86_64-*linux*)
13299	    LD="${LD-ld} -m elf_x86_64"
13300	    ;;
13301	  powerpcle-*linux*)
13302	    LD="${LD-ld} -m elf64lppc"
13303	    ;;
13304	  powerpc-*linux*)
13305	    LD="${LD-ld} -m elf64ppc"
13306	    ;;
13307	  s390*-*linux*|s390*-*tpf*)
13308	    LD="${LD-ld} -m elf64_s390"
13309	    ;;
13310	  sparc*-*linux*)
13311	    LD="${LD-ld} -m elf64_sparc"
13312	    ;;
13313	esac
13314	;;
13315    esac
13316  fi
13317  rm -rf conftest*
13318  ;;
13319
13320*-*-sco3.2v5*)
13321  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13322  SAVE_CFLAGS=$CFLAGS
13323  CFLAGS="$CFLAGS -belf"
13324  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13325$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13326if ${lt_cv_cc_needs_belf+:} false; then :
13327  $as_echo_n "(cached) " >&6
13328else
13329  ac_ext=c
13330ac_cpp='$CPP $CPPFLAGS'
13331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13333ac_compiler_gnu=$ac_cv_c_compiler_gnu
13334
13335     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336/* end confdefs.h.  */
13337
13338int
13339main ()
13340{
13341
13342  ;
13343  return 0;
13344}
13345_ACEOF
13346if ac_fn_c_try_link "$LINENO"; then :
13347  lt_cv_cc_needs_belf=yes
13348else
13349  lt_cv_cc_needs_belf=no
13350fi
13351rm -f core conftest.err conftest.$ac_objext \
13352    conftest$ac_exeext conftest.$ac_ext
13353     ac_ext=c
13354ac_cpp='$CPP $CPPFLAGS'
13355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13357ac_compiler_gnu=$ac_cv_c_compiler_gnu
13358
13359fi
13360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13361$as_echo "$lt_cv_cc_needs_belf" >&6; }
13362  if test yes != "$lt_cv_cc_needs_belf"; then
13363    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13364    CFLAGS=$SAVE_CFLAGS
13365  fi
13366  ;;
13367*-*solaris*)
13368  # Find out what ABI is being produced by ac_compile, and set linker
13369  # options accordingly.
13370  echo 'int i;' > conftest.$ac_ext
13371  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13372  (eval $ac_compile) 2>&5
13373  ac_status=$?
13374  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13375  test $ac_status = 0; }; then
13376    case `/usr/bin/file conftest.o` in
13377    *64-bit*)
13378      case $lt_cv_prog_gnu_ld in
13379      yes*)
13380        case $host in
13381        i?86-*-solaris*|x86_64-*-solaris*)
13382          LD="${LD-ld} -m elf_x86_64"
13383          ;;
13384        sparc*-*-solaris*)
13385          LD="${LD-ld} -m elf64_sparc"
13386          ;;
13387        esac
13388        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13389        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13390          LD=${LD-ld}_sol2
13391        fi
13392        ;;
13393      *)
13394	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13395	  LD="${LD-ld} -64"
13396	fi
13397	;;
13398      esac
13399      ;;
13400    esac
13401  fi
13402  rm -rf conftest*
13403  ;;
13404esac
13405
13406need_locks=$enable_libtool_lock
13407
13408if test -n "$ac_tool_prefix"; then
13409  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13410set dummy ${ac_tool_prefix}mt; ac_word=$2
13411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13412$as_echo_n "checking for $ac_word... " >&6; }
13413if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13414  $as_echo_n "(cached) " >&6
13415else
13416  if test -n "$MANIFEST_TOOL"; then
13417  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13418else
13419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13420for as_dir in $PATH
13421do
13422  IFS=$as_save_IFS
13423  test -z "$as_dir" && as_dir=.
13424    for ac_exec_ext in '' $ac_executable_extensions; do
13425  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13426    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13427    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13428    break 2
13429  fi
13430done
13431  done
13432IFS=$as_save_IFS
13433
13434fi
13435fi
13436MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13437if test -n "$MANIFEST_TOOL"; then
13438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13439$as_echo "$MANIFEST_TOOL" >&6; }
13440else
13441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13442$as_echo "no" >&6; }
13443fi
13444
13445
13446fi
13447if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13448  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13449  # Extract the first word of "mt", so it can be a program name with args.
13450set dummy mt; ac_word=$2
13451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13452$as_echo_n "checking for $ac_word... " >&6; }
13453if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13454  $as_echo_n "(cached) " >&6
13455else
13456  if test -n "$ac_ct_MANIFEST_TOOL"; then
13457  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13458else
13459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13460for as_dir in $PATH
13461do
13462  IFS=$as_save_IFS
13463  test -z "$as_dir" && as_dir=.
13464    for ac_exec_ext in '' $ac_executable_extensions; do
13465  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13466    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13467    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13468    break 2
13469  fi
13470done
13471  done
13472IFS=$as_save_IFS
13473
13474fi
13475fi
13476ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13477if test -n "$ac_ct_MANIFEST_TOOL"; then
13478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13479$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13480else
13481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13482$as_echo "no" >&6; }
13483fi
13484
13485  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13486    MANIFEST_TOOL=":"
13487  else
13488    case $cross_compiling:$ac_tool_warned in
13489yes:)
13490{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13492ac_tool_warned=yes ;;
13493esac
13494    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13495  fi
13496else
13497  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13498fi
13499
13500test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13502$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13503if ${lt_cv_path_mainfest_tool+:} false; then :
13504  $as_echo_n "(cached) " >&6
13505else
13506  lt_cv_path_mainfest_tool=no
13507  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13508  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13509  cat conftest.err >&5
13510  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13511    lt_cv_path_mainfest_tool=yes
13512  fi
13513  rm -f conftest*
13514fi
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13516$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13517if test yes != "$lt_cv_path_mainfest_tool"; then
13518  MANIFEST_TOOL=:
13519fi
13520
13521
13522
13523
13524
13525
13526  case $host_os in
13527    rhapsody* | darwin*)
13528    if test -n "$ac_tool_prefix"; then
13529  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13530set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13532$as_echo_n "checking for $ac_word... " >&6; }
13533if ${ac_cv_prog_DSYMUTIL+:} false; then :
13534  $as_echo_n "(cached) " >&6
13535else
13536  if test -n "$DSYMUTIL"; then
13537  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13538else
13539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13540for as_dir in $PATH
13541do
13542  IFS=$as_save_IFS
13543  test -z "$as_dir" && as_dir=.
13544    for ac_exec_ext in '' $ac_executable_extensions; do
13545  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13546    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13547    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13548    break 2
13549  fi
13550done
13551  done
13552IFS=$as_save_IFS
13553
13554fi
13555fi
13556DSYMUTIL=$ac_cv_prog_DSYMUTIL
13557if test -n "$DSYMUTIL"; then
13558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13559$as_echo "$DSYMUTIL" >&6; }
13560else
13561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13562$as_echo "no" >&6; }
13563fi
13564
13565
13566fi
13567if test -z "$ac_cv_prog_DSYMUTIL"; then
13568  ac_ct_DSYMUTIL=$DSYMUTIL
13569  # Extract the first word of "dsymutil", so it can be a program name with args.
13570set dummy dsymutil; ac_word=$2
13571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13572$as_echo_n "checking for $ac_word... " >&6; }
13573if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13574  $as_echo_n "(cached) " >&6
13575else
13576  if test -n "$ac_ct_DSYMUTIL"; then
13577  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13578else
13579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13580for as_dir in $PATH
13581do
13582  IFS=$as_save_IFS
13583  test -z "$as_dir" && as_dir=.
13584    for ac_exec_ext in '' $ac_executable_extensions; do
13585  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13586    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13587    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13588    break 2
13589  fi
13590done
13591  done
13592IFS=$as_save_IFS
13593
13594fi
13595fi
13596ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13597if test -n "$ac_ct_DSYMUTIL"; then
13598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13599$as_echo "$ac_ct_DSYMUTIL" >&6; }
13600else
13601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13602$as_echo "no" >&6; }
13603fi
13604
13605  if test "x$ac_ct_DSYMUTIL" = x; then
13606    DSYMUTIL=":"
13607  else
13608    case $cross_compiling:$ac_tool_warned in
13609yes:)
13610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13612ac_tool_warned=yes ;;
13613esac
13614    DSYMUTIL=$ac_ct_DSYMUTIL
13615  fi
13616else
13617  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13618fi
13619
13620    if test -n "$ac_tool_prefix"; then
13621  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13622set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13624$as_echo_n "checking for $ac_word... " >&6; }
13625if ${ac_cv_prog_NMEDIT+:} false; then :
13626  $as_echo_n "(cached) " >&6
13627else
13628  if test -n "$NMEDIT"; then
13629  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13630else
13631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13632for as_dir in $PATH
13633do
13634  IFS=$as_save_IFS
13635  test -z "$as_dir" && as_dir=.
13636    for ac_exec_ext in '' $ac_executable_extensions; do
13637  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13638    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13639    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13640    break 2
13641  fi
13642done
13643  done
13644IFS=$as_save_IFS
13645
13646fi
13647fi
13648NMEDIT=$ac_cv_prog_NMEDIT
13649if test -n "$NMEDIT"; then
13650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13651$as_echo "$NMEDIT" >&6; }
13652else
13653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13654$as_echo "no" >&6; }
13655fi
13656
13657
13658fi
13659if test -z "$ac_cv_prog_NMEDIT"; then
13660  ac_ct_NMEDIT=$NMEDIT
13661  # Extract the first word of "nmedit", so it can be a program name with args.
13662set dummy nmedit; ac_word=$2
13663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13664$as_echo_n "checking for $ac_word... " >&6; }
13665if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13666  $as_echo_n "(cached) " >&6
13667else
13668  if test -n "$ac_ct_NMEDIT"; then
13669  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13670else
13671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13672for as_dir in $PATH
13673do
13674  IFS=$as_save_IFS
13675  test -z "$as_dir" && as_dir=.
13676    for ac_exec_ext in '' $ac_executable_extensions; do
13677  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13678    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13680    break 2
13681  fi
13682done
13683  done
13684IFS=$as_save_IFS
13685
13686fi
13687fi
13688ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13689if test -n "$ac_ct_NMEDIT"; then
13690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13691$as_echo "$ac_ct_NMEDIT" >&6; }
13692else
13693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13694$as_echo "no" >&6; }
13695fi
13696
13697  if test "x$ac_ct_NMEDIT" = x; then
13698    NMEDIT=":"
13699  else
13700    case $cross_compiling:$ac_tool_warned in
13701yes:)
13702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13704ac_tool_warned=yes ;;
13705esac
13706    NMEDIT=$ac_ct_NMEDIT
13707  fi
13708else
13709  NMEDIT="$ac_cv_prog_NMEDIT"
13710fi
13711
13712    if test -n "$ac_tool_prefix"; then
13713  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13714set dummy ${ac_tool_prefix}lipo; ac_word=$2
13715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13716$as_echo_n "checking for $ac_word... " >&6; }
13717if ${ac_cv_prog_LIPO+:} false; then :
13718  $as_echo_n "(cached) " >&6
13719else
13720  if test -n "$LIPO"; then
13721  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13722else
13723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13724for as_dir in $PATH
13725do
13726  IFS=$as_save_IFS
13727  test -z "$as_dir" && as_dir=.
13728    for ac_exec_ext in '' $ac_executable_extensions; do
13729  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13730    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13731    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13732    break 2
13733  fi
13734done
13735  done
13736IFS=$as_save_IFS
13737
13738fi
13739fi
13740LIPO=$ac_cv_prog_LIPO
13741if test -n "$LIPO"; then
13742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13743$as_echo "$LIPO" >&6; }
13744else
13745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13746$as_echo "no" >&6; }
13747fi
13748
13749
13750fi
13751if test -z "$ac_cv_prog_LIPO"; then
13752  ac_ct_LIPO=$LIPO
13753  # Extract the first word of "lipo", so it can be a program name with args.
13754set dummy lipo; ac_word=$2
13755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13756$as_echo_n "checking for $ac_word... " >&6; }
13757if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13758  $as_echo_n "(cached) " >&6
13759else
13760  if test -n "$ac_ct_LIPO"; then
13761  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13762else
13763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13764for as_dir in $PATH
13765do
13766  IFS=$as_save_IFS
13767  test -z "$as_dir" && as_dir=.
13768    for ac_exec_ext in '' $ac_executable_extensions; do
13769  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13770    ac_cv_prog_ac_ct_LIPO="lipo"
13771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13772    break 2
13773  fi
13774done
13775  done
13776IFS=$as_save_IFS
13777
13778fi
13779fi
13780ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13781if test -n "$ac_ct_LIPO"; then
13782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13783$as_echo "$ac_ct_LIPO" >&6; }
13784else
13785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13786$as_echo "no" >&6; }
13787fi
13788
13789  if test "x$ac_ct_LIPO" = x; then
13790    LIPO=":"
13791  else
13792    case $cross_compiling:$ac_tool_warned in
13793yes:)
13794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13796ac_tool_warned=yes ;;
13797esac
13798    LIPO=$ac_ct_LIPO
13799  fi
13800else
13801  LIPO="$ac_cv_prog_LIPO"
13802fi
13803
13804    if test -n "$ac_tool_prefix"; then
13805  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13806set dummy ${ac_tool_prefix}otool; ac_word=$2
13807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13808$as_echo_n "checking for $ac_word... " >&6; }
13809if ${ac_cv_prog_OTOOL+:} false; then :
13810  $as_echo_n "(cached) " >&6
13811else
13812  if test -n "$OTOOL"; then
13813  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13814else
13815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13816for as_dir in $PATH
13817do
13818  IFS=$as_save_IFS
13819  test -z "$as_dir" && as_dir=.
13820    for ac_exec_ext in '' $ac_executable_extensions; do
13821  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13822    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13824    break 2
13825  fi
13826done
13827  done
13828IFS=$as_save_IFS
13829
13830fi
13831fi
13832OTOOL=$ac_cv_prog_OTOOL
13833if test -n "$OTOOL"; then
13834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13835$as_echo "$OTOOL" >&6; }
13836else
13837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13838$as_echo "no" >&6; }
13839fi
13840
13841
13842fi
13843if test -z "$ac_cv_prog_OTOOL"; then
13844  ac_ct_OTOOL=$OTOOL
13845  # Extract the first word of "otool", so it can be a program name with args.
13846set dummy otool; ac_word=$2
13847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13848$as_echo_n "checking for $ac_word... " >&6; }
13849if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13850  $as_echo_n "(cached) " >&6
13851else
13852  if test -n "$ac_ct_OTOOL"; then
13853  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13854else
13855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13856for as_dir in $PATH
13857do
13858  IFS=$as_save_IFS
13859  test -z "$as_dir" && as_dir=.
13860    for ac_exec_ext in '' $ac_executable_extensions; do
13861  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13862    ac_cv_prog_ac_ct_OTOOL="otool"
13863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13864    break 2
13865  fi
13866done
13867  done
13868IFS=$as_save_IFS
13869
13870fi
13871fi
13872ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13873if test -n "$ac_ct_OTOOL"; then
13874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13875$as_echo "$ac_ct_OTOOL" >&6; }
13876else
13877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13878$as_echo "no" >&6; }
13879fi
13880
13881  if test "x$ac_ct_OTOOL" = x; then
13882    OTOOL=":"
13883  else
13884    case $cross_compiling:$ac_tool_warned in
13885yes:)
13886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13888ac_tool_warned=yes ;;
13889esac
13890    OTOOL=$ac_ct_OTOOL
13891  fi
13892else
13893  OTOOL="$ac_cv_prog_OTOOL"
13894fi
13895
13896    if test -n "$ac_tool_prefix"; then
13897  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13898set dummy ${ac_tool_prefix}otool64; ac_word=$2
13899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13900$as_echo_n "checking for $ac_word... " >&6; }
13901if ${ac_cv_prog_OTOOL64+:} false; then :
13902  $as_echo_n "(cached) " >&6
13903else
13904  if test -n "$OTOOL64"; then
13905  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13906else
13907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13908for as_dir in $PATH
13909do
13910  IFS=$as_save_IFS
13911  test -z "$as_dir" && as_dir=.
13912    for ac_exec_ext in '' $ac_executable_extensions; do
13913  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13914    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13916    break 2
13917  fi
13918done
13919  done
13920IFS=$as_save_IFS
13921
13922fi
13923fi
13924OTOOL64=$ac_cv_prog_OTOOL64
13925if test -n "$OTOOL64"; then
13926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13927$as_echo "$OTOOL64" >&6; }
13928else
13929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13930$as_echo "no" >&6; }
13931fi
13932
13933
13934fi
13935if test -z "$ac_cv_prog_OTOOL64"; then
13936  ac_ct_OTOOL64=$OTOOL64
13937  # Extract the first word of "otool64", so it can be a program name with args.
13938set dummy otool64; ac_word=$2
13939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13940$as_echo_n "checking for $ac_word... " >&6; }
13941if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13942  $as_echo_n "(cached) " >&6
13943else
13944  if test -n "$ac_ct_OTOOL64"; then
13945  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13946else
13947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13948for as_dir in $PATH
13949do
13950  IFS=$as_save_IFS
13951  test -z "$as_dir" && as_dir=.
13952    for ac_exec_ext in '' $ac_executable_extensions; do
13953  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13954    ac_cv_prog_ac_ct_OTOOL64="otool64"
13955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13956    break 2
13957  fi
13958done
13959  done
13960IFS=$as_save_IFS
13961
13962fi
13963fi
13964ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13965if test -n "$ac_ct_OTOOL64"; then
13966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13967$as_echo "$ac_ct_OTOOL64" >&6; }
13968else
13969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13970$as_echo "no" >&6; }
13971fi
13972
13973  if test "x$ac_ct_OTOOL64" = x; then
13974    OTOOL64=":"
13975  else
13976    case $cross_compiling:$ac_tool_warned in
13977yes:)
13978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13980ac_tool_warned=yes ;;
13981esac
13982    OTOOL64=$ac_ct_OTOOL64
13983  fi
13984else
13985  OTOOL64="$ac_cv_prog_OTOOL64"
13986fi
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14015$as_echo_n "checking for -single_module linker flag... " >&6; }
14016if ${lt_cv_apple_cc_single_mod+:} false; then :
14017  $as_echo_n "(cached) " >&6
14018else
14019  lt_cv_apple_cc_single_mod=no
14020      if test -z "$LT_MULTI_MODULE"; then
14021	# By default we will add the -single_module flag. You can override
14022	# by either setting the environment variable LT_MULTI_MODULE
14023	# non-empty at configure time, or by adding -multi_module to the
14024	# link flags.
14025	rm -rf libconftest.dylib*
14026	echo "int foo(void){return 1;}" > conftest.c
14027	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14028-dynamiclib -Wl,-single_module conftest.c" >&5
14029	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14030	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14031        _lt_result=$?
14032	# If there is a non-empty error log, and "single_module"
14033	# appears in it, assume the flag caused a linker warning
14034        if test -s conftest.err && $GREP single_module conftest.err; then
14035	  cat conftest.err >&5
14036	# Otherwise, if the output was created with a 0 exit code from
14037	# the compiler, it worked.
14038	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14039	  lt_cv_apple_cc_single_mod=yes
14040	else
14041	  cat conftest.err >&5
14042	fi
14043	rm -rf libconftest.dylib*
14044	rm -f conftest.*
14045      fi
14046fi
14047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14048$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14049
14050    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14051$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14052if ${lt_cv_ld_exported_symbols_list+:} false; then :
14053  $as_echo_n "(cached) " >&6
14054else
14055  lt_cv_ld_exported_symbols_list=no
14056      save_LDFLAGS=$LDFLAGS
14057      echo "_main" > conftest.sym
14058      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14059      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14060/* end confdefs.h.  */
14061
14062int
14063main ()
14064{
14065
14066  ;
14067  return 0;
14068}
14069_ACEOF
14070if ac_fn_c_try_link "$LINENO"; then :
14071  lt_cv_ld_exported_symbols_list=yes
14072else
14073  lt_cv_ld_exported_symbols_list=no
14074fi
14075rm -f core conftest.err conftest.$ac_objext \
14076    conftest$ac_exeext conftest.$ac_ext
14077	LDFLAGS=$save_LDFLAGS
14078
14079fi
14080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14081$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14082
14083    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14084$as_echo_n "checking for -force_load linker flag... " >&6; }
14085if ${lt_cv_ld_force_load+:} false; then :
14086  $as_echo_n "(cached) " >&6
14087else
14088  lt_cv_ld_force_load=no
14089      cat > conftest.c << _LT_EOF
14090int forced_loaded() { return 2;}
14091_LT_EOF
14092      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14093      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14094      echo "$AR cru libconftest.a conftest.o" >&5
14095      $AR cru libconftest.a conftest.o 2>&5
14096      echo "$RANLIB libconftest.a" >&5
14097      $RANLIB libconftest.a 2>&5
14098      cat > conftest.c << _LT_EOF
14099int main() { return 0;}
14100_LT_EOF
14101      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14102      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14103      _lt_result=$?
14104      if test -s conftest.err && $GREP force_load conftest.err; then
14105	cat conftest.err >&5
14106      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14107	lt_cv_ld_force_load=yes
14108      else
14109	cat conftest.err >&5
14110      fi
14111        rm -f conftest.err libconftest.a conftest conftest.c
14112        rm -rf conftest.dSYM
14113
14114fi
14115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14116$as_echo "$lt_cv_ld_force_load" >&6; }
14117    case $host_os in
14118    rhapsody* | darwin1.[012])
14119      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14120    darwin1.*)
14121      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14122    darwin*) # darwin 5.x on
14123      # if running on 10.5 or later, the deployment target defaults
14124      # to the OS version, if on x86, and 10.4, the deployment
14125      # target defaults to 10.4. Don't you love it?
14126      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14127	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14128	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14129	10.[012][,.]*)
14130	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14131	10.*)
14132	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14133      esac
14134    ;;
14135  esac
14136    if test yes = "$lt_cv_apple_cc_single_mod"; then
14137      _lt_dar_single_mod='$single_module'
14138    fi
14139    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14140      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14141    else
14142      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14143    fi
14144    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14145      _lt_dsymutil='~$DSYMUTIL $lib || :'
14146    else
14147      _lt_dsymutil=
14148    fi
14149    ;;
14150  esac
14151
14152# func_munge_path_list VARIABLE PATH
14153# -----------------------------------
14154# VARIABLE is name of variable containing _space_ separated list of
14155# directories to be munged by the contents of PATH, which is string
14156# having a format:
14157# "DIR[:DIR]:"
14158#       string "DIR[ DIR]" will be prepended to VARIABLE
14159# ":DIR[:DIR]"
14160#       string "DIR[ DIR]" will be appended to VARIABLE
14161# "DIRP[:DIRP]::[DIRA:]DIRA"
14162#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14163#       "DIRA[ DIRA]" will be appended to VARIABLE
14164# "DIR[:DIR]"
14165#       VARIABLE will be replaced by "DIR[ DIR]"
14166func_munge_path_list ()
14167{
14168    case x$2 in
14169    x)
14170        ;;
14171    *:)
14172        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14173        ;;
14174    x:*)
14175        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14176        ;;
14177    *::*)
14178        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14179        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14180        ;;
14181    *)
14182        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14183        ;;
14184    esac
14185}
14186
14187for ac_header in dlfcn.h
14188do :
14189  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14190"
14191if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14192  cat >>confdefs.h <<_ACEOF
14193#define HAVE_DLFCN_H 1
14194_ACEOF
14195
14196fi
14197
14198done
14199
14200
14201
14202
14203
14204# Set options
14205
14206
14207
14208        enable_dlopen=no
14209
14210
14211  enable_win32_dll=no
14212
14213
14214            # Check whether --enable-shared was given.
14215if test "${enable_shared+set}" = set; then :
14216  enableval=$enable_shared; p=${PACKAGE-default}
14217    case $enableval in
14218    yes) enable_shared=yes ;;
14219    no) enable_shared=no ;;
14220    *)
14221      enable_shared=no
14222      # Look at the argument we got.  We use all the common list separators.
14223      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14224      for pkg in $enableval; do
14225	IFS=$lt_save_ifs
14226	if test "X$pkg" = "X$p"; then
14227	  enable_shared=yes
14228	fi
14229      done
14230      IFS=$lt_save_ifs
14231      ;;
14232    esac
14233else
14234  enable_shared=yes
14235fi
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247# Check whether --with-pic was given.
14248if test "${with_pic+set}" = set; then :
14249  withval=$with_pic; lt_p=${PACKAGE-default}
14250    case $withval in
14251    yes|no) pic_mode=$withval ;;
14252    *)
14253      pic_mode=default
14254      # Look at the argument we got.  We use all the common list separators.
14255      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14256      for lt_pkg in $withval; do
14257	IFS=$lt_save_ifs
14258	if test "X$lt_pkg" = "X$lt_p"; then
14259	  pic_mode=yes
14260	fi
14261      done
14262      IFS=$lt_save_ifs
14263      ;;
14264    esac
14265else
14266  pic_mode=default
14267fi
14268
14269
14270
14271
14272
14273
14274
14275
14276  # Check whether --enable-fast-install was given.
14277if test "${enable_fast_install+set}" = set; then :
14278  enableval=$enable_fast_install; p=${PACKAGE-default}
14279    case $enableval in
14280    yes) enable_fast_install=yes ;;
14281    no) enable_fast_install=no ;;
14282    *)
14283      enable_fast_install=no
14284      # Look at the argument we got.  We use all the common list separators.
14285      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14286      for pkg in $enableval; do
14287	IFS=$lt_save_ifs
14288	if test "X$pkg" = "X$p"; then
14289	  enable_fast_install=yes
14290	fi
14291      done
14292      IFS=$lt_save_ifs
14293      ;;
14294    esac
14295else
14296  enable_fast_install=yes
14297fi
14298
14299
14300
14301
14302
14303
14304
14305
14306  shared_archive_member_spec=
14307case $host,$enable_shared in
14308power*-*-aix[5-9]*,yes)
14309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14310$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14311
14312# Check whether --with-aix-soname was given.
14313if test "${with_aix_soname+set}" = set; then :
14314  withval=$with_aix_soname; case $withval in
14315    aix|svr4|both)
14316      ;;
14317    *)
14318      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14319      ;;
14320    esac
14321    lt_cv_with_aix_soname=$with_aix_soname
14322else
14323  if ${lt_cv_with_aix_soname+:} false; then :
14324  $as_echo_n "(cached) " >&6
14325else
14326  lt_cv_with_aix_soname=aix
14327fi
14328
14329    with_aix_soname=$lt_cv_with_aix_soname
14330fi
14331
14332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14333$as_echo "$with_aix_soname" >&6; }
14334  if test aix != "$with_aix_soname"; then
14335    # For the AIX way of multilib, we name the shared archive member
14336    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14337    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14338    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14339    # the AIX toolchain works better with OBJECT_MODE set (default 32).
14340    if test 64 = "${OBJECT_MODE-32}"; then
14341      shared_archive_member_spec=shr_64
14342    else
14343      shared_archive_member_spec=shr
14344    fi
14345  fi
14346  ;;
14347*)
14348  with_aix_soname=aix
14349  ;;
14350esac
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361# This can be used to rebuild libtool when needed
14362LIBTOOL_DEPS=$ltmain
14363
14364# Always use our own libtool.
14365LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396test -z "$LN_S" && LN_S="ln -s"
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411if test -n "${ZSH_VERSION+set}"; then
14412   setopt NO_GLOB_SUBST
14413fi
14414
14415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14416$as_echo_n "checking for objdir... " >&6; }
14417if ${lt_cv_objdir+:} false; then :
14418  $as_echo_n "(cached) " >&6
14419else
14420  rm -f .libs 2>/dev/null
14421mkdir .libs 2>/dev/null
14422if test -d .libs; then
14423  lt_cv_objdir=.libs
14424else
14425  # MS-DOS does not allow filenames that begin with a dot.
14426  lt_cv_objdir=_libs
14427fi
14428rmdir .libs 2>/dev/null
14429fi
14430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14431$as_echo "$lt_cv_objdir" >&6; }
14432objdir=$lt_cv_objdir
14433
14434
14435
14436
14437
14438cat >>confdefs.h <<_ACEOF
14439#define LT_OBJDIR "$lt_cv_objdir/"
14440_ACEOF
14441
14442
14443
14444
14445case $host_os in
14446aix3*)
14447  # AIX sometimes has problems with the GCC collect2 program.  For some
14448  # reason, if we set the COLLECT_NAMES environment variable, the problems
14449  # vanish in a puff of smoke.
14450  if test set != "${COLLECT_NAMES+set}"; then
14451    COLLECT_NAMES=
14452    export COLLECT_NAMES
14453  fi
14454  ;;
14455esac
14456
14457# Global variables:
14458ofile=libtool
14459can_build_shared=yes
14460
14461# All known linkers require a '.a' archive for static linking (except MSVC,
14462# which needs '.lib').
14463libext=a
14464
14465with_gnu_ld=$lt_cv_prog_gnu_ld
14466
14467old_CC=$CC
14468old_CFLAGS=$CFLAGS
14469
14470# Set sane defaults for various variables
14471test -z "$CC" && CC=cc
14472test -z "$LTCC" && LTCC=$CC
14473test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14474test -z "$LD" && LD=ld
14475test -z "$ac_objext" && ac_objext=o
14476
14477func_cc_basename $compiler
14478cc_basename=$func_cc_basename_result
14479
14480
14481# Only perform the check for file, if the check method requires it
14482test -z "$MAGIC_CMD" && MAGIC_CMD=file
14483case $deplibs_check_method in
14484file_magic*)
14485  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14486    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14487$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14488if ${lt_cv_path_MAGIC_CMD+:} false; then :
14489  $as_echo_n "(cached) " >&6
14490else
14491  case $MAGIC_CMD in
14492[\\/*] |  ?:[\\/]*)
14493  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14494  ;;
14495*)
14496  lt_save_MAGIC_CMD=$MAGIC_CMD
14497  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14498  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14499  for ac_dir in $ac_dummy; do
14500    IFS=$lt_save_ifs
14501    test -z "$ac_dir" && ac_dir=.
14502    if test -f "$ac_dir/${ac_tool_prefix}file"; then
14503      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14504      if test -n "$file_magic_test_file"; then
14505	case $deplibs_check_method in
14506	"file_magic "*)
14507	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14508	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14509	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14510	    $EGREP "$file_magic_regex" > /dev/null; then
14511	    :
14512	  else
14513	    cat <<_LT_EOF 1>&2
14514
14515*** Warning: the command libtool uses to detect shared libraries,
14516*** $file_magic_cmd, produces output that libtool cannot recognize.
14517*** The result is that libtool may fail to recognize shared libraries
14518*** as such.  This will affect the creation of libtool libraries that
14519*** depend on shared libraries, but programs linked with such libtool
14520*** libraries will work regardless of this problem.  Nevertheless, you
14521*** may want to report the problem to your system manager and/or to
14522*** bug-libtool@gnu.org
14523
14524_LT_EOF
14525	  fi ;;
14526	esac
14527      fi
14528      break
14529    fi
14530  done
14531  IFS=$lt_save_ifs
14532  MAGIC_CMD=$lt_save_MAGIC_CMD
14533  ;;
14534esac
14535fi
14536
14537MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14538if test -n "$MAGIC_CMD"; then
14539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14540$as_echo "$MAGIC_CMD" >&6; }
14541else
14542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14543$as_echo "no" >&6; }
14544fi
14545
14546
14547
14548
14549
14550if test -z "$lt_cv_path_MAGIC_CMD"; then
14551  if test -n "$ac_tool_prefix"; then
14552    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14553$as_echo_n "checking for file... " >&6; }
14554if ${lt_cv_path_MAGIC_CMD+:} false; then :
14555  $as_echo_n "(cached) " >&6
14556else
14557  case $MAGIC_CMD in
14558[\\/*] |  ?:[\\/]*)
14559  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14560  ;;
14561*)
14562  lt_save_MAGIC_CMD=$MAGIC_CMD
14563  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14564  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14565  for ac_dir in $ac_dummy; do
14566    IFS=$lt_save_ifs
14567    test -z "$ac_dir" && ac_dir=.
14568    if test -f "$ac_dir/file"; then
14569      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14570      if test -n "$file_magic_test_file"; then
14571	case $deplibs_check_method in
14572	"file_magic "*)
14573	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14574	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14575	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14576	    $EGREP "$file_magic_regex" > /dev/null; then
14577	    :
14578	  else
14579	    cat <<_LT_EOF 1>&2
14580
14581*** Warning: the command libtool uses to detect shared libraries,
14582*** $file_magic_cmd, produces output that libtool cannot recognize.
14583*** The result is that libtool may fail to recognize shared libraries
14584*** as such.  This will affect the creation of libtool libraries that
14585*** depend on shared libraries, but programs linked with such libtool
14586*** libraries will work regardless of this problem.  Nevertheless, you
14587*** may want to report the problem to your system manager and/or to
14588*** bug-libtool@gnu.org
14589
14590_LT_EOF
14591	  fi ;;
14592	esac
14593      fi
14594      break
14595    fi
14596  done
14597  IFS=$lt_save_ifs
14598  MAGIC_CMD=$lt_save_MAGIC_CMD
14599  ;;
14600esac
14601fi
14602
14603MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14604if test -n "$MAGIC_CMD"; then
14605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14606$as_echo "$MAGIC_CMD" >&6; }
14607else
14608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14609$as_echo "no" >&6; }
14610fi
14611
14612
14613  else
14614    MAGIC_CMD=:
14615  fi
14616fi
14617
14618  fi
14619  ;;
14620esac
14621
14622# Use C for the default configuration in the libtool script
14623
14624lt_save_CC=$CC
14625ac_ext=c
14626ac_cpp='$CPP $CPPFLAGS'
14627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14629ac_compiler_gnu=$ac_cv_c_compiler_gnu
14630
14631
14632# Source file extension for C test sources.
14633ac_ext=c
14634
14635# Object file extension for compiled C test sources.
14636objext=o
14637objext=$objext
14638
14639# Code to be used in simple compile tests
14640lt_simple_compile_test_code="int some_variable = 0;"
14641
14642# Code to be used in simple link tests
14643lt_simple_link_test_code='int main(){return(0);}'
14644
14645
14646
14647
14648
14649
14650
14651# If no C compiler was specified, use CC.
14652LTCC=${LTCC-"$CC"}
14653
14654# If no C compiler flags were specified, use CFLAGS.
14655LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14656
14657# Allow CC to be a program name with arguments.
14658compiler=$CC
14659
14660# Save the default compiler, since it gets overwritten when the other
14661# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14662compiler_DEFAULT=$CC
14663
14664# save warnings/boilerplate of simple test code
14665ac_outfile=conftest.$ac_objext
14666echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14667eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14668_lt_compiler_boilerplate=`cat conftest.err`
14669$RM conftest*
14670
14671ac_outfile=conftest.$ac_objext
14672echo "$lt_simple_link_test_code" >conftest.$ac_ext
14673eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14674_lt_linker_boilerplate=`cat conftest.err`
14675$RM -r conftest*
14676
14677
14678if test -n "$compiler"; then
14679
14680lt_prog_compiler_no_builtin_flag=
14681
14682if test yes = "$GCC"; then
14683  case $cc_basename in
14684  nvcc*)
14685    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14686  *)
14687    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14688  esac
14689
14690  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14691$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14692if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14693  $as_echo_n "(cached) " >&6
14694else
14695  lt_cv_prog_compiler_rtti_exceptions=no
14696   ac_outfile=conftest.$ac_objext
14697   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14698   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
14699   # Insert the option either (1) after the last *FLAGS variable, or
14700   # (2) before a word containing "conftest.", or (3) at the end.
14701   # Note that $ac_compile itself does not contain backslashes and begins
14702   # with a dollar sign (not a hyphen), so the echo should work correctly.
14703   # The option is referenced via a variable to avoid confusing sed.
14704   lt_compile=`echo "$ac_compile" | $SED \
14705   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14706   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14707   -e 's:$: $lt_compiler_flag:'`
14708   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14709   (eval "$lt_compile" 2>conftest.err)
14710   ac_status=$?
14711   cat conftest.err >&5
14712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713   if (exit $ac_status) && test -s "$ac_outfile"; then
14714     # The compiler can only warn and ignore the option if not recognized
14715     # So say no if there are warnings other than the usual output.
14716     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14717     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14718     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14719       lt_cv_prog_compiler_rtti_exceptions=yes
14720     fi
14721   fi
14722   $RM conftest*
14723
14724fi
14725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14726$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14727
14728if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14729    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14730else
14731    :
14732fi
14733
14734fi
14735
14736
14737
14738
14739
14740
14741  lt_prog_compiler_wl=
14742lt_prog_compiler_pic=
14743lt_prog_compiler_static=
14744
14745
14746  if test yes = "$GCC"; then
14747    lt_prog_compiler_wl='-Wl,'
14748    lt_prog_compiler_static='-static'
14749
14750    case $host_os in
14751      aix*)
14752      # All AIX code is PIC.
14753      if test ia64 = "$host_cpu"; then
14754	# AIX 5 now supports IA64 processor
14755	lt_prog_compiler_static='-Bstatic'
14756      fi
14757      lt_prog_compiler_pic='-fPIC'
14758      ;;
14759
14760    amigaos*)
14761      case $host_cpu in
14762      powerpc)
14763            # see comment about AmigaOS4 .so support
14764            lt_prog_compiler_pic='-fPIC'
14765        ;;
14766      m68k)
14767            # FIXME: we need at least 68020 code to build shared libraries, but
14768            # adding the '-m68020' flag to GCC prevents building anything better,
14769            # like '-m68040'.
14770            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14771        ;;
14772      esac
14773      ;;
14774
14775    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14776      # PIC is the default for these OSes.
14777      ;;
14778
14779    mingw* | cygwin* | pw32* | os2* | cegcc*)
14780      # This hack is so that the source file can tell whether it is being
14781      # built for inclusion in a dll (and should export symbols for example).
14782      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14783      # (--disable-auto-import) libraries
14784      lt_prog_compiler_pic='-DDLL_EXPORT'
14785      case $host_os in
14786      os2*)
14787	lt_prog_compiler_static='$wl-static'
14788	;;
14789      esac
14790      ;;
14791
14792    darwin* | rhapsody*)
14793      # PIC is the default on this platform
14794      # Common symbols not allowed in MH_DYLIB files
14795      lt_prog_compiler_pic='-fno-common'
14796      ;;
14797
14798    haiku*)
14799      # PIC is the default for Haiku.
14800      # The "-static" flag exists, but is broken.
14801      lt_prog_compiler_static=
14802      ;;
14803
14804    hpux*)
14805      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14806      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14807      # sets the default TLS model and affects inlining.
14808      case $host_cpu in
14809      hppa*64*)
14810	# +Z the default
14811	;;
14812      *)
14813	lt_prog_compiler_pic='-fPIC'
14814	;;
14815      esac
14816      ;;
14817
14818    interix[3-9]*)
14819      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14820      # Instead, we relocate shared libraries at runtime.
14821      ;;
14822
14823    msdosdjgpp*)
14824      # Just because we use GCC doesn't mean we suddenly get shared libraries
14825      # on systems that don't support them.
14826      lt_prog_compiler_can_build_shared=no
14827      enable_shared=no
14828      ;;
14829
14830    *nto* | *qnx*)
14831      # QNX uses GNU C++, but need to define -shared option too, otherwise
14832      # it will coredump.
14833      lt_prog_compiler_pic='-fPIC -shared'
14834      ;;
14835
14836    sysv4*MP*)
14837      if test -d /usr/nec; then
14838	lt_prog_compiler_pic=-Kconform_pic
14839      fi
14840      ;;
14841
14842    *)
14843      lt_prog_compiler_pic='-fPIC'
14844      ;;
14845    esac
14846
14847    case $cc_basename in
14848    nvcc*) # Cuda Compiler Driver 2.2
14849      lt_prog_compiler_wl='-Xlinker '
14850      if test -n "$lt_prog_compiler_pic"; then
14851        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14852      fi
14853      ;;
14854    esac
14855  else
14856    # PORTME Check for flag to pass linker flags through the system compiler.
14857    case $host_os in
14858    aix*)
14859      lt_prog_compiler_wl='-Wl,'
14860      if test ia64 = "$host_cpu"; then
14861	# AIX 5 now supports IA64 processor
14862	lt_prog_compiler_static='-Bstatic'
14863      else
14864	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14865      fi
14866      ;;
14867
14868    darwin* | rhapsody*)
14869      # PIC is the default on this platform
14870      # Common symbols not allowed in MH_DYLIB files
14871      lt_prog_compiler_pic='-fno-common'
14872      case $cc_basename in
14873      nagfor*)
14874        # NAG Fortran compiler
14875        lt_prog_compiler_wl='-Wl,-Wl,,'
14876        lt_prog_compiler_pic='-PIC'
14877        lt_prog_compiler_static='-Bstatic'
14878        ;;
14879      esac
14880      ;;
14881
14882    mingw* | cygwin* | pw32* | os2* | cegcc*)
14883      # This hack is so that the source file can tell whether it is being
14884      # built for inclusion in a dll (and should export symbols for example).
14885      lt_prog_compiler_pic='-DDLL_EXPORT'
14886      case $host_os in
14887      os2*)
14888	lt_prog_compiler_static='$wl-static'
14889	;;
14890      esac
14891      ;;
14892
14893    hpux9* | hpux10* | hpux11*)
14894      lt_prog_compiler_wl='-Wl,'
14895      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14896      # not for PA HP-UX.
14897      case $host_cpu in
14898      hppa*64*|ia64*)
14899	# +Z the default
14900	;;
14901      *)
14902	lt_prog_compiler_pic='+Z'
14903	;;
14904      esac
14905      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14906      lt_prog_compiler_static='$wl-a ${wl}archive'
14907      ;;
14908
14909    irix5* | irix6* | nonstopux*)
14910      lt_prog_compiler_wl='-Wl,'
14911      # PIC (with -KPIC) is the default.
14912      lt_prog_compiler_static='-non_shared'
14913      ;;
14914
14915    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14916      case $cc_basename in
14917      # old Intel for x86_64, which still supported -KPIC.
14918      ecc*)
14919	lt_prog_compiler_wl='-Wl,'
14920	lt_prog_compiler_pic='-KPIC'
14921	lt_prog_compiler_static='-static'
14922        ;;
14923      # icc used to be incompatible with GCC.
14924      # ICC 10 doesn't accept -KPIC any more.
14925      icc* | ifort*)
14926	lt_prog_compiler_wl='-Wl,'
14927	lt_prog_compiler_pic='-fPIC'
14928	lt_prog_compiler_static='-static'
14929        ;;
14930      # Lahey Fortran 8.1.
14931      lf95*)
14932	lt_prog_compiler_wl='-Wl,'
14933	lt_prog_compiler_pic='--shared'
14934	lt_prog_compiler_static='--static'
14935	;;
14936      nagfor*)
14937	# NAG Fortran compiler
14938	lt_prog_compiler_wl='-Wl,-Wl,,'
14939	lt_prog_compiler_pic='-PIC'
14940	lt_prog_compiler_static='-Bstatic'
14941	;;
14942      tcc*)
14943	# Fabrice Bellard et al's Tiny C Compiler
14944	lt_prog_compiler_wl='-Wl,'
14945	lt_prog_compiler_pic='-fPIC'
14946	lt_prog_compiler_static='-static'
14947	;;
14948      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14949        # Portland Group compilers (*not* the Pentium gcc compiler,
14950	# which looks to be a dead project)
14951	lt_prog_compiler_wl='-Wl,'
14952	lt_prog_compiler_pic='-fpic'
14953	lt_prog_compiler_static='-Bstatic'
14954        ;;
14955      ccc*)
14956        lt_prog_compiler_wl='-Wl,'
14957        # All Alpha code is PIC.
14958        lt_prog_compiler_static='-non_shared'
14959        ;;
14960      xl* | bgxl* | bgf* | mpixl*)
14961	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14962	lt_prog_compiler_wl='-Wl,'
14963	lt_prog_compiler_pic='-qpic'
14964	lt_prog_compiler_static='-qstaticlink'
14965	;;
14966      *)
14967	case `$CC -V 2>&1 | sed 5q` in
14968	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14969	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14970	  lt_prog_compiler_pic='-KPIC'
14971	  lt_prog_compiler_static='-Bstatic'
14972	  lt_prog_compiler_wl=''
14973	  ;;
14974	*Sun\ F* | *Sun*Fortran*)
14975	  lt_prog_compiler_pic='-KPIC'
14976	  lt_prog_compiler_static='-Bstatic'
14977	  lt_prog_compiler_wl='-Qoption ld '
14978	  ;;
14979	*Sun\ C*)
14980	  # Sun C 5.9
14981	  lt_prog_compiler_pic='-KPIC'
14982	  lt_prog_compiler_static='-Bstatic'
14983	  lt_prog_compiler_wl='-Wl,'
14984	  ;;
14985        *Intel*\ [CF]*Compiler*)
14986	  lt_prog_compiler_wl='-Wl,'
14987	  lt_prog_compiler_pic='-fPIC'
14988	  lt_prog_compiler_static='-static'
14989	  ;;
14990	*Portland\ Group*)
14991	  lt_prog_compiler_wl='-Wl,'
14992	  lt_prog_compiler_pic='-fpic'
14993	  lt_prog_compiler_static='-Bstatic'
14994	  ;;
14995	esac
14996	;;
14997      esac
14998      ;;
14999
15000    newsos6)
15001      lt_prog_compiler_pic='-KPIC'
15002      lt_prog_compiler_static='-Bstatic'
15003      ;;
15004
15005    *nto* | *qnx*)
15006      # QNX uses GNU C++, but need to define -shared option too, otherwise
15007      # it will coredump.
15008      lt_prog_compiler_pic='-fPIC -shared'
15009      ;;
15010
15011    osf3* | osf4* | osf5*)
15012      lt_prog_compiler_wl='-Wl,'
15013      # All OSF/1 code is PIC.
15014      lt_prog_compiler_static='-non_shared'
15015      ;;
15016
15017    rdos*)
15018      lt_prog_compiler_static='-non_shared'
15019      ;;
15020
15021    solaris*)
15022      lt_prog_compiler_pic='-KPIC'
15023      lt_prog_compiler_static='-Bstatic'
15024      case $cc_basename in
15025      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15026	lt_prog_compiler_wl='-Qoption ld ';;
15027      *)
15028	lt_prog_compiler_wl='-Wl,';;
15029      esac
15030      ;;
15031
15032    sunos4*)
15033      lt_prog_compiler_wl='-Qoption ld '
15034      lt_prog_compiler_pic='-PIC'
15035      lt_prog_compiler_static='-Bstatic'
15036      ;;
15037
15038    sysv4 | sysv4.2uw2* | sysv4.3*)
15039      lt_prog_compiler_wl='-Wl,'
15040      lt_prog_compiler_pic='-KPIC'
15041      lt_prog_compiler_static='-Bstatic'
15042      ;;
15043
15044    sysv4*MP*)
15045      if test -d /usr/nec; then
15046	lt_prog_compiler_pic='-Kconform_pic'
15047	lt_prog_compiler_static='-Bstatic'
15048      fi
15049      ;;
15050
15051    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15052      lt_prog_compiler_wl='-Wl,'
15053      lt_prog_compiler_pic='-KPIC'
15054      lt_prog_compiler_static='-Bstatic'
15055      ;;
15056
15057    unicos*)
15058      lt_prog_compiler_wl='-Wl,'
15059      lt_prog_compiler_can_build_shared=no
15060      ;;
15061
15062    uts4*)
15063      lt_prog_compiler_pic='-pic'
15064      lt_prog_compiler_static='-Bstatic'
15065      ;;
15066
15067    *)
15068      lt_prog_compiler_can_build_shared=no
15069      ;;
15070    esac
15071  fi
15072
15073case $host_os in
15074  # For platforms that do not support PIC, -DPIC is meaningless:
15075  *djgpp*)
15076    lt_prog_compiler_pic=
15077    ;;
15078  *)
15079    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15080    ;;
15081esac
15082
15083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15084$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15085if ${lt_cv_prog_compiler_pic+:} false; then :
15086  $as_echo_n "(cached) " >&6
15087else
15088  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15089fi
15090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15091$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15092lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15093
15094#
15095# Check to make sure the PIC flag actually works.
15096#
15097if test -n "$lt_prog_compiler_pic"; then
15098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15099$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15100if ${lt_cv_prog_compiler_pic_works+:} false; then :
15101  $as_echo_n "(cached) " >&6
15102else
15103  lt_cv_prog_compiler_pic_works=no
15104   ac_outfile=conftest.$ac_objext
15105   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15106   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15107   # Insert the option either (1) after the last *FLAGS variable, or
15108   # (2) before a word containing "conftest.", or (3) at the end.
15109   # Note that $ac_compile itself does not contain backslashes and begins
15110   # with a dollar sign (not a hyphen), so the echo should work correctly.
15111   # The option is referenced via a variable to avoid confusing sed.
15112   lt_compile=`echo "$ac_compile" | $SED \
15113   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15114   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15115   -e 's:$: $lt_compiler_flag:'`
15116   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15117   (eval "$lt_compile" 2>conftest.err)
15118   ac_status=$?
15119   cat conftest.err >&5
15120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121   if (exit $ac_status) && test -s "$ac_outfile"; then
15122     # The compiler can only warn and ignore the option if not recognized
15123     # So say no if there are warnings other than the usual output.
15124     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15125     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15126     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15127       lt_cv_prog_compiler_pic_works=yes
15128     fi
15129   fi
15130   $RM conftest*
15131
15132fi
15133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15134$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15135
15136if test yes = "$lt_cv_prog_compiler_pic_works"; then
15137    case $lt_prog_compiler_pic in
15138     "" | " "*) ;;
15139     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15140     esac
15141else
15142    lt_prog_compiler_pic=
15143     lt_prog_compiler_can_build_shared=no
15144fi
15145
15146fi
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158#
15159# Check to make sure the static flag actually works.
15160#
15161wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15163$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15164if ${lt_cv_prog_compiler_static_works+:} false; then :
15165  $as_echo_n "(cached) " >&6
15166else
15167  lt_cv_prog_compiler_static_works=no
15168   save_LDFLAGS=$LDFLAGS
15169   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15170   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15171   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15172     # The linker can only warn and ignore the option if not recognized
15173     # So say no if there are warnings
15174     if test -s conftest.err; then
15175       # Append any errors to the config.log.
15176       cat conftest.err 1>&5
15177       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15178       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15179       if diff conftest.exp conftest.er2 >/dev/null; then
15180         lt_cv_prog_compiler_static_works=yes
15181       fi
15182     else
15183       lt_cv_prog_compiler_static_works=yes
15184     fi
15185   fi
15186   $RM -r conftest*
15187   LDFLAGS=$save_LDFLAGS
15188
15189fi
15190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15191$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15192
15193if test yes = "$lt_cv_prog_compiler_static_works"; then
15194    :
15195else
15196    lt_prog_compiler_static=
15197fi
15198
15199
15200
15201
15202
15203
15204
15205  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15206$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15207if ${lt_cv_prog_compiler_c_o+:} false; then :
15208  $as_echo_n "(cached) " >&6
15209else
15210  lt_cv_prog_compiler_c_o=no
15211   $RM -r conftest 2>/dev/null
15212   mkdir conftest
15213   cd conftest
15214   mkdir out
15215   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15216
15217   lt_compiler_flag="-o out/conftest2.$ac_objext"
15218   # Insert the option either (1) after the last *FLAGS variable, or
15219   # (2) before a word containing "conftest.", or (3) at the end.
15220   # Note that $ac_compile itself does not contain backslashes and begins
15221   # with a dollar sign (not a hyphen), so the echo should work correctly.
15222   lt_compile=`echo "$ac_compile" | $SED \
15223   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15224   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15225   -e 's:$: $lt_compiler_flag:'`
15226   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15227   (eval "$lt_compile" 2>out/conftest.err)
15228   ac_status=$?
15229   cat out/conftest.err >&5
15230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15232   then
15233     # The compiler can only warn and ignore the option if not recognized
15234     # So say no if there are warnings
15235     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15236     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15237     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15238       lt_cv_prog_compiler_c_o=yes
15239     fi
15240   fi
15241   chmod u+w . 2>&5
15242   $RM conftest*
15243   # SGI C++ compiler will create directory out/ii_files/ for
15244   # template instantiation
15245   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15246   $RM out/* && rmdir out
15247   cd ..
15248   $RM -r conftest
15249   $RM conftest*
15250
15251fi
15252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15253$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15254
15255
15256
15257
15258
15259
15260  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15261$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15262if ${lt_cv_prog_compiler_c_o+:} false; then :
15263  $as_echo_n "(cached) " >&6
15264else
15265  lt_cv_prog_compiler_c_o=no
15266   $RM -r conftest 2>/dev/null
15267   mkdir conftest
15268   cd conftest
15269   mkdir out
15270   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15271
15272   lt_compiler_flag="-o out/conftest2.$ac_objext"
15273   # Insert the option either (1) after the last *FLAGS variable, or
15274   # (2) before a word containing "conftest.", or (3) at the end.
15275   # Note that $ac_compile itself does not contain backslashes and begins
15276   # with a dollar sign (not a hyphen), so the echo should work correctly.
15277   lt_compile=`echo "$ac_compile" | $SED \
15278   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15279   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15280   -e 's:$: $lt_compiler_flag:'`
15281   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15282   (eval "$lt_compile" 2>out/conftest.err)
15283   ac_status=$?
15284   cat out/conftest.err >&5
15285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15287   then
15288     # The compiler can only warn and ignore the option if not recognized
15289     # So say no if there are warnings
15290     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15291     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15292     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15293       lt_cv_prog_compiler_c_o=yes
15294     fi
15295   fi
15296   chmod u+w . 2>&5
15297   $RM conftest*
15298   # SGI C++ compiler will create directory out/ii_files/ for
15299   # template instantiation
15300   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15301   $RM out/* && rmdir out
15302   cd ..
15303   $RM -r conftest
15304   $RM conftest*
15305
15306fi
15307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15308$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15309
15310
15311
15312
15313hard_links=nottested
15314if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15315  # do not overwrite the value of need_locks provided by the user
15316  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15317$as_echo_n "checking if we can lock with hard links... " >&6; }
15318  hard_links=yes
15319  $RM conftest*
15320  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15321  touch conftest.a
15322  ln conftest.a conftest.b 2>&5 || hard_links=no
15323  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15325$as_echo "$hard_links" >&6; }
15326  if test no = "$hard_links"; then
15327    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15328$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15329    need_locks=warn
15330  fi
15331else
15332  need_locks=no
15333fi
15334
15335
15336
15337
15338
15339
15340  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15341$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15342
15343  runpath_var=
15344  allow_undefined_flag=
15345  always_export_symbols=no
15346  archive_cmds=
15347  archive_expsym_cmds=
15348  compiler_needs_object=no
15349  enable_shared_with_static_runtimes=no
15350  export_dynamic_flag_spec=
15351  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15352  hardcode_automatic=no
15353  hardcode_direct=no
15354  hardcode_direct_absolute=no
15355  hardcode_libdir_flag_spec=
15356  hardcode_libdir_separator=
15357  hardcode_minus_L=no
15358  hardcode_shlibpath_var=unsupported
15359  inherit_rpath=no
15360  link_all_deplibs=unknown
15361  module_cmds=
15362  module_expsym_cmds=
15363  old_archive_from_new_cmds=
15364  old_archive_from_expsyms_cmds=
15365  thread_safe_flag_spec=
15366  whole_archive_flag_spec=
15367  # include_expsyms should be a list of space-separated symbols to be *always*
15368  # included in the symbol list
15369  include_expsyms=
15370  # exclude_expsyms can be an extended regexp of symbols to exclude
15371  # it will be wrapped by ' (' and ')$', so one must not match beginning or
15372  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15373  # as well as any symbol that contains 'd'.
15374  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15375  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15376  # platforms (ab)use it in PIC code, but their linkers get confused if
15377  # the symbol is explicitly referenced.  Since portable code cannot
15378  # rely on this symbol name, it's probably fine to never include it in
15379  # preloaded symbol tables.
15380  # Exclude shared library initialization/finalization symbols.
15381  extract_expsyms_cmds=
15382
15383  case $host_os in
15384  cygwin* | mingw* | pw32* | cegcc*)
15385    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15386    # When not using gcc, we currently assume that we are using
15387    # Microsoft Visual C++.
15388    if test yes != "$GCC"; then
15389      with_gnu_ld=no
15390    fi
15391    ;;
15392  interix*)
15393    # we just hope/assume this is gcc and not c89 (= MSVC++)
15394    with_gnu_ld=yes
15395    ;;
15396  openbsd* | bitrig*)
15397    with_gnu_ld=no
15398    ;;
15399  esac
15400
15401  ld_shlibs=yes
15402
15403  # On some targets, GNU ld is compatible enough with the native linker
15404  # that we're better off using the native interface for both.
15405  lt_use_gnu_ld_interface=no
15406  if test yes = "$with_gnu_ld"; then
15407    case $host_os in
15408      aix*)
15409	# The AIX port of GNU ld has always aspired to compatibility
15410	# with the native linker.  However, as the warning in the GNU ld
15411	# block says, versions before 2.19.5* couldn't really create working
15412	# shared libraries, regardless of the interface used.
15413	case `$LD -v 2>&1` in
15414	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15415	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15416	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15417	  *)
15418	    lt_use_gnu_ld_interface=yes
15419	    ;;
15420	esac
15421	;;
15422      *)
15423	lt_use_gnu_ld_interface=yes
15424	;;
15425    esac
15426  fi
15427
15428  if test yes = "$lt_use_gnu_ld_interface"; then
15429    # If archive_cmds runs LD, not CC, wlarc should be empty
15430    wlarc='$wl'
15431
15432    # Set some defaults for GNU ld with shared library support. These
15433    # are reset later if shared libraries are not supported. Putting them
15434    # here allows them to be overridden if necessary.
15435    runpath_var=LD_RUN_PATH
15436    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15437    export_dynamic_flag_spec='$wl--export-dynamic'
15438    # ancient GNU ld didn't support --whole-archive et. al.
15439    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15440      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15441    else
15442      whole_archive_flag_spec=
15443    fi
15444    supports_anon_versioning=no
15445    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15446      *GNU\ gold*) supports_anon_versioning=yes ;;
15447      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15448      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15449      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15450      *\ 2.11.*) ;; # other 2.11 versions
15451      *) supports_anon_versioning=yes ;;
15452    esac
15453
15454    # See if GNU ld supports shared libraries.
15455    case $host_os in
15456    aix[3-9]*)
15457      # On AIX/PPC, the GNU linker is very broken
15458      if test ia64 != "$host_cpu"; then
15459	ld_shlibs=no
15460	cat <<_LT_EOF 1>&2
15461
15462*** Warning: the GNU linker, at least up to release 2.19, is reported
15463*** to be unable to reliably create shared libraries on AIX.
15464*** Therefore, libtool is disabling shared libraries support.  If you
15465*** really care for shared libraries, you may want to install binutils
15466*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15467*** You will then need to restart the configuration process.
15468
15469_LT_EOF
15470      fi
15471      ;;
15472
15473    amigaos*)
15474      case $host_cpu in
15475      powerpc)
15476            # see comment about AmigaOS4 .so support
15477            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15478            archive_expsym_cmds=''
15479        ;;
15480      m68k)
15481            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)'
15482            hardcode_libdir_flag_spec='-L$libdir'
15483            hardcode_minus_L=yes
15484        ;;
15485      esac
15486      ;;
15487
15488    beos*)
15489      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15490	allow_undefined_flag=unsupported
15491	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15492	# support --undefined.  This deserves some investigation.  FIXME
15493	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15494      else
15495	ld_shlibs=no
15496      fi
15497      ;;
15498
15499    cygwin* | mingw* | pw32* | cegcc*)
15500      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15501      # as there is no search path for DLLs.
15502      hardcode_libdir_flag_spec='-L$libdir'
15503      export_dynamic_flag_spec='$wl--export-all-symbols'
15504      allow_undefined_flag=unsupported
15505      always_export_symbols=no
15506      enable_shared_with_static_runtimes=yes
15507      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'
15508      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15509
15510      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15511        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15512	# If the export-symbols file already is a .def file, use it as
15513	# is; otherwise, prepend EXPORTS...
15514	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15515          cp $export_symbols $output_objdir/$soname.def;
15516        else
15517          echo EXPORTS > $output_objdir/$soname.def;
15518          cat $export_symbols >> $output_objdir/$soname.def;
15519        fi~
15520        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15521      else
15522	ld_shlibs=no
15523      fi
15524      ;;
15525
15526    haiku*)
15527      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15528      link_all_deplibs=yes
15529      ;;
15530
15531    os2*)
15532      hardcode_libdir_flag_spec='-L$libdir'
15533      hardcode_minus_L=yes
15534      allow_undefined_flag=unsupported
15535      shrext_cmds=.dll
15536      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15537	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15538	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15539	$ECHO EXPORTS >> $output_objdir/$libname.def~
15540	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15541	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15542	emximp -o $lib $output_objdir/$libname.def'
15543      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15544	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15545	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15546	$ECHO EXPORTS >> $output_objdir/$libname.def~
15547	prefix_cmds="$SED"~
15548	if test EXPORTS = "`$SED 1q $export_symbols`"; then
15549	  prefix_cmds="$prefix_cmds -e 1d";
15550	fi~
15551	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15552	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15553	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15554	emximp -o $lib $output_objdir/$libname.def'
15555      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15556      enable_shared_with_static_runtimes=yes
15557      ;;
15558
15559    interix[3-9]*)
15560      hardcode_direct=no
15561      hardcode_shlibpath_var=no
15562      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15563      export_dynamic_flag_spec='$wl-E'
15564      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15565      # Instead, shared libraries are loaded at an image base (0x10000000 by
15566      # default) and relocated if they conflict, which is a slow very memory
15567      # consuming and fragmenting process.  To avoid this, we pick a random,
15568      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15569      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15570      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15571      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'
15572      ;;
15573
15574    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15575      tmp_diet=no
15576      if test linux-dietlibc = "$host_os"; then
15577	case $cc_basename in
15578	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15579	esac
15580      fi
15581      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15582	 && test no = "$tmp_diet"
15583      then
15584	tmp_addflag=' $pic_flag'
15585	tmp_sharedflag='-shared'
15586	case $cc_basename,$host_cpu in
15587        pgcc*)				# Portland Group C compiler
15588	  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'
15589	  tmp_addflag=' $pic_flag'
15590	  ;;
15591	pgf77* | pgf90* | pgf95* | pgfortran*)
15592					# Portland Group f77 and f90 compilers
15593	  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'
15594	  tmp_addflag=' $pic_flag -Mnomain' ;;
15595	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15596	  tmp_addflag=' -i_dynamic' ;;
15597	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15598	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15599	ifc* | ifort*)			# Intel Fortran compiler
15600	  tmp_addflag=' -nofor_main' ;;
15601	lf95*)				# Lahey Fortran 8.1
15602	  whole_archive_flag_spec=
15603	  tmp_sharedflag='--shared' ;;
15604        nagfor*)                        # NAGFOR 5.3
15605          tmp_sharedflag='-Wl,-shared' ;;
15606	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15607	  tmp_sharedflag='-qmkshrobj'
15608	  tmp_addflag= ;;
15609	nvcc*)	# Cuda Compiler Driver 2.2
15610	  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'
15611	  compiler_needs_object=yes
15612	  ;;
15613	esac
15614	case `$CC -V 2>&1 | sed 5q` in
15615	*Sun\ C*)			# Sun C 5.9
15616	  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'
15617	  compiler_needs_object=yes
15618	  tmp_sharedflag='-G' ;;
15619	*Sun\ F*)			# Sun Fortran 8.3
15620	  tmp_sharedflag='-G' ;;
15621	esac
15622	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15623
15624        if test yes = "$supports_anon_versioning"; then
15625          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15626            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15627            echo "local: *; };" >> $output_objdir/$libname.ver~
15628            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15629        fi
15630
15631	case $cc_basename in
15632	tcc*)
15633	  export_dynamic_flag_spec='-rdynamic'
15634	  ;;
15635	xlf* | bgf* | bgxlf* | mpixlf*)
15636	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15637	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15638	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15639	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15640	  if test yes = "$supports_anon_versioning"; then
15641	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15642              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15643              echo "local: *; };" >> $output_objdir/$libname.ver~
15644              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15645	  fi
15646	  ;;
15647	esac
15648      else
15649        ld_shlibs=no
15650      fi
15651      ;;
15652
15653    netbsd*)
15654      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15655	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15656	wlarc=
15657      else
15658	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15659	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15660      fi
15661      ;;
15662
15663    solaris*)
15664      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15665	ld_shlibs=no
15666	cat <<_LT_EOF 1>&2
15667
15668*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15669*** create shared libraries on Solaris systems.  Therefore, libtool
15670*** is disabling shared libraries support.  We urge you to upgrade GNU
15671*** binutils to release 2.9.1 or newer.  Another option is to modify
15672*** your PATH or compiler configuration so that the native linker is
15673*** used, and then restart.
15674
15675_LT_EOF
15676      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15677	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15678	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15679      else
15680	ld_shlibs=no
15681      fi
15682      ;;
15683
15684    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15685      case `$LD -v 2>&1` in
15686        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15687	ld_shlibs=no
15688	cat <<_LT_EOF 1>&2
15689
15690*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15691*** reliably create shared libraries on SCO systems.  Therefore, libtool
15692*** is disabling shared libraries support.  We urge you to upgrade GNU
15693*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15694*** your PATH or compiler configuration so that the native linker is
15695*** used, and then restart.
15696
15697_LT_EOF
15698	;;
15699	*)
15700	  # For security reasons, it is highly recommended that you always
15701	  # use absolute paths for naming shared libraries, and exclude the
15702	  # DT_RUNPATH tag from executables and libraries.  But doing so
15703	  # requires that you compile everything twice, which is a pain.
15704	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15705	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15706	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15707	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15708	  else
15709	    ld_shlibs=no
15710	  fi
15711	;;
15712      esac
15713      ;;
15714
15715    sunos4*)
15716      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15717      wlarc=
15718      hardcode_direct=yes
15719      hardcode_shlibpath_var=no
15720      ;;
15721
15722    *)
15723      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15724	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15725	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15726      else
15727	ld_shlibs=no
15728      fi
15729      ;;
15730    esac
15731
15732    if test no = "$ld_shlibs"; then
15733      runpath_var=
15734      hardcode_libdir_flag_spec=
15735      export_dynamic_flag_spec=
15736      whole_archive_flag_spec=
15737    fi
15738  else
15739    # PORTME fill in a description of your system's linker (not GNU ld)
15740    case $host_os in
15741    aix3*)
15742      allow_undefined_flag=unsupported
15743      always_export_symbols=yes
15744      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'
15745      # Note: this linker hardcodes the directories in LIBPATH if there
15746      # are no directories specified by -L.
15747      hardcode_minus_L=yes
15748      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15749	# Neither direct hardcoding nor static linking is supported with a
15750	# broken collect2.
15751	hardcode_direct=unsupported
15752      fi
15753      ;;
15754
15755    aix[4-9]*)
15756      if test ia64 = "$host_cpu"; then
15757	# On IA64, the linker does run time linking by default, so we don't
15758	# have to do anything special.
15759	aix_use_runtimelinking=no
15760	exp_sym_flag='-Bexport'
15761	no_entry_flag=
15762      else
15763	# If we're using GNU nm, then we don't want the "-C" option.
15764	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
15765	# Without the "-l" option, or with the "-B" option, AIX nm treats
15766	# weak defined symbols like other global defined symbols, whereas
15767	# GNU nm marks them as "W".
15768	# While the 'weak' keyword is ignored in the Export File, we need
15769	# it in the Import File for the 'aix-soname' feature, so we have
15770	# to replace the "-B" option with "-P" for AIX nm.
15771	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15772	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15773	else
15774	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15775	fi
15776	aix_use_runtimelinking=no
15777
15778	# Test if we are trying to use run time linking or normal
15779	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15780	# have runtime linking enabled, and use it for executables.
15781	# For shared libraries, we enable/disable runtime linking
15782	# depending on the kind of the shared library created -
15783	# when "with_aix_soname,aix_use_runtimelinking" is:
15784	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15785	# "aix,yes"  lib.so          shared, rtl:yes, for executables
15786	#            lib.a           static archive
15787	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
15788	#            lib.a(lib.so.V) shared, rtl:no,  for executables
15789	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15790	#            lib.a(lib.so.V) shared, rtl:no
15791	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15792	#            lib.a           static archive
15793	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15794	  for ld_flag in $LDFLAGS; do
15795	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15796	    aix_use_runtimelinking=yes
15797	    break
15798	  fi
15799	  done
15800	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15801	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
15802	    # so we don't have lib.a shared libs to link our executables.
15803	    # We have to force runtime linking in this case.
15804	    aix_use_runtimelinking=yes
15805	    LDFLAGS="$LDFLAGS -Wl,-brtl"
15806	  fi
15807	  ;;
15808	esac
15809
15810	exp_sym_flag='-bexport'
15811	no_entry_flag='-bnoentry'
15812      fi
15813
15814      # When large executables or shared objects are built, AIX ld can
15815      # have problems creating the table of contents.  If linking a library
15816      # or program results in "error TOC overflow" add -mminimal-toc to
15817      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15818      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15819
15820      archive_cmds=''
15821      hardcode_direct=yes
15822      hardcode_direct_absolute=yes
15823      hardcode_libdir_separator=':'
15824      link_all_deplibs=yes
15825      file_list_spec='$wl-f,'
15826      case $with_aix_soname,$aix_use_runtimelinking in
15827      aix,*) ;; # traditional, no import file
15828      svr4,* | *,yes) # use import file
15829	# The Import File defines what to hardcode.
15830	hardcode_direct=no
15831	hardcode_direct_absolute=no
15832	;;
15833      esac
15834
15835      if test yes = "$GCC"; then
15836	case $host_os in aix4.[012]|aix4.[012].*)
15837	# We only want to do this on AIX 4.2 and lower, the check
15838	# below for broken collect2 doesn't work under 4.3+
15839	  collect2name=`$CC -print-prog-name=collect2`
15840	  if test -f "$collect2name" &&
15841	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15842	  then
15843	  # We have reworked collect2
15844	  :
15845	  else
15846	  # We have old collect2
15847	  hardcode_direct=unsupported
15848	  # It fails to find uninstalled libraries when the uninstalled
15849	  # path is not listed in the libpath.  Setting hardcode_minus_L
15850	  # to unsupported forces relinking
15851	  hardcode_minus_L=yes
15852	  hardcode_libdir_flag_spec='-L$libdir'
15853	  hardcode_libdir_separator=
15854	  fi
15855	  ;;
15856	esac
15857	shared_flag='-shared'
15858	if test yes = "$aix_use_runtimelinking"; then
15859	  shared_flag="$shared_flag "'$wl-G'
15860	fi
15861	# Need to ensure runtime linking is disabled for the traditional
15862	# shared library, or the linker may eventually find shared libraries
15863	# /with/ Import File - we do not want to mix them.
15864	shared_flag_aix='-shared'
15865	shared_flag_svr4='-shared $wl-G'
15866      else
15867	# not using gcc
15868	if test ia64 = "$host_cpu"; then
15869	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15870	# chokes on -Wl,-G. The following line is correct:
15871	  shared_flag='-G'
15872	else
15873	  if test yes = "$aix_use_runtimelinking"; then
15874	    shared_flag='$wl-G'
15875	  else
15876	    shared_flag='$wl-bM:SRE'
15877	  fi
15878	  shared_flag_aix='$wl-bM:SRE'
15879	  shared_flag_svr4='$wl-G'
15880	fi
15881      fi
15882
15883      export_dynamic_flag_spec='$wl-bexpall'
15884      # It seems that -bexpall does not export symbols beginning with
15885      # underscore (_), so it is better to generate a list of symbols to export.
15886      always_export_symbols=yes
15887      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15888	# Warning - without using the other runtime loading flags (-brtl),
15889	# -berok will link without error, but may produce a broken library.
15890	allow_undefined_flag='-berok'
15891        # Determine the default libpath from the value encoded in an
15892        # empty executable.
15893        if test set = "${lt_cv_aix_libpath+set}"; then
15894  aix_libpath=$lt_cv_aix_libpath
15895else
15896  if ${lt_cv_aix_libpath_+:} false; then :
15897  $as_echo_n "(cached) " >&6
15898else
15899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15900/* end confdefs.h.  */
15901
15902int
15903main ()
15904{
15905
15906  ;
15907  return 0;
15908}
15909_ACEOF
15910if ac_fn_c_try_link "$LINENO"; then :
15911
15912  lt_aix_libpath_sed='
15913      /Import File Strings/,/^$/ {
15914	  /^0/ {
15915	      s/^0  *\([^ ]*\) *$/\1/
15916	      p
15917	  }
15918      }'
15919  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15920  # Check for a 64-bit object if we didn't find anything.
15921  if test -z "$lt_cv_aix_libpath_"; then
15922    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15923  fi
15924fi
15925rm -f core conftest.err conftest.$ac_objext \
15926    conftest$ac_exeext conftest.$ac_ext
15927  if test -z "$lt_cv_aix_libpath_"; then
15928    lt_cv_aix_libpath_=/usr/lib:/lib
15929  fi
15930
15931fi
15932
15933  aix_libpath=$lt_cv_aix_libpath_
15934fi
15935
15936        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15937        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15938      else
15939	if test ia64 = "$host_cpu"; then
15940	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15941	  allow_undefined_flag="-z nodefs"
15942	  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"
15943	else
15944	 # Determine the default libpath from the value encoded in an
15945	 # empty executable.
15946	 if test set = "${lt_cv_aix_libpath+set}"; then
15947  aix_libpath=$lt_cv_aix_libpath
15948else
15949  if ${lt_cv_aix_libpath_+:} false; then :
15950  $as_echo_n "(cached) " >&6
15951else
15952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953/* end confdefs.h.  */
15954
15955int
15956main ()
15957{
15958
15959  ;
15960  return 0;
15961}
15962_ACEOF
15963if ac_fn_c_try_link "$LINENO"; then :
15964
15965  lt_aix_libpath_sed='
15966      /Import File Strings/,/^$/ {
15967	  /^0/ {
15968	      s/^0  *\([^ ]*\) *$/\1/
15969	      p
15970	  }
15971      }'
15972  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15973  # Check for a 64-bit object if we didn't find anything.
15974  if test -z "$lt_cv_aix_libpath_"; then
15975    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15976  fi
15977fi
15978rm -f core conftest.err conftest.$ac_objext \
15979    conftest$ac_exeext conftest.$ac_ext
15980  if test -z "$lt_cv_aix_libpath_"; then
15981    lt_cv_aix_libpath_=/usr/lib:/lib
15982  fi
15983
15984fi
15985
15986  aix_libpath=$lt_cv_aix_libpath_
15987fi
15988
15989	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15990	  # Warning - without using the other run time loading flags,
15991	  # -berok will link without error, but may produce a broken library.
15992	  no_undefined_flag=' $wl-bernotok'
15993	  allow_undefined_flag=' $wl-berok'
15994	  if test yes = "$with_gnu_ld"; then
15995	    # We only use this code for GNU lds that support --whole-archive.
15996	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15997	  else
15998	    # Exported symbols can be pulled into shared objects from archives
15999	    whole_archive_flag_spec='$convenience'
16000	  fi
16001	  archive_cmds_need_lc=yes
16002	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16003	  # -brtl affects multiple linker settings, -berok does not and is overridden later
16004	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16005	  if test svr4 != "$with_aix_soname"; then
16006	    # This is similar to how AIX traditionally builds its shared libraries.
16007	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
16008	  fi
16009	  if test aix != "$with_aix_soname"; then
16010	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
16011	  else
16012	    # used by -dlpreopen to get the symbols
16013	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16014	  fi
16015	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16016	fi
16017      fi
16018      ;;
16019
16020    amigaos*)
16021      case $host_cpu in
16022      powerpc)
16023            # see comment about AmigaOS4 .so support
16024            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16025            archive_expsym_cmds=''
16026        ;;
16027      m68k)
16028            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)'
16029            hardcode_libdir_flag_spec='-L$libdir'
16030            hardcode_minus_L=yes
16031        ;;
16032      esac
16033      ;;
16034
16035    bsdi[45]*)
16036      export_dynamic_flag_spec=-rdynamic
16037      ;;
16038
16039    cygwin* | mingw* | pw32* | cegcc*)
16040      # When not using gcc, we currently assume that we are using
16041      # Microsoft Visual C++.
16042      # hardcode_libdir_flag_spec is actually meaningless, as there is
16043      # no search path for DLLs.
16044      case $cc_basename in
16045      cl*)
16046	# Native MSVC
16047	hardcode_libdir_flag_spec=' '
16048	allow_undefined_flag=unsupported
16049	always_export_symbols=yes
16050	file_list_spec='@'
16051	# Tell ltmain to make .lib files, not .a files.
16052	libext=lib
16053	# Tell ltmain to make .dll files, not .so files.
16054	shrext_cmds=.dll
16055	# FIXME: Setting linknames here is a bad hack.
16056	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16057	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16058            cp "$export_symbols" "$output_objdir/$soname.def";
16059            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16060          else
16061            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16062          fi~
16063          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16064          linknames='
16065	# The linker will not automatically build a static lib if we build a DLL.
16066	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16067	enable_shared_with_static_runtimes=yes
16068	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16069	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16070	# Don't use ranlib
16071	old_postinstall_cmds='chmod 644 $oldlib'
16072	postlink_cmds='lt_outputfile="@OUTPUT@"~
16073          lt_tool_outputfile="@TOOL_OUTPUT@"~
16074          case $lt_outputfile in
16075            *.exe|*.EXE) ;;
16076            *)
16077              lt_outputfile=$lt_outputfile.exe
16078              lt_tool_outputfile=$lt_tool_outputfile.exe
16079              ;;
16080          esac~
16081          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16082            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16083            $RM "$lt_outputfile.manifest";
16084          fi'
16085	;;
16086      *)
16087	# Assume MSVC wrapper
16088	hardcode_libdir_flag_spec=' '
16089	allow_undefined_flag=unsupported
16090	# Tell ltmain to make .lib files, not .a files.
16091	libext=lib
16092	# Tell ltmain to make .dll files, not .so files.
16093	shrext_cmds=.dll
16094	# FIXME: Setting linknames here is a bad hack.
16095	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16096	# The linker will automatically build a .lib file if we build a DLL.
16097	old_archive_from_new_cmds='true'
16098	# FIXME: Should let the user specify the lib program.
16099	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16100	enable_shared_with_static_runtimes=yes
16101	;;
16102      esac
16103      ;;
16104
16105    darwin* | rhapsody*)
16106
16107
16108  archive_cmds_need_lc=no
16109  hardcode_direct=no
16110  hardcode_automatic=yes
16111  hardcode_shlibpath_var=unsupported
16112  if test yes = "$lt_cv_ld_force_load"; then
16113    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\"`'
16114
16115  else
16116    whole_archive_flag_spec=''
16117  fi
16118  link_all_deplibs=yes
16119  allow_undefined_flag=$_lt_dar_allow_undefined
16120  case $cc_basename in
16121     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16122     *) _lt_dar_can_shared=$GCC ;;
16123  esac
16124  if test yes = "$_lt_dar_can_shared"; then
16125    output_verbose_link_cmd=func_echo_all
16126    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16127    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16128    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"
16129    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"
16130
16131  else
16132  ld_shlibs=no
16133  fi
16134
16135      ;;
16136
16137    dgux*)
16138      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16139      hardcode_libdir_flag_spec='-L$libdir'
16140      hardcode_shlibpath_var=no
16141      ;;
16142
16143    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16144    # support.  Future versions do this automatically, but an explicit c++rt0.o
16145    # does not break anything, and helps significantly (at the cost of a little
16146    # extra space).
16147    freebsd2.2*)
16148      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16149      hardcode_libdir_flag_spec='-R$libdir'
16150      hardcode_direct=yes
16151      hardcode_shlibpath_var=no
16152      ;;
16153
16154    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16155    freebsd2.*)
16156      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16157      hardcode_direct=yes
16158      hardcode_minus_L=yes
16159      hardcode_shlibpath_var=no
16160      ;;
16161
16162    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16163    freebsd* | dragonfly*)
16164      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16165      hardcode_libdir_flag_spec='-R$libdir'
16166      hardcode_direct=yes
16167      hardcode_shlibpath_var=no
16168      ;;
16169
16170    hpux9*)
16171      if test yes = "$GCC"; then
16172	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16173      else
16174	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16175      fi
16176      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16177      hardcode_libdir_separator=:
16178      hardcode_direct=yes
16179
16180      # hardcode_minus_L: Not really in the search PATH,
16181      # but as the default location of the library.
16182      hardcode_minus_L=yes
16183      export_dynamic_flag_spec='$wl-E'
16184      ;;
16185
16186    hpux10*)
16187      if test yes,no = "$GCC,$with_gnu_ld"; then
16188	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16189      else
16190	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16191      fi
16192      if test no = "$with_gnu_ld"; then
16193	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16194	hardcode_libdir_separator=:
16195	hardcode_direct=yes
16196	hardcode_direct_absolute=yes
16197	export_dynamic_flag_spec='$wl-E'
16198	# hardcode_minus_L: Not really in the search PATH,
16199	# but as the default location of the library.
16200	hardcode_minus_L=yes
16201      fi
16202      ;;
16203
16204    hpux11*)
16205      if test yes,no = "$GCC,$with_gnu_ld"; then
16206	case $host_cpu in
16207	hppa*64*)
16208	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16209	  ;;
16210	ia64*)
16211	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16212	  ;;
16213	*)
16214	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16215	  ;;
16216	esac
16217      else
16218	case $host_cpu in
16219	hppa*64*)
16220	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16221	  ;;
16222	ia64*)
16223	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16224	  ;;
16225	*)
16226
16227	  # Older versions of the 11.00 compiler do not understand -b yet
16228	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16229	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16230$as_echo_n "checking if $CC understands -b... " >&6; }
16231if ${lt_cv_prog_compiler__b+:} false; then :
16232  $as_echo_n "(cached) " >&6
16233else
16234  lt_cv_prog_compiler__b=no
16235   save_LDFLAGS=$LDFLAGS
16236   LDFLAGS="$LDFLAGS -b"
16237   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16238   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16239     # The linker can only warn and ignore the option if not recognized
16240     # So say no if there are warnings
16241     if test -s conftest.err; then
16242       # Append any errors to the config.log.
16243       cat conftest.err 1>&5
16244       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16245       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16246       if diff conftest.exp conftest.er2 >/dev/null; then
16247         lt_cv_prog_compiler__b=yes
16248       fi
16249     else
16250       lt_cv_prog_compiler__b=yes
16251     fi
16252   fi
16253   $RM -r conftest*
16254   LDFLAGS=$save_LDFLAGS
16255
16256fi
16257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16258$as_echo "$lt_cv_prog_compiler__b" >&6; }
16259
16260if test yes = "$lt_cv_prog_compiler__b"; then
16261    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16262else
16263    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16264fi
16265
16266	  ;;
16267	esac
16268      fi
16269      if test no = "$with_gnu_ld"; then
16270	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16271	hardcode_libdir_separator=:
16272
16273	case $host_cpu in
16274	hppa*64*|ia64*)
16275	  hardcode_direct=no
16276	  hardcode_shlibpath_var=no
16277	  ;;
16278	*)
16279	  hardcode_direct=yes
16280	  hardcode_direct_absolute=yes
16281	  export_dynamic_flag_spec='$wl-E'
16282
16283	  # hardcode_minus_L: Not really in the search PATH,
16284	  # but as the default location of the library.
16285	  hardcode_minus_L=yes
16286	  ;;
16287	esac
16288      fi
16289      ;;
16290
16291    irix5* | irix6* | nonstopux*)
16292      if test yes = "$GCC"; then
16293	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'
16294	# Try to use the -exported_symbol ld option, if it does not
16295	# work, assume that -exports_file does not work either and
16296	# implicitly export all symbols.
16297	# This should be the same for all languages, so no per-tag cache variable.
16298	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16299$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16300if ${lt_cv_irix_exported_symbol+:} false; then :
16301  $as_echo_n "(cached) " >&6
16302else
16303  save_LDFLAGS=$LDFLAGS
16304	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16305	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306/* end confdefs.h.  */
16307int foo (void) { return 0; }
16308_ACEOF
16309if ac_fn_c_try_link "$LINENO"; then :
16310  lt_cv_irix_exported_symbol=yes
16311else
16312  lt_cv_irix_exported_symbol=no
16313fi
16314rm -f core conftest.err conftest.$ac_objext \
16315    conftest$ac_exeext conftest.$ac_ext
16316           LDFLAGS=$save_LDFLAGS
16317fi
16318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16319$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16320	if test yes = "$lt_cv_irix_exported_symbol"; then
16321          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'
16322	fi
16323      else
16324	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'
16325	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'
16326      fi
16327      archive_cmds_need_lc='no'
16328      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16329      hardcode_libdir_separator=:
16330      inherit_rpath=yes
16331      link_all_deplibs=yes
16332      ;;
16333
16334    linux*)
16335      case $cc_basename in
16336      tcc*)
16337	# Fabrice Bellard et al's Tiny C Compiler
16338	ld_shlibs=yes
16339	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16340	;;
16341      esac
16342      ;;
16343
16344    netbsd*)
16345      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16346	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16347      else
16348	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16349      fi
16350      hardcode_libdir_flag_spec='-R$libdir'
16351      hardcode_direct=yes
16352      hardcode_shlibpath_var=no
16353      ;;
16354
16355    newsos6)
16356      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16357      hardcode_direct=yes
16358      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16359      hardcode_libdir_separator=:
16360      hardcode_shlibpath_var=no
16361      ;;
16362
16363    *nto* | *qnx*)
16364      ;;
16365
16366    openbsd* | bitrig*)
16367      if test -f /usr/libexec/ld.so; then
16368	hardcode_direct=yes
16369	hardcode_shlibpath_var=no
16370	hardcode_direct_absolute=yes
16371	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16372	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16373	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16374	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16375	  export_dynamic_flag_spec='$wl-E'
16376	else
16377	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16378	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16379	fi
16380      else
16381	ld_shlibs=no
16382      fi
16383      ;;
16384
16385    os2*)
16386      hardcode_libdir_flag_spec='-L$libdir'
16387      hardcode_minus_L=yes
16388      allow_undefined_flag=unsupported
16389      shrext_cmds=.dll
16390      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16391	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16392	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16393	$ECHO EXPORTS >> $output_objdir/$libname.def~
16394	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16395	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16396	emximp -o $lib $output_objdir/$libname.def'
16397      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16398	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16399	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16400	$ECHO EXPORTS >> $output_objdir/$libname.def~
16401	prefix_cmds="$SED"~
16402	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16403	  prefix_cmds="$prefix_cmds -e 1d";
16404	fi~
16405	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16406	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16407	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16408	emximp -o $lib $output_objdir/$libname.def'
16409      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16410      enable_shared_with_static_runtimes=yes
16411      ;;
16412
16413    osf3*)
16414      if test yes = "$GCC"; then
16415	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16416	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'
16417      else
16418	allow_undefined_flag=' -expect_unresolved \*'
16419	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'
16420      fi
16421      archive_cmds_need_lc='no'
16422      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16423      hardcode_libdir_separator=:
16424      ;;
16425
16426    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16427      if test yes = "$GCC"; then
16428	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16429	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'
16430	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16431      else
16432	allow_undefined_flag=' -expect_unresolved \*'
16433	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'
16434	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~
16435          $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'
16436
16437	# Both c and cxx compiler support -rpath directly
16438	hardcode_libdir_flag_spec='-rpath $libdir'
16439      fi
16440      archive_cmds_need_lc='no'
16441      hardcode_libdir_separator=:
16442      ;;
16443
16444    solaris*)
16445      no_undefined_flag=' -z defs'
16446      if test yes = "$GCC"; then
16447	wlarc='$wl'
16448	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16449	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16450          $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'
16451      else
16452	case `$CC -V 2>&1` in
16453	*"Compilers 5.0"*)
16454	  wlarc=''
16455	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16456	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16457            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16458	  ;;
16459	*)
16460	  wlarc='$wl'
16461	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16462	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16463            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16464	  ;;
16465	esac
16466      fi
16467      hardcode_libdir_flag_spec='-R$libdir'
16468      hardcode_shlibpath_var=no
16469      case $host_os in
16470      solaris2.[0-5] | solaris2.[0-5].*) ;;
16471      *)
16472	# The compiler driver will combine and reorder linker options,
16473	# but understands '-z linker_flag'.  GCC discards it without '$wl',
16474	# but is careful enough not to reorder.
16475	# Supported since Solaris 2.6 (maybe 2.5.1?)
16476	if test yes = "$GCC"; then
16477	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16478	else
16479	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16480	fi
16481	;;
16482      esac
16483      link_all_deplibs=yes
16484      ;;
16485
16486    sunos4*)
16487      if test sequent = "$host_vendor"; then
16488	# Use $CC to link under sequent, because it throws in some extra .o
16489	# files that make .init and .fini sections work.
16490	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16491      else
16492	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16493      fi
16494      hardcode_libdir_flag_spec='-L$libdir'
16495      hardcode_direct=yes
16496      hardcode_minus_L=yes
16497      hardcode_shlibpath_var=no
16498      ;;
16499
16500    sysv4)
16501      case $host_vendor in
16502	sni)
16503	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16504	  hardcode_direct=yes # is this really true???
16505	;;
16506	siemens)
16507	  ## LD is ld it makes a PLAMLIB
16508	  ## CC just makes a GrossModule.
16509	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16510	  reload_cmds='$CC -r -o $output$reload_objs'
16511	  hardcode_direct=no
16512        ;;
16513	motorola)
16514	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16515	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16516	;;
16517      esac
16518      runpath_var='LD_RUN_PATH'
16519      hardcode_shlibpath_var=no
16520      ;;
16521
16522    sysv4.3*)
16523      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16524      hardcode_shlibpath_var=no
16525      export_dynamic_flag_spec='-Bexport'
16526      ;;
16527
16528    sysv4*MP*)
16529      if test -d /usr/nec; then
16530	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16531	hardcode_shlibpath_var=no
16532	runpath_var=LD_RUN_PATH
16533	hardcode_runpath_var=yes
16534	ld_shlibs=yes
16535      fi
16536      ;;
16537
16538    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16539      no_undefined_flag='$wl-z,text'
16540      archive_cmds_need_lc=no
16541      hardcode_shlibpath_var=no
16542      runpath_var='LD_RUN_PATH'
16543
16544      if test yes = "$GCC"; then
16545	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16546	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16547      else
16548	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16549	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16550      fi
16551      ;;
16552
16553    sysv5* | sco3.2v5* | sco5v6*)
16554      # Note: We CANNOT use -z defs as we might desire, because we do not
16555      # link with -lc, and that would cause any symbols used from libc to
16556      # always be unresolved, which means just about no library would
16557      # ever link correctly.  If we're not using GNU ld we use -z text
16558      # though, which does catch some bad symbols but isn't as heavy-handed
16559      # as -z defs.
16560      no_undefined_flag='$wl-z,text'
16561      allow_undefined_flag='$wl-z,nodefs'
16562      archive_cmds_need_lc=no
16563      hardcode_shlibpath_var=no
16564      hardcode_libdir_flag_spec='$wl-R,$libdir'
16565      hardcode_libdir_separator=':'
16566      link_all_deplibs=yes
16567      export_dynamic_flag_spec='$wl-Bexport'
16568      runpath_var='LD_RUN_PATH'
16569
16570      if test yes = "$GCC"; then
16571	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16572	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16573      else
16574	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16575	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16576      fi
16577      ;;
16578
16579    uts4*)
16580      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16581      hardcode_libdir_flag_spec='-L$libdir'
16582      hardcode_shlibpath_var=no
16583      ;;
16584
16585    *)
16586      ld_shlibs=no
16587      ;;
16588    esac
16589
16590    if test sni = "$host_vendor"; then
16591      case $host in
16592      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16593	export_dynamic_flag_spec='$wl-Blargedynsym'
16594	;;
16595      esac
16596    fi
16597  fi
16598
16599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16600$as_echo "$ld_shlibs" >&6; }
16601test no = "$ld_shlibs" && can_build_shared=no
16602
16603with_gnu_ld=$with_gnu_ld
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619#
16620# Do we need to explicitly link libc?
16621#
16622case "x$archive_cmds_need_lc" in
16623x|xyes)
16624  # Assume -lc should be added
16625  archive_cmds_need_lc=yes
16626
16627  if test yes,yes = "$GCC,$enable_shared"; then
16628    case $archive_cmds in
16629    *'~'*)
16630      # FIXME: we may have to deal with multi-command sequences.
16631      ;;
16632    '$CC '*)
16633      # Test whether the compiler implicitly links with -lc since on some
16634      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16635      # to ld, don't add -lc before -lgcc.
16636      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16637$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16638if ${lt_cv_archive_cmds_need_lc+:} false; then :
16639  $as_echo_n "(cached) " >&6
16640else
16641  $RM conftest*
16642	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16643
16644	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16645  (eval $ac_compile) 2>&5
16646  ac_status=$?
16647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16648  test $ac_status = 0; } 2>conftest.err; then
16649	  soname=conftest
16650	  lib=conftest
16651	  libobjs=conftest.$ac_objext
16652	  deplibs=
16653	  wl=$lt_prog_compiler_wl
16654	  pic_flag=$lt_prog_compiler_pic
16655	  compiler_flags=-v
16656	  linker_flags=-v
16657	  verstring=
16658	  output_objdir=.
16659	  libname=conftest
16660	  lt_save_allow_undefined_flag=$allow_undefined_flag
16661	  allow_undefined_flag=
16662	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16663  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16664  ac_status=$?
16665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16666  test $ac_status = 0; }
16667	  then
16668	    lt_cv_archive_cmds_need_lc=no
16669	  else
16670	    lt_cv_archive_cmds_need_lc=yes
16671	  fi
16672	  allow_undefined_flag=$lt_save_allow_undefined_flag
16673	else
16674	  cat conftest.err 1>&5
16675	fi
16676	$RM conftest*
16677
16678fi
16679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16680$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16681      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16682      ;;
16683    esac
16684  fi
16685  ;;
16686esac
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16840$as_echo_n "checking dynamic linker characteristics... " >&6; }
16841
16842if test yes = "$GCC"; then
16843  case $host_os in
16844    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16845    *) lt_awk_arg='/^libraries:/' ;;
16846  esac
16847  case $host_os in
16848    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16849    *) lt_sed_strip_eq='s|=/|/|g' ;;
16850  esac
16851  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16852  case $lt_search_path_spec in
16853  *\;*)
16854    # if the path contains ";" then we assume it to be the separator
16855    # otherwise default to the standard path separator (i.e. ":") - it is
16856    # assumed that no part of a normal pathname contains ";" but that should
16857    # okay in the real world where ";" in dirpaths is itself problematic.
16858    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16859    ;;
16860  *)
16861    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16862    ;;
16863  esac
16864  # Ok, now we have the path, separated by spaces, we can step through it
16865  # and add multilib dir if necessary...
16866  lt_tmp_lt_search_path_spec=
16867  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16868  # ...but if some path component already ends with the multilib dir we assume
16869  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16870  case "$lt_multi_os_dir; $lt_search_path_spec " in
16871  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16872    lt_multi_os_dir=
16873    ;;
16874  esac
16875  for lt_sys_path in $lt_search_path_spec; do
16876    if test -d "$lt_sys_path$lt_multi_os_dir"; then
16877      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16878    elif test -n "$lt_multi_os_dir"; then
16879      test -d "$lt_sys_path" && \
16880	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16881    fi
16882  done
16883  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16884BEGIN {RS = " "; FS = "/|\n";} {
16885  lt_foo = "";
16886  lt_count = 0;
16887  for (lt_i = NF; lt_i > 0; lt_i--) {
16888    if ($lt_i != "" && $lt_i != ".") {
16889      if ($lt_i == "..") {
16890        lt_count++;
16891      } else {
16892        if (lt_count == 0) {
16893          lt_foo = "/" $lt_i lt_foo;
16894        } else {
16895          lt_count--;
16896        }
16897      }
16898    }
16899  }
16900  if (lt_foo != "") { lt_freq[lt_foo]++; }
16901  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16902}'`
16903  # AWK program above erroneously prepends '/' to C:/dos/paths
16904  # for these hosts.
16905  case $host_os in
16906    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16907      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16908  esac
16909  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16910else
16911  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16912fi
16913library_names_spec=
16914libname_spec='lib$name'
16915soname_spec=
16916shrext_cmds=.so
16917postinstall_cmds=
16918postuninstall_cmds=
16919finish_cmds=
16920finish_eval=
16921shlibpath_var=
16922shlibpath_overrides_runpath=unknown
16923version_type=none
16924dynamic_linker="$host_os ld.so"
16925sys_lib_dlsearch_path_spec="/lib /usr/lib"
16926need_lib_prefix=unknown
16927hardcode_into_libs=no
16928
16929# when you set need_version to no, make sure it does not cause -set_version
16930# flags to be left without arguments
16931need_version=unknown
16932
16933
16934
16935case $host_os in
16936aix3*)
16937  version_type=linux # correct to gnu/linux during the next big refactor
16938  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16939  shlibpath_var=LIBPATH
16940
16941  # AIX 3 has no versioning support, so we append a major version to the name.
16942  soname_spec='$libname$release$shared_ext$major'
16943  ;;
16944
16945aix[4-9]*)
16946  version_type=linux # correct to gnu/linux during the next big refactor
16947  need_lib_prefix=no
16948  need_version=no
16949  hardcode_into_libs=yes
16950  if test ia64 = "$host_cpu"; then
16951    # AIX 5 supports IA64
16952    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16953    shlibpath_var=LD_LIBRARY_PATH
16954  else
16955    # With GCC up to 2.95.x, collect2 would create an import file
16956    # for dependence libraries.  The import file would start with
16957    # the line '#! .'.  This would cause the generated library to
16958    # depend on '.', always an invalid library.  This was fixed in
16959    # development snapshots of GCC prior to 3.0.
16960    case $host_os in
16961      aix4 | aix4.[01] | aix4.[01].*)
16962      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16963	   echo ' yes '
16964	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16965	:
16966      else
16967	can_build_shared=no
16968      fi
16969      ;;
16970    esac
16971    # Using Import Files as archive members, it is possible to support
16972    # filename-based versioning of shared library archives on AIX. While
16973    # this would work for both with and without runtime linking, it will
16974    # prevent static linking of such archives. So we do filename-based
16975    # shared library versioning with .so extension only, which is used
16976    # when both runtime linking and shared linking is enabled.
16977    # Unfortunately, runtime linking may impact performance, so we do
16978    # not want this to be the default eventually. Also, we use the
16979    # versioned .so libs for executables only if there is the -brtl
16980    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16981    # To allow for filename-based versioning support, we need to create
16982    # libNAME.so.V as an archive file, containing:
16983    # *) an Import File, referring to the versioned filename of the
16984    #    archive as well as the shared archive member, telling the
16985    #    bitwidth (32 or 64) of that shared object, and providing the
16986    #    list of exported symbols of that shared object, eventually
16987    #    decorated with the 'weak' keyword
16988    # *) the shared object with the F_LOADONLY flag set, to really avoid
16989    #    it being seen by the linker.
16990    # At run time we better use the real file rather than another symlink,
16991    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16992
16993    case $with_aix_soname,$aix_use_runtimelinking in
16994    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16995    # soname into executable. Probably we can add versioning support to
16996    # collect2, so additional links can be useful in future.
16997    aix,yes) # traditional libtool
16998      dynamic_linker='AIX unversionable lib.so'
16999      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17000      # instead of lib<name>.a to let people know that these are not
17001      # typical AIX shared libraries.
17002      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17003      ;;
17004    aix,no) # traditional AIX only
17005      dynamic_linker='AIX lib.a(lib.so.V)'
17006      # We preserve .a as extension for shared libraries through AIX4.2
17007      # and later when we are not doing run time linking.
17008      library_names_spec='$libname$release.a $libname.a'
17009      soname_spec='$libname$release$shared_ext$major'
17010      ;;
17011    svr4,*) # full svr4 only
17012      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17013      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17014      # We do not specify a path in Import Files, so LIBPATH fires.
17015      shlibpath_overrides_runpath=yes
17016      ;;
17017    *,yes) # both, prefer svr4
17018      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17019      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17020      # unpreferred sharedlib libNAME.a needs extra handling
17021      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17022      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17023      # We do not specify a path in Import Files, so LIBPATH fires.
17024      shlibpath_overrides_runpath=yes
17025      ;;
17026    *,no) # both, prefer aix
17027      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17028      library_names_spec='$libname$release.a $libname.a'
17029      soname_spec='$libname$release$shared_ext$major'
17030      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17031      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17032      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17033      ;;
17034    esac
17035    shlibpath_var=LIBPATH
17036  fi
17037  ;;
17038
17039amigaos*)
17040  case $host_cpu in
17041  powerpc)
17042    # Since July 2007 AmigaOS4 officially supports .so libraries.
17043    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17044    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17045    ;;
17046  m68k)
17047    library_names_spec='$libname.ixlibrary $libname.a'
17048    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17049    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17050    ;;
17051  esac
17052  ;;
17053
17054beos*)
17055  library_names_spec='$libname$shared_ext'
17056  dynamic_linker="$host_os ld.so"
17057  shlibpath_var=LIBRARY_PATH
17058  ;;
17059
17060bsdi[45]*)
17061  version_type=linux # correct to gnu/linux during the next big refactor
17062  need_version=no
17063  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17064  soname_spec='$libname$release$shared_ext$major'
17065  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17066  shlibpath_var=LD_LIBRARY_PATH
17067  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17068  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17069  # the default ld.so.conf also contains /usr/contrib/lib and
17070  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17071  # libtool to hard-code these into programs
17072  ;;
17073
17074cygwin* | mingw* | pw32* | cegcc*)
17075  version_type=windows
17076  shrext_cmds=.dll
17077  need_version=no
17078  need_lib_prefix=no
17079
17080  case $GCC,$cc_basename in
17081  yes,*)
17082    # gcc
17083    library_names_spec='$libname.dll.a'
17084    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17085    postinstall_cmds='base_file=`basename \$file`~
17086      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17087      dldir=$destdir/`dirname \$dlpath`~
17088      test -d \$dldir || mkdir -p \$dldir~
17089      $install_prog $dir/$dlname \$dldir/$dlname~
17090      chmod a+x \$dldir/$dlname~
17091      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17092        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17093      fi'
17094    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17095      dlpath=$dir/\$dldll~
17096       $RM \$dlpath'
17097    shlibpath_overrides_runpath=yes
17098
17099    case $host_os in
17100    cygwin*)
17101      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17102      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17103
17104      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17105      ;;
17106    mingw* | cegcc*)
17107      # MinGW DLLs use traditional 'lib' prefix
17108      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17109      ;;
17110    pw32*)
17111      # pw32 DLLs use 'pw' prefix rather than 'lib'
17112      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17113      ;;
17114    esac
17115    dynamic_linker='Win32 ld.exe'
17116    ;;
17117
17118  *,cl*)
17119    # Native MSVC
17120    libname_spec='$name'
17121    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17122    library_names_spec='$libname.dll.lib'
17123
17124    case $build_os in
17125    mingw*)
17126      sys_lib_search_path_spec=
17127      lt_save_ifs=$IFS
17128      IFS=';'
17129      for lt_path in $LIB
17130      do
17131        IFS=$lt_save_ifs
17132        # Let DOS variable expansion print the short 8.3 style file name.
17133        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17134        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17135      done
17136      IFS=$lt_save_ifs
17137      # Convert to MSYS style.
17138      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17139      ;;
17140    cygwin*)
17141      # Convert to unix form, then to dos form, then back to unix form
17142      # but this time dos style (no spaces!) so that the unix form looks
17143      # like /cygdrive/c/PROGRA~1:/cygdr...
17144      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17145      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17146      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17147      ;;
17148    *)
17149      sys_lib_search_path_spec=$LIB
17150      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17151        # It is most probably a Windows format PATH.
17152        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17153      else
17154        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17155      fi
17156      # FIXME: find the short name or the path components, as spaces are
17157      # common. (e.g. "Program Files" -> "PROGRA~1")
17158      ;;
17159    esac
17160
17161    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17162    postinstall_cmds='base_file=`basename \$file`~
17163      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17164      dldir=$destdir/`dirname \$dlpath`~
17165      test -d \$dldir || mkdir -p \$dldir~
17166      $install_prog $dir/$dlname \$dldir/$dlname'
17167    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17168      dlpath=$dir/\$dldll~
17169       $RM \$dlpath'
17170    shlibpath_overrides_runpath=yes
17171    dynamic_linker='Win32 link.exe'
17172    ;;
17173
17174  *)
17175    # Assume MSVC wrapper
17176    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17177    dynamic_linker='Win32 ld.exe'
17178    ;;
17179  esac
17180  # FIXME: first we should search . and the directory the executable is in
17181  shlibpath_var=PATH
17182  ;;
17183
17184darwin* | rhapsody*)
17185  dynamic_linker="$host_os dyld"
17186  version_type=darwin
17187  need_lib_prefix=no
17188  need_version=no
17189  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17190  soname_spec='$libname$release$major$shared_ext'
17191  shlibpath_overrides_runpath=yes
17192  shlibpath_var=DYLD_LIBRARY_PATH
17193  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17194
17195  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17196  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17197  ;;
17198
17199dgux*)
17200  version_type=linux # correct to gnu/linux during the next big refactor
17201  need_lib_prefix=no
17202  need_version=no
17203  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17204  soname_spec='$libname$release$shared_ext$major'
17205  shlibpath_var=LD_LIBRARY_PATH
17206  ;;
17207
17208freebsd* | dragonfly*)
17209  # DragonFly does not have aout.  When/if they implement a new
17210  # versioning mechanism, adjust this.
17211  if test -x /usr/bin/objformat; then
17212    objformat=`/usr/bin/objformat`
17213  else
17214    case $host_os in
17215    freebsd[23].*) objformat=aout ;;
17216    *) objformat=elf ;;
17217    esac
17218  fi
17219  # Handle Gentoo/FreeBSD as it was Linux
17220  case $host_vendor in
17221    gentoo)
17222      version_type=linux ;;
17223    *)
17224      version_type=freebsd-$objformat ;;
17225  esac
17226
17227  case $version_type in
17228    freebsd-elf*)
17229      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17230      soname_spec='$libname$release$shared_ext$major'
17231      need_version=no
17232      need_lib_prefix=no
17233      ;;
17234    freebsd-*)
17235      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17236      need_version=yes
17237      ;;
17238    linux)
17239      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17240      soname_spec='${libname}${release}${shared_ext}$major'
17241      need_lib_prefix=no
17242      need_version=no
17243      ;;
17244  esac
17245  shlibpath_var=LD_LIBRARY_PATH
17246  case $host_os in
17247  freebsd2.*)
17248    shlibpath_overrides_runpath=yes
17249    ;;
17250  freebsd3.[01]* | freebsdelf3.[01]*)
17251    shlibpath_overrides_runpath=yes
17252    hardcode_into_libs=yes
17253    ;;
17254  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17255  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17256    shlibpath_overrides_runpath=no
17257    hardcode_into_libs=yes
17258    ;;
17259  *) # from 4.6 on, and DragonFly
17260    shlibpath_overrides_runpath=yes
17261    hardcode_into_libs=yes
17262    ;;
17263  esac
17264  ;;
17265
17266haiku*)
17267  version_type=linux # correct to gnu/linux during the next big refactor
17268  need_lib_prefix=no
17269  need_version=no
17270  dynamic_linker="$host_os runtime_loader"
17271  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17272  soname_spec='$libname$release$shared_ext$major'
17273  shlibpath_var=LIBRARY_PATH
17274  shlibpath_overrides_runpath=no
17275  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17276  hardcode_into_libs=yes
17277  ;;
17278
17279hpux9* | hpux10* | hpux11*)
17280  # Give a soname corresponding to the major version so that dld.sl refuses to
17281  # link against other versions.
17282  version_type=sunos
17283  need_lib_prefix=no
17284  need_version=no
17285  case $host_cpu in
17286  ia64*)
17287    shrext_cmds='.so'
17288    hardcode_into_libs=yes
17289    dynamic_linker="$host_os dld.so"
17290    shlibpath_var=LD_LIBRARY_PATH
17291    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17292    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17293    soname_spec='$libname$release$shared_ext$major'
17294    if test 32 = "$HPUX_IA64_MODE"; then
17295      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17296      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17297    else
17298      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17299      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17300    fi
17301    ;;
17302  hppa*64*)
17303    shrext_cmds='.sl'
17304    hardcode_into_libs=yes
17305    dynamic_linker="$host_os dld.sl"
17306    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17307    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17308    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17309    soname_spec='$libname$release$shared_ext$major'
17310    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17311    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17312    ;;
17313  *)
17314    shrext_cmds='.sl'
17315    dynamic_linker="$host_os dld.sl"
17316    shlibpath_var=SHLIB_PATH
17317    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17318    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17319    soname_spec='$libname$release$shared_ext$major'
17320    ;;
17321  esac
17322  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17323  postinstall_cmds='chmod 555 $lib'
17324  # or fails outright, so override atomically:
17325  install_override_mode=555
17326  ;;
17327
17328interix[3-9]*)
17329  version_type=linux # correct to gnu/linux during the next big refactor
17330  need_lib_prefix=no
17331  need_version=no
17332  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17333  soname_spec='$libname$release$shared_ext$major'
17334  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17335  shlibpath_var=LD_LIBRARY_PATH
17336  shlibpath_overrides_runpath=no
17337  hardcode_into_libs=yes
17338  ;;
17339
17340irix5* | irix6* | nonstopux*)
17341  case $host_os in
17342    nonstopux*) version_type=nonstopux ;;
17343    *)
17344	if test yes = "$lt_cv_prog_gnu_ld"; then
17345		version_type=linux # correct to gnu/linux during the next big refactor
17346	else
17347		version_type=irix
17348	fi ;;
17349  esac
17350  need_lib_prefix=no
17351  need_version=no
17352  soname_spec='$libname$release$shared_ext$major'
17353  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17354  case $host_os in
17355  irix5* | nonstopux*)
17356    libsuff= shlibsuff=
17357    ;;
17358  *)
17359    case $LD in # libtool.m4 will add one of these switches to LD
17360    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17361      libsuff= shlibsuff= libmagic=32-bit;;
17362    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17363      libsuff=32 shlibsuff=N32 libmagic=N32;;
17364    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17365      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17366    *) libsuff= shlibsuff= libmagic=never-match;;
17367    esac
17368    ;;
17369  esac
17370  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17371  shlibpath_overrides_runpath=no
17372  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17373  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17374  hardcode_into_libs=yes
17375  ;;
17376
17377# No shared lib support for Linux oldld, aout, or coff.
17378linux*oldld* | linux*aout* | linux*coff*)
17379  dynamic_linker=no
17380  ;;
17381
17382linux*android*)
17383  version_type=none # Android doesn't support versioned libraries.
17384  need_lib_prefix=no
17385  need_version=no
17386  library_names_spec='$libname$release$shared_ext'
17387  soname_spec='$libname$release$shared_ext'
17388  finish_cmds=
17389  shlibpath_var=LD_LIBRARY_PATH
17390  shlibpath_overrides_runpath=yes
17391
17392  # This implies no fast_install, which is unacceptable.
17393  # Some rework will be needed to allow for fast_install
17394  # before this can be enabled.
17395  hardcode_into_libs=yes
17396
17397  dynamic_linker='Android linker'
17398  # Don't embed -rpath directories since the linker doesn't support them.
17399  hardcode_libdir_flag_spec='-L$libdir'
17400  ;;
17401
17402# This must be glibc/ELF.
17403linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17404  version_type=linux # correct to gnu/linux during the next big refactor
17405  need_lib_prefix=no
17406  need_version=no
17407  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17408  soname_spec='$libname$release$shared_ext$major'
17409  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17410  shlibpath_var=LD_LIBRARY_PATH
17411  shlibpath_overrides_runpath=no
17412
17413  # Some binutils ld are patched to set DT_RUNPATH
17414  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17415  $as_echo_n "(cached) " >&6
17416else
17417  lt_cv_shlibpath_overrides_runpath=no
17418    save_LDFLAGS=$LDFLAGS
17419    save_libdir=$libdir
17420    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17421	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17422    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17423/* end confdefs.h.  */
17424
17425int
17426main ()
17427{
17428
17429  ;
17430  return 0;
17431}
17432_ACEOF
17433if ac_fn_c_try_link "$LINENO"; then :
17434  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17435  lt_cv_shlibpath_overrides_runpath=yes
17436fi
17437fi
17438rm -f core conftest.err conftest.$ac_objext \
17439    conftest$ac_exeext conftest.$ac_ext
17440    LDFLAGS=$save_LDFLAGS
17441    libdir=$save_libdir
17442
17443fi
17444
17445  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17446
17447  # This implies no fast_install, which is unacceptable.
17448  # Some rework will be needed to allow for fast_install
17449  # before this can be enabled.
17450  hardcode_into_libs=yes
17451
17452  # Ideally, we could use ldconfig to report *all* directores which are
17453  # searched for libraries, however this is still not possible.  Aside from not
17454  # being certain /sbin/ldconfig is available, command
17455  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17456  # even though it is searched at run-time.  Try to do the best guess by
17457  # appending ld.so.conf contents (and includes) to the search path.
17458  if test -f /etc/ld.so.conf; then
17459    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' ' '`
17460    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17461  fi
17462
17463  # We used to test for /lib/ld.so.1 and disable shared libraries on
17464  # powerpc, because MkLinux only supported shared libraries with the
17465  # GNU dynamic linker.  Since this was broken with cross compilers,
17466  # most powerpc-linux boxes support dynamic linking these days and
17467  # people can always --disable-shared, the test was removed, and we
17468  # assume the GNU/Linux dynamic linker is in use.
17469  dynamic_linker='GNU/Linux ld.so'
17470  ;;
17471
17472netbsd*)
17473  version_type=sunos
17474  need_lib_prefix=no
17475  need_version=no
17476  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17477    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17478    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17479    dynamic_linker='NetBSD (a.out) ld.so'
17480  else
17481    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17482    soname_spec='$libname$release$shared_ext$major'
17483    dynamic_linker='NetBSD ld.elf_so'
17484  fi
17485  shlibpath_var=LD_LIBRARY_PATH
17486  shlibpath_overrides_runpath=yes
17487  hardcode_into_libs=yes
17488  ;;
17489
17490newsos6)
17491  version_type=linux # correct to gnu/linux during the next big refactor
17492  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17493  shlibpath_var=LD_LIBRARY_PATH
17494  shlibpath_overrides_runpath=yes
17495  ;;
17496
17497*nto* | *qnx*)
17498  version_type=qnx
17499  need_lib_prefix=no
17500  need_version=no
17501  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17502  soname_spec='$libname$release$shared_ext$major'
17503  shlibpath_var=LD_LIBRARY_PATH
17504  shlibpath_overrides_runpath=no
17505  hardcode_into_libs=yes
17506  dynamic_linker='ldqnx.so'
17507  ;;
17508
17509openbsd* | bitrig*)
17510  version_type=sunos
17511  sys_lib_dlsearch_path_spec=/usr/lib
17512  need_lib_prefix=no
17513  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17514    need_version=no
17515  else
17516    need_version=yes
17517  fi
17518  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17519  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17520  shlibpath_var=LD_LIBRARY_PATH
17521  shlibpath_overrides_runpath=yes
17522  ;;
17523
17524os2*)
17525  libname_spec='$name'
17526  version_type=windows
17527  shrext_cmds=.dll
17528  need_version=no
17529  need_lib_prefix=no
17530  # OS/2 can only load a DLL with a base name of 8 characters or less.
17531  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17532    v=$($ECHO $release$versuffix | tr -d .-);
17533    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17534    $ECHO $n$v`$shared_ext'
17535  library_names_spec='${libname}_dll.$libext'
17536  dynamic_linker='OS/2 ld.exe'
17537  shlibpath_var=BEGINLIBPATH
17538  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17539  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17540  postinstall_cmds='base_file=`basename \$file`~
17541    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17542    dldir=$destdir/`dirname \$dlpath`~
17543    test -d \$dldir || mkdir -p \$dldir~
17544    $install_prog $dir/$dlname \$dldir/$dlname~
17545    chmod a+x \$dldir/$dlname~
17546    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17547      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17548    fi'
17549  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17550    dlpath=$dir/\$dldll~
17551    $RM \$dlpath'
17552  ;;
17553
17554osf3* | osf4* | osf5*)
17555  version_type=osf
17556  need_lib_prefix=no
17557  need_version=no
17558  soname_spec='$libname$release$shared_ext$major'
17559  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17560  shlibpath_var=LD_LIBRARY_PATH
17561  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17562  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17563  ;;
17564
17565rdos*)
17566  dynamic_linker=no
17567  ;;
17568
17569solaris*)
17570  version_type=linux # correct to gnu/linux during the next big refactor
17571  need_lib_prefix=no
17572  need_version=no
17573  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17574  soname_spec='$libname$release$shared_ext$major'
17575  shlibpath_var=LD_LIBRARY_PATH
17576  shlibpath_overrides_runpath=yes
17577  hardcode_into_libs=yes
17578  # ldd complains unless libraries are executable
17579  postinstall_cmds='chmod +x $lib'
17580  ;;
17581
17582sunos4*)
17583  version_type=sunos
17584  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17585  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17586  shlibpath_var=LD_LIBRARY_PATH
17587  shlibpath_overrides_runpath=yes
17588  if test yes = "$with_gnu_ld"; then
17589    need_lib_prefix=no
17590  fi
17591  need_version=yes
17592  ;;
17593
17594sysv4 | sysv4.3*)
17595  version_type=linux # correct to gnu/linux during the next big refactor
17596  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17597  soname_spec='$libname$release$shared_ext$major'
17598  shlibpath_var=LD_LIBRARY_PATH
17599  case $host_vendor in
17600    sni)
17601      shlibpath_overrides_runpath=no
17602      need_lib_prefix=no
17603      runpath_var=LD_RUN_PATH
17604      ;;
17605    siemens)
17606      need_lib_prefix=no
17607      ;;
17608    motorola)
17609      need_lib_prefix=no
17610      need_version=no
17611      shlibpath_overrides_runpath=no
17612      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17613      ;;
17614  esac
17615  ;;
17616
17617sysv4*MP*)
17618  if test -d /usr/nec; then
17619    version_type=linux # correct to gnu/linux during the next big refactor
17620    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17621    soname_spec='$libname$shared_ext.$major'
17622    shlibpath_var=LD_LIBRARY_PATH
17623  fi
17624  ;;
17625
17626sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17627  version_type=sco
17628  need_lib_prefix=no
17629  need_version=no
17630  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17631  soname_spec='$libname$release$shared_ext$major'
17632  shlibpath_var=LD_LIBRARY_PATH
17633  shlibpath_overrides_runpath=yes
17634  hardcode_into_libs=yes
17635  if test yes = "$with_gnu_ld"; then
17636    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17637  else
17638    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17639    case $host_os in
17640      sco3.2v5*)
17641        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17642	;;
17643    esac
17644  fi
17645  sys_lib_dlsearch_path_spec='/usr/lib'
17646  ;;
17647
17648tpf*)
17649  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17650  version_type=linux # correct to gnu/linux during the next big refactor
17651  need_lib_prefix=no
17652  need_version=no
17653  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17654  shlibpath_var=LD_LIBRARY_PATH
17655  shlibpath_overrides_runpath=no
17656  hardcode_into_libs=yes
17657  ;;
17658
17659uts4*)
17660  version_type=linux # correct to gnu/linux during the next big refactor
17661  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17662  soname_spec='$libname$release$shared_ext$major'
17663  shlibpath_var=LD_LIBRARY_PATH
17664  ;;
17665
17666*)
17667  dynamic_linker=no
17668  ;;
17669esac
17670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17671$as_echo "$dynamic_linker" >&6; }
17672test no = "$dynamic_linker" && can_build_shared=no
17673
17674variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17675if test yes = "$GCC"; then
17676  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17677fi
17678
17679if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17680  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17681fi
17682
17683if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17684  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17685fi
17686
17687# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17688configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17689
17690# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17691func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17692
17693# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17694configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17793$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17794hardcode_action=
17795if test -n "$hardcode_libdir_flag_spec" ||
17796   test -n "$runpath_var" ||
17797   test yes = "$hardcode_automatic"; then
17798
17799  # We can hardcode non-existent directories.
17800  if test no != "$hardcode_direct" &&
17801     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17802     # have to relink, otherwise we might link with an installed library
17803     # when we should be linking with a yet-to-be-installed one
17804     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17805     test no != "$hardcode_minus_L"; then
17806    # Linking always hardcodes the temporary library directory.
17807    hardcode_action=relink
17808  else
17809    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17810    hardcode_action=immediate
17811  fi
17812else
17813  # We cannot hardcode anything, or else we can only hardcode existing
17814  # directories.
17815  hardcode_action=unsupported
17816fi
17817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17818$as_echo "$hardcode_action" >&6; }
17819
17820if test relink = "$hardcode_action" ||
17821   test yes = "$inherit_rpath"; then
17822  # Fast installation is not supported
17823  enable_fast_install=no
17824elif test yes = "$shlibpath_overrides_runpath" ||
17825     test no = "$enable_shared"; then
17826  # Fast installation is not necessary
17827  enable_fast_install=needless
17828fi
17829
17830
17831
17832
17833
17834
17835  if test yes != "$enable_dlopen"; then
17836  enable_dlopen=unknown
17837  enable_dlopen_self=unknown
17838  enable_dlopen_self_static=unknown
17839else
17840  lt_cv_dlopen=no
17841  lt_cv_dlopen_libs=
17842
17843  case $host_os in
17844  beos*)
17845    lt_cv_dlopen=load_add_on
17846    lt_cv_dlopen_libs=
17847    lt_cv_dlopen_self=yes
17848    ;;
17849
17850  mingw* | pw32* | cegcc*)
17851    lt_cv_dlopen=LoadLibrary
17852    lt_cv_dlopen_libs=
17853    ;;
17854
17855  cygwin*)
17856    lt_cv_dlopen=dlopen
17857    lt_cv_dlopen_libs=
17858    ;;
17859
17860  darwin*)
17861    # if libdl is installed we need to link against it
17862    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17863$as_echo_n "checking for dlopen in -ldl... " >&6; }
17864if ${ac_cv_lib_dl_dlopen+:} false; then :
17865  $as_echo_n "(cached) " >&6
17866else
17867  ac_check_lib_save_LIBS=$LIBS
17868LIBS="-ldl  $LIBS"
17869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17870/* end confdefs.h.  */
17871
17872/* Override any GCC internal prototype to avoid an error.
17873   Use char because int might match the return type of a GCC
17874   builtin and then its argument prototype would still apply.  */
17875#ifdef __cplusplus
17876extern "C"
17877#endif
17878char dlopen ();
17879int
17880main ()
17881{
17882return dlopen ();
17883  ;
17884  return 0;
17885}
17886_ACEOF
17887if ac_fn_c_try_link "$LINENO"; then :
17888  ac_cv_lib_dl_dlopen=yes
17889else
17890  ac_cv_lib_dl_dlopen=no
17891fi
17892rm -f core conftest.err conftest.$ac_objext \
17893    conftest$ac_exeext conftest.$ac_ext
17894LIBS=$ac_check_lib_save_LIBS
17895fi
17896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17897$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17898if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17899  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17900else
17901
17902    lt_cv_dlopen=dyld
17903    lt_cv_dlopen_libs=
17904    lt_cv_dlopen_self=yes
17905
17906fi
17907
17908    ;;
17909
17910  tpf*)
17911    # Don't try to run any link tests for TPF.  We know it's impossible
17912    # because TPF is a cross-compiler, and we know how we open DSOs.
17913    lt_cv_dlopen=dlopen
17914    lt_cv_dlopen_libs=
17915    lt_cv_dlopen_self=no
17916    ;;
17917
17918  *)
17919    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17920if test "x$ac_cv_func_shl_load" = xyes; then :
17921  lt_cv_dlopen=shl_load
17922else
17923  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17924$as_echo_n "checking for shl_load in -ldld... " >&6; }
17925if ${ac_cv_lib_dld_shl_load+:} false; then :
17926  $as_echo_n "(cached) " >&6
17927else
17928  ac_check_lib_save_LIBS=$LIBS
17929LIBS="-ldld  $LIBS"
17930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17931/* end confdefs.h.  */
17932
17933/* Override any GCC internal prototype to avoid an error.
17934   Use char because int might match the return type of a GCC
17935   builtin and then its argument prototype would still apply.  */
17936#ifdef __cplusplus
17937extern "C"
17938#endif
17939char shl_load ();
17940int
17941main ()
17942{
17943return shl_load ();
17944  ;
17945  return 0;
17946}
17947_ACEOF
17948if ac_fn_c_try_link "$LINENO"; then :
17949  ac_cv_lib_dld_shl_load=yes
17950else
17951  ac_cv_lib_dld_shl_load=no
17952fi
17953rm -f core conftest.err conftest.$ac_objext \
17954    conftest$ac_exeext conftest.$ac_ext
17955LIBS=$ac_check_lib_save_LIBS
17956fi
17957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17958$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17959if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17960  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17961else
17962  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17963if test "x$ac_cv_func_dlopen" = xyes; then :
17964  lt_cv_dlopen=dlopen
17965else
17966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17967$as_echo_n "checking for dlopen in -ldl... " >&6; }
17968if ${ac_cv_lib_dl_dlopen+:} false; then :
17969  $as_echo_n "(cached) " >&6
17970else
17971  ac_check_lib_save_LIBS=$LIBS
17972LIBS="-ldl  $LIBS"
17973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17974/* end confdefs.h.  */
17975
17976/* Override any GCC internal prototype to avoid an error.
17977   Use char because int might match the return type of a GCC
17978   builtin and then its argument prototype would still apply.  */
17979#ifdef __cplusplus
17980extern "C"
17981#endif
17982char dlopen ();
17983int
17984main ()
17985{
17986return dlopen ();
17987  ;
17988  return 0;
17989}
17990_ACEOF
17991if ac_fn_c_try_link "$LINENO"; then :
17992  ac_cv_lib_dl_dlopen=yes
17993else
17994  ac_cv_lib_dl_dlopen=no
17995fi
17996rm -f core conftest.err conftest.$ac_objext \
17997    conftest$ac_exeext conftest.$ac_ext
17998LIBS=$ac_check_lib_save_LIBS
17999fi
18000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18001$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18002if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18003  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18004else
18005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18006$as_echo_n "checking for dlopen in -lsvld... " >&6; }
18007if ${ac_cv_lib_svld_dlopen+:} false; then :
18008  $as_echo_n "(cached) " >&6
18009else
18010  ac_check_lib_save_LIBS=$LIBS
18011LIBS="-lsvld  $LIBS"
18012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18013/* end confdefs.h.  */
18014
18015/* Override any GCC internal prototype to avoid an error.
18016   Use char because int might match the return type of a GCC
18017   builtin and then its argument prototype would still apply.  */
18018#ifdef __cplusplus
18019extern "C"
18020#endif
18021char dlopen ();
18022int
18023main ()
18024{
18025return dlopen ();
18026  ;
18027  return 0;
18028}
18029_ACEOF
18030if ac_fn_c_try_link "$LINENO"; then :
18031  ac_cv_lib_svld_dlopen=yes
18032else
18033  ac_cv_lib_svld_dlopen=no
18034fi
18035rm -f core conftest.err conftest.$ac_objext \
18036    conftest$ac_exeext conftest.$ac_ext
18037LIBS=$ac_check_lib_save_LIBS
18038fi
18039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18040$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18041if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18042  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18043else
18044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18045$as_echo_n "checking for dld_link in -ldld... " >&6; }
18046if ${ac_cv_lib_dld_dld_link+:} false; then :
18047  $as_echo_n "(cached) " >&6
18048else
18049  ac_check_lib_save_LIBS=$LIBS
18050LIBS="-ldld  $LIBS"
18051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18052/* end confdefs.h.  */
18053
18054/* Override any GCC internal prototype to avoid an error.
18055   Use char because int might match the return type of a GCC
18056   builtin and then its argument prototype would still apply.  */
18057#ifdef __cplusplus
18058extern "C"
18059#endif
18060char dld_link ();
18061int
18062main ()
18063{
18064return dld_link ();
18065  ;
18066  return 0;
18067}
18068_ACEOF
18069if ac_fn_c_try_link "$LINENO"; then :
18070  ac_cv_lib_dld_dld_link=yes
18071else
18072  ac_cv_lib_dld_dld_link=no
18073fi
18074rm -f core conftest.err conftest.$ac_objext \
18075    conftest$ac_exeext conftest.$ac_ext
18076LIBS=$ac_check_lib_save_LIBS
18077fi
18078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18079$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18080if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18081  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18082fi
18083
18084
18085fi
18086
18087
18088fi
18089
18090
18091fi
18092
18093
18094fi
18095
18096
18097fi
18098
18099    ;;
18100  esac
18101
18102  if test no = "$lt_cv_dlopen"; then
18103    enable_dlopen=no
18104  else
18105    enable_dlopen=yes
18106  fi
18107
18108  case $lt_cv_dlopen in
18109  dlopen)
18110    save_CPPFLAGS=$CPPFLAGS
18111    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18112
18113    save_LDFLAGS=$LDFLAGS
18114    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18115
18116    save_LIBS=$LIBS
18117    LIBS="$lt_cv_dlopen_libs $LIBS"
18118
18119    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18120$as_echo_n "checking whether a program can dlopen itself... " >&6; }
18121if ${lt_cv_dlopen_self+:} false; then :
18122  $as_echo_n "(cached) " >&6
18123else
18124  	  if test yes = "$cross_compiling"; then :
18125  lt_cv_dlopen_self=cross
18126else
18127  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18128  lt_status=$lt_dlunknown
18129  cat > conftest.$ac_ext <<_LT_EOF
18130#line $LINENO "configure"
18131#include "confdefs.h"
18132
18133#if HAVE_DLFCN_H
18134#include <dlfcn.h>
18135#endif
18136
18137#include <stdio.h>
18138
18139#ifdef RTLD_GLOBAL
18140#  define LT_DLGLOBAL		RTLD_GLOBAL
18141#else
18142#  ifdef DL_GLOBAL
18143#    define LT_DLGLOBAL		DL_GLOBAL
18144#  else
18145#    define LT_DLGLOBAL		0
18146#  endif
18147#endif
18148
18149/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18150   find out it does not work in some platform. */
18151#ifndef LT_DLLAZY_OR_NOW
18152#  ifdef RTLD_LAZY
18153#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18154#  else
18155#    ifdef DL_LAZY
18156#      define LT_DLLAZY_OR_NOW		DL_LAZY
18157#    else
18158#      ifdef RTLD_NOW
18159#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18160#      else
18161#        ifdef DL_NOW
18162#          define LT_DLLAZY_OR_NOW	DL_NOW
18163#        else
18164#          define LT_DLLAZY_OR_NOW	0
18165#        endif
18166#      endif
18167#    endif
18168#  endif
18169#endif
18170
18171/* When -fvisibility=hidden is used, assume the code has been annotated
18172   correspondingly for the symbols needed.  */
18173#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18174int fnord () __attribute__((visibility("default")));
18175#endif
18176
18177int fnord () { return 42; }
18178int main ()
18179{
18180  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18181  int status = $lt_dlunknown;
18182
18183  if (self)
18184    {
18185      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18186      else
18187        {
18188	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18189          else puts (dlerror ());
18190	}
18191      /* dlclose (self); */
18192    }
18193  else
18194    puts (dlerror ());
18195
18196  return status;
18197}
18198_LT_EOF
18199  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18200  (eval $ac_link) 2>&5
18201  ac_status=$?
18202  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18203  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18204    (./conftest; exit; ) >&5 2>/dev/null
18205    lt_status=$?
18206    case x$lt_status in
18207      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18208      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18209      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18210    esac
18211  else :
18212    # compilation failed
18213    lt_cv_dlopen_self=no
18214  fi
18215fi
18216rm -fr conftest*
18217
18218
18219fi
18220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18221$as_echo "$lt_cv_dlopen_self" >&6; }
18222
18223    if test yes = "$lt_cv_dlopen_self"; then
18224      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18225      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18226$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18227if ${lt_cv_dlopen_self_static+:} false; then :
18228  $as_echo_n "(cached) " >&6
18229else
18230  	  if test yes = "$cross_compiling"; then :
18231  lt_cv_dlopen_self_static=cross
18232else
18233  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18234  lt_status=$lt_dlunknown
18235  cat > conftest.$ac_ext <<_LT_EOF
18236#line $LINENO "configure"
18237#include "confdefs.h"
18238
18239#if HAVE_DLFCN_H
18240#include <dlfcn.h>
18241#endif
18242
18243#include <stdio.h>
18244
18245#ifdef RTLD_GLOBAL
18246#  define LT_DLGLOBAL		RTLD_GLOBAL
18247#else
18248#  ifdef DL_GLOBAL
18249#    define LT_DLGLOBAL		DL_GLOBAL
18250#  else
18251#    define LT_DLGLOBAL		0
18252#  endif
18253#endif
18254
18255/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18256   find out it does not work in some platform. */
18257#ifndef LT_DLLAZY_OR_NOW
18258#  ifdef RTLD_LAZY
18259#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18260#  else
18261#    ifdef DL_LAZY
18262#      define LT_DLLAZY_OR_NOW		DL_LAZY
18263#    else
18264#      ifdef RTLD_NOW
18265#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18266#      else
18267#        ifdef DL_NOW
18268#          define LT_DLLAZY_OR_NOW	DL_NOW
18269#        else
18270#          define LT_DLLAZY_OR_NOW	0
18271#        endif
18272#      endif
18273#    endif
18274#  endif
18275#endif
18276
18277/* When -fvisibility=hidden is used, assume the code has been annotated
18278   correspondingly for the symbols needed.  */
18279#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18280int fnord () __attribute__((visibility("default")));
18281#endif
18282
18283int fnord () { return 42; }
18284int main ()
18285{
18286  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18287  int status = $lt_dlunknown;
18288
18289  if (self)
18290    {
18291      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18292      else
18293        {
18294	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18295          else puts (dlerror ());
18296	}
18297      /* dlclose (self); */
18298    }
18299  else
18300    puts (dlerror ());
18301
18302  return status;
18303}
18304_LT_EOF
18305  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18306  (eval $ac_link) 2>&5
18307  ac_status=$?
18308  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18309  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18310    (./conftest; exit; ) >&5 2>/dev/null
18311    lt_status=$?
18312    case x$lt_status in
18313      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18314      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18315      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18316    esac
18317  else :
18318    # compilation failed
18319    lt_cv_dlopen_self_static=no
18320  fi
18321fi
18322rm -fr conftest*
18323
18324
18325fi
18326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18327$as_echo "$lt_cv_dlopen_self_static" >&6; }
18328    fi
18329
18330    CPPFLAGS=$save_CPPFLAGS
18331    LDFLAGS=$save_LDFLAGS
18332    LIBS=$save_LIBS
18333    ;;
18334  esac
18335
18336  case $lt_cv_dlopen_self in
18337  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18338  *) enable_dlopen_self=unknown ;;
18339  esac
18340
18341  case $lt_cv_dlopen_self_static in
18342  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18343  *) enable_dlopen_self_static=unknown ;;
18344  esac
18345fi
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363striplib=
18364old_striplib=
18365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18366$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18367if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18368  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18369  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18371$as_echo "yes" >&6; }
18372else
18373# FIXME - insert some real tests, host_os isn't really good enough
18374  case $host_os in
18375  darwin*)
18376    if test -n "$STRIP"; then
18377      striplib="$STRIP -x"
18378      old_striplib="$STRIP -S"
18379      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18380$as_echo "yes" >&6; }
18381    else
18382      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18383$as_echo "no" >&6; }
18384    fi
18385    ;;
18386  *)
18387    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18388$as_echo "no" >&6; }
18389    ;;
18390  esac
18391fi
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404  # Report what library types will actually be built
18405  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18406$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18408$as_echo "$can_build_shared" >&6; }
18409
18410  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18411$as_echo_n "checking whether to build shared libraries... " >&6; }
18412  test no = "$can_build_shared" && enable_shared=no
18413
18414  # On AIX, shared libraries and static libraries use the same namespace, and
18415  # are all built from PIC.
18416  case $host_os in
18417  aix3*)
18418    test yes = "$enable_shared" && enable_static=no
18419    if test -n "$RANLIB"; then
18420      archive_cmds="$archive_cmds~\$RANLIB \$lib"
18421      postinstall_cmds='$RANLIB $lib'
18422    fi
18423    ;;
18424
18425  aix[4-9]*)
18426    if test ia64 != "$host_cpu"; then
18427      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18428      yes,aix,yes) ;;			# shared object as lib.so file only
18429      yes,svr4,*) ;;			# shared object as lib.so archive member only
18430      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
18431      esac
18432    fi
18433    ;;
18434  esac
18435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18436$as_echo "$enable_shared" >&6; }
18437
18438  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18439$as_echo_n "checking whether to build static libraries... " >&6; }
18440  # Make sure either enable_shared or enable_static is yes.
18441  test yes = "$enable_shared" || enable_static=yes
18442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18443$as_echo "$enable_static" >&6; }
18444
18445
18446
18447
18448fi
18449ac_ext=c
18450ac_cpp='$CPP $CPPFLAGS'
18451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18453ac_compiler_gnu=$ac_cv_c_compiler_gnu
18454
18455CC=$lt_save_CC
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471        ac_config_commands="$ac_config_commands libtool"
18472
18473
18474
18475
18476# Only expand once:
18477
18478
18479
18480
18481
18482# Define a configure option for an alternate module directory
18483
18484# Check whether --with-xorg-module-dir was given.
18485if test "${with_xorg_module_dir+set}" = set; then :
18486  withval=$with_xorg_module_dir; moduledir="$withval"
18487else
18488  moduledir="$libdir/xorg/modules"
18489fi
18490
18491
18492# Store the list of server defined optional extensions in REQUIRED_MODULES
18493
18494
18495	SAVE_CFLAGS="$CFLAGS"
18496	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18497	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18498/* end confdefs.h.  */
18499
18500#include "xorg-server.h"
18501#if !defined RANDR
18502#error RANDR not defined
18503#endif
18504
18505int
18506main ()
18507{
18508
18509  ;
18510  return 0;
18511}
18512_ACEOF
18513if ac_fn_c_try_compile "$LINENO"; then :
18514  _EXT_CHECK=yes
18515else
18516  _EXT_CHECK=no
18517fi
18518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18519	CFLAGS="$SAVE_CFLAGS"
18520	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18521$as_echo_n "checking if RANDR is defined... " >&6; }
18522	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18523$as_echo "$_EXT_CHECK" >&6; }
18524	if test "$_EXT_CHECK" != no; then
18525		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18526	fi
18527
18528
18529
18530	SAVE_CFLAGS="$CFLAGS"
18531	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18532	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18533/* end confdefs.h.  */
18534
18535#include "xorg-server.h"
18536#if !defined RENDER
18537#error RENDER not defined
18538#endif
18539
18540int
18541main ()
18542{
18543
18544  ;
18545  return 0;
18546}
18547_ACEOF
18548if ac_fn_c_try_compile "$LINENO"; then :
18549  _EXT_CHECK=yes
18550else
18551  _EXT_CHECK=no
18552fi
18553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18554	CFLAGS="$SAVE_CFLAGS"
18555	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18556$as_echo_n "checking if RENDER is defined... " >&6; }
18557	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18558$as_echo "$_EXT_CHECK" >&6; }
18559	if test "$_EXT_CHECK" != no; then
18560		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18561	fi
18562
18563
18564
18565	SAVE_CFLAGS="$CFLAGS"
18566	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18567	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18568/* end confdefs.h.  */
18569
18570#include "xorg-server.h"
18571#if !defined XV
18572#error XV not defined
18573#endif
18574
18575int
18576main ()
18577{
18578
18579  ;
18580  return 0;
18581}
18582_ACEOF
18583if ac_fn_c_try_compile "$LINENO"; then :
18584  _EXT_CHECK=yes
18585else
18586  _EXT_CHECK=no
18587fi
18588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18589	CFLAGS="$SAVE_CFLAGS"
18590	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18591$as_echo_n "checking if XV is defined... " >&6; }
18592	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18593$as_echo "$_EXT_CHECK" >&6; }
18594	if test "$_EXT_CHECK" != no; then
18595		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18596	fi
18597
18598
18599
18600	SAVE_CFLAGS="$CFLAGS"
18601	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18602	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18603/* end confdefs.h.  */
18604
18605#include "xorg-server.h"
18606#if !defined DPMSExtension
18607#error DPMSExtension not defined
18608#endif
18609
18610int
18611main ()
18612{
18613
18614  ;
18615  return 0;
18616}
18617_ACEOF
18618if ac_fn_c_try_compile "$LINENO"; then :
18619  _EXT_CHECK=yes
18620else
18621  _EXT_CHECK=no
18622fi
18623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18624	CFLAGS="$SAVE_CFLAGS"
18625	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18626$as_echo_n "checking if DPMSExtension is defined... " >&6; }
18627	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18628$as_echo "$_EXT_CHECK" >&6; }
18629	if test "$_EXT_CHECK" != no; then
18630		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18631	fi
18632
18633
18634# Obtain compiler/linker options for the driver dependencies
18635
18636pkg_failed=no
18637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18638$as_echo_n "checking for XORG... " >&6; }
18639
18640if test -n "$XORG_CFLAGS"; then
18641    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18642 elif test -n "$PKG_CONFIG"; then
18643    if test -n "$PKG_CONFIG" && \
18644    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18645  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18646  ac_status=$?
18647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18648  test $ac_status = 0; }; then
18649  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18650		      test "x$?" != "x0" && pkg_failed=yes
18651else
18652  pkg_failed=yes
18653fi
18654 else
18655    pkg_failed=untried
18656fi
18657if test -n "$XORG_LIBS"; then
18658    pkg_cv_XORG_LIBS="$XORG_LIBS"
18659 elif test -n "$PKG_CONFIG"; then
18660    if test -n "$PKG_CONFIG" && \
18661    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18662  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18663  ac_status=$?
18664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18665  test $ac_status = 0; }; then
18666  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18667		      test "x$?" != "x0" && pkg_failed=yes
18668else
18669  pkg_failed=yes
18670fi
18671 else
18672    pkg_failed=untried
18673fi
18674
18675
18676
18677if test $pkg_failed = yes; then
18678   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18679$as_echo "no" >&6; }
18680
18681if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18682        _pkg_short_errors_supported=yes
18683else
18684        _pkg_short_errors_supported=no
18685fi
18686        if test $_pkg_short_errors_supported = yes; then
18687	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18688        else
18689	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18690        fi
18691	# Put the nasty error message in config.log where it belongs
18692	echo "$XORG_PKG_ERRORS" >&5
18693
18694	as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
18695
18696$XORG_PKG_ERRORS
18697
18698Consider adjusting the PKG_CONFIG_PATH environment variable if you
18699installed software in a non-standard prefix.
18700
18701Alternatively, you may set the environment variables XORG_CFLAGS
18702and XORG_LIBS to avoid the need to call pkg-config.
18703See the pkg-config man page for more details." "$LINENO" 5
18704elif test $pkg_failed = untried; then
18705     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18706$as_echo "no" >&6; }
18707	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18709as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18710is in your PATH or set the PKG_CONFIG environment variable to the full
18711path to pkg-config.
18712
18713Alternatively, you may set the environment variables XORG_CFLAGS
18714and XORG_LIBS to avoid the need to call pkg-config.
18715See the pkg-config man page for more details.
18716
18717To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18718See \`config.log' for more details" "$LINENO" 5; }
18719else
18720	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18721	XORG_LIBS=$pkg_cv_XORG_LIBS
18722        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18723$as_echo "yes" >&6; }
18724
18725fi
18726
18727# Checks for libraries.
18728SAVE_CPPFLAGS="$CPPFLAGS"
18729CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18730ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18731"
18732if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18733  XSERVER_LIBPCIACCESS=yes
18734else
18735  XSERVER_LIBPCIACCESS=no
18736fi
18737
18738ac_fn_c_check_header_mongrel "$LINENO" "xf1bpp.h" "ac_cv_header_xf1bpp_h" "$ac_includes_default"
18739if test "x$ac_cv_header_xf1bpp_h" = xyes; then :
18740
18741$as_echo "#define HAVE_XF1BPP 1" >>confdefs.h
18742
18743fi
18744
18745
18746ac_fn_c_check_header_mongrel "$LINENO" "xf4bpp.h" "ac_cv_header_xf4bpp_h" "$ac_includes_default"
18747if test "x$ac_cv_header_xf4bpp_h" = xyes; then :
18748
18749$as_echo "#define HAVE_XF4BPP 1" >>confdefs.h
18750
18751fi
18752
18753
18754CPPFLAGS="$SAVE_CPPFLAGS"
18755
18756if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18757
18758pkg_failed=no
18759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18760$as_echo_n "checking for PCIACCESS... " >&6; }
18761
18762if test -n "$PCIACCESS_CFLAGS"; then
18763    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18764 elif test -n "$PKG_CONFIG"; then
18765    if test -n "$PKG_CONFIG" && \
18766    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18767  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18768  ac_status=$?
18769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18770  test $ac_status = 0; }; then
18771  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18772		      test "x$?" != "x0" && pkg_failed=yes
18773else
18774  pkg_failed=yes
18775fi
18776 else
18777    pkg_failed=untried
18778fi
18779if test -n "$PCIACCESS_LIBS"; then
18780    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18781 elif test -n "$PKG_CONFIG"; then
18782    if test -n "$PKG_CONFIG" && \
18783    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18784  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18785  ac_status=$?
18786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18787  test $ac_status = 0; }; then
18788  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18789		      test "x$?" != "x0" && pkg_failed=yes
18790else
18791  pkg_failed=yes
18792fi
18793 else
18794    pkg_failed=untried
18795fi
18796
18797
18798
18799if test $pkg_failed = yes; then
18800   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18801$as_echo "no" >&6; }
18802
18803if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18804        _pkg_short_errors_supported=yes
18805else
18806        _pkg_short_errors_supported=no
18807fi
18808        if test $_pkg_short_errors_supported = yes; then
18809	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18810        else
18811	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18812        fi
18813	# Put the nasty error message in config.log where it belongs
18814	echo "$PCIACCESS_PKG_ERRORS" >&5
18815
18816	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18817
18818$PCIACCESS_PKG_ERRORS
18819
18820Consider adjusting the PKG_CONFIG_PATH environment variable if you
18821installed software in a non-standard prefix.
18822
18823Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18824and PCIACCESS_LIBS to avoid the need to call pkg-config.
18825See the pkg-config man page for more details." "$LINENO" 5
18826elif test $pkg_failed = untried; then
18827     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18828$as_echo "no" >&6; }
18829	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18830$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18831as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18832is in your PATH or set the PKG_CONFIG environment variable to the full
18833path to pkg-config.
18834
18835Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18836and PCIACCESS_LIBS to avoid the need to call pkg-config.
18837See the pkg-config man page for more details.
18838
18839To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18840See \`config.log' for more details" "$LINENO" 5; }
18841else
18842	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18843	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18844        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18845$as_echo "yes" >&6; }
18846
18847fi
18848    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18849fi
18850 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18851  XSERVER_LIBPCIACCESS_TRUE=
18852  XSERVER_LIBPCIACCESS_FALSE='#'
18853else
18854  XSERVER_LIBPCIACCESS_TRUE='#'
18855  XSERVER_LIBPCIACCESS_FALSE=
18856fi
18857
18858# Check whether --enable-xaa was given.
18859if test "${enable_xaa+set}" = set; then :
18860  enableval=$enable_xaa; XAA="$enableval"
18861else
18862  XAA=auto
18863fi
18864
18865if test "x$XAA" != xno; then
18866        save_CFLAGS=$CFLAGS
18867        save_CPPFLAGS=$CPPFLAGS
18868        CFLAGS=$XORG_CFLAGS
18869        CPPFLAGS="$XORG_CFLAGS"
18870        for ac_header in xaa.h
18871do :
18872  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18873if test "x$ac_cv_header_xaa_h" = xyes; then :
18874  cat >>confdefs.h <<_ACEOF
18875#define HAVE_XAA_H 1
18876_ACEOF
18877 XAA=yes
18878else
18879  XAA=no
18880fi
18881
18882done
18883
18884        CFLAGS=$save_CFLAGS
18885        CPPFLAGS=$save_CPPFLAGS
18886fi
18887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18888$as_echo_n "checking whether to include XAA support... " >&6; }
18889 if test "x$XAA" = xyes; then
18890  XAA_TRUE=
18891  XAA_FALSE='#'
18892else
18893  XAA_TRUE='#'
18894  XAA_FALSE=
18895fi
18896
18897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18898$as_echo "$XAA" >&6; }
18899
18900save_CFLAGS="$CFLAGS"
18901CFLAGS="$XORG_CFLAGS"
18902ac_fn_c_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\"
18903"
18904if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes; then :
18905
18906$as_echo "#define HAVE_ISA 1" >>confdefs.h
18907
18908fi
18909
18910CFLAGS="$save_CFLAGS"
18911
18912
18913# Checks for functions (often defined as inlines in compiler.h)
18914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inb" >&5
18915$as_echo_n "checking for inb... " >&6; }
18916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18917/* end confdefs.h.  */
18918
18919#include "util/AsmMacros.h"
18920
18921int main() {
18922	int x = inb(0);
18923	return x;
18924}
18925
18926_ACEOF
18927if ac_fn_c_try_link "$LINENO"; then :
18928  HAVE_INB=yes
18929else
18930  HAVE_INB=no
18931fi
18932rm -f core conftest.err conftest.$ac_objext \
18933    conftest$ac_exeext conftest.$ac_ext
18934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_INB" >&5
18935$as_echo "$HAVE_INB" >&6; }
18936 if test x$HAVE_INB = xyes; then
18937  BUILD_UTILS_TRUE=
18938  BUILD_UTILS_FALSE='#'
18939else
18940  BUILD_UTILS_TRUE='#'
18941  BUILD_UTILS_FALSE=
18942fi
18943
18944
18945
18946
18947DRIVER_NAME=chips
18948
18949
18950ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile util/Makefile"
18951
18952cat >confcache <<\_ACEOF
18953# This file is a shell script that caches the results of configure
18954# tests run on this system so they can be shared between configure
18955# scripts and configure runs, see configure's option --config-cache.
18956# It is not useful on other systems.  If it contains results you don't
18957# want to keep, you may remove or edit it.
18958#
18959# config.status only pays attention to the cache file if you give it
18960# the --recheck option to rerun configure.
18961#
18962# `ac_cv_env_foo' variables (set or unset) will be overridden when
18963# loading this file, other *unset* `ac_cv_foo' will be assigned the
18964# following values.
18965
18966_ACEOF
18967
18968# The following way of writing the cache mishandles newlines in values,
18969# but we know of no workaround that is simple, portable, and efficient.
18970# So, we kill variables containing newlines.
18971# Ultrix sh set writes to stderr and can't be redirected directly,
18972# and sets the high bit in the cache file unless we assign to the vars.
18973(
18974  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18975    eval ac_val=\$$ac_var
18976    case $ac_val in #(
18977    *${as_nl}*)
18978      case $ac_var in #(
18979      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18980$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18981      esac
18982      case $ac_var in #(
18983      _ | IFS | as_nl) ;; #(
18984      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18985      *) { eval $ac_var=; unset $ac_var;} ;;
18986      esac ;;
18987    esac
18988  done
18989
18990  (set) 2>&1 |
18991    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18992    *${as_nl}ac_space=\ *)
18993      # `set' does not quote correctly, so add quotes: double-quote
18994      # substitution turns \\\\ into \\, and sed turns \\ into \.
18995      sed -n \
18996	"s/'/'\\\\''/g;
18997	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18998      ;; #(
18999    *)
19000      # `set' quotes correctly as required by POSIX, so do not add quotes.
19001      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19002      ;;
19003    esac |
19004    sort
19005) |
19006  sed '
19007     /^ac_cv_env_/b end
19008     t clear
19009     :clear
19010     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19011     t end
19012     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19013     :end' >>confcache
19014if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19015  if test -w "$cache_file"; then
19016    if test "x$cache_file" != "x/dev/null"; then
19017      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19018$as_echo "$as_me: updating cache $cache_file" >&6;}
19019      if test ! -f "$cache_file" || test -h "$cache_file"; then
19020	cat confcache >"$cache_file"
19021      else
19022        case $cache_file in #(
19023        */* | ?:*)
19024	  mv -f confcache "$cache_file"$$ &&
19025	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19026        *)
19027	  mv -f confcache "$cache_file" ;;
19028	esac
19029      fi
19030    fi
19031  else
19032    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19033$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19034  fi
19035fi
19036rm -f confcache
19037
19038test "x$prefix" = xNONE && prefix=$ac_default_prefix
19039# Let make expand exec_prefix.
19040test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19041
19042DEFS=-DHAVE_CONFIG_H
19043
19044ac_libobjs=
19045ac_ltlibobjs=
19046U=
19047for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19048  # 1. Remove the extension, and $U if already installed.
19049  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19050  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19051  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19052  #    will be set to the directory where LIBOBJS objects are built.
19053  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19054  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19055done
19056LIBOBJS=$ac_libobjs
19057
19058LTLIBOBJS=$ac_ltlibobjs
19059
19060
19061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19062$as_echo_n "checking that generated files are newer than configure... " >&6; }
19063   if test -n "$am_sleep_pid"; then
19064     # Hide warnings about reused PIDs.
19065     wait $am_sleep_pid 2>/dev/null
19066   fi
19067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19068$as_echo "done" >&6; }
19069 if test -n "$EXEEXT"; then
19070  am__EXEEXT_TRUE=
19071  am__EXEEXT_FALSE='#'
19072else
19073  am__EXEEXT_TRUE='#'
19074  am__EXEEXT_FALSE=
19075fi
19076
19077if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19078  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19079Usually this means the macro was only invoked conditionally." "$LINENO" 5
19080fi
19081if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19082  as_fn_error $? "conditional \"AMDEP\" was never defined.
19083Usually this means the macro was only invoked conditionally." "$LINENO" 5
19084fi
19085if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19086  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19087Usually this means the macro was only invoked conditionally." "$LINENO" 5
19088fi
19089if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19090  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19091Usually this means the macro was only invoked conditionally." "$LINENO" 5
19092fi
19093if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19094  as_fn_error $? "conditional \"XAA\" was never defined.
19095Usually this means the macro was only invoked conditionally." "$LINENO" 5
19096fi
19097if test -z "${BUILD_UTILS_TRUE}" && test -z "${BUILD_UTILS_FALSE}"; then
19098  as_fn_error $? "conditional \"BUILD_UTILS\" was never defined.
19099Usually this means the macro was only invoked conditionally." "$LINENO" 5
19100fi
19101
19102: "${CONFIG_STATUS=./config.status}"
19103ac_write_fail=0
19104ac_clean_files_save=$ac_clean_files
19105ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19106{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19107$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19108as_write_fail=0
19109cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19110#! $SHELL
19111# Generated by $as_me.
19112# Run this file to recreate the current configuration.
19113# Compiler output produced by configure, useful for debugging
19114# configure, is in config.log if it exists.
19115
19116debug=false
19117ac_cs_recheck=false
19118ac_cs_silent=false
19119
19120SHELL=\${CONFIG_SHELL-$SHELL}
19121export SHELL
19122_ASEOF
19123cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19124## -------------------- ##
19125## M4sh Initialization. ##
19126## -------------------- ##
19127
19128# Be more Bourne compatible
19129DUALCASE=1; export DUALCASE # for MKS sh
19130if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19131  emulate sh
19132  NULLCMD=:
19133  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19134  # is contrary to our usage.  Disable this feature.
19135  alias -g '${1+"$@"}'='"$@"'
19136  setopt NO_GLOB_SUBST
19137else
19138  case `(set -o) 2>/dev/null` in #(
19139  *posix*) :
19140    set -o posix ;; #(
19141  *) :
19142     ;;
19143esac
19144fi
19145
19146
19147as_nl='
19148'
19149export as_nl
19150# Printing a long string crashes Solaris 7 /usr/bin/printf.
19151as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19152as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19153as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19154# Prefer a ksh shell builtin over an external printf program on Solaris,
19155# but without wasting forks for bash or zsh.
19156if test -z "$BASH_VERSION$ZSH_VERSION" \
19157    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19158  as_echo='print -r --'
19159  as_echo_n='print -rn --'
19160elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19161  as_echo='printf %s\n'
19162  as_echo_n='printf %s'
19163else
19164  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19165    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19166    as_echo_n='/usr/ucb/echo -n'
19167  else
19168    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19169    as_echo_n_body='eval
19170      arg=$1;
19171      case $arg in #(
19172      *"$as_nl"*)
19173	expr "X$arg" : "X\\(.*\\)$as_nl";
19174	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19175      esac;
19176      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19177    '
19178    export as_echo_n_body
19179    as_echo_n='sh -c $as_echo_n_body as_echo'
19180  fi
19181  export as_echo_body
19182  as_echo='sh -c $as_echo_body as_echo'
19183fi
19184
19185# The user is always right.
19186if test "${PATH_SEPARATOR+set}" != set; then
19187  PATH_SEPARATOR=:
19188  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19189    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19190      PATH_SEPARATOR=';'
19191  }
19192fi
19193
19194
19195# IFS
19196# We need space, tab and new line, in precisely that order.  Quoting is
19197# there to prevent editors from complaining about space-tab.
19198# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19199# splitting by setting IFS to empty value.)
19200IFS=" ""	$as_nl"
19201
19202# Find who we are.  Look in the path if we contain no directory separator.
19203as_myself=
19204case $0 in #((
19205  *[\\/]* ) as_myself=$0 ;;
19206  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19207for as_dir in $PATH
19208do
19209  IFS=$as_save_IFS
19210  test -z "$as_dir" && as_dir=.
19211    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19212  done
19213IFS=$as_save_IFS
19214
19215     ;;
19216esac
19217# We did not find ourselves, most probably we were run as `sh COMMAND'
19218# in which case we are not to be found in the path.
19219if test "x$as_myself" = x; then
19220  as_myself=$0
19221fi
19222if test ! -f "$as_myself"; then
19223  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19224  exit 1
19225fi
19226
19227# Unset variables that we do not need and which cause bugs (e.g. in
19228# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19229# suppresses any "Segmentation fault" message there.  '((' could
19230# trigger a bug in pdksh 5.2.14.
19231for as_var in BASH_ENV ENV MAIL MAILPATH
19232do eval test x\${$as_var+set} = xset \
19233  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19234done
19235PS1='$ '
19236PS2='> '
19237PS4='+ '
19238
19239# NLS nuisances.
19240LC_ALL=C
19241export LC_ALL
19242LANGUAGE=C
19243export LANGUAGE
19244
19245# CDPATH.
19246(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19247
19248
19249# as_fn_error STATUS ERROR [LINENO LOG_FD]
19250# ----------------------------------------
19251# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19252# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19253# script with STATUS, using 1 if that was 0.
19254as_fn_error ()
19255{
19256  as_status=$1; test $as_status -eq 0 && as_status=1
19257  if test "$4"; then
19258    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19259    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19260  fi
19261  $as_echo "$as_me: error: $2" >&2
19262  as_fn_exit $as_status
19263} # as_fn_error
19264
19265
19266# as_fn_set_status STATUS
19267# -----------------------
19268# Set $? to STATUS, without forking.
19269as_fn_set_status ()
19270{
19271  return $1
19272} # as_fn_set_status
19273
19274# as_fn_exit STATUS
19275# -----------------
19276# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19277as_fn_exit ()
19278{
19279  set +e
19280  as_fn_set_status $1
19281  exit $1
19282} # as_fn_exit
19283
19284# as_fn_unset VAR
19285# ---------------
19286# Portably unset VAR.
19287as_fn_unset ()
19288{
19289  { eval $1=; unset $1;}
19290}
19291as_unset=as_fn_unset
19292# as_fn_append VAR VALUE
19293# ----------------------
19294# Append the text in VALUE to the end of the definition contained in VAR. Take
19295# advantage of any shell optimizations that allow amortized linear growth over
19296# repeated appends, instead of the typical quadratic growth present in naive
19297# implementations.
19298if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19299  eval 'as_fn_append ()
19300  {
19301    eval $1+=\$2
19302  }'
19303else
19304  as_fn_append ()
19305  {
19306    eval $1=\$$1\$2
19307  }
19308fi # as_fn_append
19309
19310# as_fn_arith ARG...
19311# ------------------
19312# Perform arithmetic evaluation on the ARGs, and store the result in the
19313# global $as_val. Take advantage of shells that can avoid forks. The arguments
19314# must be portable across $(()) and expr.
19315if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19316  eval 'as_fn_arith ()
19317  {
19318    as_val=$(( $* ))
19319  }'
19320else
19321  as_fn_arith ()
19322  {
19323    as_val=`expr "$@" || test $? -eq 1`
19324  }
19325fi # as_fn_arith
19326
19327
19328if expr a : '\(a\)' >/dev/null 2>&1 &&
19329   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19330  as_expr=expr
19331else
19332  as_expr=false
19333fi
19334
19335if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19336  as_basename=basename
19337else
19338  as_basename=false
19339fi
19340
19341if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19342  as_dirname=dirname
19343else
19344  as_dirname=false
19345fi
19346
19347as_me=`$as_basename -- "$0" ||
19348$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19349	 X"$0" : 'X\(//\)$' \| \
19350	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19351$as_echo X/"$0" |
19352    sed '/^.*\/\([^/][^/]*\)\/*$/{
19353	    s//\1/
19354	    q
19355	  }
19356	  /^X\/\(\/\/\)$/{
19357	    s//\1/
19358	    q
19359	  }
19360	  /^X\/\(\/\).*/{
19361	    s//\1/
19362	    q
19363	  }
19364	  s/.*/./; q'`
19365
19366# Avoid depending upon Character Ranges.
19367as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19368as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19369as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19370as_cr_digits='0123456789'
19371as_cr_alnum=$as_cr_Letters$as_cr_digits
19372
19373ECHO_C= ECHO_N= ECHO_T=
19374case `echo -n x` in #(((((
19375-n*)
19376  case `echo 'xy\c'` in
19377  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19378  xy)  ECHO_C='\c';;
19379  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19380       ECHO_T='	';;
19381  esac;;
19382*)
19383  ECHO_N='-n';;
19384esac
19385
19386rm -f conf$$ conf$$.exe conf$$.file
19387if test -d conf$$.dir; then
19388  rm -f conf$$.dir/conf$$.file
19389else
19390  rm -f conf$$.dir
19391  mkdir conf$$.dir 2>/dev/null
19392fi
19393if (echo >conf$$.file) 2>/dev/null; then
19394  if ln -s conf$$.file conf$$ 2>/dev/null; then
19395    as_ln_s='ln -s'
19396    # ... but there are two gotchas:
19397    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19398    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19399    # In both cases, we have to default to `cp -pR'.
19400    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19401      as_ln_s='cp -pR'
19402  elif ln conf$$.file conf$$ 2>/dev/null; then
19403    as_ln_s=ln
19404  else
19405    as_ln_s='cp -pR'
19406  fi
19407else
19408  as_ln_s='cp -pR'
19409fi
19410rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19411rmdir conf$$.dir 2>/dev/null
19412
19413
19414# as_fn_mkdir_p
19415# -------------
19416# Create "$as_dir" as a directory, including parents if necessary.
19417as_fn_mkdir_p ()
19418{
19419
19420  case $as_dir in #(
19421  -*) as_dir=./$as_dir;;
19422  esac
19423  test -d "$as_dir" || eval $as_mkdir_p || {
19424    as_dirs=
19425    while :; do
19426      case $as_dir in #(
19427      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19428      *) as_qdir=$as_dir;;
19429      esac
19430      as_dirs="'$as_qdir' $as_dirs"
19431      as_dir=`$as_dirname -- "$as_dir" ||
19432$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19433	 X"$as_dir" : 'X\(//\)[^/]' \| \
19434	 X"$as_dir" : 'X\(//\)$' \| \
19435	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19436$as_echo X"$as_dir" |
19437    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19438	    s//\1/
19439	    q
19440	  }
19441	  /^X\(\/\/\)[^/].*/{
19442	    s//\1/
19443	    q
19444	  }
19445	  /^X\(\/\/\)$/{
19446	    s//\1/
19447	    q
19448	  }
19449	  /^X\(\/\).*/{
19450	    s//\1/
19451	    q
19452	  }
19453	  s/.*/./; q'`
19454      test -d "$as_dir" && break
19455    done
19456    test -z "$as_dirs" || eval "mkdir $as_dirs"
19457  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19458
19459
19460} # as_fn_mkdir_p
19461if mkdir -p . 2>/dev/null; then
19462  as_mkdir_p='mkdir -p "$as_dir"'
19463else
19464  test -d ./-p && rmdir ./-p
19465  as_mkdir_p=false
19466fi
19467
19468
19469# as_fn_executable_p FILE
19470# -----------------------
19471# Test if FILE is an executable regular file.
19472as_fn_executable_p ()
19473{
19474  test -f "$1" && test -x "$1"
19475} # as_fn_executable_p
19476as_test_x='test -x'
19477as_executable_p=as_fn_executable_p
19478
19479# Sed expression to map a string onto a valid CPP name.
19480as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19481
19482# Sed expression to map a string onto a valid variable name.
19483as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19484
19485
19486exec 6>&1
19487## ----------------------------------- ##
19488## Main body of $CONFIG_STATUS script. ##
19489## ----------------------------------- ##
19490_ASEOF
19491test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19492
19493cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19494# Save the log message, to keep $0 and so on meaningful, and to
19495# report actual input values of CONFIG_FILES etc. instead of their
19496# values after options handling.
19497ac_log="
19498This file was extended by xf86-video-chips $as_me 1.2.7, which was
19499generated by GNU Autoconf 2.69.  Invocation command line was
19500
19501  CONFIG_FILES    = $CONFIG_FILES
19502  CONFIG_HEADERS  = $CONFIG_HEADERS
19503  CONFIG_LINKS    = $CONFIG_LINKS
19504  CONFIG_COMMANDS = $CONFIG_COMMANDS
19505  $ $0 $@
19506
19507on `(hostname || uname -n) 2>/dev/null | sed 1q`
19508"
19509
19510_ACEOF
19511
19512case $ac_config_files in *"
19513"*) set x $ac_config_files; shift; ac_config_files=$*;;
19514esac
19515
19516case $ac_config_headers in *"
19517"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19518esac
19519
19520
19521cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19522# Files that config.status was made for.
19523config_files="$ac_config_files"
19524config_headers="$ac_config_headers"
19525config_commands="$ac_config_commands"
19526
19527_ACEOF
19528
19529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19530ac_cs_usage="\
19531\`$as_me' instantiates files and other configuration actions
19532from templates according to the current configuration.  Unless the files
19533and actions are specified as TAGs, all are instantiated by default.
19534
19535Usage: $0 [OPTION]... [TAG]...
19536
19537  -h, --help       print this help, then exit
19538  -V, --version    print version number and configuration settings, then exit
19539      --config     print configuration, then exit
19540  -q, --quiet, --silent
19541                   do not print progress messages
19542  -d, --debug      don't remove temporary files
19543      --recheck    update $as_me by reconfiguring in the same conditions
19544      --file=FILE[:TEMPLATE]
19545                   instantiate the configuration file FILE
19546      --header=FILE[:TEMPLATE]
19547                   instantiate the configuration header FILE
19548
19549Configuration files:
19550$config_files
19551
19552Configuration headers:
19553$config_headers
19554
19555Configuration commands:
19556$config_commands
19557
19558Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19559
19560_ACEOF
19561cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19562ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19563ac_cs_version="\\
19564xf86-video-chips config.status 1.2.7
19565configured by $0, generated by GNU Autoconf 2.69,
19566  with options \\"\$ac_cs_config\\"
19567
19568Copyright (C) 2012 Free Software Foundation, Inc.
19569This config.status script is free software; the Free Software Foundation
19570gives unlimited permission to copy, distribute and modify it."
19571
19572ac_pwd='$ac_pwd'
19573srcdir='$srcdir'
19574INSTALL='$INSTALL'
19575MKDIR_P='$MKDIR_P'
19576AWK='$AWK'
19577test -n "\$AWK" || AWK=awk
19578_ACEOF
19579
19580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19581# The default lists apply if the user does not specify any file.
19582ac_need_defaults=:
19583while test $# != 0
19584do
19585  case $1 in
19586  --*=?*)
19587    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19588    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19589    ac_shift=:
19590    ;;
19591  --*=)
19592    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19593    ac_optarg=
19594    ac_shift=:
19595    ;;
19596  *)
19597    ac_option=$1
19598    ac_optarg=$2
19599    ac_shift=shift
19600    ;;
19601  esac
19602
19603  case $ac_option in
19604  # Handling of the options.
19605  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19606    ac_cs_recheck=: ;;
19607  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19608    $as_echo "$ac_cs_version"; exit ;;
19609  --config | --confi | --conf | --con | --co | --c )
19610    $as_echo "$ac_cs_config"; exit ;;
19611  --debug | --debu | --deb | --de | --d | -d )
19612    debug=: ;;
19613  --file | --fil | --fi | --f )
19614    $ac_shift
19615    case $ac_optarg in
19616    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19617    '') as_fn_error $? "missing file argument" ;;
19618    esac
19619    as_fn_append CONFIG_FILES " '$ac_optarg'"
19620    ac_need_defaults=false;;
19621  --header | --heade | --head | --hea )
19622    $ac_shift
19623    case $ac_optarg in
19624    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19625    esac
19626    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19627    ac_need_defaults=false;;
19628  --he | --h)
19629    # Conflict between --help and --header
19630    as_fn_error $? "ambiguous option: \`$1'
19631Try \`$0 --help' for more information.";;
19632  --help | --hel | -h )
19633    $as_echo "$ac_cs_usage"; exit ;;
19634  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19635  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19636    ac_cs_silent=: ;;
19637
19638  # This is an error.
19639  -*) as_fn_error $? "unrecognized option: \`$1'
19640Try \`$0 --help' for more information." ;;
19641
19642  *) as_fn_append ac_config_targets " $1"
19643     ac_need_defaults=false ;;
19644
19645  esac
19646  shift
19647done
19648
19649ac_configure_extra_args=
19650
19651if $ac_cs_silent; then
19652  exec 6>/dev/null
19653  ac_configure_extra_args="$ac_configure_extra_args --silent"
19654fi
19655
19656_ACEOF
19657cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19658if \$ac_cs_recheck; then
19659  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19660  shift
19661  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19662  CONFIG_SHELL='$SHELL'
19663  export CONFIG_SHELL
19664  exec "\$@"
19665fi
19666
19667_ACEOF
19668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19669exec 5>>config.log
19670{
19671  echo
19672  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19673## Running $as_me. ##
19674_ASBOX
19675  $as_echo "$ac_log"
19676} >&5
19677
19678_ACEOF
19679cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19680#
19681# INIT-COMMANDS
19682#
19683AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19684
19685
19686# The HP-UX ksh and POSIX shell print the target directory to stdout
19687# if CDPATH is set.
19688(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19689
19690sed_quote_subst='$sed_quote_subst'
19691double_quote_subst='$double_quote_subst'
19692delay_variable_subst='$delay_variable_subst'
19693enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19694macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19695macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19696enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19697pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19698enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19699shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19700SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19701ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19702PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19703host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19704host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19705host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19706build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19707build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19708build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19709SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19710Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19711GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19712EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19713FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19714LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19715NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19716LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19717max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19718ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19719exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19720lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19721lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19722lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19723lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19724lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19725reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19726reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19727OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19728deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19729file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19730file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19731want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19732DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19733sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19734AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19735AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19736archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19737STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19738RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19739old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19740old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19741old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19742lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19743CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19744CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19745compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19746GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19747lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19748lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19749lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19750lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19751lt_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"`'
19752lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19753nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19754lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19755lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19756objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19757MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19758lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19759lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19760lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19761lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19762lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19763need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19764MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19765DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19766NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19767LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19768OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19769OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19770libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19771shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19772extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19773archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19774enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19775export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19776whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19777compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19778old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19779old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19780archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19781archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19782module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19783module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19784with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19785allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19786no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19787hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19788hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19789hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19790hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19791hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19792hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19793hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19794inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19795link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19796always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19797export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19798exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19799include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19800prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19801postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19802file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19803variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19804need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19805need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19806version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19807runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19808shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19809shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19810libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19811library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19812soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19813install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19814postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19815postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19816finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19817finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19818hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19819sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19820configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19821configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19822hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19823enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19824enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19825enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19826old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19827striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19828
19829LTCC='$LTCC'
19830LTCFLAGS='$LTCFLAGS'
19831compiler='$compiler_DEFAULT'
19832
19833# A function that is used when there is no print builtin or printf.
19834func_fallback_echo ()
19835{
19836  eval 'cat <<_LTECHO_EOF
19837\$1
19838_LTECHO_EOF'
19839}
19840
19841# Quote evaled strings.
19842for var in SHELL \
19843ECHO \
19844PATH_SEPARATOR \
19845SED \
19846GREP \
19847EGREP \
19848FGREP \
19849LD \
19850NM \
19851LN_S \
19852lt_SP2NL \
19853lt_NL2SP \
19854reload_flag \
19855OBJDUMP \
19856deplibs_check_method \
19857file_magic_cmd \
19858file_magic_glob \
19859want_nocaseglob \
19860DLLTOOL \
19861sharedlib_from_linklib_cmd \
19862AR \
19863AR_FLAGS \
19864archiver_list_spec \
19865STRIP \
19866RANLIB \
19867CC \
19868CFLAGS \
19869compiler \
19870lt_cv_sys_global_symbol_pipe \
19871lt_cv_sys_global_symbol_to_cdecl \
19872lt_cv_sys_global_symbol_to_import \
19873lt_cv_sys_global_symbol_to_c_name_address \
19874lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19875lt_cv_nm_interface \
19876nm_file_list_spec \
19877lt_cv_truncate_bin \
19878lt_prog_compiler_no_builtin_flag \
19879lt_prog_compiler_pic \
19880lt_prog_compiler_wl \
19881lt_prog_compiler_static \
19882lt_cv_prog_compiler_c_o \
19883need_locks \
19884MANIFEST_TOOL \
19885DSYMUTIL \
19886NMEDIT \
19887LIPO \
19888OTOOL \
19889OTOOL64 \
19890shrext_cmds \
19891export_dynamic_flag_spec \
19892whole_archive_flag_spec \
19893compiler_needs_object \
19894with_gnu_ld \
19895allow_undefined_flag \
19896no_undefined_flag \
19897hardcode_libdir_flag_spec \
19898hardcode_libdir_separator \
19899exclude_expsyms \
19900include_expsyms \
19901file_list_spec \
19902variables_saved_for_relink \
19903libname_spec \
19904library_names_spec \
19905soname_spec \
19906install_override_mode \
19907finish_eval \
19908old_striplib \
19909striplib; do
19910    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19911    *[\\\\\\\`\\"\\\$]*)
19912      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19913      ;;
19914    *)
19915      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19916      ;;
19917    esac
19918done
19919
19920# Double-quote double-evaled strings.
19921for var in reload_cmds \
19922old_postinstall_cmds \
19923old_postuninstall_cmds \
19924old_archive_cmds \
19925extract_expsyms_cmds \
19926old_archive_from_new_cmds \
19927old_archive_from_expsyms_cmds \
19928archive_cmds \
19929archive_expsym_cmds \
19930module_cmds \
19931module_expsym_cmds \
19932export_symbols_cmds \
19933prelink_cmds \
19934postlink_cmds \
19935postinstall_cmds \
19936postuninstall_cmds \
19937finish_cmds \
19938sys_lib_search_path_spec \
19939configure_time_dlsearch_path \
19940configure_time_lt_sys_library_path; do
19941    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19942    *[\\\\\\\`\\"\\\$]*)
19943      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19944      ;;
19945    *)
19946      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19947      ;;
19948    esac
19949done
19950
19951ac_aux_dir='$ac_aux_dir'
19952
19953# See if we are running on zsh, and set the options that allow our
19954# commands through without removal of \ escapes INIT.
19955if test -n "\${ZSH_VERSION+set}"; then
19956   setopt NO_GLOB_SUBST
19957fi
19958
19959
19960    PACKAGE='$PACKAGE'
19961    VERSION='$VERSION'
19962    RM='$RM'
19963    ofile='$ofile'
19964
19965
19966
19967
19968_ACEOF
19969
19970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19971
19972# Handling of arguments.
19973for ac_config_target in $ac_config_targets
19974do
19975  case $ac_config_target in
19976    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19977    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19978    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19979    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19980    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19981    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19982    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
19983
19984  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19985  esac
19986done
19987
19988
19989# If the user did not use the arguments to specify the items to instantiate,
19990# then the envvar interface is used.  Set only those that are not.
19991# We use the long form for the default assignment because of an extremely
19992# bizarre bug on SunOS 4.1.3.
19993if $ac_need_defaults; then
19994  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19995  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19996  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19997fi
19998
19999# Have a temporary directory for convenience.  Make it in the build tree
20000# simply because there is no reason against having it here, and in addition,
20001# creating and moving files from /tmp can sometimes cause problems.
20002# Hook for its removal unless debugging.
20003# Note that there is a small window in which the directory will not be cleaned:
20004# after its creation but before its name has been assigned to `$tmp'.
20005$debug ||
20006{
20007  tmp= ac_tmp=
20008  trap 'exit_status=$?
20009  : "${ac_tmp:=$tmp}"
20010  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20011' 0
20012  trap 'as_fn_exit 1' 1 2 13 15
20013}
20014# Create a (secure) tmp directory for tmp files.
20015
20016{
20017  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20018  test -d "$tmp"
20019}  ||
20020{
20021  tmp=./conf$$-$RANDOM
20022  (umask 077 && mkdir "$tmp")
20023} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20024ac_tmp=$tmp
20025
20026# Set up the scripts for CONFIG_FILES section.
20027# No need to generate them if there are no CONFIG_FILES.
20028# This happens for instance with `./config.status config.h'.
20029if test -n "$CONFIG_FILES"; then
20030
20031
20032ac_cr=`echo X | tr X '\015'`
20033# On cygwin, bash can eat \r inside `` if the user requested igncr.
20034# But we know of no other shell where ac_cr would be empty at this
20035# point, so we can use a bashism as a fallback.
20036if test "x$ac_cr" = x; then
20037  eval ac_cr=\$\'\\r\'
20038fi
20039ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20040if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20041  ac_cs_awk_cr='\\r'
20042else
20043  ac_cs_awk_cr=$ac_cr
20044fi
20045
20046echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20047_ACEOF
20048
20049
20050{
20051  echo "cat >conf$$subs.awk <<_ACEOF" &&
20052  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20053  echo "_ACEOF"
20054} >conf$$subs.sh ||
20055  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20056ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20057ac_delim='%!_!# '
20058for ac_last_try in false false false false false :; do
20059  . ./conf$$subs.sh ||
20060    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20061
20062  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20063  if test $ac_delim_n = $ac_delim_num; then
20064    break
20065  elif $ac_last_try; then
20066    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20067  else
20068    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20069  fi
20070done
20071rm -f conf$$subs.sh
20072
20073cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20074cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20075_ACEOF
20076sed -n '
20077h
20078s/^/S["/; s/!.*/"]=/
20079p
20080g
20081s/^[^!]*!//
20082:repl
20083t repl
20084s/'"$ac_delim"'$//
20085t delim
20086:nl
20087h
20088s/\(.\{148\}\)..*/\1/
20089t more1
20090s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20091p
20092n
20093b repl
20094:more1
20095s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20096p
20097g
20098s/.\{148\}//
20099t nl
20100:delim
20101h
20102s/\(.\{148\}\)..*/\1/
20103t more2
20104s/["\\]/\\&/g; s/^/"/; s/$/"/
20105p
20106b
20107:more2
20108s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20109p
20110g
20111s/.\{148\}//
20112t delim
20113' <conf$$subs.awk | sed '
20114/^[^""]/{
20115  N
20116  s/\n//
20117}
20118' >>$CONFIG_STATUS || ac_write_fail=1
20119rm -f conf$$subs.awk
20120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20121_ACAWK
20122cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20123  for (key in S) S_is_set[key] = 1
20124  FS = ""
20125
20126}
20127{
20128  line = $ 0
20129  nfields = split(line, field, "@")
20130  substed = 0
20131  len = length(field[1])
20132  for (i = 2; i < nfields; i++) {
20133    key = field[i]
20134    keylen = length(key)
20135    if (S_is_set[key]) {
20136      value = S[key]
20137      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20138      len += length(value) + length(field[++i])
20139      substed = 1
20140    } else
20141      len += 1 + keylen
20142  }
20143
20144  print line
20145}
20146
20147_ACAWK
20148_ACEOF
20149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20150if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20151  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20152else
20153  cat
20154fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20155  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20156_ACEOF
20157
20158# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20159# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20160# trailing colons and then remove the whole line if VPATH becomes empty
20161# (actually we leave an empty line to preserve line numbers).
20162if test "x$srcdir" = x.; then
20163  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20164h
20165s///
20166s/^/:/
20167s/[	 ]*$/:/
20168s/:\$(srcdir):/:/g
20169s/:\${srcdir}:/:/g
20170s/:@srcdir@:/:/g
20171s/^:*//
20172s/:*$//
20173x
20174s/\(=[	 ]*\).*/\1/
20175G
20176s/\n//
20177s/^[^=]*=[	 ]*$//
20178}'
20179fi
20180
20181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20182fi # test -n "$CONFIG_FILES"
20183
20184# Set up the scripts for CONFIG_HEADERS section.
20185# No need to generate them if there are no CONFIG_HEADERS.
20186# This happens for instance with `./config.status Makefile'.
20187if test -n "$CONFIG_HEADERS"; then
20188cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20189BEGIN {
20190_ACEOF
20191
20192# Transform confdefs.h into an awk script `defines.awk', embedded as
20193# here-document in config.status, that substitutes the proper values into
20194# config.h.in to produce config.h.
20195
20196# Create a delimiter string that does not exist in confdefs.h, to ease
20197# handling of long lines.
20198ac_delim='%!_!# '
20199for ac_last_try in false false :; do
20200  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20201  if test -z "$ac_tt"; then
20202    break
20203  elif $ac_last_try; then
20204    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20205  else
20206    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20207  fi
20208done
20209
20210# For the awk script, D is an array of macro values keyed by name,
20211# likewise P contains macro parameters if any.  Preserve backslash
20212# newline sequences.
20213
20214ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20215sed -n '
20216s/.\{148\}/&'"$ac_delim"'/g
20217t rset
20218:rset
20219s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20220t def
20221d
20222:def
20223s/\\$//
20224t bsnl
20225s/["\\]/\\&/g
20226s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20227D["\1"]=" \3"/p
20228s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20229d
20230:bsnl
20231s/["\\]/\\&/g
20232s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20233D["\1"]=" \3\\\\\\n"\\/p
20234t cont
20235s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20236t cont
20237d
20238:cont
20239n
20240s/.\{148\}/&'"$ac_delim"'/g
20241t clear
20242:clear
20243s/\\$//
20244t bsnlc
20245s/["\\]/\\&/g; s/^/"/; s/$/"/p
20246d
20247:bsnlc
20248s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20249b cont
20250' <confdefs.h | sed '
20251s/'"$ac_delim"'/"\\\
20252"/g' >>$CONFIG_STATUS || ac_write_fail=1
20253
20254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20255  for (key in D) D_is_set[key] = 1
20256  FS = ""
20257}
20258/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20259  line = \$ 0
20260  split(line, arg, " ")
20261  if (arg[1] == "#") {
20262    defundef = arg[2]
20263    mac1 = arg[3]
20264  } else {
20265    defundef = substr(arg[1], 2)
20266    mac1 = arg[2]
20267  }
20268  split(mac1, mac2, "(") #)
20269  macro = mac2[1]
20270  prefix = substr(line, 1, index(line, defundef) - 1)
20271  if (D_is_set[macro]) {
20272    # Preserve the white space surrounding the "#".
20273    print prefix "define", macro P[macro] D[macro]
20274    next
20275  } else {
20276    # Replace #undef with comments.  This is necessary, for example,
20277    # in the case of _POSIX_SOURCE, which is predefined and required
20278    # on some systems where configure will not decide to define it.
20279    if (defundef == "undef") {
20280      print "/*", prefix defundef, macro, "*/"
20281      next
20282    }
20283  }
20284}
20285{ print }
20286_ACAWK
20287_ACEOF
20288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20289  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20290fi # test -n "$CONFIG_HEADERS"
20291
20292
20293eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20294shift
20295for ac_tag
20296do
20297  case $ac_tag in
20298  :[FHLC]) ac_mode=$ac_tag; continue;;
20299  esac
20300  case $ac_mode$ac_tag in
20301  :[FHL]*:*);;
20302  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20303  :[FH]-) ac_tag=-:-;;
20304  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20305  esac
20306  ac_save_IFS=$IFS
20307  IFS=:
20308  set x $ac_tag
20309  IFS=$ac_save_IFS
20310  shift
20311  ac_file=$1
20312  shift
20313
20314  case $ac_mode in
20315  :L) ac_source=$1;;
20316  :[FH])
20317    ac_file_inputs=
20318    for ac_f
20319    do
20320      case $ac_f in
20321      -) ac_f="$ac_tmp/stdin";;
20322      *) # Look for the file first in the build tree, then in the source tree
20323	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20324	 # because $ac_f cannot contain `:'.
20325	 test -f "$ac_f" ||
20326	   case $ac_f in
20327	   [\\/$]*) false;;
20328	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20329	   esac ||
20330	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20331      esac
20332      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20333      as_fn_append ac_file_inputs " '$ac_f'"
20334    done
20335
20336    # Let's still pretend it is `configure' which instantiates (i.e., don't
20337    # use $as_me), people would be surprised to read:
20338    #    /* config.h.  Generated by config.status.  */
20339    configure_input='Generated from '`
20340	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20341	`' by configure.'
20342    if test x"$ac_file" != x-; then
20343      configure_input="$ac_file.  $configure_input"
20344      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20345$as_echo "$as_me: creating $ac_file" >&6;}
20346    fi
20347    # Neutralize special characters interpreted by sed in replacement strings.
20348    case $configure_input in #(
20349    *\&* | *\|* | *\\* )
20350       ac_sed_conf_input=`$as_echo "$configure_input" |
20351       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20352    *) ac_sed_conf_input=$configure_input;;
20353    esac
20354
20355    case $ac_tag in
20356    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20357      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20358    esac
20359    ;;
20360  esac
20361
20362  ac_dir=`$as_dirname -- "$ac_file" ||
20363$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20364	 X"$ac_file" : 'X\(//\)[^/]' \| \
20365	 X"$ac_file" : 'X\(//\)$' \| \
20366	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20367$as_echo X"$ac_file" |
20368    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20369	    s//\1/
20370	    q
20371	  }
20372	  /^X\(\/\/\)[^/].*/{
20373	    s//\1/
20374	    q
20375	  }
20376	  /^X\(\/\/\)$/{
20377	    s//\1/
20378	    q
20379	  }
20380	  /^X\(\/\).*/{
20381	    s//\1/
20382	    q
20383	  }
20384	  s/.*/./; q'`
20385  as_dir="$ac_dir"; as_fn_mkdir_p
20386  ac_builddir=.
20387
20388case "$ac_dir" in
20389.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20390*)
20391  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20392  # A ".." for each directory in $ac_dir_suffix.
20393  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20394  case $ac_top_builddir_sub in
20395  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20396  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20397  esac ;;
20398esac
20399ac_abs_top_builddir=$ac_pwd
20400ac_abs_builddir=$ac_pwd$ac_dir_suffix
20401# for backward compatibility:
20402ac_top_builddir=$ac_top_build_prefix
20403
20404case $srcdir in
20405  .)  # We are building in place.
20406    ac_srcdir=.
20407    ac_top_srcdir=$ac_top_builddir_sub
20408    ac_abs_top_srcdir=$ac_pwd ;;
20409  [\\/]* | ?:[\\/]* )  # Absolute name.
20410    ac_srcdir=$srcdir$ac_dir_suffix;
20411    ac_top_srcdir=$srcdir
20412    ac_abs_top_srcdir=$srcdir ;;
20413  *) # Relative name.
20414    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20415    ac_top_srcdir=$ac_top_build_prefix$srcdir
20416    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20417esac
20418ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20419
20420
20421  case $ac_mode in
20422  :F)
20423  #
20424  # CONFIG_FILE
20425  #
20426
20427  case $INSTALL in
20428  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20429  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20430  esac
20431  ac_MKDIR_P=$MKDIR_P
20432  case $MKDIR_P in
20433  [\\/$]* | ?:[\\/]* ) ;;
20434  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20435  esac
20436_ACEOF
20437
20438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20439# If the template does not know about datarootdir, expand it.
20440# FIXME: This hack should be removed a few years after 2.60.
20441ac_datarootdir_hack=; ac_datarootdir_seen=
20442ac_sed_dataroot='
20443/datarootdir/ {
20444  p
20445  q
20446}
20447/@datadir@/p
20448/@docdir@/p
20449/@infodir@/p
20450/@localedir@/p
20451/@mandir@/p'
20452case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20453*datarootdir*) ac_datarootdir_seen=yes;;
20454*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20455  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20456$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20457_ACEOF
20458cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20459  ac_datarootdir_hack='
20460  s&@datadir@&$datadir&g
20461  s&@docdir@&$docdir&g
20462  s&@infodir@&$infodir&g
20463  s&@localedir@&$localedir&g
20464  s&@mandir@&$mandir&g
20465  s&\\\${datarootdir}&$datarootdir&g' ;;
20466esac
20467_ACEOF
20468
20469# Neutralize VPATH when `$srcdir' = `.'.
20470# Shell code in configure.ac might set extrasub.
20471# FIXME: do we really want to maintain this feature?
20472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20473ac_sed_extra="$ac_vpsub
20474$extrasub
20475_ACEOF
20476cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20477:t
20478/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20479s|@configure_input@|$ac_sed_conf_input|;t t
20480s&@top_builddir@&$ac_top_builddir_sub&;t t
20481s&@top_build_prefix@&$ac_top_build_prefix&;t t
20482s&@srcdir@&$ac_srcdir&;t t
20483s&@abs_srcdir@&$ac_abs_srcdir&;t t
20484s&@top_srcdir@&$ac_top_srcdir&;t t
20485s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20486s&@builddir@&$ac_builddir&;t t
20487s&@abs_builddir@&$ac_abs_builddir&;t t
20488s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20489s&@INSTALL@&$ac_INSTALL&;t t
20490s&@MKDIR_P@&$ac_MKDIR_P&;t t
20491$ac_datarootdir_hack
20492"
20493eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20494  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20495
20496test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20497  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20498  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20499      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20500  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20501which seems to be undefined.  Please make sure it is defined" >&5
20502$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20503which seems to be undefined.  Please make sure it is defined" >&2;}
20504
20505  rm -f "$ac_tmp/stdin"
20506  case $ac_file in
20507  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20508  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20509  esac \
20510  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20511 ;;
20512  :H)
20513  #
20514  # CONFIG_HEADER
20515  #
20516  if test x"$ac_file" != x-; then
20517    {
20518      $as_echo "/* $configure_input  */" \
20519      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20520    } >"$ac_tmp/config.h" \
20521      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20522    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20523      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20524$as_echo "$as_me: $ac_file is unchanged" >&6;}
20525    else
20526      rm -f "$ac_file"
20527      mv "$ac_tmp/config.h" "$ac_file" \
20528	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20529    fi
20530  else
20531    $as_echo "/* $configure_input  */" \
20532      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20533      || as_fn_error $? "could not create -" "$LINENO" 5
20534  fi
20535# Compute "$ac_file"'s index in $config_headers.
20536_am_arg="$ac_file"
20537_am_stamp_count=1
20538for _am_header in $config_headers :; do
20539  case $_am_header in
20540    $_am_arg | $_am_arg:* )
20541      break ;;
20542    * )
20543      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20544  esac
20545done
20546echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20547$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20548	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20549	 X"$_am_arg" : 'X\(//\)$' \| \
20550	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20551$as_echo X"$_am_arg" |
20552    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20553	    s//\1/
20554	    q
20555	  }
20556	  /^X\(\/\/\)[^/].*/{
20557	    s//\1/
20558	    q
20559	  }
20560	  /^X\(\/\/\)$/{
20561	    s//\1/
20562	    q
20563	  }
20564	  /^X\(\/\).*/{
20565	    s//\1/
20566	    q
20567	  }
20568	  s/.*/./; q'`/stamp-h$_am_stamp_count
20569 ;;
20570
20571  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20572$as_echo "$as_me: executing $ac_file commands" >&6;}
20573 ;;
20574  esac
20575
20576
20577  case $ac_file$ac_mode in
20578    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20579  # Older Autoconf quotes --file arguments for eval, but not when files
20580  # are listed without --file.  Let's play safe and only enable the eval
20581  # if we detect the quoting.
20582  case $CONFIG_FILES in
20583  *\'*) eval set x "$CONFIG_FILES" ;;
20584  *)   set x $CONFIG_FILES ;;
20585  esac
20586  shift
20587  for mf
20588  do
20589    # Strip MF so we end up with the name of the file.
20590    mf=`echo "$mf" | sed -e 's/:.*$//'`
20591    # Check whether this is an Automake generated Makefile or not.
20592    # We used to match only the files named 'Makefile.in', but
20593    # some people rename them; so instead we look at the file content.
20594    # Grep'ing the first line is not enough: some people post-process
20595    # each Makefile.in and add a new line on top of each file to say so.
20596    # Grep'ing the whole file is not good either: AIX grep has a line
20597    # limit of 2048, but all sed's we know have understand at least 4000.
20598    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20599      dirpart=`$as_dirname -- "$mf" ||
20600$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20601	 X"$mf" : 'X\(//\)[^/]' \| \
20602	 X"$mf" : 'X\(//\)$' \| \
20603	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20604$as_echo X"$mf" |
20605    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20606	    s//\1/
20607	    q
20608	  }
20609	  /^X\(\/\/\)[^/].*/{
20610	    s//\1/
20611	    q
20612	  }
20613	  /^X\(\/\/\)$/{
20614	    s//\1/
20615	    q
20616	  }
20617	  /^X\(\/\).*/{
20618	    s//\1/
20619	    q
20620	  }
20621	  s/.*/./; q'`
20622    else
20623      continue
20624    fi
20625    # Extract the definition of DEPDIR, am__include, and am__quote
20626    # from the Makefile without running 'make'.
20627    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20628    test -z "$DEPDIR" && continue
20629    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20630    test -z "$am__include" && continue
20631    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20632    # Find all dependency output files, they are included files with
20633    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20634    # simplest approach to changing $(DEPDIR) to its actual value in the
20635    # expansion.
20636    for file in `sed -n "
20637      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20638	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20639      # Make sure the directory exists.
20640      test -f "$dirpart/$file" && continue
20641      fdir=`$as_dirname -- "$file" ||
20642$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20643	 X"$file" : 'X\(//\)[^/]' \| \
20644	 X"$file" : 'X\(//\)$' \| \
20645	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20646$as_echo X"$file" |
20647    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20648	    s//\1/
20649	    q
20650	  }
20651	  /^X\(\/\/\)[^/].*/{
20652	    s//\1/
20653	    q
20654	  }
20655	  /^X\(\/\/\)$/{
20656	    s//\1/
20657	    q
20658	  }
20659	  /^X\(\/\).*/{
20660	    s//\1/
20661	    q
20662	  }
20663	  s/.*/./; q'`
20664      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20665      # echo "creating $dirpart/$file"
20666      echo '# dummy' > "$dirpart/$file"
20667    done
20668  done
20669}
20670 ;;
20671    "libtool":C)
20672
20673    # See if we are running on zsh, and set the options that allow our
20674    # commands through without removal of \ escapes.
20675    if test -n "${ZSH_VERSION+set}"; then
20676      setopt NO_GLOB_SUBST
20677    fi
20678
20679    cfgfile=${ofile}T
20680    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20681    $RM "$cfgfile"
20682
20683    cat <<_LT_EOF >> "$cfgfile"
20684#! $SHELL
20685# Generated automatically by $as_me ($PACKAGE) $VERSION
20686# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20687# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20688
20689# Provide generalized library-building support services.
20690# Written by Gordon Matzigkeit, 1996
20691
20692# Copyright (C) 2014 Free Software Foundation, Inc.
20693# This is free software; see the source for copying conditions.  There is NO
20694# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20695
20696# GNU Libtool is free software; you can redistribute it and/or modify
20697# it under the terms of the GNU General Public License as published by
20698# the Free Software Foundation; either version 2 of of the License, or
20699# (at your option) any later version.
20700#
20701# As a special exception to the GNU General Public License, if you
20702# distribute this file as part of a program or library that is built
20703# using GNU Libtool, you may include this file under the  same
20704# distribution terms that you use for the rest of that program.
20705#
20706# GNU Libtool is distributed in the hope that it will be useful, but
20707# WITHOUT ANY WARRANTY; without even the implied warranty of
20708# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20709# GNU General Public License for more details.
20710#
20711# You should have received a copy of the GNU General Public License
20712# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20713
20714
20715# The names of the tagged configurations supported by this script.
20716available_tags=''
20717
20718# Configured defaults for sys_lib_dlsearch_path munging.
20719: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20720
20721# ### BEGIN LIBTOOL CONFIG
20722
20723# Whether or not to build static libraries.
20724build_old_libs=$enable_static
20725
20726# Which release of libtool.m4 was used?
20727macro_version=$macro_version
20728macro_revision=$macro_revision
20729
20730# Whether or not to build shared libraries.
20731build_libtool_libs=$enable_shared
20732
20733# What type of objects to build.
20734pic_mode=$pic_mode
20735
20736# Whether or not to optimize for fast installation.
20737fast_install=$enable_fast_install
20738
20739# Shared archive member basename,for filename based shared library versioning on AIX.
20740shared_archive_member_spec=$shared_archive_member_spec
20741
20742# Shell to use when invoking shell scripts.
20743SHELL=$lt_SHELL
20744
20745# An echo program that protects backslashes.
20746ECHO=$lt_ECHO
20747
20748# The PATH separator for the build system.
20749PATH_SEPARATOR=$lt_PATH_SEPARATOR
20750
20751# The host system.
20752host_alias=$host_alias
20753host=$host
20754host_os=$host_os
20755
20756# The build system.
20757build_alias=$build_alias
20758build=$build
20759build_os=$build_os
20760
20761# A sed program that does not truncate output.
20762SED=$lt_SED
20763
20764# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20765Xsed="\$SED -e 1s/^X//"
20766
20767# A grep program that handles long lines.
20768GREP=$lt_GREP
20769
20770# An ERE matcher.
20771EGREP=$lt_EGREP
20772
20773# A literal string matcher.
20774FGREP=$lt_FGREP
20775
20776# A BSD- or MS-compatible name lister.
20777NM=$lt_NM
20778
20779# Whether we need soft or hard links.
20780LN_S=$lt_LN_S
20781
20782# What is the maximum length of a command?
20783max_cmd_len=$max_cmd_len
20784
20785# Object file suffix (normally "o").
20786objext=$ac_objext
20787
20788# Executable file suffix (normally "").
20789exeext=$exeext
20790
20791# whether the shell understands "unset".
20792lt_unset=$lt_unset
20793
20794# turn spaces into newlines.
20795SP2NL=$lt_lt_SP2NL
20796
20797# turn newlines into spaces.
20798NL2SP=$lt_lt_NL2SP
20799
20800# convert \$build file names to \$host format.
20801to_host_file_cmd=$lt_cv_to_host_file_cmd
20802
20803# convert \$build files to toolchain format.
20804to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20805
20806# An object symbol dumper.
20807OBJDUMP=$lt_OBJDUMP
20808
20809# Method to check whether dependent libraries are shared objects.
20810deplibs_check_method=$lt_deplibs_check_method
20811
20812# Command to use when deplibs_check_method = "file_magic".
20813file_magic_cmd=$lt_file_magic_cmd
20814
20815# How to find potential files when deplibs_check_method = "file_magic".
20816file_magic_glob=$lt_file_magic_glob
20817
20818# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20819want_nocaseglob=$lt_want_nocaseglob
20820
20821# DLL creation program.
20822DLLTOOL=$lt_DLLTOOL
20823
20824# Command to associate shared and link libraries.
20825sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20826
20827# The archiver.
20828AR=$lt_AR
20829
20830# Flags to create an archive.
20831AR_FLAGS=$lt_AR_FLAGS
20832
20833# How to feed a file listing to the archiver.
20834archiver_list_spec=$lt_archiver_list_spec
20835
20836# A symbol stripping program.
20837STRIP=$lt_STRIP
20838
20839# Commands used to install an old-style archive.
20840RANLIB=$lt_RANLIB
20841old_postinstall_cmds=$lt_old_postinstall_cmds
20842old_postuninstall_cmds=$lt_old_postuninstall_cmds
20843
20844# Whether to use a lock for old archive extraction.
20845lock_old_archive_extraction=$lock_old_archive_extraction
20846
20847# A C compiler.
20848LTCC=$lt_CC
20849
20850# LTCC compiler flags.
20851LTCFLAGS=$lt_CFLAGS
20852
20853# Take the output of nm and produce a listing of raw symbols and C names.
20854global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20855
20856# Transform the output of nm in a proper C declaration.
20857global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20858
20859# Transform the output of nm into a list of symbols to manually relocate.
20860global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20861
20862# Transform the output of nm in a C name address pair.
20863global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20864
20865# Transform the output of nm in a C name address pair when lib prefix is needed.
20866global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20867
20868# The name lister interface.
20869nm_interface=$lt_lt_cv_nm_interface
20870
20871# Specify filename containing input files for \$NM.
20872nm_file_list_spec=$lt_nm_file_list_spec
20873
20874# The root where to search for dependent libraries,and where our libraries should be installed.
20875lt_sysroot=$lt_sysroot
20876
20877# Command to truncate a binary pipe.
20878lt_truncate_bin=$lt_lt_cv_truncate_bin
20879
20880# The name of the directory that contains temporary libtool files.
20881objdir=$objdir
20882
20883# Used to examine libraries when file_magic_cmd begins with "file".
20884MAGIC_CMD=$MAGIC_CMD
20885
20886# Must we lock files when doing compilation?
20887need_locks=$lt_need_locks
20888
20889# Manifest tool.
20890MANIFEST_TOOL=$lt_MANIFEST_TOOL
20891
20892# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20893DSYMUTIL=$lt_DSYMUTIL
20894
20895# Tool to change global to local symbols on Mac OS X.
20896NMEDIT=$lt_NMEDIT
20897
20898# Tool to manipulate fat objects and archives on Mac OS X.
20899LIPO=$lt_LIPO
20900
20901# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20902OTOOL=$lt_OTOOL
20903
20904# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20905OTOOL64=$lt_OTOOL64
20906
20907# Old archive suffix (normally "a").
20908libext=$libext
20909
20910# Shared library suffix (normally ".so").
20911shrext_cmds=$lt_shrext_cmds
20912
20913# The commands to extract the exported symbol list from a shared archive.
20914extract_expsyms_cmds=$lt_extract_expsyms_cmds
20915
20916# Variables whose values should be saved in libtool wrapper scripts and
20917# restored at link time.
20918variables_saved_for_relink=$lt_variables_saved_for_relink
20919
20920# Do we need the "lib" prefix for modules?
20921need_lib_prefix=$need_lib_prefix
20922
20923# Do we need a version for libraries?
20924need_version=$need_version
20925
20926# Library versioning type.
20927version_type=$version_type
20928
20929# Shared library runtime path variable.
20930runpath_var=$runpath_var
20931
20932# Shared library path variable.
20933shlibpath_var=$shlibpath_var
20934
20935# Is shlibpath searched before the hard-coded library search path?
20936shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20937
20938# Format of library name prefix.
20939libname_spec=$lt_libname_spec
20940
20941# List of archive names.  First name is the real one, the rest are links.
20942# The last name is the one that the linker finds with -lNAME
20943library_names_spec=$lt_library_names_spec
20944
20945# The coded name of the library, if different from the real name.
20946soname_spec=$lt_soname_spec
20947
20948# Permission mode override for installation of shared libraries.
20949install_override_mode=$lt_install_override_mode
20950
20951# Command to use after installation of a shared archive.
20952postinstall_cmds=$lt_postinstall_cmds
20953
20954# Command to use after uninstallation of a shared archive.
20955postuninstall_cmds=$lt_postuninstall_cmds
20956
20957# Commands used to finish a libtool library installation in a directory.
20958finish_cmds=$lt_finish_cmds
20959
20960# As "finish_cmds", except a single script fragment to be evaled but
20961# not shown.
20962finish_eval=$lt_finish_eval
20963
20964# Whether we should hardcode library paths into libraries.
20965hardcode_into_libs=$hardcode_into_libs
20966
20967# Compile-time system search path for libraries.
20968sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20969
20970# Detected run-time system search path for libraries.
20971sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20972
20973# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20974configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20975
20976# Whether dlopen is supported.
20977dlopen_support=$enable_dlopen
20978
20979# Whether dlopen of programs is supported.
20980dlopen_self=$enable_dlopen_self
20981
20982# Whether dlopen of statically linked programs is supported.
20983dlopen_self_static=$enable_dlopen_self_static
20984
20985# Commands to strip libraries.
20986old_striplib=$lt_old_striplib
20987striplib=$lt_striplib
20988
20989
20990# The linker used to build libraries.
20991LD=$lt_LD
20992
20993# How to create reloadable object files.
20994reload_flag=$lt_reload_flag
20995reload_cmds=$lt_reload_cmds
20996
20997# Commands used to build an old-style archive.
20998old_archive_cmds=$lt_old_archive_cmds
20999
21000# A language specific compiler.
21001CC=$lt_compiler
21002
21003# Is the compiler the GNU compiler?
21004with_gcc=$GCC
21005
21006# Compiler flag to turn off builtin functions.
21007no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21008
21009# Additional compiler flags for building library objects.
21010pic_flag=$lt_lt_prog_compiler_pic
21011
21012# How to pass a linker flag through the compiler.
21013wl=$lt_lt_prog_compiler_wl
21014
21015# Compiler flag to prevent dynamic linking.
21016link_static_flag=$lt_lt_prog_compiler_static
21017
21018# Does compiler simultaneously support -c and -o options?
21019compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21020
21021# Whether or not to add -lc for building shared libraries.
21022build_libtool_need_lc=$archive_cmds_need_lc
21023
21024# Whether or not to disallow shared libs when runtime libs are static.
21025allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21026
21027# Compiler flag to allow reflexive dlopens.
21028export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21029
21030# Compiler flag to generate shared objects directly from archives.
21031whole_archive_flag_spec=$lt_whole_archive_flag_spec
21032
21033# Whether the compiler copes with passing no objects directly.
21034compiler_needs_object=$lt_compiler_needs_object
21035
21036# Create an old-style archive from a shared archive.
21037old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21038
21039# Create a temporary old-style archive to link instead of a shared archive.
21040old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21041
21042# Commands used to build a shared archive.
21043archive_cmds=$lt_archive_cmds
21044archive_expsym_cmds=$lt_archive_expsym_cmds
21045
21046# Commands used to build a loadable module if different from building
21047# a shared archive.
21048module_cmds=$lt_module_cmds
21049module_expsym_cmds=$lt_module_expsym_cmds
21050
21051# Whether we are building with GNU ld or not.
21052with_gnu_ld=$lt_with_gnu_ld
21053
21054# Flag that allows shared libraries with undefined symbols to be built.
21055allow_undefined_flag=$lt_allow_undefined_flag
21056
21057# Flag that enforces no undefined symbols.
21058no_undefined_flag=$lt_no_undefined_flag
21059
21060# Flag to hardcode \$libdir into a binary during linking.
21061# This must work even if \$libdir does not exist
21062hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21063
21064# Whether we need a single "-rpath" flag with a separated argument.
21065hardcode_libdir_separator=$lt_hardcode_libdir_separator
21066
21067# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21068# DIR into the resulting binary.
21069hardcode_direct=$hardcode_direct
21070
21071# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21072# DIR into the resulting binary and the resulting library dependency is
21073# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21074# library is relocated.
21075hardcode_direct_absolute=$hardcode_direct_absolute
21076
21077# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21078# into the resulting binary.
21079hardcode_minus_L=$hardcode_minus_L
21080
21081# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21082# into the resulting binary.
21083hardcode_shlibpath_var=$hardcode_shlibpath_var
21084
21085# Set to "yes" if building a shared library automatically hardcodes DIR
21086# into the library and all subsequent libraries and executables linked
21087# against it.
21088hardcode_automatic=$hardcode_automatic
21089
21090# Set to yes if linker adds runtime paths of dependent libraries
21091# to runtime path list.
21092inherit_rpath=$inherit_rpath
21093
21094# Whether libtool must link a program against all its dependency libraries.
21095link_all_deplibs=$link_all_deplibs
21096
21097# Set to "yes" if exported symbols are required.
21098always_export_symbols=$always_export_symbols
21099
21100# The commands to list exported symbols.
21101export_symbols_cmds=$lt_export_symbols_cmds
21102
21103# Symbols that should not be listed in the preloaded symbols.
21104exclude_expsyms=$lt_exclude_expsyms
21105
21106# Symbols that must always be exported.
21107include_expsyms=$lt_include_expsyms
21108
21109# Commands necessary for linking programs (against libraries) with templates.
21110prelink_cmds=$lt_prelink_cmds
21111
21112# Commands necessary for finishing linking programs.
21113postlink_cmds=$lt_postlink_cmds
21114
21115# Specify filename containing input files.
21116file_list_spec=$lt_file_list_spec
21117
21118# How to hardcode a shared library path into an executable.
21119hardcode_action=$hardcode_action
21120
21121# ### END LIBTOOL CONFIG
21122
21123_LT_EOF
21124
21125    cat <<'_LT_EOF' >> "$cfgfile"
21126
21127# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21128
21129# func_munge_path_list VARIABLE PATH
21130# -----------------------------------
21131# VARIABLE is name of variable containing _space_ separated list of
21132# directories to be munged by the contents of PATH, which is string
21133# having a format:
21134# "DIR[:DIR]:"
21135#       string "DIR[ DIR]" will be prepended to VARIABLE
21136# ":DIR[:DIR]"
21137#       string "DIR[ DIR]" will be appended to VARIABLE
21138# "DIRP[:DIRP]::[DIRA:]DIRA"
21139#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21140#       "DIRA[ DIRA]" will be appended to VARIABLE
21141# "DIR[:DIR]"
21142#       VARIABLE will be replaced by "DIR[ DIR]"
21143func_munge_path_list ()
21144{
21145    case x$2 in
21146    x)
21147        ;;
21148    *:)
21149        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21150        ;;
21151    x:*)
21152        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21153        ;;
21154    *::*)
21155        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21156        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21157        ;;
21158    *)
21159        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21160        ;;
21161    esac
21162}
21163
21164
21165# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21166func_cc_basename ()
21167{
21168    for cc_temp in $*""; do
21169      case $cc_temp in
21170        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21171        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21172        \-*) ;;
21173        *) break;;
21174      esac
21175    done
21176    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21177}
21178
21179
21180# ### END FUNCTIONS SHARED WITH CONFIGURE
21181
21182_LT_EOF
21183
21184  case $host_os in
21185  aix3*)
21186    cat <<\_LT_EOF >> "$cfgfile"
21187# AIX sometimes has problems with the GCC collect2 program.  For some
21188# reason, if we set the COLLECT_NAMES environment variable, the problems
21189# vanish in a puff of smoke.
21190if test set != "${COLLECT_NAMES+set}"; then
21191  COLLECT_NAMES=
21192  export COLLECT_NAMES
21193fi
21194_LT_EOF
21195    ;;
21196  esac
21197
21198
21199ltmain=$ac_aux_dir/ltmain.sh
21200
21201
21202  # We use sed instead of cat because bash on DJGPP gets confused if
21203  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21204  # text mode, it properly converts lines to CR/LF.  This bash problem
21205  # is reportedly fixed, but why not run on old versions too?
21206  sed '$q' "$ltmain" >> "$cfgfile" \
21207     || (rm -f "$cfgfile"; exit 1)
21208
21209   mv -f "$cfgfile" "$ofile" ||
21210    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21211  chmod +x "$ofile"
21212
21213 ;;
21214
21215  esac
21216done # for ac_tag
21217
21218
21219as_fn_exit 0
21220_ACEOF
21221ac_clean_files=$ac_clean_files_save
21222
21223test $ac_write_fail = 0 ||
21224  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21225
21226
21227# configure is writing to config.log, and then calls config.status.
21228# config.status does its own redirection, appending to config.log.
21229# Unfortunately, on DOS this fails, as config.log is still kept open
21230# by configure, so config.status won't be able to write to it; its
21231# output is simply discarded.  So we exec the FD to /dev/null,
21232# effectively closing config.log, so it can be properly (re)opened and
21233# appended to by config.status.  When coming back to configure, we
21234# need to make the FD available again.
21235if test "$no_create" != yes; then
21236  ac_cs_success=:
21237  ac_config_status_args=
21238  test "$silent" = yes &&
21239    ac_config_status_args="$ac_config_status_args --quiet"
21240  exec 5>/dev/null
21241  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21242  exec 5>>config.log
21243  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21244  # would make configure fail if this is the last instruction.
21245  $ac_cs_success || as_fn_exit 1
21246fi
21247if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21248  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21249$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21250fi
21251
21252