1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-video-cirrus 1.5.3.
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-cirrus'
593PACKAGE_TARNAME='xf86-video-cirrus'
594PACKAGE_VERSION='1.5.3'
595PACKAGE_STRING='xf86-video-cirrus 1.5.3'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597PACKAGE_URL=''
598
599ac_unique_file="Makefile.am"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640DRIVER_NAME
641moduledir
642XSERVER_LIBPCIACCESS_FALSE
643XSERVER_LIBPCIACCESS_TRUE
644PCIACCESS_LIBS
645PCIACCESS_CFLAGS
646XAA_FALSE
647XAA_TRUE
648XORG_LIBS
649XORG_CFLAGS
650OTOOL64
651OTOOL
652LIPO
653NMEDIT
654DSYMUTIL
655MANIFEST_TOOL
656RANLIB
657ac_ct_AR
658AR
659DLLTOOL
660OBJDUMP
661LN_S
662NM
663ac_ct_DUMPBIN
664DUMPBIN
665LD
666FGREP
667LIBTOOL
668MAN_SUBSTS
669XORG_MAN_PAGE
670ADMIN_MAN_DIR
671DRIVER_MAN_DIR
672MISC_MAN_DIR
673FILE_MAN_DIR
674LIB_MAN_DIR
675APP_MAN_DIR
676ADMIN_MAN_SUFFIX
677DRIVER_MAN_SUFFIX
678MISC_MAN_SUFFIX
679FILE_MAN_SUFFIX
680LIB_MAN_SUFFIX
681APP_MAN_SUFFIX
682SED
683host_os
684host_vendor
685host_cpu
686host
687build_os
688build_vendor
689build_cpu
690build
691INSTALL_CMD
692PKG_CONFIG_LIBDIR
693PKG_CONFIG_PATH
694PKG_CONFIG
695CHANGELOG_CMD
696STRICT_CFLAGS
697CWARNFLAGS
698BASE_CFLAGS
699EGREP
700GREP
701CPP
702am__fastdepCC_FALSE
703am__fastdepCC_TRUE
704CCDEPMODE
705am__nodep
706AMDEPBACKSLASH
707AMDEP_FALSE
708AMDEP_TRUE
709am__quote
710am__include
711DEPDIR
712OBJEXT
713EXEEXT
714ac_ct_CC
715CPPFLAGS
716LDFLAGS
717CFLAGS
718CC
719AM_BACKSLASH
720AM_DEFAULT_VERBOSITY
721AM_DEFAULT_V
722AM_V
723am__untar
724am__tar
725AMTAR
726am__leading_dot
727SET_MAKE
728AWK
729mkdir_p
730MKDIR_P
731INSTALL_STRIP_PROGRAM
732STRIP
733install_sh
734MAKEINFO
735AUTOHEADER
736AUTOMAKE
737AUTOCONF
738ACLOCAL
739VERSION
740PACKAGE
741CYGPATH_W
742am__isrc
743INSTALL_DATA
744INSTALL_SCRIPT
745INSTALL_PROGRAM
746target_alias
747host_alias
748build_alias
749LIBS
750ECHO_T
751ECHO_N
752ECHO_C
753DEFS
754mandir
755localedir
756libdir
757psdir
758pdfdir
759dvidir
760htmldir
761infodir
762docdir
763oldincludedir
764includedir
765localstatedir
766sharedstatedir
767sysconfdir
768datadir
769datarootdir
770libexecdir
771sbindir
772bindir
773program_transform_name
774prefix
775exec_prefix
776PACKAGE_URL
777PACKAGE_BUGREPORT
778PACKAGE_STRING
779PACKAGE_VERSION
780PACKAGE_TARNAME
781PACKAGE_NAME
782PATH_SEPARATOR
783SHELL'
784ac_subst_files=''
785ac_user_opts='
786enable_option_checking
787enable_silent_rules
788enable_dependency_tracking
789enable_selective_werror
790enable_strict_compilation
791enable_static
792enable_shared
793with_pic
794enable_fast_install
795with_gnu_ld
796with_sysroot
797enable_libtool_lock
798with_xorg_module_dir
799enable_xaa
800'
801      ac_precious_vars='build_alias
802host_alias
803target_alias
804CC
805CFLAGS
806LDFLAGS
807LIBS
808CPPFLAGS
809CPP
810PKG_CONFIG
811PKG_CONFIG_PATH
812PKG_CONFIG_LIBDIR
813XORG_CFLAGS
814XORG_LIBS
815PCIACCESS_CFLAGS
816PCIACCESS_LIBS'
817
818
819# Initialize some variables set by options.
820ac_init_help=
821ac_init_version=false
822ac_unrecognized_opts=
823ac_unrecognized_sep=
824# The variables have the same names as the options, with
825# dashes changed to underlines.
826cache_file=/dev/null
827exec_prefix=NONE
828no_create=
829no_recursion=
830prefix=NONE
831program_prefix=NONE
832program_suffix=NONE
833program_transform_name=s,x,x,
834silent=
835site=
836srcdir=
837verbose=
838x_includes=NONE
839x_libraries=NONE
840
841# Installation directory options.
842# These are left unexpanded so users can "make install exec_prefix=/foo"
843# and all the variables that are supposed to be based on exec_prefix
844# by default will actually change.
845# Use braces instead of parens because sh, perl, etc. also accept them.
846# (The list follows the same order as the GNU Coding Standards.)
847bindir='${exec_prefix}/bin'
848sbindir='${exec_prefix}/sbin'
849libexecdir='${exec_prefix}/libexec'
850datarootdir='${prefix}/share'
851datadir='${datarootdir}'
852sysconfdir='${prefix}/etc'
853sharedstatedir='${prefix}/com'
854localstatedir='${prefix}/var'
855includedir='${prefix}/include'
856oldincludedir='/usr/include'
857docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858infodir='${datarootdir}/info'
859htmldir='${docdir}'
860dvidir='${docdir}'
861pdfdir='${docdir}'
862psdir='${docdir}'
863libdir='${exec_prefix}/lib'
864localedir='${datarootdir}/locale'
865mandir='${datarootdir}/man'
866
867ac_prev=
868ac_dashdash=
869for ac_option
870do
871  # If the previous option needs an argument, assign it.
872  if test -n "$ac_prev"; then
873    eval $ac_prev=\$ac_option
874    ac_prev=
875    continue
876  fi
877
878  case $ac_option in
879  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880  *=)   ac_optarg= ;;
881  *)    ac_optarg=yes ;;
882  esac
883
884  # Accept the important Cygnus configure options, so we can diagnose typos.
885
886  case $ac_dashdash$ac_option in
887  --)
888    ac_dashdash=yes ;;
889
890  -bindir | --bindir | --bindi | --bind | --bin | --bi)
891    ac_prev=bindir ;;
892  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893    bindir=$ac_optarg ;;
894
895  -build | --build | --buil | --bui | --bu)
896    ac_prev=build_alias ;;
897  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898    build_alias=$ac_optarg ;;
899
900  -cache-file | --cache-file | --cache-fil | --cache-fi \
901  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902    ac_prev=cache_file ;;
903  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905    cache_file=$ac_optarg ;;
906
907  --config-cache | -C)
908    cache_file=config.cache ;;
909
910  -datadir | --datadir | --datadi | --datad)
911    ac_prev=datadir ;;
912  -datadir=* | --datadir=* | --datadi=* | --datad=*)
913    datadir=$ac_optarg ;;
914
915  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916  | --dataroo | --dataro | --datar)
917    ac_prev=datarootdir ;;
918  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920    datarootdir=$ac_optarg ;;
921
922  -disable-* | --disable-*)
923    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924    # Reject names that are not valid shell variable names.
925    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926      as_fn_error $? "invalid feature name: $ac_useropt"
927    ac_useropt_orig=$ac_useropt
928    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929    case $ac_user_opts in
930      *"
931"enable_$ac_useropt"
932"*) ;;
933      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934	 ac_unrecognized_sep=', ';;
935    esac
936    eval enable_$ac_useropt=no ;;
937
938  -docdir | --docdir | --docdi | --doc | --do)
939    ac_prev=docdir ;;
940  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941    docdir=$ac_optarg ;;
942
943  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944    ac_prev=dvidir ;;
945  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946    dvidir=$ac_optarg ;;
947
948  -enable-* | --enable-*)
949    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950    # Reject names that are not valid shell variable names.
951    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952      as_fn_error $? "invalid feature name: $ac_useropt"
953    ac_useropt_orig=$ac_useropt
954    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955    case $ac_user_opts in
956      *"
957"enable_$ac_useropt"
958"*) ;;
959      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960	 ac_unrecognized_sep=', ';;
961    esac
962    eval enable_$ac_useropt=\$ac_optarg ;;
963
964  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966  | --exec | --exe | --ex)
967    ac_prev=exec_prefix ;;
968  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970  | --exec=* | --exe=* | --ex=*)
971    exec_prefix=$ac_optarg ;;
972
973  -gas | --gas | --ga | --g)
974    # Obsolete; use --with-gas.
975    with_gas=yes ;;
976
977  -help | --help | --hel | --he | -h)
978    ac_init_help=long ;;
979  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980    ac_init_help=recursive ;;
981  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982    ac_init_help=short ;;
983
984  -host | --host | --hos | --ho)
985    ac_prev=host_alias ;;
986  -host=* | --host=* | --hos=* | --ho=*)
987    host_alias=$ac_optarg ;;
988
989  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990    ac_prev=htmldir ;;
991  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992  | --ht=*)
993    htmldir=$ac_optarg ;;
994
995  -includedir | --includedir | --includedi | --included | --include \
996  | --includ | --inclu | --incl | --inc)
997    ac_prev=includedir ;;
998  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999  | --includ=* | --inclu=* | --incl=* | --inc=*)
1000    includedir=$ac_optarg ;;
1001
1002  -infodir | --infodir | --infodi | --infod | --info | --inf)
1003    ac_prev=infodir ;;
1004  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005    infodir=$ac_optarg ;;
1006
1007  -libdir | --libdir | --libdi | --libd)
1008    ac_prev=libdir ;;
1009  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010    libdir=$ac_optarg ;;
1011
1012  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013  | --libexe | --libex | --libe)
1014    ac_prev=libexecdir ;;
1015  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016  | --libexe=* | --libex=* | --libe=*)
1017    libexecdir=$ac_optarg ;;
1018
1019  -localedir | --localedir | --localedi | --localed | --locale)
1020    ac_prev=localedir ;;
1021  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022    localedir=$ac_optarg ;;
1023
1024  -localstatedir | --localstatedir | --localstatedi | --localstated \
1025  | --localstate | --localstat | --localsta | --localst | --locals)
1026    ac_prev=localstatedir ;;
1027  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029    localstatedir=$ac_optarg ;;
1030
1031  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032    ac_prev=mandir ;;
1033  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034    mandir=$ac_optarg ;;
1035
1036  -nfp | --nfp | --nf)
1037    # Obsolete; use --without-fp.
1038    with_fp=no ;;
1039
1040  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041  | --no-cr | --no-c | -n)
1042    no_create=yes ;;
1043
1044  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046    no_recursion=yes ;;
1047
1048  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050  | --oldin | --oldi | --old | --ol | --o)
1051    ac_prev=oldincludedir ;;
1052  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055    oldincludedir=$ac_optarg ;;
1056
1057  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058    ac_prev=prefix ;;
1059  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060    prefix=$ac_optarg ;;
1061
1062  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063  | --program-pre | --program-pr | --program-p)
1064    ac_prev=program_prefix ;;
1065  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067    program_prefix=$ac_optarg ;;
1068
1069  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070  | --program-suf | --program-su | --program-s)
1071    ac_prev=program_suffix ;;
1072  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074    program_suffix=$ac_optarg ;;
1075
1076  -program-transform-name | --program-transform-name \
1077  | --program-transform-nam | --program-transform-na \
1078  | --program-transform-n | --program-transform- \
1079  | --program-transform | --program-transfor \
1080  | --program-transfo | --program-transf \
1081  | --program-trans | --program-tran \
1082  | --progr-tra | --program-tr | --program-t)
1083    ac_prev=program_transform_name ;;
1084  -program-transform-name=* | --program-transform-name=* \
1085  | --program-transform-nam=* | --program-transform-na=* \
1086  | --program-transform-n=* | --program-transform-=* \
1087  | --program-transform=* | --program-transfor=* \
1088  | --program-transfo=* | --program-transf=* \
1089  | --program-trans=* | --program-tran=* \
1090  | --progr-tra=* | --program-tr=* | --program-t=*)
1091    program_transform_name=$ac_optarg ;;
1092
1093  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094    ac_prev=pdfdir ;;
1095  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096    pdfdir=$ac_optarg ;;
1097
1098  -psdir | --psdir | --psdi | --psd | --ps)
1099    ac_prev=psdir ;;
1100  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101    psdir=$ac_optarg ;;
1102
1103  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104  | -silent | --silent | --silen | --sile | --sil)
1105    silent=yes ;;
1106
1107  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108    ac_prev=sbindir ;;
1109  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110  | --sbi=* | --sb=*)
1111    sbindir=$ac_optarg ;;
1112
1113  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115  | --sharedst | --shareds | --shared | --share | --shar \
1116  | --sha | --sh)
1117    ac_prev=sharedstatedir ;;
1118  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121  | --sha=* | --sh=*)
1122    sharedstatedir=$ac_optarg ;;
1123
1124  -site | --site | --sit)
1125    ac_prev=site ;;
1126  -site=* | --site=* | --sit=*)
1127    site=$ac_optarg ;;
1128
1129  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130    ac_prev=srcdir ;;
1131  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132    srcdir=$ac_optarg ;;
1133
1134  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135  | --syscon | --sysco | --sysc | --sys | --sy)
1136    ac_prev=sysconfdir ;;
1137  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139    sysconfdir=$ac_optarg ;;
1140
1141  -target | --target | --targe | --targ | --tar | --ta | --t)
1142    ac_prev=target_alias ;;
1143  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144    target_alias=$ac_optarg ;;
1145
1146  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147    verbose=yes ;;
1148
1149  -version | --version | --versio | --versi | --vers | -V)
1150    ac_init_version=: ;;
1151
1152  -with-* | --with-*)
1153    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154    # Reject names that are not valid shell variable names.
1155    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156      as_fn_error $? "invalid package name: $ac_useropt"
1157    ac_useropt_orig=$ac_useropt
1158    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159    case $ac_user_opts in
1160      *"
1161"with_$ac_useropt"
1162"*) ;;
1163      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164	 ac_unrecognized_sep=', ';;
1165    esac
1166    eval with_$ac_useropt=\$ac_optarg ;;
1167
1168  -without-* | --without-*)
1169    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170    # Reject names that are not valid shell variable names.
1171    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172      as_fn_error $? "invalid package name: $ac_useropt"
1173    ac_useropt_orig=$ac_useropt
1174    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175    case $ac_user_opts in
1176      *"
1177"with_$ac_useropt"
1178"*) ;;
1179      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180	 ac_unrecognized_sep=', ';;
1181    esac
1182    eval with_$ac_useropt=no ;;
1183
1184  --x)
1185    # Obsolete; use --with-x.
1186    with_x=yes ;;
1187
1188  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189  | --x-incl | --x-inc | --x-in | --x-i)
1190    ac_prev=x_includes ;;
1191  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193    x_includes=$ac_optarg ;;
1194
1195  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197    ac_prev=x_libraries ;;
1198  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200    x_libraries=$ac_optarg ;;
1201
1202  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203Try \`$0 --help' for more information"
1204    ;;
1205
1206  *=*)
1207    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208    # Reject names that are not valid shell variable names.
1209    case $ac_envvar in #(
1210      '' | [0-9]* | *[!_$as_cr_alnum]* )
1211      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1212    esac
1213    eval $ac_envvar=\$ac_optarg
1214    export $ac_envvar ;;
1215
1216  *)
1217    # FIXME: should be removed in autoconf 3.0.
1218    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1219    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1221    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222    ;;
1223
1224  esac
1225done
1226
1227if test -n "$ac_prev"; then
1228  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229  as_fn_error $? "missing argument to $ac_option"
1230fi
1231
1232if test -n "$ac_unrecognized_opts"; then
1233  case $enable_option_checking in
1234    no) ;;
1235    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237  esac
1238fi
1239
1240# Check all directory arguments for consistency.
1241for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242		datadir sysconfdir sharedstatedir localstatedir includedir \
1243		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244		libdir localedir mandir
1245do
1246  eval ac_val=\$$ac_var
1247  # Remove trailing slashes.
1248  case $ac_val in
1249    */ )
1250      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251      eval $ac_var=\$ac_val;;
1252  esac
1253  # Be sure to have absolute directory names.
1254  case $ac_val in
1255    [\\/$]* | ?:[\\/]* )  continue;;
1256    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257  esac
1258  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1259done
1260
1261# There might be people who depend on the old broken behavior: `$host'
1262# used to hold the argument of --host etc.
1263# FIXME: To remove some day.
1264build=$build_alias
1265host=$host_alias
1266target=$target_alias
1267
1268# FIXME: To remove some day.
1269if test "x$host_alias" != x; then
1270  if test "x$build_alias" = x; then
1271    cross_compiling=maybe
1272  elif test "x$build_alias" != "x$host_alias"; then
1273    cross_compiling=yes
1274  fi
1275fi
1276
1277ac_tool_prefix=
1278test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
1280test "$silent" = yes && exec 6>/dev/null
1281
1282
1283ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284ac_ls_di=`ls -di .` &&
1285ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286  as_fn_error $? "working directory cannot be determined"
1287test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288  as_fn_error $? "pwd does not report name of working directory"
1289
1290
1291# Find the source files, if location was not specified.
1292if test -z "$srcdir"; then
1293  ac_srcdir_defaulted=yes
1294  # Try the directory containing this script, then the parent directory.
1295  ac_confdir=`$as_dirname -- "$as_myself" ||
1296$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297	 X"$as_myself" : 'X\(//\)[^/]' \| \
1298	 X"$as_myself" : 'X\(//\)$' \| \
1299	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300$as_echo X"$as_myself" |
1301    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302	    s//\1/
1303	    q
1304	  }
1305	  /^X\(\/\/\)[^/].*/{
1306	    s//\1/
1307	    q
1308	  }
1309	  /^X\(\/\/\)$/{
1310	    s//\1/
1311	    q
1312	  }
1313	  /^X\(\/\).*/{
1314	    s//\1/
1315	    q
1316	  }
1317	  s/.*/./; q'`
1318  srcdir=$ac_confdir
1319  if test ! -r "$srcdir/$ac_unique_file"; then
1320    srcdir=..
1321  fi
1322else
1323  ac_srcdir_defaulted=no
1324fi
1325if test ! -r "$srcdir/$ac_unique_file"; then
1326  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1328fi
1329ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330ac_abs_confdir=`(
1331	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1332	pwd)`
1333# When building in place, set srcdir=.
1334if test "$ac_abs_confdir" = "$ac_pwd"; then
1335  srcdir=.
1336fi
1337# Remove unnecessary trailing slashes from srcdir.
1338# Double slashes in file names in object file debugging info
1339# mess up M-x gdb in Emacs.
1340case $srcdir in
1341*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342esac
1343for ac_var in $ac_precious_vars; do
1344  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345  eval ac_env_${ac_var}_value=\$${ac_var}
1346  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348done
1349
1350#
1351# Report the --help message.
1352#
1353if test "$ac_init_help" = "long"; then
1354  # Omit some internal or obsolete options to make the list less imposing.
1355  # This message is too long to be a string in the A/UX 3.1 sh.
1356  cat <<_ACEOF
1357\`configure' configures xf86-video-cirrus 1.5.3 to adapt to many kinds of systems.
1358
1359Usage: $0 [OPTION]... [VAR=VALUE]...
1360
1361To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362VAR=VALUE.  See below for descriptions of some of the useful variables.
1363
1364Defaults for the options are specified in brackets.
1365
1366Configuration:
1367  -h, --help              display this help and exit
1368      --help=short        display options specific to this package
1369      --help=recursive    display the short help of all the included packages
1370  -V, --version           display version information and exit
1371  -q, --quiet, --silent   do not print \`checking ...' messages
1372      --cache-file=FILE   cache test results in FILE [disabled]
1373  -C, --config-cache      alias for \`--cache-file=config.cache'
1374  -n, --no-create         do not create output files
1375      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1376
1377Installation directories:
1378  --prefix=PREFIX         install architecture-independent files in PREFIX
1379                          [$ac_default_prefix]
1380  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1381                          [PREFIX]
1382
1383By default, \`make install' will install all the files in
1384\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1385an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386for instance \`--prefix=\$HOME'.
1387
1388For better control, use the options below.
1389
1390Fine tuning of the installation directories:
1391  --bindir=DIR            user executables [EPREFIX/bin]
1392  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1393  --libexecdir=DIR        program executables [EPREFIX/libexec]
1394  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1395  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1396  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1397  --libdir=DIR            object code libraries [EPREFIX/lib]
1398  --includedir=DIR        C header files [PREFIX/include]
1399  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1400  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1401  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1402  --infodir=DIR           info documentation [DATAROOTDIR/info]
1403  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1404  --mandir=DIR            man documentation [DATAROOTDIR/man]
1405  --docdir=DIR            documentation root
1406                          [DATAROOTDIR/doc/xf86-video-cirrus]
1407  --htmldir=DIR           html documentation [DOCDIR]
1408  --dvidir=DIR            dvi documentation [DOCDIR]
1409  --pdfdir=DIR            pdf documentation [DOCDIR]
1410  --psdir=DIR             ps documentation [DOCDIR]
1411_ACEOF
1412
1413  cat <<\_ACEOF
1414
1415Program names:
1416  --program-prefix=PREFIX            prepend PREFIX to installed program names
1417  --program-suffix=SUFFIX            append SUFFIX to installed program names
1418  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1419
1420System types:
1421  --build=BUILD     configure for building on BUILD [guessed]
1422  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1423_ACEOF
1424fi
1425
1426if test -n "$ac_init_help"; then
1427  case $ac_init_help in
1428     short | recursive ) echo "Configuration of xf86-video-cirrus 1.5.3:";;
1429   esac
1430  cat <<\_ACEOF
1431
1432Optional Features:
1433  --disable-option-checking  ignore unrecognized --enable/--with options
1434  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1435  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1436  --enable-silent-rules   less verbose build output (undo: "make V=1")
1437  --disable-silent-rules  verbose build output (undo: "make V=0")
1438  --enable-dependency-tracking
1439                          do not reject slow dependency extractors
1440  --disable-dependency-tracking
1441                          speeds up one-time build
1442  --disable-selective-werror
1443                          Turn off selective compiler errors. (default:
1444                          enabled)
1445  --enable-strict-compilation
1446                          Enable all warnings from compiler and make them
1447                          errors (default: disabled)
1448  --enable-static[=PKGS]  build static libraries [default=no]
1449  --enable-shared[=PKGS]  build shared libraries [default=yes]
1450  --enable-fast-install[=PKGS]
1451                          optimize for fast installation [default=yes]
1452  --disable-libtool-lock  avoid locking (might break parallel builds)
1453  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1454                          [default=auto]
1455
1456Optional Packages:
1457  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1458  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1459  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1460                          both]
1461  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1462  --with-sysroot=DIR Search for dependent libraries within DIR
1463                        (or the compiler's sysroot if not specified).
1464  --with-xorg-module-dir=DIR
1465                          Default xorg module directory
1466                          [[default=$libdir/xorg/modules]]
1467
1468Some influential environment variables:
1469  CC          C compiler command
1470  CFLAGS      C compiler flags
1471  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1472              nonstandard directory <lib dir>
1473  LIBS        libraries to pass to the linker, e.g. -l<library>
1474  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1475              you have headers in a nonstandard directory <include dir>
1476  CPP         C preprocessor
1477  PKG_CONFIG  path to pkg-config utility
1478  PKG_CONFIG_PATH
1479              directories to add to pkg-config's search path
1480  PKG_CONFIG_LIBDIR
1481              path overriding pkg-config's built-in search path
1482  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1483  XORG_LIBS   linker flags for XORG, overriding pkg-config
1484  PCIACCESS_CFLAGS
1485              C compiler flags for PCIACCESS, overriding pkg-config
1486  PCIACCESS_LIBS
1487              linker flags for PCIACCESS, overriding pkg-config
1488
1489Use these variables to override the choices made by `configure' or to help
1490it to find libraries and programs with nonstandard names/locations.
1491
1492Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1493_ACEOF
1494ac_status=$?
1495fi
1496
1497if test "$ac_init_help" = "recursive"; then
1498  # If there are subdirs, report their specific --help.
1499  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500    test -d "$ac_dir" ||
1501      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502      continue
1503    ac_builddir=.
1504
1505case "$ac_dir" in
1506.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507*)
1508  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1509  # A ".." for each directory in $ac_dir_suffix.
1510  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511  case $ac_top_builddir_sub in
1512  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514  esac ;;
1515esac
1516ac_abs_top_builddir=$ac_pwd
1517ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518# for backward compatibility:
1519ac_top_builddir=$ac_top_build_prefix
1520
1521case $srcdir in
1522  .)  # We are building in place.
1523    ac_srcdir=.
1524    ac_top_srcdir=$ac_top_builddir_sub
1525    ac_abs_top_srcdir=$ac_pwd ;;
1526  [\\/]* | ?:[\\/]* )  # Absolute name.
1527    ac_srcdir=$srcdir$ac_dir_suffix;
1528    ac_top_srcdir=$srcdir
1529    ac_abs_top_srcdir=$srcdir ;;
1530  *) # Relative name.
1531    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532    ac_top_srcdir=$ac_top_build_prefix$srcdir
1533    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534esac
1535ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537    cd "$ac_dir" || { ac_status=$?; continue; }
1538    # Check for guested configure.
1539    if test -f "$ac_srcdir/configure.gnu"; then
1540      echo &&
1541      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542    elif test -f "$ac_srcdir/configure"; then
1543      echo &&
1544      $SHELL "$ac_srcdir/configure" --help=recursive
1545    else
1546      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547    fi || ac_status=$?
1548    cd "$ac_pwd" || { ac_status=$?; break; }
1549  done
1550fi
1551
1552test -n "$ac_init_help" && exit $ac_status
1553if $ac_init_version; then
1554  cat <<\_ACEOF
1555xf86-video-cirrus configure 1.5.3
1556generated by GNU Autoconf 2.69
1557
1558Copyright (C) 2012 Free Software Foundation, Inc.
1559This configure script is free software; the Free Software Foundation
1560gives unlimited permission to copy, distribute and modify it.
1561_ACEOF
1562  exit
1563fi
1564
1565## ------------------------ ##
1566## Autoconf initialization. ##
1567## ------------------------ ##
1568
1569# ac_fn_c_try_compile LINENO
1570# --------------------------
1571# Try to compile conftest.$ac_ext, and return whether this succeeded.
1572ac_fn_c_try_compile ()
1573{
1574  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575  rm -f conftest.$ac_objext
1576  if { { ac_try="$ac_compile"
1577case "(($ac_try" in
1578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579  *) ac_try_echo=$ac_try;;
1580esac
1581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582$as_echo "$ac_try_echo"; } >&5
1583  (eval "$ac_compile") 2>conftest.err
1584  ac_status=$?
1585  if test -s conftest.err; then
1586    grep -v '^ *+' conftest.err >conftest.er1
1587    cat conftest.er1 >&5
1588    mv -f conftest.er1 conftest.err
1589  fi
1590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591  test $ac_status = 0; } && {
1592	 test -z "$ac_c_werror_flag" ||
1593	 test ! -s conftest.err
1594       } && test -s conftest.$ac_objext; then :
1595  ac_retval=0
1596else
1597  $as_echo "$as_me: failed program was:" >&5
1598sed 's/^/| /' conftest.$ac_ext >&5
1599
1600	ac_retval=1
1601fi
1602  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603  as_fn_set_status $ac_retval
1604
1605} # ac_fn_c_try_compile
1606
1607# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1608# ---------------------------------------------
1609# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1610# accordingly.
1611ac_fn_c_check_decl ()
1612{
1613  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614  as_decl_name=`echo $2|sed 's/ *(.*//'`
1615  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1617$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1618if eval \${$3+:} false; then :
1619  $as_echo_n "(cached) " >&6
1620else
1621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622/* end confdefs.h.  */
1623$4
1624int
1625main ()
1626{
1627#ifndef $as_decl_name
1628#ifdef __cplusplus
1629  (void) $as_decl_use;
1630#else
1631  (void) $as_decl_name;
1632#endif
1633#endif
1634
1635  ;
1636  return 0;
1637}
1638_ACEOF
1639if ac_fn_c_try_compile "$LINENO"; then :
1640  eval "$3=yes"
1641else
1642  eval "$3=no"
1643fi
1644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1645fi
1646eval ac_res=\$$3
1647	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648$as_echo "$ac_res" >&6; }
1649  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650
1651} # ac_fn_c_check_decl
1652
1653# ac_fn_c_try_cpp LINENO
1654# ----------------------
1655# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1656ac_fn_c_try_cpp ()
1657{
1658  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659  if { { ac_try="$ac_cpp conftest.$ac_ext"
1660case "(($ac_try" in
1661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662  *) ac_try_echo=$ac_try;;
1663esac
1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665$as_echo "$ac_try_echo"; } >&5
1666  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1667  ac_status=$?
1668  if test -s conftest.err; then
1669    grep -v '^ *+' conftest.err >conftest.er1
1670    cat conftest.er1 >&5
1671    mv -f conftest.er1 conftest.err
1672  fi
1673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674  test $ac_status = 0; } > conftest.i && {
1675	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1676	 test ! -s conftest.err
1677       }; then :
1678  ac_retval=0
1679else
1680  $as_echo "$as_me: failed program was:" >&5
1681sed 's/^/| /' conftest.$ac_ext >&5
1682
1683    ac_retval=1
1684fi
1685  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686  as_fn_set_status $ac_retval
1687
1688} # ac_fn_c_try_cpp
1689
1690# ac_fn_c_try_run LINENO
1691# ----------------------
1692# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1693# that executables *can* be run.
1694ac_fn_c_try_run ()
1695{
1696  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697  if { { ac_try="$ac_link"
1698case "(($ac_try" in
1699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700  *) ac_try_echo=$ac_try;;
1701esac
1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703$as_echo "$ac_try_echo"; } >&5
1704  (eval "$ac_link") 2>&5
1705  ac_status=$?
1706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1708  { { case "(($ac_try" in
1709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710  *) ac_try_echo=$ac_try;;
1711esac
1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713$as_echo "$ac_try_echo"; } >&5
1714  (eval "$ac_try") 2>&5
1715  ac_status=$?
1716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717  test $ac_status = 0; }; }; then :
1718  ac_retval=0
1719else
1720  $as_echo "$as_me: program exited with status $ac_status" >&5
1721       $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
1723
1724       ac_retval=$ac_status
1725fi
1726  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728  as_fn_set_status $ac_retval
1729
1730} # ac_fn_c_try_run
1731
1732# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1733# -------------------------------------------------------
1734# Tests whether HEADER exists and can be compiled using the include files in
1735# INCLUDES, setting the cache variable VAR accordingly.
1736ac_fn_c_check_header_compile ()
1737{
1738  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740$as_echo_n "checking for $2... " >&6; }
1741if eval \${$3+:} false; then :
1742  $as_echo_n "(cached) " >&6
1743else
1744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745/* end confdefs.h.  */
1746$4
1747#include <$2>
1748_ACEOF
1749if ac_fn_c_try_compile "$LINENO"; then :
1750  eval "$3=yes"
1751else
1752  eval "$3=no"
1753fi
1754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755fi
1756eval ac_res=\$$3
1757	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758$as_echo "$ac_res" >&6; }
1759  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760
1761} # ac_fn_c_check_header_compile
1762
1763# ac_fn_c_try_link LINENO
1764# -----------------------
1765# Try to link conftest.$ac_ext, and return whether this succeeded.
1766ac_fn_c_try_link ()
1767{
1768  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769  rm -f conftest.$ac_objext conftest$ac_exeext
1770  if { { ac_try="$ac_link"
1771case "(($ac_try" in
1772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773  *) ac_try_echo=$ac_try;;
1774esac
1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776$as_echo "$ac_try_echo"; } >&5
1777  (eval "$ac_link") 2>conftest.err
1778  ac_status=$?
1779  if test -s conftest.err; then
1780    grep -v '^ *+' conftest.err >conftest.er1
1781    cat conftest.er1 >&5
1782    mv -f conftest.er1 conftest.err
1783  fi
1784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785  test $ac_status = 0; } && {
1786	 test -z "$ac_c_werror_flag" ||
1787	 test ! -s conftest.err
1788       } && test -s conftest$ac_exeext && {
1789	 test "$cross_compiling" = yes ||
1790	 test -x conftest$ac_exeext
1791       }; then :
1792  ac_retval=0
1793else
1794  $as_echo "$as_me: failed program was:" >&5
1795sed 's/^/| /' conftest.$ac_ext >&5
1796
1797	ac_retval=1
1798fi
1799  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1800  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1801  # interfere with the next link command; also delete a directory that is
1802  # left behind by Apple's compiler.  We do this before executing the actions.
1803  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805  as_fn_set_status $ac_retval
1806
1807} # ac_fn_c_try_link
1808
1809# ac_fn_c_check_func LINENO FUNC VAR
1810# ----------------------------------
1811# Tests whether FUNC exists, setting the cache variable VAR accordingly
1812ac_fn_c_check_func ()
1813{
1814  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816$as_echo_n "checking for $2... " >&6; }
1817if eval \${$3+:} false; then :
1818  $as_echo_n "(cached) " >&6
1819else
1820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821/* end confdefs.h.  */
1822/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1823   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1824#define $2 innocuous_$2
1825
1826/* System header to define __stub macros and hopefully few prototypes,
1827    which can conflict with char $2 (); below.
1828    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1829    <limits.h> exists even on freestanding compilers.  */
1830
1831#ifdef __STDC__
1832# include <limits.h>
1833#else
1834# include <assert.h>
1835#endif
1836
1837#undef $2
1838
1839/* Override any GCC internal prototype to avoid an error.
1840   Use char because int might match the return type of a GCC
1841   builtin and then its argument prototype would still apply.  */
1842#ifdef __cplusplus
1843extern "C"
1844#endif
1845char $2 ();
1846/* The GNU C library defines this for functions which it implements
1847    to always fail with ENOSYS.  Some functions are actually named
1848    something starting with __ and the normal name is an alias.  */
1849#if defined __stub_$2 || defined __stub___$2
1850choke me
1851#endif
1852
1853int
1854main ()
1855{
1856return $2 ();
1857  ;
1858  return 0;
1859}
1860_ACEOF
1861if ac_fn_c_try_link "$LINENO"; then :
1862  eval "$3=yes"
1863else
1864  eval "$3=no"
1865fi
1866rm -f core conftest.err conftest.$ac_objext \
1867    conftest$ac_exeext conftest.$ac_ext
1868fi
1869eval ac_res=\$$3
1870	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871$as_echo "$ac_res" >&6; }
1872  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874} # ac_fn_c_check_func
1875
1876# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1877# -------------------------------------------------------
1878# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1879# the include files in INCLUDES and setting the cache variable VAR
1880# accordingly.
1881ac_fn_c_check_header_mongrel ()
1882{
1883  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884  if eval \${$3+:} false; then :
1885  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886$as_echo_n "checking for $2... " >&6; }
1887if eval \${$3+:} false; then :
1888  $as_echo_n "(cached) " >&6
1889fi
1890eval ac_res=\$$3
1891	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892$as_echo "$ac_res" >&6; }
1893else
1894  # Is the header compilable?
1895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1896$as_echo_n "checking $2 usability... " >&6; }
1897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898/* end confdefs.h.  */
1899$4
1900#include <$2>
1901_ACEOF
1902if ac_fn_c_try_compile "$LINENO"; then :
1903  ac_header_compiler=yes
1904else
1905  ac_header_compiler=no
1906fi
1907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1909$as_echo "$ac_header_compiler" >&6; }
1910
1911# Is the header present?
1912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1913$as_echo_n "checking $2 presence... " >&6; }
1914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915/* end confdefs.h.  */
1916#include <$2>
1917_ACEOF
1918if ac_fn_c_try_cpp "$LINENO"; then :
1919  ac_header_preproc=yes
1920else
1921  ac_header_preproc=no
1922fi
1923rm -f conftest.err conftest.i conftest.$ac_ext
1924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1925$as_echo "$ac_header_preproc" >&6; }
1926
1927# So?  What about this header?
1928case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1929  yes:no: )
1930    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1931$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1932    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1933$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1934    ;;
1935  no:yes:* )
1936    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1937$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1938    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1939$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1940    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1941$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1942    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1943$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1944    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1945$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1946( $as_echo "## ---------------------------------------------------------------------- ##
1947## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1948## ---------------------------------------------------------------------- ##"
1949     ) | sed "s/^/$as_me: WARNING:     /" >&2
1950    ;;
1951esac
1952  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953$as_echo_n "checking for $2... " >&6; }
1954if eval \${$3+:} false; then :
1955  $as_echo_n "(cached) " >&6
1956else
1957  eval "$3=\$ac_header_compiler"
1958fi
1959eval ac_res=\$$3
1960	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961$as_echo "$ac_res" >&6; }
1962fi
1963  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964
1965} # ac_fn_c_check_header_mongrel
1966cat >config.log <<_ACEOF
1967This file contains any messages produced by compilers while
1968running configure, to aid debugging if configure makes a mistake.
1969
1970It was created by xf86-video-cirrus $as_me 1.5.3, which was
1971generated by GNU Autoconf 2.69.  Invocation command line was
1972
1973  $ $0 $@
1974
1975_ACEOF
1976exec 5>>config.log
1977{
1978cat <<_ASUNAME
1979## --------- ##
1980## Platform. ##
1981## --------- ##
1982
1983hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1984uname -m = `(uname -m) 2>/dev/null || echo unknown`
1985uname -r = `(uname -r) 2>/dev/null || echo unknown`
1986uname -s = `(uname -s) 2>/dev/null || echo unknown`
1987uname -v = `(uname -v) 2>/dev/null || echo unknown`
1988
1989/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1990/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1991
1992/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1993/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1994/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1995/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1996/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1997/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1998/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1999
2000_ASUNAME
2001
2002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003for as_dir in $PATH
2004do
2005  IFS=$as_save_IFS
2006  test -z "$as_dir" && as_dir=.
2007    $as_echo "PATH: $as_dir"
2008  done
2009IFS=$as_save_IFS
2010
2011} >&5
2012
2013cat >&5 <<_ACEOF
2014
2015
2016## ----------- ##
2017## Core tests. ##
2018## ----------- ##
2019
2020_ACEOF
2021
2022
2023# Keep a trace of the command line.
2024# Strip out --no-create and --no-recursion so they do not pile up.
2025# Strip out --silent because we don't want to record it for future runs.
2026# Also quote any args containing shell meta-characters.
2027# Make two passes to allow for proper duplicate-argument suppression.
2028ac_configure_args=
2029ac_configure_args0=
2030ac_configure_args1=
2031ac_must_keep_next=false
2032for ac_pass in 1 2
2033do
2034  for ac_arg
2035  do
2036    case $ac_arg in
2037    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2038    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2039    | -silent | --silent | --silen | --sile | --sil)
2040      continue ;;
2041    *\'*)
2042      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2043    esac
2044    case $ac_pass in
2045    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2046    2)
2047      as_fn_append ac_configure_args1 " '$ac_arg'"
2048      if test $ac_must_keep_next = true; then
2049	ac_must_keep_next=false # Got value, back to normal.
2050      else
2051	case $ac_arg in
2052	  *=* | --config-cache | -C | -disable-* | --disable-* \
2053	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2054	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2055	  | -with-* | --with-* | -without-* | --without-* | --x)
2056	    case "$ac_configure_args0 " in
2057	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2058	    esac
2059	    ;;
2060	  -* ) ac_must_keep_next=true ;;
2061	esac
2062      fi
2063      as_fn_append ac_configure_args " '$ac_arg'"
2064      ;;
2065    esac
2066  done
2067done
2068{ ac_configure_args0=; unset ac_configure_args0;}
2069{ ac_configure_args1=; unset ac_configure_args1;}
2070
2071# When interrupted or exit'd, cleanup temporary files, and complete
2072# config.log.  We remove comments because anyway the quotes in there
2073# would cause problems or look ugly.
2074# WARNING: Use '\'' to represent an apostrophe within the trap.
2075# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2076trap 'exit_status=$?
2077  # Save into config.log some information that might help in debugging.
2078  {
2079    echo
2080
2081    $as_echo "## ---------------- ##
2082## Cache variables. ##
2083## ---------------- ##"
2084    echo
2085    # The following way of writing the cache mishandles newlines in values,
2086(
2087  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2088    eval ac_val=\$$ac_var
2089    case $ac_val in #(
2090    *${as_nl}*)
2091      case $ac_var in #(
2092      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2093$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2094      esac
2095      case $ac_var in #(
2096      _ | IFS | as_nl) ;; #(
2097      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2098      *) { eval $ac_var=; unset $ac_var;} ;;
2099      esac ;;
2100    esac
2101  done
2102  (set) 2>&1 |
2103    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2104    *${as_nl}ac_space=\ *)
2105      sed -n \
2106	"s/'\''/'\''\\\\'\'''\''/g;
2107	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2108      ;; #(
2109    *)
2110      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2111      ;;
2112    esac |
2113    sort
2114)
2115    echo
2116
2117    $as_echo "## ----------------- ##
2118## Output variables. ##
2119## ----------------- ##"
2120    echo
2121    for ac_var in $ac_subst_vars
2122    do
2123      eval ac_val=\$$ac_var
2124      case $ac_val in
2125      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2126      esac
2127      $as_echo "$ac_var='\''$ac_val'\''"
2128    done | sort
2129    echo
2130
2131    if test -n "$ac_subst_files"; then
2132      $as_echo "## ------------------- ##
2133## File substitutions. ##
2134## ------------------- ##"
2135      echo
2136      for ac_var in $ac_subst_files
2137      do
2138	eval ac_val=\$$ac_var
2139	case $ac_val in
2140	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2141	esac
2142	$as_echo "$ac_var='\''$ac_val'\''"
2143      done | sort
2144      echo
2145    fi
2146
2147    if test -s confdefs.h; then
2148      $as_echo "## ----------- ##
2149## confdefs.h. ##
2150## ----------- ##"
2151      echo
2152      cat confdefs.h
2153      echo
2154    fi
2155    test "$ac_signal" != 0 &&
2156      $as_echo "$as_me: caught signal $ac_signal"
2157    $as_echo "$as_me: exit $exit_status"
2158  } >&5
2159  rm -f core *.core core.conftest.* &&
2160    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2161    exit $exit_status
2162' 0
2163for ac_signal in 1 2 13 15; do
2164  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2165done
2166ac_signal=0
2167
2168# confdefs.h avoids OS command line length limits that DEFS can exceed.
2169rm -f -r conftest* confdefs.h
2170
2171$as_echo "/* confdefs.h */" > confdefs.h
2172
2173# Predefined preprocessor variables.
2174
2175cat >>confdefs.h <<_ACEOF
2176#define PACKAGE_NAME "$PACKAGE_NAME"
2177_ACEOF
2178
2179cat >>confdefs.h <<_ACEOF
2180#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2181_ACEOF
2182
2183cat >>confdefs.h <<_ACEOF
2184#define PACKAGE_VERSION "$PACKAGE_VERSION"
2185_ACEOF
2186
2187cat >>confdefs.h <<_ACEOF
2188#define PACKAGE_STRING "$PACKAGE_STRING"
2189_ACEOF
2190
2191cat >>confdefs.h <<_ACEOF
2192#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2193_ACEOF
2194
2195cat >>confdefs.h <<_ACEOF
2196#define PACKAGE_URL "$PACKAGE_URL"
2197_ACEOF
2198
2199
2200# Let the site file select an alternate cache file if it wants to.
2201# Prefer an explicitly selected file to automatically selected ones.
2202ac_site_file1=NONE
2203ac_site_file2=NONE
2204if test -n "$CONFIG_SITE"; then
2205  # We do not want a PATH search for config.site.
2206  case $CONFIG_SITE in #((
2207    -*)  ac_site_file1=./$CONFIG_SITE;;
2208    */*) ac_site_file1=$CONFIG_SITE;;
2209    *)   ac_site_file1=./$CONFIG_SITE;;
2210  esac
2211elif test "x$prefix" != xNONE; then
2212  ac_site_file1=$prefix/share/config.site
2213  ac_site_file2=$prefix/etc/config.site
2214else
2215  ac_site_file1=$ac_default_prefix/share/config.site
2216  ac_site_file2=$ac_default_prefix/etc/config.site
2217fi
2218for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2219do
2220  test "x$ac_site_file" = xNONE && continue
2221  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2222    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2223$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2224    sed 's/^/| /' "$ac_site_file" >&5
2225    . "$ac_site_file" \
2226      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2228as_fn_error $? "failed to load site script $ac_site_file
2229See \`config.log' for more details" "$LINENO" 5; }
2230  fi
2231done
2232
2233if test -r "$cache_file"; then
2234  # Some versions of bash will fail to source /dev/null (special files
2235  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2236  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2237    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2238$as_echo "$as_me: loading cache $cache_file" >&6;}
2239    case $cache_file in
2240      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2241      *)                      . "./$cache_file";;
2242    esac
2243  fi
2244else
2245  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2246$as_echo "$as_me: creating cache $cache_file" >&6;}
2247  >$cache_file
2248fi
2249
2250# Check that the precious variables saved in the cache have kept the same
2251# value.
2252ac_cache_corrupted=false
2253for ac_var in $ac_precious_vars; do
2254  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2255  eval ac_new_set=\$ac_env_${ac_var}_set
2256  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2257  eval ac_new_val=\$ac_env_${ac_var}_value
2258  case $ac_old_set,$ac_new_set in
2259    set,)
2260      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2261$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2262      ac_cache_corrupted=: ;;
2263    ,set)
2264      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2265$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2266      ac_cache_corrupted=: ;;
2267    ,);;
2268    *)
2269      if test "x$ac_old_val" != "x$ac_new_val"; then
2270	# differences in whitespace do not lead to failure.
2271	ac_old_val_w=`echo x $ac_old_val`
2272	ac_new_val_w=`echo x $ac_new_val`
2273	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2274	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2275$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2276	  ac_cache_corrupted=:
2277	else
2278	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2279$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2280	  eval $ac_var=\$ac_old_val
2281	fi
2282	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2283$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2284	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2285$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2286      fi;;
2287  esac
2288  # Pass precious variables to config.status.
2289  if test "$ac_new_set" = set; then
2290    case $ac_new_val in
2291    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2292    *) ac_arg=$ac_var=$ac_new_val ;;
2293    esac
2294    case " $ac_configure_args " in
2295      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2296      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2297    esac
2298  fi
2299done
2300if $ac_cache_corrupted; then
2301  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2303  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2304$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2305  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2306fi
2307## -------------------- ##
2308## Main body of script. ##
2309## -------------------- ##
2310
2311ac_ext=c
2312ac_cpp='$CPP $CPPFLAGS'
2313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2315ac_compiler_gnu=$ac_cv_c_compiler_gnu
2316
2317
2318
2319ac_config_headers="$ac_config_headers config.h"
2320
2321ac_aux_dir=
2322for ac_dir in . "$srcdir"/.; do
2323  if test -f "$ac_dir/install-sh"; then
2324    ac_aux_dir=$ac_dir
2325    ac_install_sh="$ac_aux_dir/install-sh -c"
2326    break
2327  elif test -f "$ac_dir/install.sh"; then
2328    ac_aux_dir=$ac_dir
2329    ac_install_sh="$ac_aux_dir/install.sh -c"
2330    break
2331  elif test -f "$ac_dir/shtool"; then
2332    ac_aux_dir=$ac_dir
2333    ac_install_sh="$ac_aux_dir/shtool install -c"
2334    break
2335  fi
2336done
2337if test -z "$ac_aux_dir"; then
2338  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2339fi
2340
2341# These three variables are undocumented and unsupported,
2342# and are intended to be withdrawn in a future Autoconf release.
2343# They can cause serious problems if a builder's source tree is in a directory
2344# whose full name contains unusual characters.
2345ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2346ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2347ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2348
2349
2350
2351# Initialize Automake
2352am__api_version='1.14'
2353
2354# Find a good install program.  We prefer a C program (faster),
2355# so one script is as good as another.  But avoid the broken or
2356# incompatible versions:
2357# SysV /etc/install, /usr/sbin/install
2358# SunOS /usr/etc/install
2359# IRIX /sbin/install
2360# AIX /bin/install
2361# AmigaOS /C/install, which installs bootblocks on floppy discs
2362# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2363# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2364# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2365# OS/2's system install, which has a completely different semantic
2366# ./install, which can be erroneously created by make from ./install.sh.
2367# Reject install programs that cannot install multiple files.
2368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2369$as_echo_n "checking for a BSD-compatible install... " >&6; }
2370if test -z "$INSTALL"; then
2371if ${ac_cv_path_install+:} false; then :
2372  $as_echo_n "(cached) " >&6
2373else
2374  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375for as_dir in $PATH
2376do
2377  IFS=$as_save_IFS
2378  test -z "$as_dir" && as_dir=.
2379    # Account for people who put trailing slashes in PATH elements.
2380case $as_dir/ in #((
2381  ./ | .// | /[cC]/* | \
2382  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2383  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2384  /usr/ucb/* ) ;;
2385  *)
2386    # OSF1 and SCO ODT 3.0 have their own names for install.
2387    # Don't use installbsd from OSF since it installs stuff as root
2388    # by default.
2389    for ac_prog in ginstall scoinst install; do
2390      for ac_exec_ext in '' $ac_executable_extensions; do
2391	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2392	  if test $ac_prog = install &&
2393	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2394	    # AIX install.  It has an incompatible calling convention.
2395	    :
2396	  elif test $ac_prog = install &&
2397	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2398	    # program-specific install script used by HP pwplus--don't use.
2399	    :
2400	  else
2401	    rm -rf conftest.one conftest.two conftest.dir
2402	    echo one > conftest.one
2403	    echo two > conftest.two
2404	    mkdir conftest.dir
2405	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2406	      test -s conftest.one && test -s conftest.two &&
2407	      test -s conftest.dir/conftest.one &&
2408	      test -s conftest.dir/conftest.two
2409	    then
2410	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2411	      break 3
2412	    fi
2413	  fi
2414	fi
2415      done
2416    done
2417    ;;
2418esac
2419
2420  done
2421IFS=$as_save_IFS
2422
2423rm -rf conftest.one conftest.two conftest.dir
2424
2425fi
2426  if test "${ac_cv_path_install+set}" = set; then
2427    INSTALL=$ac_cv_path_install
2428  else
2429    # As a last resort, use the slow shell script.  Don't cache a
2430    # value for INSTALL within a source directory, because that will
2431    # break other packages using the cache if that directory is
2432    # removed, or if the value is a relative name.
2433    INSTALL=$ac_install_sh
2434  fi
2435fi
2436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2437$as_echo "$INSTALL" >&6; }
2438
2439# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2440# It thinks the first close brace ends the variable substitution.
2441test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2442
2443test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2444
2445test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2446
2447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2448$as_echo_n "checking whether build environment is sane... " >&6; }
2449# Reject unsafe characters in $srcdir or the absolute working directory
2450# name.  Accept space and tab only in the latter.
2451am_lf='
2452'
2453case `pwd` in
2454  *[\\\"\#\$\&\'\`$am_lf]*)
2455    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2456esac
2457case $srcdir in
2458  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2459    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2460esac
2461
2462# Do 'set' in a subshell so we don't clobber the current shell's
2463# arguments.  Must try -L first in case configure is actually a
2464# symlink; some systems play weird games with the mod time of symlinks
2465# (eg FreeBSD returns the mod time of the symlink's containing
2466# directory).
2467if (
2468   am_has_slept=no
2469   for am_try in 1 2; do
2470     echo "timestamp, slept: $am_has_slept" > conftest.file
2471     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2472     if test "$*" = "X"; then
2473	# -L didn't work.
2474	set X `ls -t "$srcdir/configure" conftest.file`
2475     fi
2476     if test "$*" != "X $srcdir/configure conftest.file" \
2477	&& test "$*" != "X conftest.file $srcdir/configure"; then
2478
2479	# If neither matched, then we have a broken ls.  This can happen
2480	# if, for instance, CONFIG_SHELL is bash and it inherits a
2481	# broken ls alias from the environment.  This has actually
2482	# happened.  Such a system could not be considered "sane".
2483	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2484  alias in your environment" "$LINENO" 5
2485     fi
2486     if test "$2" = conftest.file || test $am_try -eq 2; then
2487       break
2488     fi
2489     # Just in case.
2490     sleep 1
2491     am_has_slept=yes
2492   done
2493   test "$2" = conftest.file
2494   )
2495then
2496   # Ok.
2497   :
2498else
2499   as_fn_error $? "newly created file is older than distributed files!
2500Check your system clock" "$LINENO" 5
2501fi
2502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2503$as_echo "yes" >&6; }
2504# If we didn't sleep, we still need to ensure time stamps of config.status and
2505# generated files are strictly newer.
2506am_sleep_pid=
2507if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2508  ( sleep 1 ) &
2509  am_sleep_pid=$!
2510fi
2511
2512rm -f conftest.file
2513
2514test "$program_prefix" != NONE &&
2515  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2516# Use a double $ so make ignores it.
2517test "$program_suffix" != NONE &&
2518  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2519# Double any \ or $.
2520# By default was `s,x,x', remove it if useless.
2521ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2522program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2523
2524# Expand $ac_aux_dir to an absolute path.
2525am_aux_dir=`cd "$ac_aux_dir" && pwd`
2526
2527if test x"${MISSING+set}" != xset; then
2528  case $am_aux_dir in
2529  *\ * | *\	*)
2530    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2531  *)
2532    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2533  esac
2534fi
2535# Use eval to expand $SHELL
2536if eval "$MISSING --is-lightweight"; then
2537  am_missing_run="$MISSING "
2538else
2539  am_missing_run=
2540  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2541$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2542fi
2543
2544if test x"${install_sh}" != xset; then
2545  case $am_aux_dir in
2546  *\ * | *\	*)
2547    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2548  *)
2549    install_sh="\${SHELL} $am_aux_dir/install-sh"
2550  esac
2551fi
2552
2553# Installed binaries are usually stripped using 'strip' when the user
2554# run "make install-strip".  However 'strip' might not be the right
2555# tool to use in cross-compilation environments, therefore Automake
2556# will honor the 'STRIP' environment variable to overrule this program.
2557if test "$cross_compiling" != no; then
2558  if test -n "$ac_tool_prefix"; then
2559  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2560set dummy ${ac_tool_prefix}strip; ac_word=$2
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2562$as_echo_n "checking for $ac_word... " >&6; }
2563if ${ac_cv_prog_STRIP+:} false; then :
2564  $as_echo_n "(cached) " >&6
2565else
2566  if test -n "$STRIP"; then
2567  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2568else
2569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570for as_dir in $PATH
2571do
2572  IFS=$as_save_IFS
2573  test -z "$as_dir" && as_dir=.
2574    for ac_exec_ext in '' $ac_executable_extensions; do
2575  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2576    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2577    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2578    break 2
2579  fi
2580done
2581  done
2582IFS=$as_save_IFS
2583
2584fi
2585fi
2586STRIP=$ac_cv_prog_STRIP
2587if test -n "$STRIP"; then
2588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2589$as_echo "$STRIP" >&6; }
2590else
2591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2592$as_echo "no" >&6; }
2593fi
2594
2595
2596fi
2597if test -z "$ac_cv_prog_STRIP"; then
2598  ac_ct_STRIP=$STRIP
2599  # Extract the first word of "strip", so it can be a program name with args.
2600set dummy strip; ac_word=$2
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2602$as_echo_n "checking for $ac_word... " >&6; }
2603if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2604  $as_echo_n "(cached) " >&6
2605else
2606  if test -n "$ac_ct_STRIP"; then
2607  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2608else
2609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610for as_dir in $PATH
2611do
2612  IFS=$as_save_IFS
2613  test -z "$as_dir" && as_dir=.
2614    for ac_exec_ext in '' $ac_executable_extensions; do
2615  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2616    ac_cv_prog_ac_ct_STRIP="strip"
2617    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2618    break 2
2619  fi
2620done
2621  done
2622IFS=$as_save_IFS
2623
2624fi
2625fi
2626ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2627if test -n "$ac_ct_STRIP"; then
2628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2629$as_echo "$ac_ct_STRIP" >&6; }
2630else
2631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2632$as_echo "no" >&6; }
2633fi
2634
2635  if test "x$ac_ct_STRIP" = x; then
2636    STRIP=":"
2637  else
2638    case $cross_compiling:$ac_tool_warned in
2639yes:)
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2642ac_tool_warned=yes ;;
2643esac
2644    STRIP=$ac_ct_STRIP
2645  fi
2646else
2647  STRIP="$ac_cv_prog_STRIP"
2648fi
2649
2650fi
2651INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2652
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2654$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2655if test -z "$MKDIR_P"; then
2656  if ${ac_cv_path_mkdir+:} false; then :
2657  $as_echo_n "(cached) " >&6
2658else
2659  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2661do
2662  IFS=$as_save_IFS
2663  test -z "$as_dir" && as_dir=.
2664    for ac_prog in mkdir gmkdir; do
2665	 for ac_exec_ext in '' $ac_executable_extensions; do
2666	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2667	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2668	     'mkdir (GNU coreutils) '* | \
2669	     'mkdir (coreutils) '* | \
2670	     'mkdir (fileutils) '4.1*)
2671	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2672	       break 3;;
2673	   esac
2674	 done
2675       done
2676  done
2677IFS=$as_save_IFS
2678
2679fi
2680
2681  test -d ./--version && rmdir ./--version
2682  if test "${ac_cv_path_mkdir+set}" = set; then
2683    MKDIR_P="$ac_cv_path_mkdir -p"
2684  else
2685    # As a last resort, use the slow shell script.  Don't cache a
2686    # value for MKDIR_P within a source directory, because that will
2687    # break other packages using the cache if that directory is
2688    # removed, or if the value is a relative name.
2689    MKDIR_P="$ac_install_sh -d"
2690  fi
2691fi
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2693$as_echo "$MKDIR_P" >&6; }
2694
2695for ac_prog in gawk mawk nawk awk
2696do
2697  # Extract the first word of "$ac_prog", so it can be a program name with args.
2698set dummy $ac_prog; ac_word=$2
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700$as_echo_n "checking for $ac_word... " >&6; }
2701if ${ac_cv_prog_AWK+:} false; then :
2702  $as_echo_n "(cached) " >&6
2703else
2704  if test -n "$AWK"; then
2705  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2706else
2707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708for as_dir in $PATH
2709do
2710  IFS=$as_save_IFS
2711  test -z "$as_dir" && as_dir=.
2712    for ac_exec_ext in '' $ac_executable_extensions; do
2713  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2714    ac_cv_prog_AWK="$ac_prog"
2715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716    break 2
2717  fi
2718done
2719  done
2720IFS=$as_save_IFS
2721
2722fi
2723fi
2724AWK=$ac_cv_prog_AWK
2725if test -n "$AWK"; then
2726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2727$as_echo "$AWK" >&6; }
2728else
2729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730$as_echo "no" >&6; }
2731fi
2732
2733
2734  test -n "$AWK" && break
2735done
2736
2737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2738$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2739set x ${MAKE-make}
2740ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2741if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2742  $as_echo_n "(cached) " >&6
2743else
2744  cat >conftest.make <<\_ACEOF
2745SHELL = /bin/sh
2746all:
2747	@echo '@@@%%%=$(MAKE)=@@@%%%'
2748_ACEOF
2749# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2750case `${MAKE-make} -f conftest.make 2>/dev/null` in
2751  *@@@%%%=?*=@@@%%%*)
2752    eval ac_cv_prog_make_${ac_make}_set=yes;;
2753  *)
2754    eval ac_cv_prog_make_${ac_make}_set=no;;
2755esac
2756rm -f conftest.make
2757fi
2758if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2760$as_echo "yes" >&6; }
2761  SET_MAKE=
2762else
2763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764$as_echo "no" >&6; }
2765  SET_MAKE="MAKE=${MAKE-make}"
2766fi
2767
2768rm -rf .tst 2>/dev/null
2769mkdir .tst 2>/dev/null
2770if test -d .tst; then
2771  am__leading_dot=.
2772else
2773  am__leading_dot=_
2774fi
2775rmdir .tst 2>/dev/null
2776
2777# Check whether --enable-silent-rules was given.
2778if test "${enable_silent_rules+set}" = set; then :
2779  enableval=$enable_silent_rules;
2780fi
2781
2782case $enable_silent_rules in # (((
2783  yes) AM_DEFAULT_VERBOSITY=0;;
2784   no) AM_DEFAULT_VERBOSITY=1;;
2785    *) AM_DEFAULT_VERBOSITY=1;;
2786esac
2787am_make=${MAKE-make}
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2789$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2790if ${am_cv_make_support_nested_variables+:} false; then :
2791  $as_echo_n "(cached) " >&6
2792else
2793  if $as_echo 'TRUE=$(BAR$(V))
2794BAR0=false
2795BAR1=true
2796V=1
2797am__doit:
2798	@$(TRUE)
2799.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2800  am_cv_make_support_nested_variables=yes
2801else
2802  am_cv_make_support_nested_variables=no
2803fi
2804fi
2805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2806$as_echo "$am_cv_make_support_nested_variables" >&6; }
2807if test $am_cv_make_support_nested_variables = yes; then
2808    AM_V='$(V)'
2809  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2810else
2811  AM_V=$AM_DEFAULT_VERBOSITY
2812  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2813fi
2814AM_BACKSLASH='\'
2815
2816if test "`cd $srcdir && pwd`" != "`pwd`"; then
2817  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2818  # is not polluted with repeated "-I."
2819  am__isrc=' -I$(srcdir)'
2820  # test to see if srcdir already configured
2821  if test -f $srcdir/config.status; then
2822    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2823  fi
2824fi
2825
2826# test whether we have cygpath
2827if test -z "$CYGPATH_W"; then
2828  if (cygpath --version) >/dev/null 2>/dev/null; then
2829    CYGPATH_W='cygpath -w'
2830  else
2831    CYGPATH_W=echo
2832  fi
2833fi
2834
2835
2836# Define the identity of the package.
2837 PACKAGE='xf86-video-cirrus'
2838 VERSION='1.5.3'
2839
2840
2841cat >>confdefs.h <<_ACEOF
2842#define PACKAGE "$PACKAGE"
2843_ACEOF
2844
2845
2846cat >>confdefs.h <<_ACEOF
2847#define VERSION "$VERSION"
2848_ACEOF
2849
2850# Some tools Automake needs.
2851
2852ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2853
2854
2855AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2856
2857
2858AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2859
2860
2861AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2862
2863
2864MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2865
2866# For better backward compatibility.  To be removed once Automake 1.9.x
2867# dies out for good.  For more background, see:
2868# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2869# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2870mkdir_p='$(MKDIR_P)'
2871
2872# We need awk for the "check" target.  The system "awk" is bad on
2873# some platforms.
2874# Always define AMTAR for backward compatibility.  Yes, it's still used
2875# in the wild :-(  We should find a proper way to deprecate it ...
2876AMTAR='$${TAR-tar}'
2877
2878
2879# We'll loop over all known methods to create a tar archive until one works.
2880_am_tools='gnutar  pax cpio none'
2881
2882am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2883
2884
2885
2886
2887
2888
2889# POSIX will say in a future version that running "rm -f" with no argument
2890# is OK; and we want to be able to make that assumption in our Makefile
2891# recipes.  So use an aggressive probe to check that the usage we want is
2892# actually supported "in the wild" to an acceptable degree.
2893# See automake bug#10828.
2894# To make any issue more visible, cause the running configure to be aborted
2895# by default if the 'rm' program in use doesn't match our expectations; the
2896# user can still override this though.
2897if rm -f && rm -fr && rm -rf; then : OK; else
2898  cat >&2 <<'END'
2899Oops!
2900
2901Your 'rm' program seems unable to run without file operands specified
2902on the command line, even when the '-f' option is present.  This is contrary
2903to the behaviour of most rm programs out there, and not conforming with
2904the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2905
2906Please tell bug-automake@gnu.org about your system, including the value
2907of your $PATH and any error possibly output before this message.  This
2908can help us improve future automake versions.
2909
2910END
2911  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2912    echo 'Configuration will proceed anyway, since you have set the' >&2
2913    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2914    echo >&2
2915  else
2916    cat >&2 <<'END'
2917Aborting the configuration process, to ensure you take notice of the issue.
2918
2919You can download and install GNU coreutils to get an 'rm' implementation
2920that behaves properly: <http://www.gnu.org/software/coreutils/>.
2921
2922If you want to complete the configuration process using your problematic
2923'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2924to "yes", and re-run configure.
2925
2926END
2927    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2928  fi
2929fi
2930
2931
2932# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944DEPDIR="${am__leading_dot}deps"
2945
2946ac_config_commands="$ac_config_commands depfiles"
2947
2948
2949am_make=${MAKE-make}
2950cat > confinc << 'END'
2951am__doit:
2952	@echo this is the am__doit target
2953.PHONY: am__doit
2954END
2955# If we don't find an include directive, just comment out the code.
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2957$as_echo_n "checking for style of include used by $am_make... " >&6; }
2958am__include="#"
2959am__quote=
2960_am_result=none
2961# First try GNU make style include.
2962echo "include confinc" > confmf
2963# Ignore all kinds of additional output from 'make'.
2964case `$am_make -s -f confmf 2> /dev/null` in #(
2965*the\ am__doit\ target*)
2966  am__include=include
2967  am__quote=
2968  _am_result=GNU
2969  ;;
2970esac
2971# Now try BSD make style include.
2972if test "$am__include" = "#"; then
2973   echo '.include "confinc"' > confmf
2974   case `$am_make -s -f confmf 2> /dev/null` in #(
2975   *the\ am__doit\ target*)
2976     am__include=.include
2977     am__quote="\""
2978     _am_result=BSD
2979     ;;
2980   esac
2981fi
2982
2983
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2985$as_echo "$_am_result" >&6; }
2986rm -f confinc confmf
2987
2988# Check whether --enable-dependency-tracking was given.
2989if test "${enable_dependency_tracking+set}" = set; then :
2990  enableval=$enable_dependency_tracking;
2991fi
2992
2993if test "x$enable_dependency_tracking" != xno; then
2994  am_depcomp="$ac_aux_dir/depcomp"
2995  AMDEPBACKSLASH='\'
2996  am__nodep='_no'
2997fi
2998 if test "x$enable_dependency_tracking" != xno; then
2999  AMDEP_TRUE=
3000  AMDEP_FALSE='#'
3001else
3002  AMDEP_TRUE='#'
3003  AMDEP_FALSE=
3004fi
3005
3006
3007ac_ext=c
3008ac_cpp='$CPP $CPPFLAGS'
3009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3011ac_compiler_gnu=$ac_cv_c_compiler_gnu
3012if test -n "$ac_tool_prefix"; then
3013  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3014set dummy ${ac_tool_prefix}gcc; ac_word=$2
3015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016$as_echo_n "checking for $ac_word... " >&6; }
3017if ${ac_cv_prog_CC+:} false; then :
3018  $as_echo_n "(cached) " >&6
3019else
3020  if test -n "$CC"; then
3021  ac_cv_prog_CC="$CC" # Let the user override the test.
3022else
3023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024for as_dir in $PATH
3025do
3026  IFS=$as_save_IFS
3027  test -z "$as_dir" && as_dir=.
3028    for ac_exec_ext in '' $ac_executable_extensions; do
3029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3030    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032    break 2
3033  fi
3034done
3035  done
3036IFS=$as_save_IFS
3037
3038fi
3039fi
3040CC=$ac_cv_prog_CC
3041if test -n "$CC"; then
3042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3043$as_echo "$CC" >&6; }
3044else
3045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046$as_echo "no" >&6; }
3047fi
3048
3049
3050fi
3051if test -z "$ac_cv_prog_CC"; then
3052  ac_ct_CC=$CC
3053  # Extract the first word of "gcc", so it can be a program name with args.
3054set dummy 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_ac_ct_CC+:} false; then :
3058  $as_echo_n "(cached) " >&6
3059else
3060  if test -n "$ac_ct_CC"; then
3061  ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="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
3080ac_ct_CC=$ac_cv_prog_ac_ct_CC
3081if test -n "$ac_ct_CC"; then
3082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3083$as_echo "$ac_ct_CC" >&6; }
3084else
3085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086$as_echo "no" >&6; }
3087fi
3088
3089  if test "x$ac_ct_CC" = x; then
3090    CC=""
3091  else
3092    case $cross_compiling:$ac_tool_warned in
3093yes:)
3094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3096ac_tool_warned=yes ;;
3097esac
3098    CC=$ac_ct_CC
3099  fi
3100else
3101  CC="$ac_cv_prog_CC"
3102fi
3103
3104if test -z "$CC"; then
3105          if test -n "$ac_tool_prefix"; then
3106    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3107set dummy ${ac_tool_prefix}cc; ac_word=$2
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109$as_echo_n "checking for $ac_word... " >&6; }
3110if ${ac_cv_prog_CC+:} false; then :
3111  $as_echo_n "(cached) " >&6
3112else
3113  if test -n "$CC"; then
3114  ac_cv_prog_CC="$CC" # Let the user override the test.
3115else
3116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117for as_dir in $PATH
3118do
3119  IFS=$as_save_IFS
3120  test -z "$as_dir" && as_dir=.
3121    for ac_exec_ext in '' $ac_executable_extensions; do
3122  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3123    ac_cv_prog_CC="${ac_tool_prefix}cc"
3124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125    break 2
3126  fi
3127done
3128  done
3129IFS=$as_save_IFS
3130
3131fi
3132fi
3133CC=$ac_cv_prog_CC
3134if test -n "$CC"; then
3135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3136$as_echo "$CC" >&6; }
3137else
3138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139$as_echo "no" >&6; }
3140fi
3141
3142
3143  fi
3144fi
3145if test -z "$CC"; then
3146  # Extract the first word of "cc", so it can be a program name with args.
3147set dummy 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
3156  ac_prog_rejected=no
3157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158for as_dir in $PATH
3159do
3160  IFS=$as_save_IFS
3161  test -z "$as_dir" && as_dir=.
3162    for ac_exec_ext in '' $ac_executable_extensions; do
3163  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3164    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3165       ac_prog_rejected=yes
3166       continue
3167     fi
3168    ac_cv_prog_CC="cc"
3169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170    break 2
3171  fi
3172done
3173  done
3174IFS=$as_save_IFS
3175
3176if test $ac_prog_rejected = yes; then
3177  # We found a bogon in the path, so make sure we never use it.
3178  set dummy $ac_cv_prog_CC
3179  shift
3180  if test $# != 0; then
3181    # We chose a different compiler from the bogus one.
3182    # However, it has the same basename, so the bogon will be chosen
3183    # first if we set CC to just the basename; use the full file name.
3184    shift
3185    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3186  fi
3187fi
3188fi
3189fi
3190CC=$ac_cv_prog_CC
3191if test -n "$CC"; then
3192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3193$as_echo "$CC" >&6; }
3194else
3195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196$as_echo "no" >&6; }
3197fi
3198
3199
3200fi
3201if test -z "$CC"; then
3202  if test -n "$ac_tool_prefix"; then
3203  for ac_prog in cl.exe
3204  do
3205    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3206set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208$as_echo_n "checking for $ac_word... " >&6; }
3209if ${ac_cv_prog_CC+:} false; then :
3210  $as_echo_n "(cached) " >&6
3211else
3212  if test -n "$CC"; then
3213  ac_cv_prog_CC="$CC" # Let the user override the test.
3214else
3215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216for as_dir in $PATH
3217do
3218  IFS=$as_save_IFS
3219  test -z "$as_dir" && as_dir=.
3220    for ac_exec_ext in '' $ac_executable_extensions; do
3221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224    break 2
3225  fi
3226done
3227  done
3228IFS=$as_save_IFS
3229
3230fi
3231fi
3232CC=$ac_cv_prog_CC
3233if test -n "$CC"; then
3234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3235$as_echo "$CC" >&6; }
3236else
3237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238$as_echo "no" >&6; }
3239fi
3240
3241
3242    test -n "$CC" && break
3243  done
3244fi
3245if test -z "$CC"; then
3246  ac_ct_CC=$CC
3247  for ac_prog in cl.exe
3248do
3249  # Extract the first word of "$ac_prog", so it can be a program name with args.
3250set dummy $ac_prog; ac_word=$2
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252$as_echo_n "checking for $ac_word... " >&6; }
3253if ${ac_cv_prog_ac_ct_CC+:} false; then :
3254  $as_echo_n "(cached) " >&6
3255else
3256  if test -n "$ac_ct_CC"; then
3257  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3258else
3259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260for as_dir in $PATH
3261do
3262  IFS=$as_save_IFS
3263  test -z "$as_dir" && as_dir=.
3264    for ac_exec_ext in '' $ac_executable_extensions; do
3265  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266    ac_cv_prog_ac_ct_CC="$ac_prog"
3267    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268    break 2
3269  fi
3270done
3271  done
3272IFS=$as_save_IFS
3273
3274fi
3275fi
3276ac_ct_CC=$ac_cv_prog_ac_ct_CC
3277if test -n "$ac_ct_CC"; then
3278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3279$as_echo "$ac_ct_CC" >&6; }
3280else
3281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282$as_echo "no" >&6; }
3283fi
3284
3285
3286  test -n "$ac_ct_CC" && break
3287done
3288
3289  if test "x$ac_ct_CC" = x; then
3290    CC=""
3291  else
3292    case $cross_compiling:$ac_tool_warned in
3293yes:)
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3296ac_tool_warned=yes ;;
3297esac
3298    CC=$ac_ct_CC
3299  fi
3300fi
3301
3302fi
3303
3304
3305test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307as_fn_error $? "no acceptable C compiler found in \$PATH
3308See \`config.log' for more details" "$LINENO" 5; }
3309
3310# Provide some information about the compiler.
3311$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3312set X $ac_compile
3313ac_compiler=$2
3314for ac_option in --version -v -V -qversion; do
3315  { { ac_try="$ac_compiler $ac_option >&5"
3316case "(($ac_try" in
3317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318  *) ac_try_echo=$ac_try;;
3319esac
3320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321$as_echo "$ac_try_echo"; } >&5
3322  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3323  ac_status=$?
3324  if test -s conftest.err; then
3325    sed '10a\
3326... rest of stderr output deleted ...
3327         10q' conftest.err >conftest.er1
3328    cat conftest.er1 >&5
3329  fi
3330  rm -f conftest.er1 conftest.err
3331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332  test $ac_status = 0; }
3333done
3334
3335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336/* end confdefs.h.  */
3337
3338int
3339main ()
3340{
3341
3342  ;
3343  return 0;
3344}
3345_ACEOF
3346ac_clean_files_save=$ac_clean_files
3347ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3348# Try to create an executable without -o first, disregard a.out.
3349# It will help us diagnose broken compilers, and finding out an intuition
3350# of exeext.
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3352$as_echo_n "checking whether the C compiler works... " >&6; }
3353ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3354
3355# The possible output files:
3356ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3357
3358ac_rmfiles=
3359for ac_file in $ac_files
3360do
3361  case $ac_file in
3362    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3363    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3364  esac
3365done
3366rm -f $ac_rmfiles
3367
3368if { { ac_try="$ac_link_default"
3369case "(($ac_try" in
3370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371  *) ac_try_echo=$ac_try;;
3372esac
3373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374$as_echo "$ac_try_echo"; } >&5
3375  (eval "$ac_link_default") 2>&5
3376  ac_status=$?
3377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378  test $ac_status = 0; }; then :
3379  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3380# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3381# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3382# so that the user can short-circuit this test for compilers unknown to
3383# Autoconf.
3384for ac_file in $ac_files ''
3385do
3386  test -f "$ac_file" || continue
3387  case $ac_file in
3388    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3389	;;
3390    [ab].out )
3391	# We found the default executable, but exeext='' is most
3392	# certainly right.
3393	break;;
3394    *.* )
3395	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3396	then :; else
3397	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3398	fi
3399	# We set ac_cv_exeext here because the later test for it is not
3400	# safe: cross compilers may not add the suffix if given an `-o'
3401	# argument, so we may need to know it at that point already.
3402	# Even if this section looks crufty: it has the advantage of
3403	# actually working.
3404	break;;
3405    * )
3406	break;;
3407  esac
3408done
3409test "$ac_cv_exeext" = no && ac_cv_exeext=
3410
3411else
3412  ac_file=''
3413fi
3414if test -z "$ac_file"; then :
3415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416$as_echo "no" >&6; }
3417$as_echo "$as_me: failed program was:" >&5
3418sed 's/^/| /' conftest.$ac_ext >&5
3419
3420{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422as_fn_error 77 "C compiler cannot create executables
3423See \`config.log' for more details" "$LINENO" 5; }
3424else
3425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3426$as_echo "yes" >&6; }
3427fi
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3429$as_echo_n "checking for C compiler default output file name... " >&6; }
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3431$as_echo "$ac_file" >&6; }
3432ac_exeext=$ac_cv_exeext
3433
3434rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3435ac_clean_files=$ac_clean_files_save
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3437$as_echo_n "checking for suffix of executables... " >&6; }
3438if { { ac_try="$ac_link"
3439case "(($ac_try" in
3440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441  *) ac_try_echo=$ac_try;;
3442esac
3443eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444$as_echo "$ac_try_echo"; } >&5
3445  (eval "$ac_link") 2>&5
3446  ac_status=$?
3447  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448  test $ac_status = 0; }; then :
3449  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3450# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3451# work properly (i.e., refer to `conftest.exe'), while it won't with
3452# `rm'.
3453for ac_file in conftest.exe conftest conftest.*; do
3454  test -f "$ac_file" || continue
3455  case $ac_file in
3456    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3457    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3458	  break;;
3459    * ) break;;
3460  esac
3461done
3462else
3463  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3466See \`config.log' for more details" "$LINENO" 5; }
3467fi
3468rm -f conftest conftest$ac_cv_exeext
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3470$as_echo "$ac_cv_exeext" >&6; }
3471
3472rm -f conftest.$ac_ext
3473EXEEXT=$ac_cv_exeext
3474ac_exeext=$EXEEXT
3475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476/* end confdefs.h.  */
3477#include <stdio.h>
3478int
3479main ()
3480{
3481FILE *f = fopen ("conftest.out", "w");
3482 return ferror (f) || fclose (f) != 0;
3483
3484  ;
3485  return 0;
3486}
3487_ACEOF
3488ac_clean_files="$ac_clean_files conftest.out"
3489# Check that the compiler produces executables we can run.  If not, either
3490# the compiler is broken, or we cross compile.
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3492$as_echo_n "checking whether we are cross compiling... " >&6; }
3493if test "$cross_compiling" != yes; then
3494  { { ac_try="$ac_link"
3495case "(($ac_try" in
3496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497  *) ac_try_echo=$ac_try;;
3498esac
3499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500$as_echo "$ac_try_echo"; } >&5
3501  (eval "$ac_link") 2>&5
3502  ac_status=$?
3503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504  test $ac_status = 0; }
3505  if { ac_try='./conftest$ac_cv_exeext'
3506  { { case "(($ac_try" in
3507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508  *) ac_try_echo=$ac_try;;
3509esac
3510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511$as_echo "$ac_try_echo"; } >&5
3512  (eval "$ac_try") 2>&5
3513  ac_status=$?
3514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515  test $ac_status = 0; }; }; then
3516    cross_compiling=no
3517  else
3518    if test "$cross_compiling" = maybe; then
3519	cross_compiling=yes
3520    else
3521	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523as_fn_error $? "cannot run C compiled programs.
3524If you meant to cross compile, use \`--host'.
3525See \`config.log' for more details" "$LINENO" 5; }
3526    fi
3527  fi
3528fi
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3530$as_echo "$cross_compiling" >&6; }
3531
3532rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3533ac_clean_files=$ac_clean_files_save
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3535$as_echo_n "checking for suffix of object files... " >&6; }
3536if ${ac_cv_objext+:} false; then :
3537  $as_echo_n "(cached) " >&6
3538else
3539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540/* end confdefs.h.  */
3541
3542int
3543main ()
3544{
3545
3546  ;
3547  return 0;
3548}
3549_ACEOF
3550rm -f conftest.o conftest.obj
3551if { { ac_try="$ac_compile"
3552case "(($ac_try" in
3553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554  *) ac_try_echo=$ac_try;;
3555esac
3556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557$as_echo "$ac_try_echo"; } >&5
3558  (eval "$ac_compile") 2>&5
3559  ac_status=$?
3560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561  test $ac_status = 0; }; then :
3562  for ac_file in conftest.o conftest.obj conftest.*; do
3563  test -f "$ac_file" || continue;
3564  case $ac_file in
3565    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3566    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3567       break;;
3568  esac
3569done
3570else
3571  $as_echo "$as_me: failed program was:" >&5
3572sed 's/^/| /' conftest.$ac_ext >&5
3573
3574{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576as_fn_error $? "cannot compute suffix of object files: cannot compile
3577See \`config.log' for more details" "$LINENO" 5; }
3578fi
3579rm -f conftest.$ac_cv_objext conftest.$ac_ext
3580fi
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3582$as_echo "$ac_cv_objext" >&6; }
3583OBJEXT=$ac_cv_objext
3584ac_objext=$OBJEXT
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3586$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3587if ${ac_cv_c_compiler_gnu+:} false; then :
3588  $as_echo_n "(cached) " >&6
3589else
3590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591/* end confdefs.h.  */
3592
3593int
3594main ()
3595{
3596#ifndef __GNUC__
3597       choke me
3598#endif
3599
3600  ;
3601  return 0;
3602}
3603_ACEOF
3604if ac_fn_c_try_compile "$LINENO"; then :
3605  ac_compiler_gnu=yes
3606else
3607  ac_compiler_gnu=no
3608fi
3609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610ac_cv_c_compiler_gnu=$ac_compiler_gnu
3611
3612fi
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3614$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3615if test $ac_compiler_gnu = yes; then
3616  GCC=yes
3617else
3618  GCC=
3619fi
3620ac_test_CFLAGS=${CFLAGS+set}
3621ac_save_CFLAGS=$CFLAGS
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3623$as_echo_n "checking whether $CC accepts -g... " >&6; }
3624if ${ac_cv_prog_cc_g+:} false; then :
3625  $as_echo_n "(cached) " >&6
3626else
3627  ac_save_c_werror_flag=$ac_c_werror_flag
3628   ac_c_werror_flag=yes
3629   ac_cv_prog_cc_g=no
3630   CFLAGS="-g"
3631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632/* end confdefs.h.  */
3633
3634int
3635main ()
3636{
3637
3638  ;
3639  return 0;
3640}
3641_ACEOF
3642if ac_fn_c_try_compile "$LINENO"; then :
3643  ac_cv_prog_cc_g=yes
3644else
3645  CFLAGS=""
3646      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647/* end confdefs.h.  */
3648
3649int
3650main ()
3651{
3652
3653  ;
3654  return 0;
3655}
3656_ACEOF
3657if ac_fn_c_try_compile "$LINENO"; then :
3658
3659else
3660  ac_c_werror_flag=$ac_save_c_werror_flag
3661	 CFLAGS="-g"
3662	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663/* end confdefs.h.  */
3664
3665int
3666main ()
3667{
3668
3669  ;
3670  return 0;
3671}
3672_ACEOF
3673if ac_fn_c_try_compile "$LINENO"; then :
3674  ac_cv_prog_cc_g=yes
3675fi
3676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677fi
3678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679fi
3680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681   ac_c_werror_flag=$ac_save_c_werror_flag
3682fi
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3684$as_echo "$ac_cv_prog_cc_g" >&6; }
3685if test "$ac_test_CFLAGS" = set; then
3686  CFLAGS=$ac_save_CFLAGS
3687elif test $ac_cv_prog_cc_g = yes; then
3688  if test "$GCC" = yes; then
3689    CFLAGS="-g -O2"
3690  else
3691    CFLAGS="-g"
3692  fi
3693else
3694  if test "$GCC" = yes; then
3695    CFLAGS="-O2"
3696  else
3697    CFLAGS=
3698  fi
3699fi
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3701$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3702if ${ac_cv_prog_cc_c89+:} false; then :
3703  $as_echo_n "(cached) " >&6
3704else
3705  ac_cv_prog_cc_c89=no
3706ac_save_CC=$CC
3707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708/* end confdefs.h.  */
3709#include <stdarg.h>
3710#include <stdio.h>
3711struct stat;
3712/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3713struct buf { int x; };
3714FILE * (*rcsopen) (struct buf *, struct stat *, int);
3715static char *e (p, i)
3716     char **p;
3717     int i;
3718{
3719  return p[i];
3720}
3721static char *f (char * (*g) (char **, int), char **p, ...)
3722{
3723  char *s;
3724  va_list v;
3725  va_start (v,p);
3726  s = g (p, va_arg (v,int));
3727  va_end (v);
3728  return s;
3729}
3730
3731/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3732   function prototypes and stuff, but not '\xHH' hex character constants.
3733   These don't provoke an error unfortunately, instead are silently treated
3734   as 'x'.  The following induces an error, until -std is added to get
3735   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3736   array size at least.  It's necessary to write '\x00'==0 to get something
3737   that's true only with -std.  */
3738int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3739
3740/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3741   inside strings and character constants.  */
3742#define FOO(x) 'x'
3743int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3744
3745int test (int i, double x);
3746struct s1 {int (*f) (int a);};
3747struct s2 {int (*f) (double a);};
3748int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3749int argc;
3750char **argv;
3751int
3752main ()
3753{
3754return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3755  ;
3756  return 0;
3757}
3758_ACEOF
3759for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3760	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3761do
3762  CC="$ac_save_CC $ac_arg"
3763  if ac_fn_c_try_compile "$LINENO"; then :
3764  ac_cv_prog_cc_c89=$ac_arg
3765fi
3766rm -f core conftest.err conftest.$ac_objext
3767  test "x$ac_cv_prog_cc_c89" != "xno" && break
3768done
3769rm -f conftest.$ac_ext
3770CC=$ac_save_CC
3771
3772fi
3773# AC_CACHE_VAL
3774case "x$ac_cv_prog_cc_c89" in
3775  x)
3776    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3777$as_echo "none needed" >&6; } ;;
3778  xno)
3779    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3780$as_echo "unsupported" >&6; } ;;
3781  *)
3782    CC="$CC $ac_cv_prog_cc_c89"
3783    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3784$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3785esac
3786if test "x$ac_cv_prog_cc_c89" != xno; then :
3787
3788fi
3789
3790ac_ext=c
3791ac_cpp='$CPP $CPPFLAGS'
3792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794ac_compiler_gnu=$ac_cv_c_compiler_gnu
3795
3796ac_ext=c
3797ac_cpp='$CPP $CPPFLAGS'
3798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3800ac_compiler_gnu=$ac_cv_c_compiler_gnu
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3802$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3803if ${am_cv_prog_cc_c_o+:} false; then :
3804  $as_echo_n "(cached) " >&6
3805else
3806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807/* end confdefs.h.  */
3808
3809int
3810main ()
3811{
3812
3813  ;
3814  return 0;
3815}
3816_ACEOF
3817  # Make sure it works both with $CC and with simple cc.
3818  # Following AC_PROG_CC_C_O, we do the test twice because some
3819  # compilers refuse to overwrite an existing .o file with -o,
3820  # though they will create one.
3821  am_cv_prog_cc_c_o=yes
3822  for am_i in 1 2; do
3823    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3824   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3825   ac_status=$?
3826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827   (exit $ac_status); } \
3828         && test -f conftest2.$ac_objext; then
3829      : OK
3830    else
3831      am_cv_prog_cc_c_o=no
3832      break
3833    fi
3834  done
3835  rm -f core conftest*
3836  unset am_i
3837fi
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3839$as_echo "$am_cv_prog_cc_c_o" >&6; }
3840if test "$am_cv_prog_cc_c_o" != yes; then
3841   # Losing compiler, so override with the script.
3842   # FIXME: It is wrong to rewrite CC.
3843   # But if we don't then we get into trouble of one sort or another.
3844   # A longer-term fix would be to have automake use am__CC in this case,
3845   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3846   CC="$am_aux_dir/compile $CC"
3847fi
3848ac_ext=c
3849ac_cpp='$CPP $CPPFLAGS'
3850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853
3854
3855depcc="$CC"   am_compiler_list=
3856
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3858$as_echo_n "checking dependency style of $depcc... " >&6; }
3859if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3860  $as_echo_n "(cached) " >&6
3861else
3862  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3863  # We make a subdir and do the tests there.  Otherwise we can end up
3864  # making bogus files that we don't know about and never remove.  For
3865  # instance it was reported that on HP-UX the gcc test will end up
3866  # making a dummy file named 'D' -- because '-MD' means "put the output
3867  # in D".
3868  rm -rf conftest.dir
3869  mkdir conftest.dir
3870  # Copy depcomp to subdir because otherwise we won't find it if we're
3871  # using a relative directory.
3872  cp "$am_depcomp" conftest.dir
3873  cd conftest.dir
3874  # We will build objects and dependencies in a subdirectory because
3875  # it helps to detect inapplicable dependency modes.  For instance
3876  # both Tru64's cc and ICC support -MD to output dependencies as a
3877  # side effect of compilation, but ICC will put the dependencies in
3878  # the current directory while Tru64 will put them in the object
3879  # directory.
3880  mkdir sub
3881
3882  am_cv_CC_dependencies_compiler_type=none
3883  if test "$am_compiler_list" = ""; then
3884     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3885  fi
3886  am__universal=false
3887  case " $depcc " in #(
3888     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3889     esac
3890
3891  for depmode in $am_compiler_list; do
3892    # Setup a source with many dependencies, because some compilers
3893    # like to wrap large dependency lists on column 80 (with \), and
3894    # we should not choose a depcomp mode which is confused by this.
3895    #
3896    # We need to recreate these files for each test, as the compiler may
3897    # overwrite some of them when testing with obscure command lines.
3898    # This happens at least with the AIX C compiler.
3899    : > sub/conftest.c
3900    for i in 1 2 3 4 5 6; do
3901      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3902      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3903      # Solaris 10 /bin/sh.
3904      echo '/* dummy */' > sub/conftst$i.h
3905    done
3906    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3907
3908    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3909    # mode.  It turns out that the SunPro C++ compiler does not properly
3910    # handle '-M -o', and we need to detect this.  Also, some Intel
3911    # versions had trouble with output in subdirs.
3912    am__obj=sub/conftest.${OBJEXT-o}
3913    am__minus_obj="-o $am__obj"
3914    case $depmode in
3915    gcc)
3916      # This depmode causes a compiler race in universal mode.
3917      test "$am__universal" = false || continue
3918      ;;
3919    nosideeffect)
3920      # After this tag, mechanisms are not by side-effect, so they'll
3921      # only be used when explicitly requested.
3922      if test "x$enable_dependency_tracking" = xyes; then
3923	continue
3924      else
3925	break
3926      fi
3927      ;;
3928    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3929      # This compiler won't grok '-c -o', but also, the minuso test has
3930      # not run yet.  These depmodes are late enough in the game, and
3931      # so weak that their functioning should not be impacted.
3932      am__obj=conftest.${OBJEXT-o}
3933      am__minus_obj=
3934      ;;
3935    none) break ;;
3936    esac
3937    if depmode=$depmode \
3938       source=sub/conftest.c object=$am__obj \
3939       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3940       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3941         >/dev/null 2>conftest.err &&
3942       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3943       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3944       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3945       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3946      # icc doesn't choke on unknown options, it will just issue warnings
3947      # or remarks (even with -Werror).  So we grep stderr for any message
3948      # that says an option was ignored or not supported.
3949      # When given -MP, icc 7.0 and 7.1 complain thusly:
3950      #   icc: Command line warning: ignoring option '-M'; no argument required
3951      # The diagnosis changed in icc 8.0:
3952      #   icc: Command line remark: option '-MP' not supported
3953      if (grep 'ignoring option' conftest.err ||
3954          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3955        am_cv_CC_dependencies_compiler_type=$depmode
3956        break
3957      fi
3958    fi
3959  done
3960
3961  cd ..
3962  rm -rf conftest.dir
3963else
3964  am_cv_CC_dependencies_compiler_type=none
3965fi
3966
3967fi
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3969$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3970CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3971
3972 if
3973  test "x$enable_dependency_tracking" != xno \
3974  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3975  am__fastdepCC_TRUE=
3976  am__fastdepCC_FALSE='#'
3977else
3978  am__fastdepCC_TRUE='#'
3979  am__fastdepCC_FALSE=
3980fi
3981
3982
3983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3984$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3985if ${ac_cv_prog_cc_c99+:} false; then :
3986  $as_echo_n "(cached) " >&6
3987else
3988  ac_cv_prog_cc_c99=no
3989ac_save_CC=$CC
3990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991/* end confdefs.h.  */
3992#include <stdarg.h>
3993#include <stdbool.h>
3994#include <stdlib.h>
3995#include <wchar.h>
3996#include <stdio.h>
3997
3998// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3999#define debug(...) fprintf (stderr, __VA_ARGS__)
4000#define showlist(...) puts (#__VA_ARGS__)
4001#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4002static void
4003test_varargs_macros (void)
4004{
4005  int x = 1234;
4006  int y = 5678;
4007  debug ("Flag");
4008  debug ("X = %d\n", x);
4009  showlist (The first, second, and third items.);
4010  report (x>y, "x is %d but y is %d", x, y);
4011}
4012
4013// Check long long types.
4014#define BIG64 18446744073709551615ull
4015#define BIG32 4294967295ul
4016#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4017#if !BIG_OK
4018  your preprocessor is broken;
4019#endif
4020#if BIG_OK
4021#else
4022  your preprocessor is broken;
4023#endif
4024static long long int bignum = -9223372036854775807LL;
4025static unsigned long long int ubignum = BIG64;
4026
4027struct incomplete_array
4028{
4029  int datasize;
4030  double data[];
4031};
4032
4033struct named_init {
4034  int number;
4035  const wchar_t *name;
4036  double average;
4037};
4038
4039typedef const char *ccp;
4040
4041static inline int
4042test_restrict (ccp restrict text)
4043{
4044  // See if C++-style comments work.
4045  // Iterate through items via the restricted pointer.
4046  // Also check for declarations in for loops.
4047  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4048    continue;
4049  return 0;
4050}
4051
4052// Check varargs and va_copy.
4053static void
4054test_varargs (const char *format, ...)
4055{
4056  va_list args;
4057  va_start (args, format);
4058  va_list args_copy;
4059  va_copy (args_copy, args);
4060
4061  const char *str;
4062  int number;
4063  float fnumber;
4064
4065  while (*format)
4066    {
4067      switch (*format++)
4068	{
4069	case 's': // string
4070	  str = va_arg (args_copy, const char *);
4071	  break;
4072	case 'd': // int
4073	  number = va_arg (args_copy, int);
4074	  break;
4075	case 'f': // float
4076	  fnumber = va_arg (args_copy, double);
4077	  break;
4078	default:
4079	  break;
4080	}
4081    }
4082  va_end (args_copy);
4083  va_end (args);
4084}
4085
4086int
4087main ()
4088{
4089
4090  // Check bool.
4091  _Bool success = false;
4092
4093  // Check restrict.
4094  if (test_restrict ("String literal") == 0)
4095    success = true;
4096  char *restrict newvar = "Another string";
4097
4098  // Check varargs.
4099  test_varargs ("s, d' f .", "string", 65, 34.234);
4100  test_varargs_macros ();
4101
4102  // Check flexible array members.
4103  struct incomplete_array *ia =
4104    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4105  ia->datasize = 10;
4106  for (int i = 0; i < ia->datasize; ++i)
4107    ia->data[i] = i * 1.234;
4108
4109  // Check named initializers.
4110  struct named_init ni = {
4111    .number = 34,
4112    .name = L"Test wide string",
4113    .average = 543.34343,
4114  };
4115
4116  ni.number = 58;
4117
4118  int dynamic_array[ni.number];
4119  dynamic_array[ni.number - 1] = 543;
4120
4121  // work around unused variable warnings
4122  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4123	  || dynamic_array[ni.number - 1] != 543);
4124
4125  ;
4126  return 0;
4127}
4128_ACEOF
4129for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4130do
4131  CC="$ac_save_CC $ac_arg"
4132  if ac_fn_c_try_compile "$LINENO"; then :
4133  ac_cv_prog_cc_c99=$ac_arg
4134fi
4135rm -f core conftest.err conftest.$ac_objext
4136  test "x$ac_cv_prog_cc_c99" != "xno" && break
4137done
4138rm -f conftest.$ac_ext
4139CC=$ac_save_CC
4140
4141fi
4142# AC_CACHE_VAL
4143case "x$ac_cv_prog_cc_c99" in
4144  x)
4145    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4146$as_echo "none needed" >&6; } ;;
4147  xno)
4148    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4149$as_echo "unsupported" >&6; } ;;
4150  *)
4151    CC="$CC $ac_cv_prog_cc_c99"
4152    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4153$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4154esac
4155if test "x$ac_cv_prog_cc_c99" != xno; then :
4156
4157fi
4158
4159
4160
4161ac_ext=c
4162ac_cpp='$CPP $CPPFLAGS'
4163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4165ac_compiler_gnu=$ac_cv_c_compiler_gnu
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4167$as_echo_n "checking how to run the C preprocessor... " >&6; }
4168# On Suns, sometimes $CPP names a directory.
4169if test -n "$CPP" && test -d "$CPP"; then
4170  CPP=
4171fi
4172if test -z "$CPP"; then
4173  if ${ac_cv_prog_CPP+:} false; then :
4174  $as_echo_n "(cached) " >&6
4175else
4176      # Double quotes because CPP needs to be expanded
4177    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4178    do
4179      ac_preproc_ok=false
4180for ac_c_preproc_warn_flag in '' yes
4181do
4182  # Use a header file that comes with gcc, so configuring glibc
4183  # with a fresh cross-compiler works.
4184  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4185  # <limits.h> exists even on freestanding compilers.
4186  # On the NeXT, cc -E runs the code through the compiler's parser,
4187  # not just through cpp. "Syntax error" is here to catch this case.
4188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189/* end confdefs.h.  */
4190#ifdef __STDC__
4191# include <limits.h>
4192#else
4193# include <assert.h>
4194#endif
4195		     Syntax error
4196_ACEOF
4197if ac_fn_c_try_cpp "$LINENO"; then :
4198
4199else
4200  # Broken: fails on valid input.
4201continue
4202fi
4203rm -f conftest.err conftest.i conftest.$ac_ext
4204
4205  # OK, works on sane cases.  Now check whether nonexistent headers
4206  # can be detected and how.
4207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208/* end confdefs.h.  */
4209#include <ac_nonexistent.h>
4210_ACEOF
4211if ac_fn_c_try_cpp "$LINENO"; then :
4212  # Broken: success on invalid input.
4213continue
4214else
4215  # Passes both tests.
4216ac_preproc_ok=:
4217break
4218fi
4219rm -f conftest.err conftest.i conftest.$ac_ext
4220
4221done
4222# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4223rm -f conftest.i conftest.err conftest.$ac_ext
4224if $ac_preproc_ok; then :
4225  break
4226fi
4227
4228    done
4229    ac_cv_prog_CPP=$CPP
4230
4231fi
4232  CPP=$ac_cv_prog_CPP
4233else
4234  ac_cv_prog_CPP=$CPP
4235fi
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4237$as_echo "$CPP" >&6; }
4238ac_preproc_ok=false
4239for ac_c_preproc_warn_flag in '' yes
4240do
4241  # Use a header file that comes with gcc, so configuring glibc
4242  # with a fresh cross-compiler works.
4243  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4244  # <limits.h> exists even on freestanding compilers.
4245  # On the NeXT, cc -E runs the code through the compiler's parser,
4246  # not just through cpp. "Syntax error" is here to catch this case.
4247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248/* end confdefs.h.  */
4249#ifdef __STDC__
4250# include <limits.h>
4251#else
4252# include <assert.h>
4253#endif
4254		     Syntax error
4255_ACEOF
4256if ac_fn_c_try_cpp "$LINENO"; then :
4257
4258else
4259  # Broken: fails on valid input.
4260continue
4261fi
4262rm -f conftest.err conftest.i conftest.$ac_ext
4263
4264  # OK, works on sane cases.  Now check whether nonexistent headers
4265  # can be detected and how.
4266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267/* end confdefs.h.  */
4268#include <ac_nonexistent.h>
4269_ACEOF
4270if ac_fn_c_try_cpp "$LINENO"; then :
4271  # Broken: success on invalid input.
4272continue
4273else
4274  # Passes both tests.
4275ac_preproc_ok=:
4276break
4277fi
4278rm -f conftest.err conftest.i conftest.$ac_ext
4279
4280done
4281# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4282rm -f conftest.i conftest.err conftest.$ac_ext
4283if $ac_preproc_ok; then :
4284
4285else
4286  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4288as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4289See \`config.log' for more details" "$LINENO" 5; }
4290fi
4291
4292ac_ext=c
4293ac_cpp='$CPP $CPPFLAGS'
4294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297
4298
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4300$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4301if ${ac_cv_path_GREP+:} false; then :
4302  $as_echo_n "(cached) " >&6
4303else
4304  if test -z "$GREP"; then
4305  ac_path_GREP_found=false
4306  # Loop through the user's path and test for each of PROGNAME-LIST
4307  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4309do
4310  IFS=$as_save_IFS
4311  test -z "$as_dir" && as_dir=.
4312    for ac_prog in grep ggrep; do
4313    for ac_exec_ext in '' $ac_executable_extensions; do
4314      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4315      as_fn_executable_p "$ac_path_GREP" || continue
4316# Check for GNU ac_path_GREP and select it if it is found.
4317  # Check for GNU $ac_path_GREP
4318case `"$ac_path_GREP" --version 2>&1` in
4319*GNU*)
4320  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4321*)
4322  ac_count=0
4323  $as_echo_n 0123456789 >"conftest.in"
4324  while :
4325  do
4326    cat "conftest.in" "conftest.in" >"conftest.tmp"
4327    mv "conftest.tmp" "conftest.in"
4328    cp "conftest.in" "conftest.nl"
4329    $as_echo 'GREP' >> "conftest.nl"
4330    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4331    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4332    as_fn_arith $ac_count + 1 && ac_count=$as_val
4333    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4334      # Best one so far, save it but keep looking for a better one
4335      ac_cv_path_GREP="$ac_path_GREP"
4336      ac_path_GREP_max=$ac_count
4337    fi
4338    # 10*(2^10) chars as input seems more than enough
4339    test $ac_count -gt 10 && break
4340  done
4341  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4342esac
4343
4344      $ac_path_GREP_found && break 3
4345    done
4346  done
4347  done
4348IFS=$as_save_IFS
4349  if test -z "$ac_cv_path_GREP"; then
4350    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4351  fi
4352else
4353  ac_cv_path_GREP=$GREP
4354fi
4355
4356fi
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4358$as_echo "$ac_cv_path_GREP" >&6; }
4359 GREP="$ac_cv_path_GREP"
4360
4361
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4363$as_echo_n "checking for egrep... " >&6; }
4364if ${ac_cv_path_EGREP+:} false; then :
4365  $as_echo_n "(cached) " >&6
4366else
4367  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4368   then ac_cv_path_EGREP="$GREP -E"
4369   else
4370     if test -z "$EGREP"; then
4371  ac_path_EGREP_found=false
4372  # Loop through the user's path and test for each of PROGNAME-LIST
4373  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4375do
4376  IFS=$as_save_IFS
4377  test -z "$as_dir" && as_dir=.
4378    for ac_prog in egrep; do
4379    for ac_exec_ext in '' $ac_executable_extensions; do
4380      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4381      as_fn_executable_p "$ac_path_EGREP" || continue
4382# Check for GNU ac_path_EGREP and select it if it is found.
4383  # Check for GNU $ac_path_EGREP
4384case `"$ac_path_EGREP" --version 2>&1` in
4385*GNU*)
4386  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4387*)
4388  ac_count=0
4389  $as_echo_n 0123456789 >"conftest.in"
4390  while :
4391  do
4392    cat "conftest.in" "conftest.in" >"conftest.tmp"
4393    mv "conftest.tmp" "conftest.in"
4394    cp "conftest.in" "conftest.nl"
4395    $as_echo 'EGREP' >> "conftest.nl"
4396    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4397    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4398    as_fn_arith $ac_count + 1 && ac_count=$as_val
4399    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4400      # Best one so far, save it but keep looking for a better one
4401      ac_cv_path_EGREP="$ac_path_EGREP"
4402      ac_path_EGREP_max=$ac_count
4403    fi
4404    # 10*(2^10) chars as input seems more than enough
4405    test $ac_count -gt 10 && break
4406  done
4407  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4408esac
4409
4410      $ac_path_EGREP_found && break 3
4411    done
4412  done
4413  done
4414IFS=$as_save_IFS
4415  if test -z "$ac_cv_path_EGREP"; then
4416    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4417  fi
4418else
4419  ac_cv_path_EGREP=$EGREP
4420fi
4421
4422   fi
4423fi
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4425$as_echo "$ac_cv_path_EGREP" >&6; }
4426 EGREP="$ac_cv_path_EGREP"
4427
4428
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4430$as_echo_n "checking for ANSI C header files... " >&6; }
4431if ${ac_cv_header_stdc+:} false; then :
4432  $as_echo_n "(cached) " >&6
4433else
4434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435/* end confdefs.h.  */
4436#include <stdlib.h>
4437#include <stdarg.h>
4438#include <string.h>
4439#include <float.h>
4440
4441int
4442main ()
4443{
4444
4445  ;
4446  return 0;
4447}
4448_ACEOF
4449if ac_fn_c_try_compile "$LINENO"; then :
4450  ac_cv_header_stdc=yes
4451else
4452  ac_cv_header_stdc=no
4453fi
4454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4455
4456if test $ac_cv_header_stdc = yes; then
4457  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459/* end confdefs.h.  */
4460#include <string.h>
4461
4462_ACEOF
4463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4464  $EGREP "memchr" >/dev/null 2>&1; then :
4465
4466else
4467  ac_cv_header_stdc=no
4468fi
4469rm -f conftest*
4470
4471fi
4472
4473if test $ac_cv_header_stdc = yes; then
4474  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476/* end confdefs.h.  */
4477#include <stdlib.h>
4478
4479_ACEOF
4480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4481  $EGREP "free" >/dev/null 2>&1; then :
4482
4483else
4484  ac_cv_header_stdc=no
4485fi
4486rm -f conftest*
4487
4488fi
4489
4490if test $ac_cv_header_stdc = yes; then
4491  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4492  if test "$cross_compiling" = yes; then :
4493  :
4494else
4495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496/* end confdefs.h.  */
4497#include <ctype.h>
4498#include <stdlib.h>
4499#if ((' ' & 0x0FF) == 0x020)
4500# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4501# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4502#else
4503# define ISLOWER(c) \
4504		   (('a' <= (c) && (c) <= 'i') \
4505		     || ('j' <= (c) && (c) <= 'r') \
4506		     || ('s' <= (c) && (c) <= 'z'))
4507# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4508#endif
4509
4510#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4511int
4512main ()
4513{
4514  int i;
4515  for (i = 0; i < 256; i++)
4516    if (XOR (islower (i), ISLOWER (i))
4517	|| toupper (i) != TOUPPER (i))
4518      return 2;
4519  return 0;
4520}
4521_ACEOF
4522if ac_fn_c_try_run "$LINENO"; then :
4523
4524else
4525  ac_cv_header_stdc=no
4526fi
4527rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4528  conftest.$ac_objext conftest.beam conftest.$ac_ext
4529fi
4530
4531fi
4532fi
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4534$as_echo "$ac_cv_header_stdc" >&6; }
4535if test $ac_cv_header_stdc = yes; then
4536
4537$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4538
4539fi
4540
4541# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4542for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4543		  inttypes.h stdint.h unistd.h
4544do :
4545  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4546ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4547"
4548if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4549  cat >>confdefs.h <<_ACEOF
4550#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4551_ACEOF
4552
4553fi
4554
4555done
4556
4557
4558
4559
4560
4561
4562ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4563if test "x$ac_cv_have_decl___clang__" = xyes; then :
4564  CLANGCC="yes"
4565else
4566  CLANGCC="no"
4567fi
4568
4569ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4570if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4571  INTELCC="yes"
4572else
4573  INTELCC="no"
4574fi
4575
4576ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4577if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4578  SUNCC="yes"
4579else
4580  SUNCC="no"
4581fi
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4592	if test -n "$ac_tool_prefix"; then
4593  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4594set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596$as_echo_n "checking for $ac_word... " >&6; }
4597if ${ac_cv_path_PKG_CONFIG+:} false; then :
4598  $as_echo_n "(cached) " >&6
4599else
4600  case $PKG_CONFIG in
4601  [\\/]* | ?:[\\/]*)
4602  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4603  ;;
4604  *)
4605  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606for as_dir in $PATH
4607do
4608  IFS=$as_save_IFS
4609  test -z "$as_dir" && as_dir=.
4610    for ac_exec_ext in '' $ac_executable_extensions; do
4611  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4612    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4613    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614    break 2
4615  fi
4616done
4617  done
4618IFS=$as_save_IFS
4619
4620  ;;
4621esac
4622fi
4623PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4624if test -n "$PKG_CONFIG"; then
4625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4626$as_echo "$PKG_CONFIG" >&6; }
4627else
4628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629$as_echo "no" >&6; }
4630fi
4631
4632
4633fi
4634if test -z "$ac_cv_path_PKG_CONFIG"; then
4635  ac_pt_PKG_CONFIG=$PKG_CONFIG
4636  # Extract the first word of "pkg-config", so it can be a program name with args.
4637set dummy pkg-config; ac_word=$2
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639$as_echo_n "checking for $ac_word... " >&6; }
4640if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4641  $as_echo_n "(cached) " >&6
4642else
4643  case $ac_pt_PKG_CONFIG in
4644  [\\/]* | ?:[\\/]*)
4645  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4646  ;;
4647  *)
4648  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649for as_dir in $PATH
4650do
4651  IFS=$as_save_IFS
4652  test -z "$as_dir" && as_dir=.
4653    for ac_exec_ext in '' $ac_executable_extensions; do
4654  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4655    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4656    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657    break 2
4658  fi
4659done
4660  done
4661IFS=$as_save_IFS
4662
4663  ;;
4664esac
4665fi
4666ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4667if test -n "$ac_pt_PKG_CONFIG"; then
4668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4669$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4670else
4671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672$as_echo "no" >&6; }
4673fi
4674
4675  if test "x$ac_pt_PKG_CONFIG" = x; then
4676    PKG_CONFIG=""
4677  else
4678    case $cross_compiling:$ac_tool_warned in
4679yes:)
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4682ac_tool_warned=yes ;;
4683esac
4684    PKG_CONFIG=$ac_pt_PKG_CONFIG
4685  fi
4686else
4687  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4688fi
4689
4690fi
4691if test -n "$PKG_CONFIG"; then
4692	_pkg_min_version=0.9.0
4693	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4694$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4695	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4696		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4697$as_echo "yes" >&6; }
4698	else
4699		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700$as_echo "no" >&6; }
4701		PKG_CONFIG=""
4702	fi
4703fi
4704# Make sure we can run config.sub.
4705$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4706  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4707
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4709$as_echo_n "checking build system type... " >&6; }
4710if ${ac_cv_build+:} false; then :
4711  $as_echo_n "(cached) " >&6
4712else
4713  ac_build_alias=$build_alias
4714test "x$ac_build_alias" = x &&
4715  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4716test "x$ac_build_alias" = x &&
4717  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4718ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4719  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4720
4721fi
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4723$as_echo "$ac_cv_build" >&6; }
4724case $ac_cv_build in
4725*-*-*) ;;
4726*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4727esac
4728build=$ac_cv_build
4729ac_save_IFS=$IFS; IFS='-'
4730set x $ac_cv_build
4731shift
4732build_cpu=$1
4733build_vendor=$2
4734shift; shift
4735# Remember, the first character of IFS is used to create $*,
4736# except with old shells:
4737build_os=$*
4738IFS=$ac_save_IFS
4739case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4740
4741
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4743$as_echo_n "checking host system type... " >&6; }
4744if ${ac_cv_host+:} false; then :
4745  $as_echo_n "(cached) " >&6
4746else
4747  if test "x$host_alias" = x; then
4748  ac_cv_host=$ac_cv_build
4749else
4750  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4751    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4752fi
4753
4754fi
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4756$as_echo "$ac_cv_host" >&6; }
4757case $ac_cv_host in
4758*-*-*) ;;
4759*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4760esac
4761host=$ac_cv_host
4762ac_save_IFS=$IFS; IFS='-'
4763set x $ac_cv_host
4764shift
4765host_cpu=$1
4766host_vendor=$2
4767shift; shift
4768# Remember, the first character of IFS is used to create $*,
4769# except with old shells:
4770host_os=$*
4771IFS=$ac_save_IFS
4772case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4773
4774
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4776$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4777if ${ac_cv_path_SED+:} false; then :
4778  $as_echo_n "(cached) " >&6
4779else
4780            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4781     for ac_i in 1 2 3 4 5 6 7; do
4782       ac_script="$ac_script$as_nl$ac_script"
4783     done
4784     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4785     { ac_script=; unset ac_script;}
4786     if test -z "$SED"; then
4787  ac_path_SED_found=false
4788  # Loop through the user's path and test for each of PROGNAME-LIST
4789  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH
4791do
4792  IFS=$as_save_IFS
4793  test -z "$as_dir" && as_dir=.
4794    for ac_prog in sed gsed; do
4795    for ac_exec_ext in '' $ac_executable_extensions; do
4796      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4797      as_fn_executable_p "$ac_path_SED" || continue
4798# Check for GNU ac_path_SED and select it if it is found.
4799  # Check for GNU $ac_path_SED
4800case `"$ac_path_SED" --version 2>&1` in
4801*GNU*)
4802  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4803*)
4804  ac_count=0
4805  $as_echo_n 0123456789 >"conftest.in"
4806  while :
4807  do
4808    cat "conftest.in" "conftest.in" >"conftest.tmp"
4809    mv "conftest.tmp" "conftest.in"
4810    cp "conftest.in" "conftest.nl"
4811    $as_echo '' >> "conftest.nl"
4812    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4813    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4814    as_fn_arith $ac_count + 1 && ac_count=$as_val
4815    if test $ac_count -gt ${ac_path_SED_max-0}; then
4816      # Best one so far, save it but keep looking for a better one
4817      ac_cv_path_SED="$ac_path_SED"
4818      ac_path_SED_max=$ac_count
4819    fi
4820    # 10*(2^10) chars as input seems more than enough
4821    test $ac_count -gt 10 && break
4822  done
4823  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4824esac
4825
4826      $ac_path_SED_found && break 3
4827    done
4828  done
4829  done
4830IFS=$as_save_IFS
4831  if test -z "$ac_cv_path_SED"; then
4832    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4833  fi
4834else
4835  ac_cv_path_SED=$SED
4836fi
4837
4838fi
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4840$as_echo "$ac_cv_path_SED" >&6; }
4841 SED="$ac_cv_path_SED"
4842  rm -f conftest.sed
4843
4844
4845
4846
4847
4848
4849# Check whether --enable-selective-werror was given.
4850if test "${enable_selective_werror+set}" = set; then :
4851  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4852else
4853  SELECTIVE_WERROR=yes
4854fi
4855
4856
4857
4858
4859
4860# -v is too short to test reliably with XORG_TESTSET_CFLAG
4861if test "x$SUNCC" = "xyes"; then
4862    BASE_CFLAGS="-v"
4863else
4864    BASE_CFLAGS=""
4865fi
4866
4867# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881xorg_testset_save_CFLAGS="$CFLAGS"
4882
4883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4884	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4885	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4886$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4887if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4888  $as_echo_n "(cached) " >&6
4889else
4890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891/* end confdefs.h.  */
4892int i;
4893_ACEOF
4894if ac_fn_c_try_compile "$LINENO"; then :
4895  xorg_cv_cc_flag_unknown_warning_option=yes
4896else
4897  xorg_cv_cc_flag_unknown_warning_option=no
4898fi
4899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900fi
4901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4902$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4903	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4904	CFLAGS="$xorg_testset_save_CFLAGS"
4905fi
4906
4907if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4908	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4909		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4910	fi
4911	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4912	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4913$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4914if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4915  $as_echo_n "(cached) " >&6
4916else
4917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918/* end confdefs.h.  */
4919int i;
4920_ACEOF
4921if ac_fn_c_try_compile "$LINENO"; then :
4922  xorg_cv_cc_flag_unused_command_line_argument=yes
4923else
4924  xorg_cv_cc_flag_unused_command_line_argument=no
4925fi
4926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927fi
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4929$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4930	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4931	CFLAGS="$xorg_testset_save_CFLAGS"
4932fi
4933
4934found="no"
4935
4936	if test $found = "no" ; then
4937		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4938			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4939		fi
4940
4941		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4942			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4943		fi
4944
4945		CFLAGS="$CFLAGS -Wall"
4946
4947		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4948$as_echo_n "checking if $CC supports -Wall... " >&6; }
4949		cacheid=xorg_cv_cc_flag__Wall
4950		if eval \${$cacheid+:} false; then :
4951  $as_echo_n "(cached) " >&6
4952else
4953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954/* end confdefs.h.  */
4955int i;
4956int
4957main ()
4958{
4959
4960  ;
4961  return 0;
4962}
4963_ACEOF
4964if ac_fn_c_try_link "$LINENO"; then :
4965  eval $cacheid=yes
4966else
4967  eval $cacheid=no
4968fi
4969rm -f core conftest.err conftest.$ac_objext \
4970    conftest$ac_exeext conftest.$ac_ext
4971fi
4972
4973
4974		CFLAGS="$xorg_testset_save_CFLAGS"
4975
4976		eval supported=\$$cacheid
4977		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4978$as_echo "$supported" >&6; }
4979		if test "$supported" = "yes" ; then
4980			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4981			found="yes"
4982		fi
4983	fi
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999xorg_testset_save_CFLAGS="$CFLAGS"
5000
5001if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5002	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5003	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5004$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5005if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5006  $as_echo_n "(cached) " >&6
5007else
5008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009/* end confdefs.h.  */
5010int i;
5011_ACEOF
5012if ac_fn_c_try_compile "$LINENO"; then :
5013  xorg_cv_cc_flag_unknown_warning_option=yes
5014else
5015  xorg_cv_cc_flag_unknown_warning_option=no
5016fi
5017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018fi
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5020$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5021	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5022	CFLAGS="$xorg_testset_save_CFLAGS"
5023fi
5024
5025if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5026	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5027		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5028	fi
5029	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5030	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5031$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5032if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5033  $as_echo_n "(cached) " >&6
5034else
5035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036/* end confdefs.h.  */
5037int i;
5038_ACEOF
5039if ac_fn_c_try_compile "$LINENO"; then :
5040  xorg_cv_cc_flag_unused_command_line_argument=yes
5041else
5042  xorg_cv_cc_flag_unused_command_line_argument=no
5043fi
5044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045fi
5046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5047$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5048	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5049	CFLAGS="$xorg_testset_save_CFLAGS"
5050fi
5051
5052found="no"
5053
5054	if test $found = "no" ; then
5055		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5056			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5057		fi
5058
5059		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5060			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5061		fi
5062
5063		CFLAGS="$CFLAGS -Wpointer-arith"
5064
5065		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5066$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5067		cacheid=xorg_cv_cc_flag__Wpointer_arith
5068		if eval \${$cacheid+:} false; then :
5069  $as_echo_n "(cached) " >&6
5070else
5071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072/* end confdefs.h.  */
5073int i;
5074int
5075main ()
5076{
5077
5078  ;
5079  return 0;
5080}
5081_ACEOF
5082if ac_fn_c_try_link "$LINENO"; then :
5083  eval $cacheid=yes
5084else
5085  eval $cacheid=no
5086fi
5087rm -f core conftest.err conftest.$ac_objext \
5088    conftest$ac_exeext conftest.$ac_ext
5089fi
5090
5091
5092		CFLAGS="$xorg_testset_save_CFLAGS"
5093
5094		eval supported=\$$cacheid
5095		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5096$as_echo "$supported" >&6; }
5097		if test "$supported" = "yes" ; then
5098			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5099			found="yes"
5100		fi
5101	fi
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117xorg_testset_save_CFLAGS="$CFLAGS"
5118
5119if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5120	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5121	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5122$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5123if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5124  $as_echo_n "(cached) " >&6
5125else
5126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127/* end confdefs.h.  */
5128int i;
5129_ACEOF
5130if ac_fn_c_try_compile "$LINENO"; then :
5131  xorg_cv_cc_flag_unknown_warning_option=yes
5132else
5133  xorg_cv_cc_flag_unknown_warning_option=no
5134fi
5135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5136fi
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5138$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5139	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5140	CFLAGS="$xorg_testset_save_CFLAGS"
5141fi
5142
5143if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5144	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5145		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5146	fi
5147	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5148	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5149$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5150if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5151  $as_echo_n "(cached) " >&6
5152else
5153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154/* end confdefs.h.  */
5155int i;
5156_ACEOF
5157if ac_fn_c_try_compile "$LINENO"; then :
5158  xorg_cv_cc_flag_unused_command_line_argument=yes
5159else
5160  xorg_cv_cc_flag_unused_command_line_argument=no
5161fi
5162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5163fi
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5165$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5166	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5167	CFLAGS="$xorg_testset_save_CFLAGS"
5168fi
5169
5170found="no"
5171
5172	if test $found = "no" ; then
5173		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5174			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5175		fi
5176
5177		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5178			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5179		fi
5180
5181		CFLAGS="$CFLAGS -Wmissing-declarations"
5182
5183		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5184$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5185		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5186		if eval \${$cacheid+:} false; then :
5187  $as_echo_n "(cached) " >&6
5188else
5189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190/* end confdefs.h.  */
5191int i;
5192int
5193main ()
5194{
5195
5196  ;
5197  return 0;
5198}
5199_ACEOF
5200if ac_fn_c_try_link "$LINENO"; then :
5201  eval $cacheid=yes
5202else
5203  eval $cacheid=no
5204fi
5205rm -f core conftest.err conftest.$ac_objext \
5206    conftest$ac_exeext conftest.$ac_ext
5207fi
5208
5209
5210		CFLAGS="$xorg_testset_save_CFLAGS"
5211
5212		eval supported=\$$cacheid
5213		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5214$as_echo "$supported" >&6; }
5215		if test "$supported" = "yes" ; then
5216			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5217			found="yes"
5218		fi
5219	fi
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235xorg_testset_save_CFLAGS="$CFLAGS"
5236
5237if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5238	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5239	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5240$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5241if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5242  $as_echo_n "(cached) " >&6
5243else
5244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245/* end confdefs.h.  */
5246int i;
5247_ACEOF
5248if ac_fn_c_try_compile "$LINENO"; then :
5249  xorg_cv_cc_flag_unknown_warning_option=yes
5250else
5251  xorg_cv_cc_flag_unknown_warning_option=no
5252fi
5253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254fi
5255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5256$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5257	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5258	CFLAGS="$xorg_testset_save_CFLAGS"
5259fi
5260
5261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5262	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5263		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5264	fi
5265	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5266	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5267$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5268if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5269  $as_echo_n "(cached) " >&6
5270else
5271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272/* end confdefs.h.  */
5273int i;
5274_ACEOF
5275if ac_fn_c_try_compile "$LINENO"; then :
5276  xorg_cv_cc_flag_unused_command_line_argument=yes
5277else
5278  xorg_cv_cc_flag_unused_command_line_argument=no
5279fi
5280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281fi
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5283$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5284	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5285	CFLAGS="$xorg_testset_save_CFLAGS"
5286fi
5287
5288found="no"
5289
5290	if test $found = "no" ; then
5291		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5292			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5293		fi
5294
5295		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5296			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5297		fi
5298
5299		CFLAGS="$CFLAGS -Wformat=2"
5300
5301		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5302$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5303		cacheid=xorg_cv_cc_flag__Wformat_2
5304		if eval \${$cacheid+:} false; then :
5305  $as_echo_n "(cached) " >&6
5306else
5307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308/* end confdefs.h.  */
5309int i;
5310int
5311main ()
5312{
5313
5314  ;
5315  return 0;
5316}
5317_ACEOF
5318if ac_fn_c_try_link "$LINENO"; then :
5319  eval $cacheid=yes
5320else
5321  eval $cacheid=no
5322fi
5323rm -f core conftest.err conftest.$ac_objext \
5324    conftest$ac_exeext conftest.$ac_ext
5325fi
5326
5327
5328		CFLAGS="$xorg_testset_save_CFLAGS"
5329
5330		eval supported=\$$cacheid
5331		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5332$as_echo "$supported" >&6; }
5333		if test "$supported" = "yes" ; then
5334			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5335			found="yes"
5336		fi
5337	fi
5338
5339	if test $found = "no" ; then
5340		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5341			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5342		fi
5343
5344		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5345			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5346		fi
5347
5348		CFLAGS="$CFLAGS -Wformat"
5349
5350		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5351$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5352		cacheid=xorg_cv_cc_flag__Wformat
5353		if eval \${$cacheid+:} false; then :
5354  $as_echo_n "(cached) " >&6
5355else
5356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357/* end confdefs.h.  */
5358int i;
5359int
5360main ()
5361{
5362
5363  ;
5364  return 0;
5365}
5366_ACEOF
5367if ac_fn_c_try_link "$LINENO"; then :
5368  eval $cacheid=yes
5369else
5370  eval $cacheid=no
5371fi
5372rm -f core conftest.err conftest.$ac_objext \
5373    conftest$ac_exeext conftest.$ac_ext
5374fi
5375
5376
5377		CFLAGS="$xorg_testset_save_CFLAGS"
5378
5379		eval supported=\$$cacheid
5380		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5381$as_echo "$supported" >&6; }
5382		if test "$supported" = "yes" ; then
5383			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5384			found="yes"
5385		fi
5386	fi
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404xorg_testset_save_CFLAGS="$CFLAGS"
5405
5406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5407	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5408	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5409$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5410if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5411  $as_echo_n "(cached) " >&6
5412else
5413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414/* end confdefs.h.  */
5415int i;
5416_ACEOF
5417if ac_fn_c_try_compile "$LINENO"; then :
5418  xorg_cv_cc_flag_unknown_warning_option=yes
5419else
5420  xorg_cv_cc_flag_unknown_warning_option=no
5421fi
5422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5423fi
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5425$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5426	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5427	CFLAGS="$xorg_testset_save_CFLAGS"
5428fi
5429
5430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5431	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5432		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5433	fi
5434	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5435	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5436$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5437if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5438  $as_echo_n "(cached) " >&6
5439else
5440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441/* end confdefs.h.  */
5442int i;
5443_ACEOF
5444if ac_fn_c_try_compile "$LINENO"; then :
5445  xorg_cv_cc_flag_unused_command_line_argument=yes
5446else
5447  xorg_cv_cc_flag_unused_command_line_argument=no
5448fi
5449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450fi
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5452$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5453	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5454	CFLAGS="$xorg_testset_save_CFLAGS"
5455fi
5456
5457found="no"
5458
5459	if test $found = "no" ; then
5460		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5461			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5462		fi
5463
5464		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5465			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5466		fi
5467
5468		CFLAGS="$CFLAGS -Wstrict-prototypes"
5469
5470		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5471$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5472		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5473		if eval \${$cacheid+:} false; then :
5474  $as_echo_n "(cached) " >&6
5475else
5476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477/* end confdefs.h.  */
5478int i;
5479int
5480main ()
5481{
5482
5483  ;
5484  return 0;
5485}
5486_ACEOF
5487if ac_fn_c_try_link "$LINENO"; then :
5488  eval $cacheid=yes
5489else
5490  eval $cacheid=no
5491fi
5492rm -f core conftest.err conftest.$ac_objext \
5493    conftest$ac_exeext conftest.$ac_ext
5494fi
5495
5496
5497		CFLAGS="$xorg_testset_save_CFLAGS"
5498
5499		eval supported=\$$cacheid
5500		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5501$as_echo "$supported" >&6; }
5502		if test "$supported" = "yes" ; then
5503			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5504			found="yes"
5505		fi
5506	fi
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522xorg_testset_save_CFLAGS="$CFLAGS"
5523
5524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5525	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5526	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5527$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5528if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5529  $as_echo_n "(cached) " >&6
5530else
5531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532/* end confdefs.h.  */
5533int i;
5534_ACEOF
5535if ac_fn_c_try_compile "$LINENO"; then :
5536  xorg_cv_cc_flag_unknown_warning_option=yes
5537else
5538  xorg_cv_cc_flag_unknown_warning_option=no
5539fi
5540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5541fi
5542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5543$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5544	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5545	CFLAGS="$xorg_testset_save_CFLAGS"
5546fi
5547
5548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5549	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5550		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5551	fi
5552	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5553	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5554$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5555if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5556  $as_echo_n "(cached) " >&6
5557else
5558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559/* end confdefs.h.  */
5560int i;
5561_ACEOF
5562if ac_fn_c_try_compile "$LINENO"; then :
5563  xorg_cv_cc_flag_unused_command_line_argument=yes
5564else
5565  xorg_cv_cc_flag_unused_command_line_argument=no
5566fi
5567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568fi
5569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5570$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5571	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5572	CFLAGS="$xorg_testset_save_CFLAGS"
5573fi
5574
5575found="no"
5576
5577	if test $found = "no" ; then
5578		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5579			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5580		fi
5581
5582		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5583			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5584		fi
5585
5586		CFLAGS="$CFLAGS -Wmissing-prototypes"
5587
5588		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5589$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5590		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5591		if eval \${$cacheid+:} false; then :
5592  $as_echo_n "(cached) " >&6
5593else
5594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595/* end confdefs.h.  */
5596int i;
5597int
5598main ()
5599{
5600
5601  ;
5602  return 0;
5603}
5604_ACEOF
5605if ac_fn_c_try_link "$LINENO"; then :
5606  eval $cacheid=yes
5607else
5608  eval $cacheid=no
5609fi
5610rm -f core conftest.err conftest.$ac_objext \
5611    conftest$ac_exeext conftest.$ac_ext
5612fi
5613
5614
5615		CFLAGS="$xorg_testset_save_CFLAGS"
5616
5617		eval supported=\$$cacheid
5618		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5619$as_echo "$supported" >&6; }
5620		if test "$supported" = "yes" ; then
5621			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5622			found="yes"
5623		fi
5624	fi
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640xorg_testset_save_CFLAGS="$CFLAGS"
5641
5642if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5643	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5644	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5645$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5646if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5647  $as_echo_n "(cached) " >&6
5648else
5649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650/* end confdefs.h.  */
5651int i;
5652_ACEOF
5653if ac_fn_c_try_compile "$LINENO"; then :
5654  xorg_cv_cc_flag_unknown_warning_option=yes
5655else
5656  xorg_cv_cc_flag_unknown_warning_option=no
5657fi
5658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659fi
5660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5661$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5662	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5663	CFLAGS="$xorg_testset_save_CFLAGS"
5664fi
5665
5666if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5667	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5668		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5669	fi
5670	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5671	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5672$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5673if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5674  $as_echo_n "(cached) " >&6
5675else
5676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677/* end confdefs.h.  */
5678int i;
5679_ACEOF
5680if ac_fn_c_try_compile "$LINENO"; then :
5681  xorg_cv_cc_flag_unused_command_line_argument=yes
5682else
5683  xorg_cv_cc_flag_unused_command_line_argument=no
5684fi
5685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5686fi
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5688$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5689	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5690	CFLAGS="$xorg_testset_save_CFLAGS"
5691fi
5692
5693found="no"
5694
5695	if test $found = "no" ; then
5696		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5697			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5698		fi
5699
5700		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5701			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5702		fi
5703
5704		CFLAGS="$CFLAGS -Wnested-externs"
5705
5706		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5707$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5708		cacheid=xorg_cv_cc_flag__Wnested_externs
5709		if eval \${$cacheid+:} false; then :
5710  $as_echo_n "(cached) " >&6
5711else
5712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713/* end confdefs.h.  */
5714int i;
5715int
5716main ()
5717{
5718
5719  ;
5720  return 0;
5721}
5722_ACEOF
5723if ac_fn_c_try_link "$LINENO"; then :
5724  eval $cacheid=yes
5725else
5726  eval $cacheid=no
5727fi
5728rm -f core conftest.err conftest.$ac_objext \
5729    conftest$ac_exeext conftest.$ac_ext
5730fi
5731
5732
5733		CFLAGS="$xorg_testset_save_CFLAGS"
5734
5735		eval supported=\$$cacheid
5736		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5737$as_echo "$supported" >&6; }
5738		if test "$supported" = "yes" ; then
5739			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5740			found="yes"
5741		fi
5742	fi
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758xorg_testset_save_CFLAGS="$CFLAGS"
5759
5760if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5761	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5762	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5763$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5764if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5765  $as_echo_n "(cached) " >&6
5766else
5767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768/* end confdefs.h.  */
5769int i;
5770_ACEOF
5771if ac_fn_c_try_compile "$LINENO"; then :
5772  xorg_cv_cc_flag_unknown_warning_option=yes
5773else
5774  xorg_cv_cc_flag_unknown_warning_option=no
5775fi
5776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777fi
5778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5779$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5780	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5781	CFLAGS="$xorg_testset_save_CFLAGS"
5782fi
5783
5784if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5785	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5786		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5787	fi
5788	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5789	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5790$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5791if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5792  $as_echo_n "(cached) " >&6
5793else
5794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795/* end confdefs.h.  */
5796int i;
5797_ACEOF
5798if ac_fn_c_try_compile "$LINENO"; then :
5799  xorg_cv_cc_flag_unused_command_line_argument=yes
5800else
5801  xorg_cv_cc_flag_unused_command_line_argument=no
5802fi
5803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804fi
5805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5806$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5807	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5808	CFLAGS="$xorg_testset_save_CFLAGS"
5809fi
5810
5811found="no"
5812
5813	if test $found = "no" ; then
5814		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5815			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5816		fi
5817
5818		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5819			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5820		fi
5821
5822		CFLAGS="$CFLAGS -Wbad-function-cast"
5823
5824		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5825$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5826		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5827		if eval \${$cacheid+:} false; then :
5828  $as_echo_n "(cached) " >&6
5829else
5830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831/* end confdefs.h.  */
5832int i;
5833int
5834main ()
5835{
5836
5837  ;
5838  return 0;
5839}
5840_ACEOF
5841if ac_fn_c_try_link "$LINENO"; then :
5842  eval $cacheid=yes
5843else
5844  eval $cacheid=no
5845fi
5846rm -f core conftest.err conftest.$ac_objext \
5847    conftest$ac_exeext conftest.$ac_ext
5848fi
5849
5850
5851		CFLAGS="$xorg_testset_save_CFLAGS"
5852
5853		eval supported=\$$cacheid
5854		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5855$as_echo "$supported" >&6; }
5856		if test "$supported" = "yes" ; then
5857			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5858			found="yes"
5859		fi
5860	fi
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876xorg_testset_save_CFLAGS="$CFLAGS"
5877
5878if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5879	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5880	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5881$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5882if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5883  $as_echo_n "(cached) " >&6
5884else
5885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5886/* end confdefs.h.  */
5887int i;
5888_ACEOF
5889if ac_fn_c_try_compile "$LINENO"; then :
5890  xorg_cv_cc_flag_unknown_warning_option=yes
5891else
5892  xorg_cv_cc_flag_unknown_warning_option=no
5893fi
5894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895fi
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5897$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5898	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5899	CFLAGS="$xorg_testset_save_CFLAGS"
5900fi
5901
5902if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5903	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5904		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5905	fi
5906	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5907	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5908$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5909if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5910  $as_echo_n "(cached) " >&6
5911else
5912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913/* end confdefs.h.  */
5914int i;
5915_ACEOF
5916if ac_fn_c_try_compile "$LINENO"; then :
5917  xorg_cv_cc_flag_unused_command_line_argument=yes
5918else
5919  xorg_cv_cc_flag_unused_command_line_argument=no
5920fi
5921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922fi
5923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5924$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5925	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5926	CFLAGS="$xorg_testset_save_CFLAGS"
5927fi
5928
5929found="no"
5930
5931	if test $found = "no" ; then
5932		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5933			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5934		fi
5935
5936		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5937			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5938		fi
5939
5940		CFLAGS="$CFLAGS -Wold-style-definition"
5941
5942		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5943$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5944		cacheid=xorg_cv_cc_flag__Wold_style_definition
5945		if eval \${$cacheid+:} false; then :
5946  $as_echo_n "(cached) " >&6
5947else
5948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949/* end confdefs.h.  */
5950int i;
5951int
5952main ()
5953{
5954
5955  ;
5956  return 0;
5957}
5958_ACEOF
5959if ac_fn_c_try_link "$LINENO"; then :
5960  eval $cacheid=yes
5961else
5962  eval $cacheid=no
5963fi
5964rm -f core conftest.err conftest.$ac_objext \
5965    conftest$ac_exeext conftest.$ac_ext
5966fi
5967
5968
5969		CFLAGS="$xorg_testset_save_CFLAGS"
5970
5971		eval supported=\$$cacheid
5972		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5973$as_echo "$supported" >&6; }
5974		if test "$supported" = "yes" ; then
5975			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5976			found="yes"
5977		fi
5978	fi
5979
5980	if test $found = "no" ; then
5981		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5982			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5983		fi
5984
5985		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5986			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5987		fi
5988
5989		CFLAGS="$CFLAGS -fd"
5990
5991		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5992$as_echo_n "checking if $CC supports -fd... " >&6; }
5993		cacheid=xorg_cv_cc_flag__fd
5994		if eval \${$cacheid+:} false; then :
5995  $as_echo_n "(cached) " >&6
5996else
5997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998/* end confdefs.h.  */
5999int i;
6000int
6001main ()
6002{
6003
6004  ;
6005  return 0;
6006}
6007_ACEOF
6008if ac_fn_c_try_link "$LINENO"; then :
6009  eval $cacheid=yes
6010else
6011  eval $cacheid=no
6012fi
6013rm -f core conftest.err conftest.$ac_objext \
6014    conftest$ac_exeext conftest.$ac_ext
6015fi
6016
6017
6018		CFLAGS="$xorg_testset_save_CFLAGS"
6019
6020		eval supported=\$$cacheid
6021		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6022$as_echo "$supported" >&6; }
6023		if test "$supported" = "yes" ; then
6024			BASE_CFLAGS="$BASE_CFLAGS -fd"
6025			found="yes"
6026		fi
6027	fi
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043xorg_testset_save_CFLAGS="$CFLAGS"
6044
6045if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6046	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6047	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6048$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6049if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6050  $as_echo_n "(cached) " >&6
6051else
6052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053/* end confdefs.h.  */
6054int i;
6055_ACEOF
6056if ac_fn_c_try_compile "$LINENO"; then :
6057  xorg_cv_cc_flag_unknown_warning_option=yes
6058else
6059  xorg_cv_cc_flag_unknown_warning_option=no
6060fi
6061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6062fi
6063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6064$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6065	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6066	CFLAGS="$xorg_testset_save_CFLAGS"
6067fi
6068
6069if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6070	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6071		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6072	fi
6073	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6074	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6075$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6076if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6077  $as_echo_n "(cached) " >&6
6078else
6079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080/* end confdefs.h.  */
6081int i;
6082_ACEOF
6083if ac_fn_c_try_compile "$LINENO"; then :
6084  xorg_cv_cc_flag_unused_command_line_argument=yes
6085else
6086  xorg_cv_cc_flag_unused_command_line_argument=no
6087fi
6088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6089fi
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6091$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6092	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6093	CFLAGS="$xorg_testset_save_CFLAGS"
6094fi
6095
6096found="no"
6097
6098	if test $found = "no" ; then
6099		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6100			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6101		fi
6102
6103		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6104			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6105		fi
6106
6107		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6108
6109		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6110$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6111		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6112		if eval \${$cacheid+:} false; then :
6113  $as_echo_n "(cached) " >&6
6114else
6115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116/* end confdefs.h.  */
6117int i;
6118int
6119main ()
6120{
6121
6122  ;
6123  return 0;
6124}
6125_ACEOF
6126if ac_fn_c_try_link "$LINENO"; then :
6127  eval $cacheid=yes
6128else
6129  eval $cacheid=no
6130fi
6131rm -f core conftest.err conftest.$ac_objext \
6132    conftest$ac_exeext conftest.$ac_ext
6133fi
6134
6135
6136		CFLAGS="$xorg_testset_save_CFLAGS"
6137
6138		eval supported=\$$cacheid
6139		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6140$as_echo "$supported" >&6; }
6141		if test "$supported" = "yes" ; then
6142			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6143			found="yes"
6144		fi
6145	fi
6146
6147
6148
6149
6150
6151# This chunk adds additional warnings that could catch undesired effects.
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165xorg_testset_save_CFLAGS="$CFLAGS"
6166
6167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6168	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6169	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6170$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6171if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6172  $as_echo_n "(cached) " >&6
6173else
6174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175/* end confdefs.h.  */
6176int i;
6177_ACEOF
6178if ac_fn_c_try_compile "$LINENO"; then :
6179  xorg_cv_cc_flag_unknown_warning_option=yes
6180else
6181  xorg_cv_cc_flag_unknown_warning_option=no
6182fi
6183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6184fi
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6186$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6187	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6188	CFLAGS="$xorg_testset_save_CFLAGS"
6189fi
6190
6191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6192	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6193		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6194	fi
6195	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6196	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6197$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6198if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6199  $as_echo_n "(cached) " >&6
6200else
6201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202/* end confdefs.h.  */
6203int i;
6204_ACEOF
6205if ac_fn_c_try_compile "$LINENO"; then :
6206  xorg_cv_cc_flag_unused_command_line_argument=yes
6207else
6208  xorg_cv_cc_flag_unused_command_line_argument=no
6209fi
6210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211fi
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6213$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6214	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6215	CFLAGS="$xorg_testset_save_CFLAGS"
6216fi
6217
6218found="no"
6219
6220	if test $found = "no" ; then
6221		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6222			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6223		fi
6224
6225		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6226			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6227		fi
6228
6229		CFLAGS="$CFLAGS -Wunused"
6230
6231		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6232$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6233		cacheid=xorg_cv_cc_flag__Wunused
6234		if eval \${$cacheid+:} false; then :
6235  $as_echo_n "(cached) " >&6
6236else
6237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238/* end confdefs.h.  */
6239int i;
6240int
6241main ()
6242{
6243
6244  ;
6245  return 0;
6246}
6247_ACEOF
6248if ac_fn_c_try_link "$LINENO"; then :
6249  eval $cacheid=yes
6250else
6251  eval $cacheid=no
6252fi
6253rm -f core conftest.err conftest.$ac_objext \
6254    conftest$ac_exeext conftest.$ac_ext
6255fi
6256
6257
6258		CFLAGS="$xorg_testset_save_CFLAGS"
6259
6260		eval supported=\$$cacheid
6261		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6262$as_echo "$supported" >&6; }
6263		if test "$supported" = "yes" ; then
6264			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6265			found="yes"
6266		fi
6267	fi
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283xorg_testset_save_CFLAGS="$CFLAGS"
6284
6285if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6286	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6287	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6288$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6289if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6290  $as_echo_n "(cached) " >&6
6291else
6292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6293/* end confdefs.h.  */
6294int i;
6295_ACEOF
6296if ac_fn_c_try_compile "$LINENO"; then :
6297  xorg_cv_cc_flag_unknown_warning_option=yes
6298else
6299  xorg_cv_cc_flag_unknown_warning_option=no
6300fi
6301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6302fi
6303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6304$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6305	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6306	CFLAGS="$xorg_testset_save_CFLAGS"
6307fi
6308
6309if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6310	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6311		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6312	fi
6313	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6314	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6315$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6316if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6317  $as_echo_n "(cached) " >&6
6318else
6319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320/* end confdefs.h.  */
6321int i;
6322_ACEOF
6323if ac_fn_c_try_compile "$LINENO"; then :
6324  xorg_cv_cc_flag_unused_command_line_argument=yes
6325else
6326  xorg_cv_cc_flag_unused_command_line_argument=no
6327fi
6328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329fi
6330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6331$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6332	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6333	CFLAGS="$xorg_testset_save_CFLAGS"
6334fi
6335
6336found="no"
6337
6338	if test $found = "no" ; then
6339		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6340			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6341		fi
6342
6343		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6344			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6345		fi
6346
6347		CFLAGS="$CFLAGS -Wuninitialized"
6348
6349		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6350$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6351		cacheid=xorg_cv_cc_flag__Wuninitialized
6352		if eval \${$cacheid+:} false; then :
6353  $as_echo_n "(cached) " >&6
6354else
6355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356/* end confdefs.h.  */
6357int i;
6358int
6359main ()
6360{
6361
6362  ;
6363  return 0;
6364}
6365_ACEOF
6366if ac_fn_c_try_link "$LINENO"; then :
6367  eval $cacheid=yes
6368else
6369  eval $cacheid=no
6370fi
6371rm -f core conftest.err conftest.$ac_objext \
6372    conftest$ac_exeext conftest.$ac_ext
6373fi
6374
6375
6376		CFLAGS="$xorg_testset_save_CFLAGS"
6377
6378		eval supported=\$$cacheid
6379		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6380$as_echo "$supported" >&6; }
6381		if test "$supported" = "yes" ; then
6382			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6383			found="yes"
6384		fi
6385	fi
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401xorg_testset_save_CFLAGS="$CFLAGS"
6402
6403if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6404	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6405	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6406$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6407if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6408  $as_echo_n "(cached) " >&6
6409else
6410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6411/* end confdefs.h.  */
6412int i;
6413_ACEOF
6414if ac_fn_c_try_compile "$LINENO"; then :
6415  xorg_cv_cc_flag_unknown_warning_option=yes
6416else
6417  xorg_cv_cc_flag_unknown_warning_option=no
6418fi
6419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6420fi
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6422$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6423	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6424	CFLAGS="$xorg_testset_save_CFLAGS"
6425fi
6426
6427if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6428	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6429		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6430	fi
6431	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6432	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6433$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6434if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6435  $as_echo_n "(cached) " >&6
6436else
6437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438/* end confdefs.h.  */
6439int i;
6440_ACEOF
6441if ac_fn_c_try_compile "$LINENO"; then :
6442  xorg_cv_cc_flag_unused_command_line_argument=yes
6443else
6444  xorg_cv_cc_flag_unused_command_line_argument=no
6445fi
6446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447fi
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6449$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6450	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6451	CFLAGS="$xorg_testset_save_CFLAGS"
6452fi
6453
6454found="no"
6455
6456	if test $found = "no" ; then
6457		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6458			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6459		fi
6460
6461		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6462			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6463		fi
6464
6465		CFLAGS="$CFLAGS -Wshadow"
6466
6467		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6468$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6469		cacheid=xorg_cv_cc_flag__Wshadow
6470		if eval \${$cacheid+:} false; then :
6471  $as_echo_n "(cached) " >&6
6472else
6473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474/* end confdefs.h.  */
6475int i;
6476int
6477main ()
6478{
6479
6480  ;
6481  return 0;
6482}
6483_ACEOF
6484if ac_fn_c_try_link "$LINENO"; then :
6485  eval $cacheid=yes
6486else
6487  eval $cacheid=no
6488fi
6489rm -f core conftest.err conftest.$ac_objext \
6490    conftest$ac_exeext conftest.$ac_ext
6491fi
6492
6493
6494		CFLAGS="$xorg_testset_save_CFLAGS"
6495
6496		eval supported=\$$cacheid
6497		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6498$as_echo "$supported" >&6; }
6499		if test "$supported" = "yes" ; then
6500			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6501			found="yes"
6502		fi
6503	fi
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519xorg_testset_save_CFLAGS="$CFLAGS"
6520
6521if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6522	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6523	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6524$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6525if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6526  $as_echo_n "(cached) " >&6
6527else
6528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529/* end confdefs.h.  */
6530int i;
6531_ACEOF
6532if ac_fn_c_try_compile "$LINENO"; then :
6533  xorg_cv_cc_flag_unknown_warning_option=yes
6534else
6535  xorg_cv_cc_flag_unknown_warning_option=no
6536fi
6537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538fi
6539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6540$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6541	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6542	CFLAGS="$xorg_testset_save_CFLAGS"
6543fi
6544
6545if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6546	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6547		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6548	fi
6549	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6550	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6551$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6552if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6553  $as_echo_n "(cached) " >&6
6554else
6555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6556/* end confdefs.h.  */
6557int i;
6558_ACEOF
6559if ac_fn_c_try_compile "$LINENO"; then :
6560  xorg_cv_cc_flag_unused_command_line_argument=yes
6561else
6562  xorg_cv_cc_flag_unused_command_line_argument=no
6563fi
6564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6565fi
6566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6567$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6568	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6569	CFLAGS="$xorg_testset_save_CFLAGS"
6570fi
6571
6572found="no"
6573
6574	if test $found = "no" ; then
6575		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6576			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6577		fi
6578
6579		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6580			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6581		fi
6582
6583		CFLAGS="$CFLAGS -Wmissing-noreturn"
6584
6585		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6586$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6587		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6588		if eval \${$cacheid+:} false; then :
6589  $as_echo_n "(cached) " >&6
6590else
6591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592/* end confdefs.h.  */
6593int i;
6594int
6595main ()
6596{
6597
6598  ;
6599  return 0;
6600}
6601_ACEOF
6602if ac_fn_c_try_link "$LINENO"; then :
6603  eval $cacheid=yes
6604else
6605  eval $cacheid=no
6606fi
6607rm -f core conftest.err conftest.$ac_objext \
6608    conftest$ac_exeext conftest.$ac_ext
6609fi
6610
6611
6612		CFLAGS="$xorg_testset_save_CFLAGS"
6613
6614		eval supported=\$$cacheid
6615		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6616$as_echo "$supported" >&6; }
6617		if test "$supported" = "yes" ; then
6618			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6619			found="yes"
6620		fi
6621	fi
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637xorg_testset_save_CFLAGS="$CFLAGS"
6638
6639if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6640	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6641	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6642$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6643if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6644  $as_echo_n "(cached) " >&6
6645else
6646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647/* end confdefs.h.  */
6648int i;
6649_ACEOF
6650if ac_fn_c_try_compile "$LINENO"; then :
6651  xorg_cv_cc_flag_unknown_warning_option=yes
6652else
6653  xorg_cv_cc_flag_unknown_warning_option=no
6654fi
6655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6656fi
6657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6658$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6659	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6660	CFLAGS="$xorg_testset_save_CFLAGS"
6661fi
6662
6663if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6664	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6665		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6666	fi
6667	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6668	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6669$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6670if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6671  $as_echo_n "(cached) " >&6
6672else
6673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674/* end confdefs.h.  */
6675int i;
6676_ACEOF
6677if ac_fn_c_try_compile "$LINENO"; then :
6678  xorg_cv_cc_flag_unused_command_line_argument=yes
6679else
6680  xorg_cv_cc_flag_unused_command_line_argument=no
6681fi
6682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6683fi
6684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6685$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6686	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6687	CFLAGS="$xorg_testset_save_CFLAGS"
6688fi
6689
6690found="no"
6691
6692	if test $found = "no" ; then
6693		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6694			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6695		fi
6696
6697		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6698			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6699		fi
6700
6701		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6702
6703		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6704$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6705		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6706		if eval \${$cacheid+:} false; then :
6707  $as_echo_n "(cached) " >&6
6708else
6709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710/* end confdefs.h.  */
6711int i;
6712int
6713main ()
6714{
6715
6716  ;
6717  return 0;
6718}
6719_ACEOF
6720if ac_fn_c_try_link "$LINENO"; then :
6721  eval $cacheid=yes
6722else
6723  eval $cacheid=no
6724fi
6725rm -f core conftest.err conftest.$ac_objext \
6726    conftest$ac_exeext conftest.$ac_ext
6727fi
6728
6729
6730		CFLAGS="$xorg_testset_save_CFLAGS"
6731
6732		eval supported=\$$cacheid
6733		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6734$as_echo "$supported" >&6; }
6735		if test "$supported" = "yes" ; then
6736			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6737			found="yes"
6738		fi
6739	fi
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755xorg_testset_save_CFLAGS="$CFLAGS"
6756
6757if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6758	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6759	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6760$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6761if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6762  $as_echo_n "(cached) " >&6
6763else
6764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6765/* end confdefs.h.  */
6766int i;
6767_ACEOF
6768if ac_fn_c_try_compile "$LINENO"; then :
6769  xorg_cv_cc_flag_unknown_warning_option=yes
6770else
6771  xorg_cv_cc_flag_unknown_warning_option=no
6772fi
6773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6774fi
6775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6776$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6777	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6778	CFLAGS="$xorg_testset_save_CFLAGS"
6779fi
6780
6781if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6782	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6783		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6784	fi
6785	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6786	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6787$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6788if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6789  $as_echo_n "(cached) " >&6
6790else
6791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792/* end confdefs.h.  */
6793int i;
6794_ACEOF
6795if ac_fn_c_try_compile "$LINENO"; then :
6796  xorg_cv_cc_flag_unused_command_line_argument=yes
6797else
6798  xorg_cv_cc_flag_unused_command_line_argument=no
6799fi
6800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6801fi
6802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6803$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6804	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6805	CFLAGS="$xorg_testset_save_CFLAGS"
6806fi
6807
6808found="no"
6809
6810	if test $found = "no" ; then
6811		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6812			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6813		fi
6814
6815		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6816			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6817		fi
6818
6819		CFLAGS="$CFLAGS -Wredundant-decls"
6820
6821		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6822$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6823		cacheid=xorg_cv_cc_flag__Wredundant_decls
6824		if eval \${$cacheid+:} false; then :
6825  $as_echo_n "(cached) " >&6
6826else
6827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6828/* end confdefs.h.  */
6829int i;
6830int
6831main ()
6832{
6833
6834  ;
6835  return 0;
6836}
6837_ACEOF
6838if ac_fn_c_try_link "$LINENO"; then :
6839  eval $cacheid=yes
6840else
6841  eval $cacheid=no
6842fi
6843rm -f core conftest.err conftest.$ac_objext \
6844    conftest$ac_exeext conftest.$ac_ext
6845fi
6846
6847
6848		CFLAGS="$xorg_testset_save_CFLAGS"
6849
6850		eval supported=\$$cacheid
6851		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6852$as_echo "$supported" >&6; }
6853		if test "$supported" = "yes" ; then
6854			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6855			found="yes"
6856		fi
6857	fi
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873xorg_testset_save_CFLAGS="$CFLAGS"
6874
6875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6876	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6877	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6878$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6879if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6880  $as_echo_n "(cached) " >&6
6881else
6882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883/* end confdefs.h.  */
6884int i;
6885_ACEOF
6886if ac_fn_c_try_compile "$LINENO"; then :
6887  xorg_cv_cc_flag_unknown_warning_option=yes
6888else
6889  xorg_cv_cc_flag_unknown_warning_option=no
6890fi
6891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6892fi
6893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6894$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6895	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6896	CFLAGS="$xorg_testset_save_CFLAGS"
6897fi
6898
6899if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6900	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6901		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6902	fi
6903	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6904	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6905$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6906if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6907  $as_echo_n "(cached) " >&6
6908else
6909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910/* end confdefs.h.  */
6911int i;
6912_ACEOF
6913if ac_fn_c_try_compile "$LINENO"; then :
6914  xorg_cv_cc_flag_unused_command_line_argument=yes
6915else
6916  xorg_cv_cc_flag_unused_command_line_argument=no
6917fi
6918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6919fi
6920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6921$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6922	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6923	CFLAGS="$xorg_testset_save_CFLAGS"
6924fi
6925
6926found="no"
6927
6928	if test $found = "no" ; then
6929		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6930			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6931		fi
6932
6933		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6934			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6935		fi
6936
6937		CFLAGS="$CFLAGS -Wlogical-op"
6938
6939		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6940$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6941		cacheid=xorg_cv_cc_flag__Wlogical_op
6942		if eval \${$cacheid+:} false; then :
6943  $as_echo_n "(cached) " >&6
6944else
6945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946/* end confdefs.h.  */
6947int i;
6948int
6949main ()
6950{
6951
6952  ;
6953  return 0;
6954}
6955_ACEOF
6956if ac_fn_c_try_link "$LINENO"; then :
6957  eval $cacheid=yes
6958else
6959  eval $cacheid=no
6960fi
6961rm -f core conftest.err conftest.$ac_objext \
6962    conftest$ac_exeext conftest.$ac_ext
6963fi
6964
6965
6966		CFLAGS="$xorg_testset_save_CFLAGS"
6967
6968		eval supported=\$$cacheid
6969		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6970$as_echo "$supported" >&6; }
6971		if test "$supported" = "yes" ; then
6972			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6973			found="yes"
6974		fi
6975	fi
6976
6977
6978
6979# These are currently disabled because they are noisy.  They will be enabled
6980# in the future once the codebase is sufficiently modernized to silence
6981# them.  For now, I don't want them to drown out the other warnings.
6982# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6983# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6984# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6985
6986# Turn some warnings into errors, so we don't accidently get successful builds
6987# when there are problems that should be fixed.
6988
6989if test "x$SELECTIVE_WERROR" = "xyes" ; then
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003xorg_testset_save_CFLAGS="$CFLAGS"
7004
7005if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7006	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7007	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7008$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7009if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7010  $as_echo_n "(cached) " >&6
7011else
7012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013/* end confdefs.h.  */
7014int i;
7015_ACEOF
7016if ac_fn_c_try_compile "$LINENO"; then :
7017  xorg_cv_cc_flag_unknown_warning_option=yes
7018else
7019  xorg_cv_cc_flag_unknown_warning_option=no
7020fi
7021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7022fi
7023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7024$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7025	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7026	CFLAGS="$xorg_testset_save_CFLAGS"
7027fi
7028
7029if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7030	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7031		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7032	fi
7033	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7034	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7035$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7036if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7037  $as_echo_n "(cached) " >&6
7038else
7039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040/* end confdefs.h.  */
7041int i;
7042_ACEOF
7043if ac_fn_c_try_compile "$LINENO"; then :
7044  xorg_cv_cc_flag_unused_command_line_argument=yes
7045else
7046  xorg_cv_cc_flag_unused_command_line_argument=no
7047fi
7048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049fi
7050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7051$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7052	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7053	CFLAGS="$xorg_testset_save_CFLAGS"
7054fi
7055
7056found="no"
7057
7058	if test $found = "no" ; then
7059		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7060			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7061		fi
7062
7063		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7064			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7065		fi
7066
7067		CFLAGS="$CFLAGS -Werror=implicit"
7068
7069		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7070$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7071		cacheid=xorg_cv_cc_flag__Werror_implicit
7072		if eval \${$cacheid+:} false; then :
7073  $as_echo_n "(cached) " >&6
7074else
7075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7076/* end confdefs.h.  */
7077int i;
7078int
7079main ()
7080{
7081
7082  ;
7083  return 0;
7084}
7085_ACEOF
7086if ac_fn_c_try_link "$LINENO"; then :
7087  eval $cacheid=yes
7088else
7089  eval $cacheid=no
7090fi
7091rm -f core conftest.err conftest.$ac_objext \
7092    conftest$ac_exeext conftest.$ac_ext
7093fi
7094
7095
7096		CFLAGS="$xorg_testset_save_CFLAGS"
7097
7098		eval supported=\$$cacheid
7099		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7100$as_echo "$supported" >&6; }
7101		if test "$supported" = "yes" ; then
7102			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7103			found="yes"
7104		fi
7105	fi
7106
7107	if test $found = "no" ; then
7108		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7109			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7110		fi
7111
7112		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7113			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7114		fi
7115
7116		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7117
7118		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7119$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7120		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7121		if eval \${$cacheid+:} false; then :
7122  $as_echo_n "(cached) " >&6
7123else
7124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125/* end confdefs.h.  */
7126int i;
7127int
7128main ()
7129{
7130
7131  ;
7132  return 0;
7133}
7134_ACEOF
7135if ac_fn_c_try_link "$LINENO"; then :
7136  eval $cacheid=yes
7137else
7138  eval $cacheid=no
7139fi
7140rm -f core conftest.err conftest.$ac_objext \
7141    conftest$ac_exeext conftest.$ac_ext
7142fi
7143
7144
7145		CFLAGS="$xorg_testset_save_CFLAGS"
7146
7147		eval supported=\$$cacheid
7148		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7149$as_echo "$supported" >&6; }
7150		if test "$supported" = "yes" ; then
7151			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7152			found="yes"
7153		fi
7154	fi
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170xorg_testset_save_CFLAGS="$CFLAGS"
7171
7172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7173	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7174	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7175$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7176if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7177  $as_echo_n "(cached) " >&6
7178else
7179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180/* end confdefs.h.  */
7181int i;
7182_ACEOF
7183if ac_fn_c_try_compile "$LINENO"; then :
7184  xorg_cv_cc_flag_unknown_warning_option=yes
7185else
7186  xorg_cv_cc_flag_unknown_warning_option=no
7187fi
7188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7189fi
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7191$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7192	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7193	CFLAGS="$xorg_testset_save_CFLAGS"
7194fi
7195
7196if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7197	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7198		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7199	fi
7200	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7201	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7202$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7203if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7204  $as_echo_n "(cached) " >&6
7205else
7206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207/* end confdefs.h.  */
7208int i;
7209_ACEOF
7210if ac_fn_c_try_compile "$LINENO"; then :
7211  xorg_cv_cc_flag_unused_command_line_argument=yes
7212else
7213  xorg_cv_cc_flag_unused_command_line_argument=no
7214fi
7215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7216fi
7217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7218$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7219	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7220	CFLAGS="$xorg_testset_save_CFLAGS"
7221fi
7222
7223found="no"
7224
7225	if test $found = "no" ; then
7226		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7227			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7228		fi
7229
7230		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7231			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7232		fi
7233
7234		CFLAGS="$CFLAGS -Werror=nonnull"
7235
7236		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7237$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7238		cacheid=xorg_cv_cc_flag__Werror_nonnull
7239		if eval \${$cacheid+:} false; then :
7240  $as_echo_n "(cached) " >&6
7241else
7242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243/* end confdefs.h.  */
7244int i;
7245int
7246main ()
7247{
7248
7249  ;
7250  return 0;
7251}
7252_ACEOF
7253if ac_fn_c_try_link "$LINENO"; then :
7254  eval $cacheid=yes
7255else
7256  eval $cacheid=no
7257fi
7258rm -f core conftest.err conftest.$ac_objext \
7259    conftest$ac_exeext conftest.$ac_ext
7260fi
7261
7262
7263		CFLAGS="$xorg_testset_save_CFLAGS"
7264
7265		eval supported=\$$cacheid
7266		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7267$as_echo "$supported" >&6; }
7268		if test "$supported" = "yes" ; then
7269			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7270			found="yes"
7271		fi
7272	fi
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288xorg_testset_save_CFLAGS="$CFLAGS"
7289
7290if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7291	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7292	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7293$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7294if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7295  $as_echo_n "(cached) " >&6
7296else
7297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298/* end confdefs.h.  */
7299int i;
7300_ACEOF
7301if ac_fn_c_try_compile "$LINENO"; then :
7302  xorg_cv_cc_flag_unknown_warning_option=yes
7303else
7304  xorg_cv_cc_flag_unknown_warning_option=no
7305fi
7306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307fi
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7309$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7310	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7311	CFLAGS="$xorg_testset_save_CFLAGS"
7312fi
7313
7314if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7315	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7316		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7317	fi
7318	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7319	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7320$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7321if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7322  $as_echo_n "(cached) " >&6
7323else
7324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325/* end confdefs.h.  */
7326int i;
7327_ACEOF
7328if ac_fn_c_try_compile "$LINENO"; then :
7329  xorg_cv_cc_flag_unused_command_line_argument=yes
7330else
7331  xorg_cv_cc_flag_unused_command_line_argument=no
7332fi
7333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7334fi
7335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7336$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7337	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7338	CFLAGS="$xorg_testset_save_CFLAGS"
7339fi
7340
7341found="no"
7342
7343	if test $found = "no" ; then
7344		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7345			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7346		fi
7347
7348		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7349			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7350		fi
7351
7352		CFLAGS="$CFLAGS -Werror=init-self"
7353
7354		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7355$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7356		cacheid=xorg_cv_cc_flag__Werror_init_self
7357		if eval \${$cacheid+:} false; then :
7358  $as_echo_n "(cached) " >&6
7359else
7360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361/* end confdefs.h.  */
7362int i;
7363int
7364main ()
7365{
7366
7367  ;
7368  return 0;
7369}
7370_ACEOF
7371if ac_fn_c_try_link "$LINENO"; then :
7372  eval $cacheid=yes
7373else
7374  eval $cacheid=no
7375fi
7376rm -f core conftest.err conftest.$ac_objext \
7377    conftest$ac_exeext conftest.$ac_ext
7378fi
7379
7380
7381		CFLAGS="$xorg_testset_save_CFLAGS"
7382
7383		eval supported=\$$cacheid
7384		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7385$as_echo "$supported" >&6; }
7386		if test "$supported" = "yes" ; then
7387			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7388			found="yes"
7389		fi
7390	fi
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406xorg_testset_save_CFLAGS="$CFLAGS"
7407
7408if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7409	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7410	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7411$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7412if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7413  $as_echo_n "(cached) " >&6
7414else
7415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416/* end confdefs.h.  */
7417int i;
7418_ACEOF
7419if ac_fn_c_try_compile "$LINENO"; then :
7420  xorg_cv_cc_flag_unknown_warning_option=yes
7421else
7422  xorg_cv_cc_flag_unknown_warning_option=no
7423fi
7424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7425fi
7426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7427$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7428	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7429	CFLAGS="$xorg_testset_save_CFLAGS"
7430fi
7431
7432if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7433	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7434		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7435	fi
7436	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7437	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7438$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7439if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7440  $as_echo_n "(cached) " >&6
7441else
7442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443/* end confdefs.h.  */
7444int i;
7445_ACEOF
7446if ac_fn_c_try_compile "$LINENO"; then :
7447  xorg_cv_cc_flag_unused_command_line_argument=yes
7448else
7449  xorg_cv_cc_flag_unused_command_line_argument=no
7450fi
7451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7452fi
7453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7454$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7455	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7456	CFLAGS="$xorg_testset_save_CFLAGS"
7457fi
7458
7459found="no"
7460
7461	if test $found = "no" ; then
7462		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7463			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7464		fi
7465
7466		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7467			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7468		fi
7469
7470		CFLAGS="$CFLAGS -Werror=main"
7471
7472		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7473$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7474		cacheid=xorg_cv_cc_flag__Werror_main
7475		if eval \${$cacheid+:} false; then :
7476  $as_echo_n "(cached) " >&6
7477else
7478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479/* end confdefs.h.  */
7480int i;
7481int
7482main ()
7483{
7484
7485  ;
7486  return 0;
7487}
7488_ACEOF
7489if ac_fn_c_try_link "$LINENO"; then :
7490  eval $cacheid=yes
7491else
7492  eval $cacheid=no
7493fi
7494rm -f core conftest.err conftest.$ac_objext \
7495    conftest$ac_exeext conftest.$ac_ext
7496fi
7497
7498
7499		CFLAGS="$xorg_testset_save_CFLAGS"
7500
7501		eval supported=\$$cacheid
7502		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7503$as_echo "$supported" >&6; }
7504		if test "$supported" = "yes" ; then
7505			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7506			found="yes"
7507		fi
7508	fi
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524xorg_testset_save_CFLAGS="$CFLAGS"
7525
7526if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7527	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7528	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7529$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7530if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7531  $as_echo_n "(cached) " >&6
7532else
7533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534/* end confdefs.h.  */
7535int i;
7536_ACEOF
7537if ac_fn_c_try_compile "$LINENO"; then :
7538  xorg_cv_cc_flag_unknown_warning_option=yes
7539else
7540  xorg_cv_cc_flag_unknown_warning_option=no
7541fi
7542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7543fi
7544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7545$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7546	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7547	CFLAGS="$xorg_testset_save_CFLAGS"
7548fi
7549
7550if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7551	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7552		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7553	fi
7554	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7555	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7556$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7557if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7558  $as_echo_n "(cached) " >&6
7559else
7560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561/* end confdefs.h.  */
7562int i;
7563_ACEOF
7564if ac_fn_c_try_compile "$LINENO"; then :
7565  xorg_cv_cc_flag_unused_command_line_argument=yes
7566else
7567  xorg_cv_cc_flag_unused_command_line_argument=no
7568fi
7569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7570fi
7571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7572$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7573	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7574	CFLAGS="$xorg_testset_save_CFLAGS"
7575fi
7576
7577found="no"
7578
7579	if test $found = "no" ; then
7580		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7581			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7582		fi
7583
7584		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7585			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7586		fi
7587
7588		CFLAGS="$CFLAGS -Werror=missing-braces"
7589
7590		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7591$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7592		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7593		if eval \${$cacheid+:} false; then :
7594  $as_echo_n "(cached) " >&6
7595else
7596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597/* end confdefs.h.  */
7598int i;
7599int
7600main ()
7601{
7602
7603  ;
7604  return 0;
7605}
7606_ACEOF
7607if ac_fn_c_try_link "$LINENO"; then :
7608  eval $cacheid=yes
7609else
7610  eval $cacheid=no
7611fi
7612rm -f core conftest.err conftest.$ac_objext \
7613    conftest$ac_exeext conftest.$ac_ext
7614fi
7615
7616
7617		CFLAGS="$xorg_testset_save_CFLAGS"
7618
7619		eval supported=\$$cacheid
7620		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7621$as_echo "$supported" >&6; }
7622		if test "$supported" = "yes" ; then
7623			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7624			found="yes"
7625		fi
7626	fi
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642xorg_testset_save_CFLAGS="$CFLAGS"
7643
7644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7645	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7646	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7647$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7648if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7649  $as_echo_n "(cached) " >&6
7650else
7651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652/* end confdefs.h.  */
7653int i;
7654_ACEOF
7655if ac_fn_c_try_compile "$LINENO"; then :
7656  xorg_cv_cc_flag_unknown_warning_option=yes
7657else
7658  xorg_cv_cc_flag_unknown_warning_option=no
7659fi
7660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7661fi
7662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7663$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7664	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7665	CFLAGS="$xorg_testset_save_CFLAGS"
7666fi
7667
7668if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7669	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7670		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7671	fi
7672	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7673	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7674$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7675if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7676  $as_echo_n "(cached) " >&6
7677else
7678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679/* end confdefs.h.  */
7680int i;
7681_ACEOF
7682if ac_fn_c_try_compile "$LINENO"; then :
7683  xorg_cv_cc_flag_unused_command_line_argument=yes
7684else
7685  xorg_cv_cc_flag_unused_command_line_argument=no
7686fi
7687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7688fi
7689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7690$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7691	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7692	CFLAGS="$xorg_testset_save_CFLAGS"
7693fi
7694
7695found="no"
7696
7697	if test $found = "no" ; then
7698		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7699			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7700		fi
7701
7702		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7703			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7704		fi
7705
7706		CFLAGS="$CFLAGS -Werror=sequence-point"
7707
7708		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7709$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7710		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7711		if eval \${$cacheid+:} false; then :
7712  $as_echo_n "(cached) " >&6
7713else
7714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715/* end confdefs.h.  */
7716int i;
7717int
7718main ()
7719{
7720
7721  ;
7722  return 0;
7723}
7724_ACEOF
7725if ac_fn_c_try_link "$LINENO"; then :
7726  eval $cacheid=yes
7727else
7728  eval $cacheid=no
7729fi
7730rm -f core conftest.err conftest.$ac_objext \
7731    conftest$ac_exeext conftest.$ac_ext
7732fi
7733
7734
7735		CFLAGS="$xorg_testset_save_CFLAGS"
7736
7737		eval supported=\$$cacheid
7738		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7739$as_echo "$supported" >&6; }
7740		if test "$supported" = "yes" ; then
7741			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7742			found="yes"
7743		fi
7744	fi
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760xorg_testset_save_CFLAGS="$CFLAGS"
7761
7762if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7763	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7764	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7765$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7766if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7767  $as_echo_n "(cached) " >&6
7768else
7769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7770/* end confdefs.h.  */
7771int i;
7772_ACEOF
7773if ac_fn_c_try_compile "$LINENO"; then :
7774  xorg_cv_cc_flag_unknown_warning_option=yes
7775else
7776  xorg_cv_cc_flag_unknown_warning_option=no
7777fi
7778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779fi
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7781$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7782	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7783	CFLAGS="$xorg_testset_save_CFLAGS"
7784fi
7785
7786if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7787	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7788		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7789	fi
7790	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7791	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7792$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7793if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7794  $as_echo_n "(cached) " >&6
7795else
7796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797/* end confdefs.h.  */
7798int i;
7799_ACEOF
7800if ac_fn_c_try_compile "$LINENO"; then :
7801  xorg_cv_cc_flag_unused_command_line_argument=yes
7802else
7803  xorg_cv_cc_flag_unused_command_line_argument=no
7804fi
7805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7806fi
7807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7808$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7809	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7810	CFLAGS="$xorg_testset_save_CFLAGS"
7811fi
7812
7813found="no"
7814
7815	if test $found = "no" ; then
7816		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7817			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7818		fi
7819
7820		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7821			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7822		fi
7823
7824		CFLAGS="$CFLAGS -Werror=return-type"
7825
7826		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7827$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7828		cacheid=xorg_cv_cc_flag__Werror_return_type
7829		if eval \${$cacheid+:} false; then :
7830  $as_echo_n "(cached) " >&6
7831else
7832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833/* end confdefs.h.  */
7834int i;
7835int
7836main ()
7837{
7838
7839  ;
7840  return 0;
7841}
7842_ACEOF
7843if ac_fn_c_try_link "$LINENO"; then :
7844  eval $cacheid=yes
7845else
7846  eval $cacheid=no
7847fi
7848rm -f core conftest.err conftest.$ac_objext \
7849    conftest$ac_exeext conftest.$ac_ext
7850fi
7851
7852
7853		CFLAGS="$xorg_testset_save_CFLAGS"
7854
7855		eval supported=\$$cacheid
7856		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7857$as_echo "$supported" >&6; }
7858		if test "$supported" = "yes" ; then
7859			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7860			found="yes"
7861		fi
7862	fi
7863
7864	if test $found = "no" ; then
7865		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7866			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7867		fi
7868
7869		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7870			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7871		fi
7872
7873		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7874
7875		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7876$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7877		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7878		if eval \${$cacheid+:} false; then :
7879  $as_echo_n "(cached) " >&6
7880else
7881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882/* end confdefs.h.  */
7883int i;
7884int
7885main ()
7886{
7887
7888  ;
7889  return 0;
7890}
7891_ACEOF
7892if ac_fn_c_try_link "$LINENO"; then :
7893  eval $cacheid=yes
7894else
7895  eval $cacheid=no
7896fi
7897rm -f core conftest.err conftest.$ac_objext \
7898    conftest$ac_exeext conftest.$ac_ext
7899fi
7900
7901
7902		CFLAGS="$xorg_testset_save_CFLAGS"
7903
7904		eval supported=\$$cacheid
7905		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7906$as_echo "$supported" >&6; }
7907		if test "$supported" = "yes" ; then
7908			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7909			found="yes"
7910		fi
7911	fi
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927xorg_testset_save_CFLAGS="$CFLAGS"
7928
7929if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7930	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7931	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7932$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7933if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7934  $as_echo_n "(cached) " >&6
7935else
7936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937/* end confdefs.h.  */
7938int i;
7939_ACEOF
7940if ac_fn_c_try_compile "$LINENO"; then :
7941  xorg_cv_cc_flag_unknown_warning_option=yes
7942else
7943  xorg_cv_cc_flag_unknown_warning_option=no
7944fi
7945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7946fi
7947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7948$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7949	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7950	CFLAGS="$xorg_testset_save_CFLAGS"
7951fi
7952
7953if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7954	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7955		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7956	fi
7957	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7958	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7959$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7960if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7961  $as_echo_n "(cached) " >&6
7962else
7963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964/* end confdefs.h.  */
7965int i;
7966_ACEOF
7967if ac_fn_c_try_compile "$LINENO"; then :
7968  xorg_cv_cc_flag_unused_command_line_argument=yes
7969else
7970  xorg_cv_cc_flag_unused_command_line_argument=no
7971fi
7972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7973fi
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7975$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7976	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7977	CFLAGS="$xorg_testset_save_CFLAGS"
7978fi
7979
7980found="no"
7981
7982	if test $found = "no" ; then
7983		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7984			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7985		fi
7986
7987		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7988			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7989		fi
7990
7991		CFLAGS="$CFLAGS -Werror=trigraphs"
7992
7993		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7994$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7995		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7996		if eval \${$cacheid+:} false; then :
7997  $as_echo_n "(cached) " >&6
7998else
7999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000/* end confdefs.h.  */
8001int i;
8002int
8003main ()
8004{
8005
8006  ;
8007  return 0;
8008}
8009_ACEOF
8010if ac_fn_c_try_link "$LINENO"; then :
8011  eval $cacheid=yes
8012else
8013  eval $cacheid=no
8014fi
8015rm -f core conftest.err conftest.$ac_objext \
8016    conftest$ac_exeext conftest.$ac_ext
8017fi
8018
8019
8020		CFLAGS="$xorg_testset_save_CFLAGS"
8021
8022		eval supported=\$$cacheid
8023		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8024$as_echo "$supported" >&6; }
8025		if test "$supported" = "yes" ; then
8026			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8027			found="yes"
8028		fi
8029	fi
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045xorg_testset_save_CFLAGS="$CFLAGS"
8046
8047if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8048	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8049	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8050$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8051if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8052  $as_echo_n "(cached) " >&6
8053else
8054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8055/* end confdefs.h.  */
8056int i;
8057_ACEOF
8058if ac_fn_c_try_compile "$LINENO"; then :
8059  xorg_cv_cc_flag_unknown_warning_option=yes
8060else
8061  xorg_cv_cc_flag_unknown_warning_option=no
8062fi
8063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8064fi
8065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8066$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8067	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8068	CFLAGS="$xorg_testset_save_CFLAGS"
8069fi
8070
8071if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8072	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8073		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8074	fi
8075	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8076	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8077$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8078if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8079  $as_echo_n "(cached) " >&6
8080else
8081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082/* end confdefs.h.  */
8083int i;
8084_ACEOF
8085if ac_fn_c_try_compile "$LINENO"; then :
8086  xorg_cv_cc_flag_unused_command_line_argument=yes
8087else
8088  xorg_cv_cc_flag_unused_command_line_argument=no
8089fi
8090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8091fi
8092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8093$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8094	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8095	CFLAGS="$xorg_testset_save_CFLAGS"
8096fi
8097
8098found="no"
8099
8100	if test $found = "no" ; then
8101		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8102			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8103		fi
8104
8105		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8106			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8107		fi
8108
8109		CFLAGS="$CFLAGS -Werror=array-bounds"
8110
8111		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8112$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8113		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8114		if eval \${$cacheid+:} false; then :
8115  $as_echo_n "(cached) " >&6
8116else
8117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118/* end confdefs.h.  */
8119int i;
8120int
8121main ()
8122{
8123
8124  ;
8125  return 0;
8126}
8127_ACEOF
8128if ac_fn_c_try_link "$LINENO"; then :
8129  eval $cacheid=yes
8130else
8131  eval $cacheid=no
8132fi
8133rm -f core conftest.err conftest.$ac_objext \
8134    conftest$ac_exeext conftest.$ac_ext
8135fi
8136
8137
8138		CFLAGS="$xorg_testset_save_CFLAGS"
8139
8140		eval supported=\$$cacheid
8141		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8142$as_echo "$supported" >&6; }
8143		if test "$supported" = "yes" ; then
8144			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8145			found="yes"
8146		fi
8147	fi
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163xorg_testset_save_CFLAGS="$CFLAGS"
8164
8165if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8166	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8167	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8168$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8169if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8170  $as_echo_n "(cached) " >&6
8171else
8172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8173/* end confdefs.h.  */
8174int i;
8175_ACEOF
8176if ac_fn_c_try_compile "$LINENO"; then :
8177  xorg_cv_cc_flag_unknown_warning_option=yes
8178else
8179  xorg_cv_cc_flag_unknown_warning_option=no
8180fi
8181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8182fi
8183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8184$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8185	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8186	CFLAGS="$xorg_testset_save_CFLAGS"
8187fi
8188
8189if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8190	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8191		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8192	fi
8193	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8194	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8195$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8196if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8197  $as_echo_n "(cached) " >&6
8198else
8199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200/* end confdefs.h.  */
8201int i;
8202_ACEOF
8203if ac_fn_c_try_compile "$LINENO"; then :
8204  xorg_cv_cc_flag_unused_command_line_argument=yes
8205else
8206  xorg_cv_cc_flag_unused_command_line_argument=no
8207fi
8208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8209fi
8210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8211$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8212	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8213	CFLAGS="$xorg_testset_save_CFLAGS"
8214fi
8215
8216found="no"
8217
8218	if test $found = "no" ; then
8219		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8220			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8221		fi
8222
8223		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8224			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8225		fi
8226
8227		CFLAGS="$CFLAGS -Werror=write-strings"
8228
8229		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8230$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8231		cacheid=xorg_cv_cc_flag__Werror_write_strings
8232		if eval \${$cacheid+:} false; then :
8233  $as_echo_n "(cached) " >&6
8234else
8235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236/* end confdefs.h.  */
8237int i;
8238int
8239main ()
8240{
8241
8242  ;
8243  return 0;
8244}
8245_ACEOF
8246if ac_fn_c_try_link "$LINENO"; then :
8247  eval $cacheid=yes
8248else
8249  eval $cacheid=no
8250fi
8251rm -f core conftest.err conftest.$ac_objext \
8252    conftest$ac_exeext conftest.$ac_ext
8253fi
8254
8255
8256		CFLAGS="$xorg_testset_save_CFLAGS"
8257
8258		eval supported=\$$cacheid
8259		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8260$as_echo "$supported" >&6; }
8261		if test "$supported" = "yes" ; then
8262			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8263			found="yes"
8264		fi
8265	fi
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281xorg_testset_save_CFLAGS="$CFLAGS"
8282
8283if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8284	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8285	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8286$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8287if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8288  $as_echo_n "(cached) " >&6
8289else
8290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291/* end confdefs.h.  */
8292int i;
8293_ACEOF
8294if ac_fn_c_try_compile "$LINENO"; then :
8295  xorg_cv_cc_flag_unknown_warning_option=yes
8296else
8297  xorg_cv_cc_flag_unknown_warning_option=no
8298fi
8299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8300fi
8301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8302$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8303	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8304	CFLAGS="$xorg_testset_save_CFLAGS"
8305fi
8306
8307if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8308	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8309		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8310	fi
8311	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8312	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8313$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8314if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8315  $as_echo_n "(cached) " >&6
8316else
8317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318/* end confdefs.h.  */
8319int i;
8320_ACEOF
8321if ac_fn_c_try_compile "$LINENO"; then :
8322  xorg_cv_cc_flag_unused_command_line_argument=yes
8323else
8324  xorg_cv_cc_flag_unused_command_line_argument=no
8325fi
8326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8327fi
8328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8329$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8330	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8331	CFLAGS="$xorg_testset_save_CFLAGS"
8332fi
8333
8334found="no"
8335
8336	if test $found = "no" ; then
8337		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8338			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8339		fi
8340
8341		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8342			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8343		fi
8344
8345		CFLAGS="$CFLAGS -Werror=address"
8346
8347		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8348$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8349		cacheid=xorg_cv_cc_flag__Werror_address
8350		if eval \${$cacheid+:} false; then :
8351  $as_echo_n "(cached) " >&6
8352else
8353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354/* end confdefs.h.  */
8355int i;
8356int
8357main ()
8358{
8359
8360  ;
8361  return 0;
8362}
8363_ACEOF
8364if ac_fn_c_try_link "$LINENO"; then :
8365  eval $cacheid=yes
8366else
8367  eval $cacheid=no
8368fi
8369rm -f core conftest.err conftest.$ac_objext \
8370    conftest$ac_exeext conftest.$ac_ext
8371fi
8372
8373
8374		CFLAGS="$xorg_testset_save_CFLAGS"
8375
8376		eval supported=\$$cacheid
8377		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8378$as_echo "$supported" >&6; }
8379		if test "$supported" = "yes" ; then
8380			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8381			found="yes"
8382		fi
8383	fi
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399xorg_testset_save_CFLAGS="$CFLAGS"
8400
8401if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8402	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8403	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8404$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8405if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8406  $as_echo_n "(cached) " >&6
8407else
8408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409/* end confdefs.h.  */
8410int i;
8411_ACEOF
8412if ac_fn_c_try_compile "$LINENO"; then :
8413  xorg_cv_cc_flag_unknown_warning_option=yes
8414else
8415  xorg_cv_cc_flag_unknown_warning_option=no
8416fi
8417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8418fi
8419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8420$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8421	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8422	CFLAGS="$xorg_testset_save_CFLAGS"
8423fi
8424
8425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8426	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8427		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8428	fi
8429	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8430	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8431$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8432if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8433  $as_echo_n "(cached) " >&6
8434else
8435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436/* end confdefs.h.  */
8437int i;
8438_ACEOF
8439if ac_fn_c_try_compile "$LINENO"; then :
8440  xorg_cv_cc_flag_unused_command_line_argument=yes
8441else
8442  xorg_cv_cc_flag_unused_command_line_argument=no
8443fi
8444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8445fi
8446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8447$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8448	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8449	CFLAGS="$xorg_testset_save_CFLAGS"
8450fi
8451
8452found="no"
8453
8454	if test $found = "no" ; then
8455		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8456			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8457		fi
8458
8459		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8460			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8461		fi
8462
8463		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8464
8465		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8466$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8467		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8468		if eval \${$cacheid+:} false; then :
8469  $as_echo_n "(cached) " >&6
8470else
8471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472/* end confdefs.h.  */
8473int i;
8474int
8475main ()
8476{
8477
8478  ;
8479  return 0;
8480}
8481_ACEOF
8482if ac_fn_c_try_link "$LINENO"; then :
8483  eval $cacheid=yes
8484else
8485  eval $cacheid=no
8486fi
8487rm -f core conftest.err conftest.$ac_objext \
8488    conftest$ac_exeext conftest.$ac_ext
8489fi
8490
8491
8492		CFLAGS="$xorg_testset_save_CFLAGS"
8493
8494		eval supported=\$$cacheid
8495		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8496$as_echo "$supported" >&6; }
8497		if test "$supported" = "yes" ; then
8498			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8499			found="yes"
8500		fi
8501	fi
8502
8503	if test $found = "no" ; then
8504		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8505			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8506		fi
8507
8508		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8509			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8510		fi
8511
8512		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8513
8514		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8515$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8516		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8517		if eval \${$cacheid+:} false; then :
8518  $as_echo_n "(cached) " >&6
8519else
8520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521/* end confdefs.h.  */
8522int i;
8523int
8524main ()
8525{
8526
8527  ;
8528  return 0;
8529}
8530_ACEOF
8531if ac_fn_c_try_link "$LINENO"; then :
8532  eval $cacheid=yes
8533else
8534  eval $cacheid=no
8535fi
8536rm -f core conftest.err conftest.$ac_objext \
8537    conftest$ac_exeext conftest.$ac_ext
8538fi
8539
8540
8541		CFLAGS="$xorg_testset_save_CFLAGS"
8542
8543		eval supported=\$$cacheid
8544		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8545$as_echo "$supported" >&6; }
8546		if test "$supported" = "yes" ; then
8547			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8548			found="yes"
8549		fi
8550	fi
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566xorg_testset_save_CFLAGS="$CFLAGS"
8567
8568if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8569	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8570	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8571$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8572if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8573  $as_echo_n "(cached) " >&6
8574else
8575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576/* end confdefs.h.  */
8577int i;
8578_ACEOF
8579if ac_fn_c_try_compile "$LINENO"; then :
8580  xorg_cv_cc_flag_unknown_warning_option=yes
8581else
8582  xorg_cv_cc_flag_unknown_warning_option=no
8583fi
8584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8585fi
8586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8587$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8588	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8589	CFLAGS="$xorg_testset_save_CFLAGS"
8590fi
8591
8592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8593	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8594		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8595	fi
8596	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8597	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8598$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8599if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8600  $as_echo_n "(cached) " >&6
8601else
8602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603/* end confdefs.h.  */
8604int i;
8605_ACEOF
8606if ac_fn_c_try_compile "$LINENO"; then :
8607  xorg_cv_cc_flag_unused_command_line_argument=yes
8608else
8609  xorg_cv_cc_flag_unused_command_line_argument=no
8610fi
8611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612fi
8613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8614$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8615	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8616	CFLAGS="$xorg_testset_save_CFLAGS"
8617fi
8618
8619found="no"
8620
8621	if test $found = "no" ; then
8622		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8623			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8624		fi
8625
8626		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8627			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8628		fi
8629
8630		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8631
8632		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8633$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8634		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8635		if eval \${$cacheid+:} false; then :
8636  $as_echo_n "(cached) " >&6
8637else
8638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8639/* end confdefs.h.  */
8640int i;
8641int
8642main ()
8643{
8644
8645  ;
8646  return 0;
8647}
8648_ACEOF
8649if ac_fn_c_try_link "$LINENO"; then :
8650  eval $cacheid=yes
8651else
8652  eval $cacheid=no
8653fi
8654rm -f core conftest.err conftest.$ac_objext \
8655    conftest$ac_exeext conftest.$ac_ext
8656fi
8657
8658
8659		CFLAGS="$xorg_testset_save_CFLAGS"
8660
8661		eval supported=\$$cacheid
8662		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8663$as_echo "$supported" >&6; }
8664		if test "$supported" = "yes" ; then
8665			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8666			found="yes"
8667		fi
8668	fi
8669
8670 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8671else
8672{ $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
8673$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;}
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687xorg_testset_save_CFLAGS="$CFLAGS"
8688
8689if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8690	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8691	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8692$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8693if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8694  $as_echo_n "(cached) " >&6
8695else
8696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8697/* end confdefs.h.  */
8698int i;
8699_ACEOF
8700if ac_fn_c_try_compile "$LINENO"; then :
8701  xorg_cv_cc_flag_unknown_warning_option=yes
8702else
8703  xorg_cv_cc_flag_unknown_warning_option=no
8704fi
8705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8706fi
8707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8708$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8709	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8710	CFLAGS="$xorg_testset_save_CFLAGS"
8711fi
8712
8713if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8714	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8715		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8716	fi
8717	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8718	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8719$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8720if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8721  $as_echo_n "(cached) " >&6
8722else
8723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724/* end confdefs.h.  */
8725int i;
8726_ACEOF
8727if ac_fn_c_try_compile "$LINENO"; then :
8728  xorg_cv_cc_flag_unused_command_line_argument=yes
8729else
8730  xorg_cv_cc_flag_unused_command_line_argument=no
8731fi
8732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8733fi
8734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8735$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8736	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8737	CFLAGS="$xorg_testset_save_CFLAGS"
8738fi
8739
8740found="no"
8741
8742	if test $found = "no" ; then
8743		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8744			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8745		fi
8746
8747		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8748			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8749		fi
8750
8751		CFLAGS="$CFLAGS -Wimplicit"
8752
8753		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8754$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8755		cacheid=xorg_cv_cc_flag__Wimplicit
8756		if eval \${$cacheid+:} false; then :
8757  $as_echo_n "(cached) " >&6
8758else
8759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760/* end confdefs.h.  */
8761int i;
8762int
8763main ()
8764{
8765
8766  ;
8767  return 0;
8768}
8769_ACEOF
8770if ac_fn_c_try_link "$LINENO"; then :
8771  eval $cacheid=yes
8772else
8773  eval $cacheid=no
8774fi
8775rm -f core conftest.err conftest.$ac_objext \
8776    conftest$ac_exeext conftest.$ac_ext
8777fi
8778
8779
8780		CFLAGS="$xorg_testset_save_CFLAGS"
8781
8782		eval supported=\$$cacheid
8783		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8784$as_echo "$supported" >&6; }
8785		if test "$supported" = "yes" ; then
8786			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8787			found="yes"
8788		fi
8789	fi
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805xorg_testset_save_CFLAGS="$CFLAGS"
8806
8807if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8808	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8809	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8810$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8811if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8812  $as_echo_n "(cached) " >&6
8813else
8814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815/* end confdefs.h.  */
8816int i;
8817_ACEOF
8818if ac_fn_c_try_compile "$LINENO"; then :
8819  xorg_cv_cc_flag_unknown_warning_option=yes
8820else
8821  xorg_cv_cc_flag_unknown_warning_option=no
8822fi
8823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8824fi
8825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8826$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8827	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8828	CFLAGS="$xorg_testset_save_CFLAGS"
8829fi
8830
8831if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8832	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8833		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8834	fi
8835	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8836	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8837$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8838if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8839  $as_echo_n "(cached) " >&6
8840else
8841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842/* end confdefs.h.  */
8843int i;
8844_ACEOF
8845if ac_fn_c_try_compile "$LINENO"; then :
8846  xorg_cv_cc_flag_unused_command_line_argument=yes
8847else
8848  xorg_cv_cc_flag_unused_command_line_argument=no
8849fi
8850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8851fi
8852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8853$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8854	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8855	CFLAGS="$xorg_testset_save_CFLAGS"
8856fi
8857
8858found="no"
8859
8860	if test $found = "no" ; then
8861		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8862			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8863		fi
8864
8865		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8866			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8867		fi
8868
8869		CFLAGS="$CFLAGS -Wnonnull"
8870
8871		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8872$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8873		cacheid=xorg_cv_cc_flag__Wnonnull
8874		if eval \${$cacheid+:} false; then :
8875  $as_echo_n "(cached) " >&6
8876else
8877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8878/* end confdefs.h.  */
8879int i;
8880int
8881main ()
8882{
8883
8884  ;
8885  return 0;
8886}
8887_ACEOF
8888if ac_fn_c_try_link "$LINENO"; then :
8889  eval $cacheid=yes
8890else
8891  eval $cacheid=no
8892fi
8893rm -f core conftest.err conftest.$ac_objext \
8894    conftest$ac_exeext conftest.$ac_ext
8895fi
8896
8897
8898		CFLAGS="$xorg_testset_save_CFLAGS"
8899
8900		eval supported=\$$cacheid
8901		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8902$as_echo "$supported" >&6; }
8903		if test "$supported" = "yes" ; then
8904			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8905			found="yes"
8906		fi
8907	fi
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923xorg_testset_save_CFLAGS="$CFLAGS"
8924
8925if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8926	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8927	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8928$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8929if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8930  $as_echo_n "(cached) " >&6
8931else
8932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933/* end confdefs.h.  */
8934int i;
8935_ACEOF
8936if ac_fn_c_try_compile "$LINENO"; then :
8937  xorg_cv_cc_flag_unknown_warning_option=yes
8938else
8939  xorg_cv_cc_flag_unknown_warning_option=no
8940fi
8941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8942fi
8943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8944$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8945	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8946	CFLAGS="$xorg_testset_save_CFLAGS"
8947fi
8948
8949if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8950	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8951		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8952	fi
8953	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8954	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8955$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8956if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8957  $as_echo_n "(cached) " >&6
8958else
8959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8960/* end confdefs.h.  */
8961int i;
8962_ACEOF
8963if ac_fn_c_try_compile "$LINENO"; then :
8964  xorg_cv_cc_flag_unused_command_line_argument=yes
8965else
8966  xorg_cv_cc_flag_unused_command_line_argument=no
8967fi
8968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8969fi
8970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8971$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8972	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8973	CFLAGS="$xorg_testset_save_CFLAGS"
8974fi
8975
8976found="no"
8977
8978	if test $found = "no" ; then
8979		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8980			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8981		fi
8982
8983		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8984			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8985		fi
8986
8987		CFLAGS="$CFLAGS -Winit-self"
8988
8989		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8990$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8991		cacheid=xorg_cv_cc_flag__Winit_self
8992		if eval \${$cacheid+:} false; then :
8993  $as_echo_n "(cached) " >&6
8994else
8995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996/* end confdefs.h.  */
8997int i;
8998int
8999main ()
9000{
9001
9002  ;
9003  return 0;
9004}
9005_ACEOF
9006if ac_fn_c_try_link "$LINENO"; then :
9007  eval $cacheid=yes
9008else
9009  eval $cacheid=no
9010fi
9011rm -f core conftest.err conftest.$ac_objext \
9012    conftest$ac_exeext conftest.$ac_ext
9013fi
9014
9015
9016		CFLAGS="$xorg_testset_save_CFLAGS"
9017
9018		eval supported=\$$cacheid
9019		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9020$as_echo "$supported" >&6; }
9021		if test "$supported" = "yes" ; then
9022			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9023			found="yes"
9024		fi
9025	fi
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041xorg_testset_save_CFLAGS="$CFLAGS"
9042
9043if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9044	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9045	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9046$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9047if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9048  $as_echo_n "(cached) " >&6
9049else
9050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9051/* end confdefs.h.  */
9052int i;
9053_ACEOF
9054if ac_fn_c_try_compile "$LINENO"; then :
9055  xorg_cv_cc_flag_unknown_warning_option=yes
9056else
9057  xorg_cv_cc_flag_unknown_warning_option=no
9058fi
9059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9060fi
9061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9062$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9063	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9064	CFLAGS="$xorg_testset_save_CFLAGS"
9065fi
9066
9067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9068	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9069		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9070	fi
9071	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9072	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9073$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9074if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9075  $as_echo_n "(cached) " >&6
9076else
9077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078/* end confdefs.h.  */
9079int i;
9080_ACEOF
9081if ac_fn_c_try_compile "$LINENO"; then :
9082  xorg_cv_cc_flag_unused_command_line_argument=yes
9083else
9084  xorg_cv_cc_flag_unused_command_line_argument=no
9085fi
9086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9087fi
9088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9089$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9090	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9091	CFLAGS="$xorg_testset_save_CFLAGS"
9092fi
9093
9094found="no"
9095
9096	if test $found = "no" ; then
9097		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9098			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9099		fi
9100
9101		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9102			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9103		fi
9104
9105		CFLAGS="$CFLAGS -Wmain"
9106
9107		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9108$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9109		cacheid=xorg_cv_cc_flag__Wmain
9110		if eval \${$cacheid+:} false; then :
9111  $as_echo_n "(cached) " >&6
9112else
9113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114/* end confdefs.h.  */
9115int i;
9116int
9117main ()
9118{
9119
9120  ;
9121  return 0;
9122}
9123_ACEOF
9124if ac_fn_c_try_link "$LINENO"; then :
9125  eval $cacheid=yes
9126else
9127  eval $cacheid=no
9128fi
9129rm -f core conftest.err conftest.$ac_objext \
9130    conftest$ac_exeext conftest.$ac_ext
9131fi
9132
9133
9134		CFLAGS="$xorg_testset_save_CFLAGS"
9135
9136		eval supported=\$$cacheid
9137		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9138$as_echo "$supported" >&6; }
9139		if test "$supported" = "yes" ; then
9140			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9141			found="yes"
9142		fi
9143	fi
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159xorg_testset_save_CFLAGS="$CFLAGS"
9160
9161if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9162	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9163	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9164$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9165if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9166  $as_echo_n "(cached) " >&6
9167else
9168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169/* end confdefs.h.  */
9170int i;
9171_ACEOF
9172if ac_fn_c_try_compile "$LINENO"; then :
9173  xorg_cv_cc_flag_unknown_warning_option=yes
9174else
9175  xorg_cv_cc_flag_unknown_warning_option=no
9176fi
9177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9178fi
9179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9180$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9181	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9182	CFLAGS="$xorg_testset_save_CFLAGS"
9183fi
9184
9185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9186	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9187		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9188	fi
9189	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9190	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9191$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9192if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9193  $as_echo_n "(cached) " >&6
9194else
9195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196/* end confdefs.h.  */
9197int i;
9198_ACEOF
9199if ac_fn_c_try_compile "$LINENO"; then :
9200  xorg_cv_cc_flag_unused_command_line_argument=yes
9201else
9202  xorg_cv_cc_flag_unused_command_line_argument=no
9203fi
9204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9205fi
9206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9207$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9208	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9209	CFLAGS="$xorg_testset_save_CFLAGS"
9210fi
9211
9212found="no"
9213
9214	if test $found = "no" ; then
9215		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9216			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9217		fi
9218
9219		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9220			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9221		fi
9222
9223		CFLAGS="$CFLAGS -Wmissing-braces"
9224
9225		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9226$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9227		cacheid=xorg_cv_cc_flag__Wmissing_braces
9228		if eval \${$cacheid+:} false; then :
9229  $as_echo_n "(cached) " >&6
9230else
9231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232/* end confdefs.h.  */
9233int i;
9234int
9235main ()
9236{
9237
9238  ;
9239  return 0;
9240}
9241_ACEOF
9242if ac_fn_c_try_link "$LINENO"; then :
9243  eval $cacheid=yes
9244else
9245  eval $cacheid=no
9246fi
9247rm -f core conftest.err conftest.$ac_objext \
9248    conftest$ac_exeext conftest.$ac_ext
9249fi
9250
9251
9252		CFLAGS="$xorg_testset_save_CFLAGS"
9253
9254		eval supported=\$$cacheid
9255		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9256$as_echo "$supported" >&6; }
9257		if test "$supported" = "yes" ; then
9258			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9259			found="yes"
9260		fi
9261	fi
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277xorg_testset_save_CFLAGS="$CFLAGS"
9278
9279if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9280	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9281	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9282$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9283if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9284  $as_echo_n "(cached) " >&6
9285else
9286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287/* end confdefs.h.  */
9288int i;
9289_ACEOF
9290if ac_fn_c_try_compile "$LINENO"; then :
9291  xorg_cv_cc_flag_unknown_warning_option=yes
9292else
9293  xorg_cv_cc_flag_unknown_warning_option=no
9294fi
9295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9296fi
9297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9298$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9299	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9300	CFLAGS="$xorg_testset_save_CFLAGS"
9301fi
9302
9303if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9304	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9305		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9306	fi
9307	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9308	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9309$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9310if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9311  $as_echo_n "(cached) " >&6
9312else
9313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314/* end confdefs.h.  */
9315int i;
9316_ACEOF
9317if ac_fn_c_try_compile "$LINENO"; then :
9318  xorg_cv_cc_flag_unused_command_line_argument=yes
9319else
9320  xorg_cv_cc_flag_unused_command_line_argument=no
9321fi
9322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9323fi
9324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9325$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9326	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9327	CFLAGS="$xorg_testset_save_CFLAGS"
9328fi
9329
9330found="no"
9331
9332	if test $found = "no" ; then
9333		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9334			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9335		fi
9336
9337		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9338			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9339		fi
9340
9341		CFLAGS="$CFLAGS -Wsequence-point"
9342
9343		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9344$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9345		cacheid=xorg_cv_cc_flag__Wsequence_point
9346		if eval \${$cacheid+:} false; then :
9347  $as_echo_n "(cached) " >&6
9348else
9349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350/* end confdefs.h.  */
9351int i;
9352int
9353main ()
9354{
9355
9356  ;
9357  return 0;
9358}
9359_ACEOF
9360if ac_fn_c_try_link "$LINENO"; then :
9361  eval $cacheid=yes
9362else
9363  eval $cacheid=no
9364fi
9365rm -f core conftest.err conftest.$ac_objext \
9366    conftest$ac_exeext conftest.$ac_ext
9367fi
9368
9369
9370		CFLAGS="$xorg_testset_save_CFLAGS"
9371
9372		eval supported=\$$cacheid
9373		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9374$as_echo "$supported" >&6; }
9375		if test "$supported" = "yes" ; then
9376			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9377			found="yes"
9378		fi
9379	fi
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395xorg_testset_save_CFLAGS="$CFLAGS"
9396
9397if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9398	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9399	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9400$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9401if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9402  $as_echo_n "(cached) " >&6
9403else
9404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405/* end confdefs.h.  */
9406int i;
9407_ACEOF
9408if ac_fn_c_try_compile "$LINENO"; then :
9409  xorg_cv_cc_flag_unknown_warning_option=yes
9410else
9411  xorg_cv_cc_flag_unknown_warning_option=no
9412fi
9413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9414fi
9415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9416$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9417	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9418	CFLAGS="$xorg_testset_save_CFLAGS"
9419fi
9420
9421if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9422	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9423		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9424	fi
9425	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9426	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9427$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9428if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9429  $as_echo_n "(cached) " >&6
9430else
9431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432/* end confdefs.h.  */
9433int i;
9434_ACEOF
9435if ac_fn_c_try_compile "$LINENO"; then :
9436  xorg_cv_cc_flag_unused_command_line_argument=yes
9437else
9438  xorg_cv_cc_flag_unused_command_line_argument=no
9439fi
9440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9441fi
9442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9443$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9444	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9445	CFLAGS="$xorg_testset_save_CFLAGS"
9446fi
9447
9448found="no"
9449
9450	if test $found = "no" ; then
9451		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9452			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9453		fi
9454
9455		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9456			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9457		fi
9458
9459		CFLAGS="$CFLAGS -Wreturn-type"
9460
9461		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9462$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9463		cacheid=xorg_cv_cc_flag__Wreturn_type
9464		if eval \${$cacheid+:} false; then :
9465  $as_echo_n "(cached) " >&6
9466else
9467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468/* end confdefs.h.  */
9469int i;
9470int
9471main ()
9472{
9473
9474  ;
9475  return 0;
9476}
9477_ACEOF
9478if ac_fn_c_try_link "$LINENO"; then :
9479  eval $cacheid=yes
9480else
9481  eval $cacheid=no
9482fi
9483rm -f core conftest.err conftest.$ac_objext \
9484    conftest$ac_exeext conftest.$ac_ext
9485fi
9486
9487
9488		CFLAGS="$xorg_testset_save_CFLAGS"
9489
9490		eval supported=\$$cacheid
9491		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9492$as_echo "$supported" >&6; }
9493		if test "$supported" = "yes" ; then
9494			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9495			found="yes"
9496		fi
9497	fi
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513xorg_testset_save_CFLAGS="$CFLAGS"
9514
9515if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9516	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9517	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9518$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9519if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9520  $as_echo_n "(cached) " >&6
9521else
9522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9523/* end confdefs.h.  */
9524int i;
9525_ACEOF
9526if ac_fn_c_try_compile "$LINENO"; then :
9527  xorg_cv_cc_flag_unknown_warning_option=yes
9528else
9529  xorg_cv_cc_flag_unknown_warning_option=no
9530fi
9531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9532fi
9533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9534$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9535	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9536	CFLAGS="$xorg_testset_save_CFLAGS"
9537fi
9538
9539if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9540	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9541		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9542	fi
9543	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9544	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9545$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9546if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9547  $as_echo_n "(cached) " >&6
9548else
9549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9550/* end confdefs.h.  */
9551int i;
9552_ACEOF
9553if ac_fn_c_try_compile "$LINENO"; then :
9554  xorg_cv_cc_flag_unused_command_line_argument=yes
9555else
9556  xorg_cv_cc_flag_unused_command_line_argument=no
9557fi
9558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9559fi
9560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9561$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9562	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9563	CFLAGS="$xorg_testset_save_CFLAGS"
9564fi
9565
9566found="no"
9567
9568	if test $found = "no" ; then
9569		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9570			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9571		fi
9572
9573		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9574			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9575		fi
9576
9577		CFLAGS="$CFLAGS -Wtrigraphs"
9578
9579		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9580$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9581		cacheid=xorg_cv_cc_flag__Wtrigraphs
9582		if eval \${$cacheid+:} false; then :
9583  $as_echo_n "(cached) " >&6
9584else
9585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586/* end confdefs.h.  */
9587int i;
9588int
9589main ()
9590{
9591
9592  ;
9593  return 0;
9594}
9595_ACEOF
9596if ac_fn_c_try_link "$LINENO"; then :
9597  eval $cacheid=yes
9598else
9599  eval $cacheid=no
9600fi
9601rm -f core conftest.err conftest.$ac_objext \
9602    conftest$ac_exeext conftest.$ac_ext
9603fi
9604
9605
9606		CFLAGS="$xorg_testset_save_CFLAGS"
9607
9608		eval supported=\$$cacheid
9609		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9610$as_echo "$supported" >&6; }
9611		if test "$supported" = "yes" ; then
9612			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9613			found="yes"
9614		fi
9615	fi
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631xorg_testset_save_CFLAGS="$CFLAGS"
9632
9633if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9634	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9635	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9636$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9637if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9638  $as_echo_n "(cached) " >&6
9639else
9640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9641/* end confdefs.h.  */
9642int i;
9643_ACEOF
9644if ac_fn_c_try_compile "$LINENO"; then :
9645  xorg_cv_cc_flag_unknown_warning_option=yes
9646else
9647  xorg_cv_cc_flag_unknown_warning_option=no
9648fi
9649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9650fi
9651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9652$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9653	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9654	CFLAGS="$xorg_testset_save_CFLAGS"
9655fi
9656
9657if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9658	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9659		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9660	fi
9661	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9662	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9663$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9664if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9665  $as_echo_n "(cached) " >&6
9666else
9667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668/* end confdefs.h.  */
9669int i;
9670_ACEOF
9671if ac_fn_c_try_compile "$LINENO"; then :
9672  xorg_cv_cc_flag_unused_command_line_argument=yes
9673else
9674  xorg_cv_cc_flag_unused_command_line_argument=no
9675fi
9676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9677fi
9678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9679$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9680	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9681	CFLAGS="$xorg_testset_save_CFLAGS"
9682fi
9683
9684found="no"
9685
9686	if test $found = "no" ; then
9687		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9688			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9689		fi
9690
9691		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9692			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9693		fi
9694
9695		CFLAGS="$CFLAGS -Warray-bounds"
9696
9697		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9698$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9699		cacheid=xorg_cv_cc_flag__Warray_bounds
9700		if eval \${$cacheid+:} false; then :
9701  $as_echo_n "(cached) " >&6
9702else
9703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704/* end confdefs.h.  */
9705int i;
9706int
9707main ()
9708{
9709
9710  ;
9711  return 0;
9712}
9713_ACEOF
9714if ac_fn_c_try_link "$LINENO"; then :
9715  eval $cacheid=yes
9716else
9717  eval $cacheid=no
9718fi
9719rm -f core conftest.err conftest.$ac_objext \
9720    conftest$ac_exeext conftest.$ac_ext
9721fi
9722
9723
9724		CFLAGS="$xorg_testset_save_CFLAGS"
9725
9726		eval supported=\$$cacheid
9727		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9728$as_echo "$supported" >&6; }
9729		if test "$supported" = "yes" ; then
9730			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9731			found="yes"
9732		fi
9733	fi
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749xorg_testset_save_CFLAGS="$CFLAGS"
9750
9751if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9752	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9753	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9754$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9755if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9756  $as_echo_n "(cached) " >&6
9757else
9758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9759/* end confdefs.h.  */
9760int i;
9761_ACEOF
9762if ac_fn_c_try_compile "$LINENO"; then :
9763  xorg_cv_cc_flag_unknown_warning_option=yes
9764else
9765  xorg_cv_cc_flag_unknown_warning_option=no
9766fi
9767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9768fi
9769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9770$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9771	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9772	CFLAGS="$xorg_testset_save_CFLAGS"
9773fi
9774
9775if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9776	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9777		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9778	fi
9779	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9780	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9781$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9782if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9783  $as_echo_n "(cached) " >&6
9784else
9785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9786/* end confdefs.h.  */
9787int i;
9788_ACEOF
9789if ac_fn_c_try_compile "$LINENO"; then :
9790  xorg_cv_cc_flag_unused_command_line_argument=yes
9791else
9792  xorg_cv_cc_flag_unused_command_line_argument=no
9793fi
9794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9795fi
9796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9797$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9798	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9799	CFLAGS="$xorg_testset_save_CFLAGS"
9800fi
9801
9802found="no"
9803
9804	if test $found = "no" ; then
9805		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9806			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9807		fi
9808
9809		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9810			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9811		fi
9812
9813		CFLAGS="$CFLAGS -Wwrite-strings"
9814
9815		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9816$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9817		cacheid=xorg_cv_cc_flag__Wwrite_strings
9818		if eval \${$cacheid+:} false; then :
9819  $as_echo_n "(cached) " >&6
9820else
9821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822/* end confdefs.h.  */
9823int i;
9824int
9825main ()
9826{
9827
9828  ;
9829  return 0;
9830}
9831_ACEOF
9832if ac_fn_c_try_link "$LINENO"; then :
9833  eval $cacheid=yes
9834else
9835  eval $cacheid=no
9836fi
9837rm -f core conftest.err conftest.$ac_objext \
9838    conftest$ac_exeext conftest.$ac_ext
9839fi
9840
9841
9842		CFLAGS="$xorg_testset_save_CFLAGS"
9843
9844		eval supported=\$$cacheid
9845		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9846$as_echo "$supported" >&6; }
9847		if test "$supported" = "yes" ; then
9848			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9849			found="yes"
9850		fi
9851	fi
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867xorg_testset_save_CFLAGS="$CFLAGS"
9868
9869if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9870	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9871	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9872$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9873if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9874  $as_echo_n "(cached) " >&6
9875else
9876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9877/* end confdefs.h.  */
9878int i;
9879_ACEOF
9880if ac_fn_c_try_compile "$LINENO"; then :
9881  xorg_cv_cc_flag_unknown_warning_option=yes
9882else
9883  xorg_cv_cc_flag_unknown_warning_option=no
9884fi
9885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9886fi
9887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9888$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9889	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9890	CFLAGS="$xorg_testset_save_CFLAGS"
9891fi
9892
9893if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9894	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9895		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9896	fi
9897	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9898	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9899$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9900if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9901  $as_echo_n "(cached) " >&6
9902else
9903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9904/* end confdefs.h.  */
9905int i;
9906_ACEOF
9907if ac_fn_c_try_compile "$LINENO"; then :
9908  xorg_cv_cc_flag_unused_command_line_argument=yes
9909else
9910  xorg_cv_cc_flag_unused_command_line_argument=no
9911fi
9912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9913fi
9914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9915$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9916	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9917	CFLAGS="$xorg_testset_save_CFLAGS"
9918fi
9919
9920found="no"
9921
9922	if test $found = "no" ; then
9923		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9924			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9925		fi
9926
9927		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9928			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9929		fi
9930
9931		CFLAGS="$CFLAGS -Waddress"
9932
9933		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9934$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9935		cacheid=xorg_cv_cc_flag__Waddress
9936		if eval \${$cacheid+:} false; then :
9937  $as_echo_n "(cached) " >&6
9938else
9939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9940/* end confdefs.h.  */
9941int i;
9942int
9943main ()
9944{
9945
9946  ;
9947  return 0;
9948}
9949_ACEOF
9950if ac_fn_c_try_link "$LINENO"; then :
9951  eval $cacheid=yes
9952else
9953  eval $cacheid=no
9954fi
9955rm -f core conftest.err conftest.$ac_objext \
9956    conftest$ac_exeext conftest.$ac_ext
9957fi
9958
9959
9960		CFLAGS="$xorg_testset_save_CFLAGS"
9961
9962		eval supported=\$$cacheid
9963		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9964$as_echo "$supported" >&6; }
9965		if test "$supported" = "yes" ; then
9966			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9967			found="yes"
9968		fi
9969	fi
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985xorg_testset_save_CFLAGS="$CFLAGS"
9986
9987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9988	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9989	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9990$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9991if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9992  $as_echo_n "(cached) " >&6
9993else
9994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9995/* end confdefs.h.  */
9996int i;
9997_ACEOF
9998if ac_fn_c_try_compile "$LINENO"; then :
9999  xorg_cv_cc_flag_unknown_warning_option=yes
10000else
10001  xorg_cv_cc_flag_unknown_warning_option=no
10002fi
10003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10004fi
10005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10006$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10007	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10008	CFLAGS="$xorg_testset_save_CFLAGS"
10009fi
10010
10011if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10012	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10013		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10014	fi
10015	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10016	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10017$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10018if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10019  $as_echo_n "(cached) " >&6
10020else
10021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022/* end confdefs.h.  */
10023int i;
10024_ACEOF
10025if ac_fn_c_try_compile "$LINENO"; then :
10026  xorg_cv_cc_flag_unused_command_line_argument=yes
10027else
10028  xorg_cv_cc_flag_unused_command_line_argument=no
10029fi
10030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10031fi
10032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10033$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10034	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10035	CFLAGS="$xorg_testset_save_CFLAGS"
10036fi
10037
10038found="no"
10039
10040	if test $found = "no" ; then
10041		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10042			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10043		fi
10044
10045		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10046			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10047		fi
10048
10049		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10050
10051		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10052$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10053		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10054		if eval \${$cacheid+:} false; then :
10055  $as_echo_n "(cached) " >&6
10056else
10057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10058/* end confdefs.h.  */
10059int i;
10060int
10061main ()
10062{
10063
10064  ;
10065  return 0;
10066}
10067_ACEOF
10068if ac_fn_c_try_link "$LINENO"; then :
10069  eval $cacheid=yes
10070else
10071  eval $cacheid=no
10072fi
10073rm -f core conftest.err conftest.$ac_objext \
10074    conftest$ac_exeext conftest.$ac_ext
10075fi
10076
10077
10078		CFLAGS="$xorg_testset_save_CFLAGS"
10079
10080		eval supported=\$$cacheid
10081		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10082$as_echo "$supported" >&6; }
10083		if test "$supported" = "yes" ; then
10084			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10085			found="yes"
10086		fi
10087	fi
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103xorg_testset_save_CFLAGS="$CFLAGS"
10104
10105if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10106	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10107	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10108$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10109if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10110  $as_echo_n "(cached) " >&6
10111else
10112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10113/* end confdefs.h.  */
10114int i;
10115_ACEOF
10116if ac_fn_c_try_compile "$LINENO"; then :
10117  xorg_cv_cc_flag_unknown_warning_option=yes
10118else
10119  xorg_cv_cc_flag_unknown_warning_option=no
10120fi
10121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10122fi
10123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10124$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10125	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10126	CFLAGS="$xorg_testset_save_CFLAGS"
10127fi
10128
10129if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10130	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10131		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10132	fi
10133	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10134	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10135$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10136if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10137  $as_echo_n "(cached) " >&6
10138else
10139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10140/* end confdefs.h.  */
10141int i;
10142_ACEOF
10143if ac_fn_c_try_compile "$LINENO"; then :
10144  xorg_cv_cc_flag_unused_command_line_argument=yes
10145else
10146  xorg_cv_cc_flag_unused_command_line_argument=no
10147fi
10148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10149fi
10150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10151$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10152	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10153	CFLAGS="$xorg_testset_save_CFLAGS"
10154fi
10155
10156found="no"
10157
10158	if test $found = "no" ; then
10159		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10160			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10161		fi
10162
10163		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10164			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10165		fi
10166
10167		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10168
10169		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10170$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10171		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10172		if eval \${$cacheid+:} false; then :
10173  $as_echo_n "(cached) " >&6
10174else
10175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10176/* end confdefs.h.  */
10177int i;
10178int
10179main ()
10180{
10181
10182  ;
10183  return 0;
10184}
10185_ACEOF
10186if ac_fn_c_try_link "$LINENO"; then :
10187  eval $cacheid=yes
10188else
10189  eval $cacheid=no
10190fi
10191rm -f core conftest.err conftest.$ac_objext \
10192    conftest$ac_exeext conftest.$ac_ext
10193fi
10194
10195
10196		CFLAGS="$xorg_testset_save_CFLAGS"
10197
10198		eval supported=\$$cacheid
10199		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10200$as_echo "$supported" >&6; }
10201		if test "$supported" = "yes" ; then
10202			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10203			found="yes"
10204		fi
10205	fi
10206
10207
10208fi
10209
10210
10211
10212
10213
10214
10215
10216		CWARNFLAGS="$BASE_CFLAGS"
10217		if  test "x$GCC" = xyes ; then
10218		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10219		fi
10220
10221
10222
10223
10224
10225
10226
10227
10228# Check whether --enable-strict-compilation was given.
10229if test "${enable_strict_compilation+set}" = set; then :
10230  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10231else
10232  STRICT_COMPILE=no
10233fi
10234
10235
10236
10237
10238
10239
10240STRICT_CFLAGS=""
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254xorg_testset_save_CFLAGS="$CFLAGS"
10255
10256if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10257	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10258	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10259$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10260if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10261  $as_echo_n "(cached) " >&6
10262else
10263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10264/* end confdefs.h.  */
10265int i;
10266_ACEOF
10267if ac_fn_c_try_compile "$LINENO"; then :
10268  xorg_cv_cc_flag_unknown_warning_option=yes
10269else
10270  xorg_cv_cc_flag_unknown_warning_option=no
10271fi
10272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10273fi
10274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10275$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10276	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10277	CFLAGS="$xorg_testset_save_CFLAGS"
10278fi
10279
10280if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10281	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10282		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10283	fi
10284	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10285	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10286$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10287if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10288  $as_echo_n "(cached) " >&6
10289else
10290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291/* end confdefs.h.  */
10292int i;
10293_ACEOF
10294if ac_fn_c_try_compile "$LINENO"; then :
10295  xorg_cv_cc_flag_unused_command_line_argument=yes
10296else
10297  xorg_cv_cc_flag_unused_command_line_argument=no
10298fi
10299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10300fi
10301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10302$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10303	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10304	CFLAGS="$xorg_testset_save_CFLAGS"
10305fi
10306
10307found="no"
10308
10309	if test $found = "no" ; then
10310		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10311			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10312		fi
10313
10314		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10315			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10316		fi
10317
10318		CFLAGS="$CFLAGS -pedantic"
10319
10320		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10321$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10322		cacheid=xorg_cv_cc_flag__pedantic
10323		if eval \${$cacheid+:} false; then :
10324  $as_echo_n "(cached) " >&6
10325else
10326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10327/* end confdefs.h.  */
10328int i;
10329int
10330main ()
10331{
10332
10333  ;
10334  return 0;
10335}
10336_ACEOF
10337if ac_fn_c_try_link "$LINENO"; then :
10338  eval $cacheid=yes
10339else
10340  eval $cacheid=no
10341fi
10342rm -f core conftest.err conftest.$ac_objext \
10343    conftest$ac_exeext conftest.$ac_ext
10344fi
10345
10346
10347		CFLAGS="$xorg_testset_save_CFLAGS"
10348
10349		eval supported=\$$cacheid
10350		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10351$as_echo "$supported" >&6; }
10352		if test "$supported" = "yes" ; then
10353			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10354			found="yes"
10355		fi
10356	fi
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372xorg_testset_save_CFLAGS="$CFLAGS"
10373
10374if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10375	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10376	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10377$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10378if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10379  $as_echo_n "(cached) " >&6
10380else
10381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10382/* end confdefs.h.  */
10383int i;
10384_ACEOF
10385if ac_fn_c_try_compile "$LINENO"; then :
10386  xorg_cv_cc_flag_unknown_warning_option=yes
10387else
10388  xorg_cv_cc_flag_unknown_warning_option=no
10389fi
10390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10391fi
10392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10393$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10394	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10395	CFLAGS="$xorg_testset_save_CFLAGS"
10396fi
10397
10398if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10399	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10400		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10401	fi
10402	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10403	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10404$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10405if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10406  $as_echo_n "(cached) " >&6
10407else
10408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409/* end confdefs.h.  */
10410int i;
10411_ACEOF
10412if ac_fn_c_try_compile "$LINENO"; then :
10413  xorg_cv_cc_flag_unused_command_line_argument=yes
10414else
10415  xorg_cv_cc_flag_unused_command_line_argument=no
10416fi
10417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10418fi
10419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10420$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10421	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10422	CFLAGS="$xorg_testset_save_CFLAGS"
10423fi
10424
10425found="no"
10426
10427	if test $found = "no" ; then
10428		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10429			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10430		fi
10431
10432		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10433			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10434		fi
10435
10436		CFLAGS="$CFLAGS -Werror"
10437
10438		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10439$as_echo_n "checking if $CC supports -Werror... " >&6; }
10440		cacheid=xorg_cv_cc_flag__Werror
10441		if eval \${$cacheid+:} false; then :
10442  $as_echo_n "(cached) " >&6
10443else
10444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10445/* end confdefs.h.  */
10446int i;
10447int
10448main ()
10449{
10450
10451  ;
10452  return 0;
10453}
10454_ACEOF
10455if ac_fn_c_try_link "$LINENO"; then :
10456  eval $cacheid=yes
10457else
10458  eval $cacheid=no
10459fi
10460rm -f core conftest.err conftest.$ac_objext \
10461    conftest$ac_exeext conftest.$ac_ext
10462fi
10463
10464
10465		CFLAGS="$xorg_testset_save_CFLAGS"
10466
10467		eval supported=\$$cacheid
10468		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10469$as_echo "$supported" >&6; }
10470		if test "$supported" = "yes" ; then
10471			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10472			found="yes"
10473		fi
10474	fi
10475
10476	if test $found = "no" ; then
10477		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10478			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10479		fi
10480
10481		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10482			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10483		fi
10484
10485		CFLAGS="$CFLAGS -errwarn"
10486
10487		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10488$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10489		cacheid=xorg_cv_cc_flag__errwarn
10490		if eval \${$cacheid+:} false; then :
10491  $as_echo_n "(cached) " >&6
10492else
10493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494/* end confdefs.h.  */
10495int i;
10496int
10497main ()
10498{
10499
10500  ;
10501  return 0;
10502}
10503_ACEOF
10504if ac_fn_c_try_link "$LINENO"; then :
10505  eval $cacheid=yes
10506else
10507  eval $cacheid=no
10508fi
10509rm -f core conftest.err conftest.$ac_objext \
10510    conftest$ac_exeext conftest.$ac_ext
10511fi
10512
10513
10514		CFLAGS="$xorg_testset_save_CFLAGS"
10515
10516		eval supported=\$$cacheid
10517		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10518$as_echo "$supported" >&6; }
10519		if test "$supported" = "yes" ; then
10520			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10521			found="yes"
10522		fi
10523	fi
10524
10525
10526
10527# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10528# activate it with -Werror, so we add it here explicitly.
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542xorg_testset_save_CFLAGS="$CFLAGS"
10543
10544if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10545	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10546	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10547$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10548if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10549  $as_echo_n "(cached) " >&6
10550else
10551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552/* end confdefs.h.  */
10553int i;
10554_ACEOF
10555if ac_fn_c_try_compile "$LINENO"; then :
10556  xorg_cv_cc_flag_unknown_warning_option=yes
10557else
10558  xorg_cv_cc_flag_unknown_warning_option=no
10559fi
10560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10561fi
10562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10563$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10564	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10565	CFLAGS="$xorg_testset_save_CFLAGS"
10566fi
10567
10568if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10569	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10570		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10571	fi
10572	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10573	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10574$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10575if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10576  $as_echo_n "(cached) " >&6
10577else
10578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10579/* end confdefs.h.  */
10580int i;
10581_ACEOF
10582if ac_fn_c_try_compile "$LINENO"; then :
10583  xorg_cv_cc_flag_unused_command_line_argument=yes
10584else
10585  xorg_cv_cc_flag_unused_command_line_argument=no
10586fi
10587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10588fi
10589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10590$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10591	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10592	CFLAGS="$xorg_testset_save_CFLAGS"
10593fi
10594
10595found="no"
10596
10597	if test $found = "no" ; then
10598		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10599			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10600		fi
10601
10602		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10603			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10604		fi
10605
10606		CFLAGS="$CFLAGS -Werror=attributes"
10607
10608		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10609$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10610		cacheid=xorg_cv_cc_flag__Werror_attributes
10611		if eval \${$cacheid+:} false; then :
10612  $as_echo_n "(cached) " >&6
10613else
10614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10615/* end confdefs.h.  */
10616int i;
10617int
10618main ()
10619{
10620
10621  ;
10622  return 0;
10623}
10624_ACEOF
10625if ac_fn_c_try_link "$LINENO"; then :
10626  eval $cacheid=yes
10627else
10628  eval $cacheid=no
10629fi
10630rm -f core conftest.err conftest.$ac_objext \
10631    conftest$ac_exeext conftest.$ac_ext
10632fi
10633
10634
10635		CFLAGS="$xorg_testset_save_CFLAGS"
10636
10637		eval supported=\$$cacheid
10638		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10639$as_echo "$supported" >&6; }
10640		if test "$supported" = "yes" ; then
10641			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10642			found="yes"
10643		fi
10644	fi
10645
10646
10647
10648if test "x$STRICT_COMPILE" = "xyes"; then
10649    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10650    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10651fi
10652
10653
10654
10655
10656
10657
10658cat >>confdefs.h <<_ACEOF
10659#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10660_ACEOF
10661
10662	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10663	if test "x$PVM" = "x"; then
10664		PVM="0"
10665	fi
10666
10667cat >>confdefs.h <<_ACEOF
10668#define PACKAGE_VERSION_MINOR $PVM
10669_ACEOF
10670
10671	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10672	if test "x$PVP" = "x"; then
10673		PVP="0"
10674	fi
10675
10676cat >>confdefs.h <<_ACEOF
10677#define PACKAGE_VERSION_PATCHLEVEL $PVP
10678_ACEOF
10679
10680
10681
10682CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10683mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10684|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10685echo 'git directory not found: installing possibly empty changelog.' >&2)"
10686
10687
10688
10689
10690macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10691INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10692mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10693|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10694echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10695
10696
10697
10698
10699
10700
10701if test x$APP_MAN_SUFFIX = x    ; then
10702    APP_MAN_SUFFIX=1
10703fi
10704if test x$APP_MAN_DIR = x    ; then
10705    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10706fi
10707
10708if test x$LIB_MAN_SUFFIX = x    ; then
10709    LIB_MAN_SUFFIX=3
10710fi
10711if test x$LIB_MAN_DIR = x    ; then
10712    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10713fi
10714
10715if test x$FILE_MAN_SUFFIX = x    ; then
10716    case $host_os in
10717	solaris*)	FILE_MAN_SUFFIX=4  ;;
10718	*)		FILE_MAN_SUFFIX=5  ;;
10719    esac
10720fi
10721if test x$FILE_MAN_DIR = x    ; then
10722    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10723fi
10724
10725if test x$MISC_MAN_SUFFIX = x    ; then
10726    case $host_os in
10727	solaris*)	MISC_MAN_SUFFIX=5  ;;
10728	*)		MISC_MAN_SUFFIX=7  ;;
10729    esac
10730fi
10731if test x$MISC_MAN_DIR = x    ; then
10732    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10733fi
10734
10735if test x$DRIVER_MAN_SUFFIX = x    ; then
10736    case $host_os in
10737	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10738	*)		DRIVER_MAN_SUFFIX=4  ;;
10739    esac
10740fi
10741if test x$DRIVER_MAN_DIR = x    ; then
10742    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10743fi
10744
10745if test x$ADMIN_MAN_SUFFIX = x    ; then
10746    case $host_os in
10747	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10748	*)		ADMIN_MAN_SUFFIX=8  ;;
10749    esac
10750fi
10751if test x$ADMIN_MAN_DIR = x    ; then
10752    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10753fi
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769XORG_MAN_PAGE="X Version 11"
10770
10771MAN_SUBSTS="\
10772	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10773	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10774	-e 's|__xservername__|Xorg|g' \
10775	-e 's|__xconfigfile__|xorg.conf|g' \
10776	-e 's|__projectroot__|\$(prefix)|g' \
10777	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10778	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10779	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10780	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10781	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10782	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10783	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10784
10785
10786
10787# Check whether --enable-silent-rules was given.
10788if test "${enable_silent_rules+set}" = set; then :
10789  enableval=$enable_silent_rules;
10790fi
10791
10792case $enable_silent_rules in # (((
10793  yes) AM_DEFAULT_VERBOSITY=0;;
10794   no) AM_DEFAULT_VERBOSITY=1;;
10795    *) AM_DEFAULT_VERBOSITY=0;;
10796esac
10797am_make=${MAKE-make}
10798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10799$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10800if ${am_cv_make_support_nested_variables+:} false; then :
10801  $as_echo_n "(cached) " >&6
10802else
10803  if $as_echo 'TRUE=$(BAR$(V))
10804BAR0=false
10805BAR1=true
10806V=1
10807am__doit:
10808	@$(TRUE)
10809.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10810  am_cv_make_support_nested_variables=yes
10811else
10812  am_cv_make_support_nested_variables=no
10813fi
10814fi
10815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10816$as_echo "$am_cv_make_support_nested_variables" >&6; }
10817if test $am_cv_make_support_nested_variables = yes; then
10818    AM_V='$(V)'
10819  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10820else
10821  AM_V=$AM_DEFAULT_VERBOSITY
10822  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10823fi
10824AM_BACKSLASH='\'
10825
10826
10827
10828# Initialize libtool
10829# Check whether --enable-static was given.
10830if test "${enable_static+set}" = set; then :
10831  enableval=$enable_static; p=${PACKAGE-default}
10832    case $enableval in
10833    yes) enable_static=yes ;;
10834    no) enable_static=no ;;
10835    *)
10836     enable_static=no
10837      # Look at the argument we got.  We use all the common list separators.
10838      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10839      for pkg in $enableval; do
10840	IFS="$lt_save_ifs"
10841	if test "X$pkg" = "X$p"; then
10842	  enable_static=yes
10843	fi
10844      done
10845      IFS="$lt_save_ifs"
10846      ;;
10847    esac
10848else
10849  enable_static=no
10850fi
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860case `pwd` in
10861  *\ * | *\	*)
10862    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10863$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10864esac
10865
10866
10867
10868macro_version='2.4.2'
10869macro_revision='1.3337'
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883ltmain="$ac_aux_dir/ltmain.sh"
10884
10885# Backslashify metacharacters that are still active within
10886# double-quoted strings.
10887sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10888
10889# Same as above, but do not quote variable references.
10890double_quote_subst='s/\(["`\\]\)/\\\1/g'
10891
10892# Sed substitution to delay expansion of an escaped shell variable in a
10893# double_quote_subst'ed string.
10894delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10895
10896# Sed substitution to delay expansion of an escaped single quote.
10897delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10898
10899# Sed substitution to avoid accidental globbing in evaled expressions
10900no_glob_subst='s/\*/\\\*/g'
10901
10902ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10903ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10904ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10905
10906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10907$as_echo_n "checking how to print strings... " >&6; }
10908# Test print first, because it will be a builtin if present.
10909if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10910   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10911  ECHO='print -r --'
10912elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10913  ECHO='printf %s\n'
10914else
10915  # Use this function as a fallback that always works.
10916  func_fallback_echo ()
10917  {
10918    eval 'cat <<_LTECHO_EOF
10919$1
10920_LTECHO_EOF'
10921  }
10922  ECHO='func_fallback_echo'
10923fi
10924
10925# func_echo_all arg...
10926# Invoke $ECHO with all args, space-separated.
10927func_echo_all ()
10928{
10929    $ECHO ""
10930}
10931
10932case "$ECHO" in
10933  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10934$as_echo "printf" >&6; } ;;
10935  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10936$as_echo "print -r" >&6; } ;;
10937  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10938$as_echo "cat" >&6; } ;;
10939esac
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10955$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10956if ${ac_cv_path_SED+:} false; then :
10957  $as_echo_n "(cached) " >&6
10958else
10959            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10960     for ac_i in 1 2 3 4 5 6 7; do
10961       ac_script="$ac_script$as_nl$ac_script"
10962     done
10963     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10964     { ac_script=; unset ac_script;}
10965     if test -z "$SED"; then
10966  ac_path_SED_found=false
10967  # Loop through the user's path and test for each of PROGNAME-LIST
10968  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10969for as_dir in $PATH
10970do
10971  IFS=$as_save_IFS
10972  test -z "$as_dir" && as_dir=.
10973    for ac_prog in sed gsed; do
10974    for ac_exec_ext in '' $ac_executable_extensions; do
10975      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10976      as_fn_executable_p "$ac_path_SED" || continue
10977# Check for GNU ac_path_SED and select it if it is found.
10978  # Check for GNU $ac_path_SED
10979case `"$ac_path_SED" --version 2>&1` in
10980*GNU*)
10981  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10982*)
10983  ac_count=0
10984  $as_echo_n 0123456789 >"conftest.in"
10985  while :
10986  do
10987    cat "conftest.in" "conftest.in" >"conftest.tmp"
10988    mv "conftest.tmp" "conftest.in"
10989    cp "conftest.in" "conftest.nl"
10990    $as_echo '' >> "conftest.nl"
10991    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10992    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10993    as_fn_arith $ac_count + 1 && ac_count=$as_val
10994    if test $ac_count -gt ${ac_path_SED_max-0}; then
10995      # Best one so far, save it but keep looking for a better one
10996      ac_cv_path_SED="$ac_path_SED"
10997      ac_path_SED_max=$ac_count
10998    fi
10999    # 10*(2^10) chars as input seems more than enough
11000    test $ac_count -gt 10 && break
11001  done
11002  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11003esac
11004
11005      $ac_path_SED_found && break 3
11006    done
11007  done
11008  done
11009IFS=$as_save_IFS
11010  if test -z "$ac_cv_path_SED"; then
11011    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11012  fi
11013else
11014  ac_cv_path_SED=$SED
11015fi
11016
11017fi
11018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11019$as_echo "$ac_cv_path_SED" >&6; }
11020 SED="$ac_cv_path_SED"
11021  rm -f conftest.sed
11022
11023test -z "$SED" && SED=sed
11024Xsed="$SED -e 1s/^X//"
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11037$as_echo_n "checking for fgrep... " >&6; }
11038if ${ac_cv_path_FGREP+:} false; then :
11039  $as_echo_n "(cached) " >&6
11040else
11041  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11042   then ac_cv_path_FGREP="$GREP -F"
11043   else
11044     if test -z "$FGREP"; then
11045  ac_path_FGREP_found=false
11046  # Loop through the user's path and test for each of PROGNAME-LIST
11047  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11048for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11049do
11050  IFS=$as_save_IFS
11051  test -z "$as_dir" && as_dir=.
11052    for ac_prog in fgrep; do
11053    for ac_exec_ext in '' $ac_executable_extensions; do
11054      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11055      as_fn_executable_p "$ac_path_FGREP" || continue
11056# Check for GNU ac_path_FGREP and select it if it is found.
11057  # Check for GNU $ac_path_FGREP
11058case `"$ac_path_FGREP" --version 2>&1` in
11059*GNU*)
11060  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11061*)
11062  ac_count=0
11063  $as_echo_n 0123456789 >"conftest.in"
11064  while :
11065  do
11066    cat "conftest.in" "conftest.in" >"conftest.tmp"
11067    mv "conftest.tmp" "conftest.in"
11068    cp "conftest.in" "conftest.nl"
11069    $as_echo 'FGREP' >> "conftest.nl"
11070    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11071    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11072    as_fn_arith $ac_count + 1 && ac_count=$as_val
11073    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11074      # Best one so far, save it but keep looking for a better one
11075      ac_cv_path_FGREP="$ac_path_FGREP"
11076      ac_path_FGREP_max=$ac_count
11077    fi
11078    # 10*(2^10) chars as input seems more than enough
11079    test $ac_count -gt 10 && break
11080  done
11081  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11082esac
11083
11084      $ac_path_FGREP_found && break 3
11085    done
11086  done
11087  done
11088IFS=$as_save_IFS
11089  if test -z "$ac_cv_path_FGREP"; then
11090    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11091  fi
11092else
11093  ac_cv_path_FGREP=$FGREP
11094fi
11095
11096   fi
11097fi
11098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11099$as_echo "$ac_cv_path_FGREP" >&6; }
11100 FGREP="$ac_cv_path_FGREP"
11101
11102
11103test -z "$GREP" && GREP=grep
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123# Check whether --with-gnu-ld was given.
11124if test "${with_gnu_ld+set}" = set; then :
11125  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11126else
11127  with_gnu_ld=no
11128fi
11129
11130ac_prog=ld
11131if test "$GCC" = yes; then
11132  # Check if gcc -print-prog-name=ld gives a path.
11133  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11134$as_echo_n "checking for ld used by $CC... " >&6; }
11135  case $host in
11136  *-*-mingw*)
11137    # gcc leaves a trailing carriage return which upsets mingw
11138    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11139  *)
11140    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11141  esac
11142  case $ac_prog in
11143    # Accept absolute paths.
11144    [\\/]* | ?:[\\/]*)
11145      re_direlt='/[^/][^/]*/\.\./'
11146      # Canonicalize the pathname of ld
11147      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11148      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11149	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11150      done
11151      test -z "$LD" && LD="$ac_prog"
11152      ;;
11153  "")
11154    # If it fails, then pretend we aren't using GCC.
11155    ac_prog=ld
11156    ;;
11157  *)
11158    # If it is relative, then search for the first ld in PATH.
11159    with_gnu_ld=unknown
11160    ;;
11161  esac
11162elif test "$with_gnu_ld" = yes; then
11163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11164$as_echo_n "checking for GNU ld... " >&6; }
11165else
11166  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11167$as_echo_n "checking for non-GNU ld... " >&6; }
11168fi
11169if ${lt_cv_path_LD+:} false; then :
11170  $as_echo_n "(cached) " >&6
11171else
11172  if test -z "$LD"; then
11173  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11174  for ac_dir in $PATH; do
11175    IFS="$lt_save_ifs"
11176    test -z "$ac_dir" && ac_dir=.
11177    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11178      lt_cv_path_LD="$ac_dir/$ac_prog"
11179      # Check to see if the program is GNU ld.  I'd rather use --version,
11180      # but apparently some variants of GNU ld only accept -v.
11181      # Break only if it was the GNU/non-GNU ld that we prefer.
11182      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11183      *GNU* | *'with BFD'*)
11184	test "$with_gnu_ld" != no && break
11185	;;
11186      *)
11187	test "$with_gnu_ld" != yes && break
11188	;;
11189      esac
11190    fi
11191  done
11192  IFS="$lt_save_ifs"
11193else
11194  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11195fi
11196fi
11197
11198LD="$lt_cv_path_LD"
11199if test -n "$LD"; then
11200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11201$as_echo "$LD" >&6; }
11202else
11203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11204$as_echo "no" >&6; }
11205fi
11206test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11208$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11209if ${lt_cv_prog_gnu_ld+:} false; then :
11210  $as_echo_n "(cached) " >&6
11211else
11212  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11213case `$LD -v 2>&1 </dev/null` in
11214*GNU* | *'with BFD'*)
11215  lt_cv_prog_gnu_ld=yes
11216  ;;
11217*)
11218  lt_cv_prog_gnu_ld=no
11219  ;;
11220esac
11221fi
11222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11223$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11224with_gnu_ld=$lt_cv_prog_gnu_ld
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11235$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11236if ${lt_cv_path_NM+:} false; then :
11237  $as_echo_n "(cached) " >&6
11238else
11239  if test -n "$NM"; then
11240  # Let the user override the test.
11241  lt_cv_path_NM="$NM"
11242else
11243  lt_nm_to_check="${ac_tool_prefix}nm"
11244  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11245    lt_nm_to_check="$lt_nm_to_check nm"
11246  fi
11247  for lt_tmp_nm in $lt_nm_to_check; do
11248    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11249    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11250      IFS="$lt_save_ifs"
11251      test -z "$ac_dir" && ac_dir=.
11252      tmp_nm="$ac_dir/$lt_tmp_nm"
11253      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11254	# Check to see if the nm accepts a BSD-compat flag.
11255	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
11256	#   nm: unknown option "B" ignored
11257	# Tru64's nm complains that /dev/null is an invalid object file
11258	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11259	*/dev/null* | *'Invalid file or object type'*)
11260	  lt_cv_path_NM="$tmp_nm -B"
11261	  break
11262	  ;;
11263	*)
11264	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11265	  */dev/null*)
11266	    lt_cv_path_NM="$tmp_nm -p"
11267	    break
11268	    ;;
11269	  *)
11270	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11271	    continue # so that we can try to find one that supports BSD flags
11272	    ;;
11273	  esac
11274	  ;;
11275	esac
11276      fi
11277    done
11278    IFS="$lt_save_ifs"
11279  done
11280  : ${lt_cv_path_NM=no}
11281fi
11282fi
11283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11284$as_echo "$lt_cv_path_NM" >&6; }
11285if test "$lt_cv_path_NM" != "no"; then
11286  NM="$lt_cv_path_NM"
11287else
11288  # Didn't find any BSD compatible name lister, look for dumpbin.
11289  if test -n "$DUMPBIN"; then :
11290    # Let the user override the test.
11291  else
11292    if test -n "$ac_tool_prefix"; then
11293  for ac_prog in dumpbin "link -dump"
11294  do
11295    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11296set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11298$as_echo_n "checking for $ac_word... " >&6; }
11299if ${ac_cv_prog_DUMPBIN+:} false; then :
11300  $as_echo_n "(cached) " >&6
11301else
11302  if test -n "$DUMPBIN"; then
11303  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11304else
11305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11306for as_dir in $PATH
11307do
11308  IFS=$as_save_IFS
11309  test -z "$as_dir" && as_dir=.
11310    for ac_exec_ext in '' $ac_executable_extensions; do
11311  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11312    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11313    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11314    break 2
11315  fi
11316done
11317  done
11318IFS=$as_save_IFS
11319
11320fi
11321fi
11322DUMPBIN=$ac_cv_prog_DUMPBIN
11323if test -n "$DUMPBIN"; then
11324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11325$as_echo "$DUMPBIN" >&6; }
11326else
11327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328$as_echo "no" >&6; }
11329fi
11330
11331
11332    test -n "$DUMPBIN" && break
11333  done
11334fi
11335if test -z "$DUMPBIN"; then
11336  ac_ct_DUMPBIN=$DUMPBIN
11337  for ac_prog in dumpbin "link -dump"
11338do
11339  # Extract the first word of "$ac_prog", so it can be a program name with args.
11340set dummy $ac_prog; ac_word=$2
11341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11342$as_echo_n "checking for $ac_word... " >&6; }
11343if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11344  $as_echo_n "(cached) " >&6
11345else
11346  if test -n "$ac_ct_DUMPBIN"; then
11347  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11348else
11349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11350for as_dir in $PATH
11351do
11352  IFS=$as_save_IFS
11353  test -z "$as_dir" && as_dir=.
11354    for ac_exec_ext in '' $ac_executable_extensions; do
11355  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11356    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11357    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11358    break 2
11359  fi
11360done
11361  done
11362IFS=$as_save_IFS
11363
11364fi
11365fi
11366ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11367if test -n "$ac_ct_DUMPBIN"; then
11368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11369$as_echo "$ac_ct_DUMPBIN" >&6; }
11370else
11371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372$as_echo "no" >&6; }
11373fi
11374
11375
11376  test -n "$ac_ct_DUMPBIN" && break
11377done
11378
11379  if test "x$ac_ct_DUMPBIN" = x; then
11380    DUMPBIN=":"
11381  else
11382    case $cross_compiling:$ac_tool_warned in
11383yes:)
11384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11386ac_tool_warned=yes ;;
11387esac
11388    DUMPBIN=$ac_ct_DUMPBIN
11389  fi
11390fi
11391
11392    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11393    *COFF*)
11394      DUMPBIN="$DUMPBIN -symbols"
11395      ;;
11396    *)
11397      DUMPBIN=:
11398      ;;
11399    esac
11400  fi
11401
11402  if test "$DUMPBIN" != ":"; then
11403    NM="$DUMPBIN"
11404  fi
11405fi
11406test -z "$NM" && NM=nm
11407
11408
11409
11410
11411
11412
11413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11414$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11415if ${lt_cv_nm_interface+:} false; then :
11416  $as_echo_n "(cached) " >&6
11417else
11418  lt_cv_nm_interface="BSD nm"
11419  echo "int some_variable = 0;" > conftest.$ac_ext
11420  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11421  (eval "$ac_compile" 2>conftest.err)
11422  cat conftest.err >&5
11423  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11424  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11425  cat conftest.err >&5
11426  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11427  cat conftest.out >&5
11428  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11429    lt_cv_nm_interface="MS dumpbin"
11430  fi
11431  rm -f conftest*
11432fi
11433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11434$as_echo "$lt_cv_nm_interface" >&6; }
11435
11436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11437$as_echo_n "checking whether ln -s works... " >&6; }
11438LN_S=$as_ln_s
11439if test "$LN_S" = "ln -s"; then
11440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11441$as_echo "yes" >&6; }
11442else
11443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11444$as_echo "no, using $LN_S" >&6; }
11445fi
11446
11447# find the maximum length of command line arguments
11448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11449$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11450if ${lt_cv_sys_max_cmd_len+:} false; then :
11451  $as_echo_n "(cached) " >&6
11452else
11453    i=0
11454  teststring="ABCD"
11455
11456  case $build_os in
11457  msdosdjgpp*)
11458    # On DJGPP, this test can blow up pretty badly due to problems in libc
11459    # (any single argument exceeding 2000 bytes causes a buffer overrun
11460    # during glob expansion).  Even if it were fixed, the result of this
11461    # check would be larger than it should be.
11462    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11463    ;;
11464
11465  gnu*)
11466    # Under GNU Hurd, this test is not required because there is
11467    # no limit to the length of command line arguments.
11468    # Libtool will interpret -1 as no limit whatsoever
11469    lt_cv_sys_max_cmd_len=-1;
11470    ;;
11471
11472  cygwin* | mingw* | cegcc*)
11473    # On Win9x/ME, this test blows up -- it succeeds, but takes
11474    # about 5 minutes as the teststring grows exponentially.
11475    # Worse, since 9x/ME are not pre-emptively multitasking,
11476    # you end up with a "frozen" computer, even though with patience
11477    # the test eventually succeeds (with a max line length of 256k).
11478    # Instead, let's just punt: use the minimum linelength reported by
11479    # all of the supported platforms: 8192 (on NT/2K/XP).
11480    lt_cv_sys_max_cmd_len=8192;
11481    ;;
11482
11483  mint*)
11484    # On MiNT this can take a long time and run out of memory.
11485    lt_cv_sys_max_cmd_len=8192;
11486    ;;
11487
11488  amigaos*)
11489    # On AmigaOS with pdksh, this test takes hours, literally.
11490    # So we just punt and use a minimum line length of 8192.
11491    lt_cv_sys_max_cmd_len=8192;
11492    ;;
11493
11494  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11495    # This has been around since 386BSD, at least.  Likely further.
11496    if test -x /sbin/sysctl; then
11497      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11498    elif test -x /usr/sbin/sysctl; then
11499      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11500    else
11501      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11502    fi
11503    # And add a safety zone
11504    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11505    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11506    ;;
11507
11508  interix*)
11509    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11510    lt_cv_sys_max_cmd_len=196608
11511    ;;
11512
11513  os2*)
11514    # The test takes a long time on OS/2.
11515    lt_cv_sys_max_cmd_len=8192
11516    ;;
11517
11518  osf*)
11519    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11520    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11521    # nice to cause kernel panics so lets avoid the loop below.
11522    # First set a reasonable default.
11523    lt_cv_sys_max_cmd_len=16384
11524    #
11525    if test -x /sbin/sysconfig; then
11526      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11527        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11528      esac
11529    fi
11530    ;;
11531  sco3.2v5*)
11532    lt_cv_sys_max_cmd_len=102400
11533    ;;
11534  sysv5* | sco5v6* | sysv4.2uw2*)
11535    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11536    if test -n "$kargmax"; then
11537      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11538    else
11539      lt_cv_sys_max_cmd_len=32768
11540    fi
11541    ;;
11542  *)
11543    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11544    if test -n "$lt_cv_sys_max_cmd_len" && \
11545	test undefined != "$lt_cv_sys_max_cmd_len"; then
11546      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11547      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11548    else
11549      # Make teststring a little bigger before we do anything with it.
11550      # a 1K string should be a reasonable start.
11551      for i in 1 2 3 4 5 6 7 8 ; do
11552        teststring=$teststring$teststring
11553      done
11554      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11555      # If test is not a shell built-in, we'll probably end up computing a
11556      # maximum length that is only half of the actual maximum length, but
11557      # we can't tell.
11558      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11559	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11560	      test $i != 17 # 1/2 MB should be enough
11561      do
11562        i=`expr $i + 1`
11563        teststring=$teststring$teststring
11564      done
11565      # Only check the string length outside the loop.
11566      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11567      teststring=
11568      # Add a significant safety factor because C++ compilers can tack on
11569      # massive amounts of additional arguments before passing them to the
11570      # linker.  It appears as though 1/2 is a usable value.
11571      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11572    fi
11573    ;;
11574  esac
11575
11576fi
11577
11578if test -n $lt_cv_sys_max_cmd_len ; then
11579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11580$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11581else
11582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11583$as_echo "none" >&6; }
11584fi
11585max_cmd_len=$lt_cv_sys_max_cmd_len
11586
11587
11588
11589
11590
11591
11592: ${CP="cp -f"}
11593: ${MV="mv -f"}
11594: ${RM="rm -f"}
11595
11596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11597$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11598# Try some XSI features
11599xsi_shell=no
11600( _lt_dummy="a/b/c"
11601  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11602      = c,a/b,b/c, \
11603    && eval 'test $(( 1 + 1 )) -eq 2 \
11604    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11605  && xsi_shell=yes
11606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11607$as_echo "$xsi_shell" >&6; }
11608
11609
11610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11611$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11612lt_shell_append=no
11613( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11614    >/dev/null 2>&1 \
11615  && lt_shell_append=yes
11616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11617$as_echo "$lt_shell_append" >&6; }
11618
11619
11620if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11621  lt_unset=unset
11622else
11623  lt_unset=false
11624fi
11625
11626
11627
11628
11629
11630# test EBCDIC or ASCII
11631case `echo X|tr X '\101'` in
11632 A) # ASCII based system
11633    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11634  lt_SP2NL='tr \040 \012'
11635  lt_NL2SP='tr \015\012 \040\040'
11636  ;;
11637 *) # EBCDIC based system
11638  lt_SP2NL='tr \100 \n'
11639  lt_NL2SP='tr \r\n \100\100'
11640  ;;
11641esac
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11652$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11653if ${lt_cv_to_host_file_cmd+:} false; then :
11654  $as_echo_n "(cached) " >&6
11655else
11656  case $host in
11657  *-*-mingw* )
11658    case $build in
11659      *-*-mingw* ) # actually msys
11660        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11661        ;;
11662      *-*-cygwin* )
11663        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11664        ;;
11665      * ) # otherwise, assume *nix
11666        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11667        ;;
11668    esac
11669    ;;
11670  *-*-cygwin* )
11671    case $build in
11672      *-*-mingw* ) # actually msys
11673        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11674        ;;
11675      *-*-cygwin* )
11676        lt_cv_to_host_file_cmd=func_convert_file_noop
11677        ;;
11678      * ) # otherwise, assume *nix
11679        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11680        ;;
11681    esac
11682    ;;
11683  * ) # unhandled hosts (and "normal" native builds)
11684    lt_cv_to_host_file_cmd=func_convert_file_noop
11685    ;;
11686esac
11687
11688fi
11689
11690to_host_file_cmd=$lt_cv_to_host_file_cmd
11691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11692$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11693
11694
11695
11696
11697
11698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11699$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11700if ${lt_cv_to_tool_file_cmd+:} false; then :
11701  $as_echo_n "(cached) " >&6
11702else
11703  #assume ordinary cross tools, or native build.
11704lt_cv_to_tool_file_cmd=func_convert_file_noop
11705case $host in
11706  *-*-mingw* )
11707    case $build in
11708      *-*-mingw* ) # actually msys
11709        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11710        ;;
11711    esac
11712    ;;
11713esac
11714
11715fi
11716
11717to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11719$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11720
11721
11722
11723
11724
11725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11726$as_echo_n "checking for $LD option to reload object files... " >&6; }
11727if ${lt_cv_ld_reload_flag+:} false; then :
11728  $as_echo_n "(cached) " >&6
11729else
11730  lt_cv_ld_reload_flag='-r'
11731fi
11732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11733$as_echo "$lt_cv_ld_reload_flag" >&6; }
11734reload_flag=$lt_cv_ld_reload_flag
11735case $reload_flag in
11736"" | " "*) ;;
11737*) reload_flag=" $reload_flag" ;;
11738esac
11739reload_cmds='$LD$reload_flag -o $output$reload_objs'
11740case $host_os in
11741  cygwin* | mingw* | pw32* | cegcc*)
11742    if test "$GCC" != yes; then
11743      reload_cmds=false
11744    fi
11745    ;;
11746  darwin*)
11747    if test "$GCC" = yes; then
11748      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11749    else
11750      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11751    fi
11752    ;;
11753esac
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763if test -n "$ac_tool_prefix"; then
11764  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11765set dummy ${ac_tool_prefix}objdump; ac_word=$2
11766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11767$as_echo_n "checking for $ac_word... " >&6; }
11768if ${ac_cv_prog_OBJDUMP+:} false; then :
11769  $as_echo_n "(cached) " >&6
11770else
11771  if test -n "$OBJDUMP"; then
11772  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11773else
11774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11775for as_dir in $PATH
11776do
11777  IFS=$as_save_IFS
11778  test -z "$as_dir" && as_dir=.
11779    for ac_exec_ext in '' $ac_executable_extensions; do
11780  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11781    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11783    break 2
11784  fi
11785done
11786  done
11787IFS=$as_save_IFS
11788
11789fi
11790fi
11791OBJDUMP=$ac_cv_prog_OBJDUMP
11792if test -n "$OBJDUMP"; then
11793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11794$as_echo "$OBJDUMP" >&6; }
11795else
11796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797$as_echo "no" >&6; }
11798fi
11799
11800
11801fi
11802if test -z "$ac_cv_prog_OBJDUMP"; then
11803  ac_ct_OBJDUMP=$OBJDUMP
11804  # Extract the first word of "objdump", so it can be a program name with args.
11805set dummy objdump; ac_word=$2
11806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11807$as_echo_n "checking for $ac_word... " >&6; }
11808if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11809  $as_echo_n "(cached) " >&6
11810else
11811  if test -n "$ac_ct_OBJDUMP"; then
11812  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11813else
11814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815for as_dir in $PATH
11816do
11817  IFS=$as_save_IFS
11818  test -z "$as_dir" && as_dir=.
11819    for ac_exec_ext in '' $ac_executable_extensions; do
11820  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11821    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11823    break 2
11824  fi
11825done
11826  done
11827IFS=$as_save_IFS
11828
11829fi
11830fi
11831ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11832if test -n "$ac_ct_OBJDUMP"; then
11833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11834$as_echo "$ac_ct_OBJDUMP" >&6; }
11835else
11836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837$as_echo "no" >&6; }
11838fi
11839
11840  if test "x$ac_ct_OBJDUMP" = x; then
11841    OBJDUMP="false"
11842  else
11843    case $cross_compiling:$ac_tool_warned in
11844yes:)
11845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11847ac_tool_warned=yes ;;
11848esac
11849    OBJDUMP=$ac_ct_OBJDUMP
11850  fi
11851else
11852  OBJDUMP="$ac_cv_prog_OBJDUMP"
11853fi
11854
11855test -z "$OBJDUMP" && OBJDUMP=objdump
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11866$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11867if ${lt_cv_deplibs_check_method+:} false; then :
11868  $as_echo_n "(cached) " >&6
11869else
11870  lt_cv_file_magic_cmd='$MAGIC_CMD'
11871lt_cv_file_magic_test_file=
11872lt_cv_deplibs_check_method='unknown'
11873# Need to set the preceding variable on all platforms that support
11874# interlibrary dependencies.
11875# 'none' -- dependencies not supported.
11876# `unknown' -- same as none, but documents that we really don't know.
11877# 'pass_all' -- all dependencies passed with no checks.
11878# 'test_compile' -- check by making test program.
11879# 'file_magic [[regex]]' -- check by looking for files in library path
11880# which responds to the $file_magic_cmd with a given extended regex.
11881# If you have `file' or equivalent on your system and you're not sure
11882# whether `pass_all' will *always* work, you probably want this one.
11883
11884case $host_os in
11885aix[4-9]*)
11886  lt_cv_deplibs_check_method=pass_all
11887  ;;
11888
11889beos*)
11890  lt_cv_deplibs_check_method=pass_all
11891  ;;
11892
11893bsdi[45]*)
11894  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11895  lt_cv_file_magic_cmd='/usr/bin/file -L'
11896  lt_cv_file_magic_test_file=/shlib/libc.so
11897  ;;
11898
11899cygwin*)
11900  # func_win32_libid is a shell function defined in ltmain.sh
11901  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11902  lt_cv_file_magic_cmd='func_win32_libid'
11903  ;;
11904
11905mingw* | pw32*)
11906  # Base MSYS/MinGW do not provide the 'file' command needed by
11907  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11908  # unless we find 'file', for example because we are cross-compiling.
11909  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11910  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11911    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11912    lt_cv_file_magic_cmd='func_win32_libid'
11913  else
11914    # Keep this pattern in sync with the one in func_win32_libid.
11915    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11916    lt_cv_file_magic_cmd='$OBJDUMP -f'
11917  fi
11918  ;;
11919
11920cegcc*)
11921  # use the weaker test based on 'objdump'. See mingw*.
11922  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11923  lt_cv_file_magic_cmd='$OBJDUMP -f'
11924  ;;
11925
11926darwin* | rhapsody*)
11927  lt_cv_deplibs_check_method=pass_all
11928  ;;
11929
11930freebsd* | dragonfly*)
11931  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11932    case $host_cpu in
11933    i*86 )
11934      # Not sure whether the presence of OpenBSD here was a mistake.
11935      # Let's accept both of them until this is cleared up.
11936      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11937      lt_cv_file_magic_cmd=/usr/bin/file
11938      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11939      ;;
11940    esac
11941  else
11942    lt_cv_deplibs_check_method=pass_all
11943  fi
11944  ;;
11945
11946haiku*)
11947  lt_cv_deplibs_check_method=pass_all
11948  ;;
11949
11950hpux10.20* | hpux11*)
11951  lt_cv_file_magic_cmd=/usr/bin/file
11952  case $host_cpu in
11953  ia64*)
11954    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11955    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11956    ;;
11957  hppa*64*)
11958    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]'
11959    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11960    ;;
11961  *)
11962    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11963    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11964    ;;
11965  esac
11966  ;;
11967
11968interix[3-9]*)
11969  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11970  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11971  ;;
11972
11973irix5* | irix6* | nonstopux*)
11974  case $LD in
11975  *-32|*"-32 ") libmagic=32-bit;;
11976  *-n32|*"-n32 ") libmagic=N32;;
11977  *-64|*"-64 ") libmagic=64-bit;;
11978  *) libmagic=never-match;;
11979  esac
11980  lt_cv_deplibs_check_method=pass_all
11981  ;;
11982
11983# This must be glibc/ELF.
11984linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11985  lt_cv_deplibs_check_method=pass_all
11986  ;;
11987
11988netbsd* | netbsdelf*-gnu)
11989  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11990    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11991  else
11992    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11993  fi
11994  ;;
11995
11996newos6*)
11997  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11998  lt_cv_file_magic_cmd=/usr/bin/file
11999  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12000  ;;
12001
12002*nto* | *qnx*)
12003  lt_cv_deplibs_check_method=pass_all
12004  ;;
12005
12006openbsd*)
12007  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12008    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12009  else
12010    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12011  fi
12012  ;;
12013
12014osf3* | osf4* | osf5*)
12015  lt_cv_deplibs_check_method=pass_all
12016  ;;
12017
12018rdos*)
12019  lt_cv_deplibs_check_method=pass_all
12020  ;;
12021
12022solaris*)
12023  lt_cv_deplibs_check_method=pass_all
12024  ;;
12025
12026sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12027  lt_cv_deplibs_check_method=pass_all
12028  ;;
12029
12030sysv4 | sysv4.3*)
12031  case $host_vendor in
12032  motorola)
12033    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]'
12034    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12035    ;;
12036  ncr)
12037    lt_cv_deplibs_check_method=pass_all
12038    ;;
12039  sequent)
12040    lt_cv_file_magic_cmd='/bin/file'
12041    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12042    ;;
12043  sni)
12044    lt_cv_file_magic_cmd='/bin/file'
12045    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12046    lt_cv_file_magic_test_file=/lib/libc.so
12047    ;;
12048  siemens)
12049    lt_cv_deplibs_check_method=pass_all
12050    ;;
12051  pc)
12052    lt_cv_deplibs_check_method=pass_all
12053    ;;
12054  esac
12055  ;;
12056
12057tpf*)
12058  lt_cv_deplibs_check_method=pass_all
12059  ;;
12060esac
12061
12062fi
12063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12064$as_echo "$lt_cv_deplibs_check_method" >&6; }
12065
12066file_magic_glob=
12067want_nocaseglob=no
12068if test "$build" = "$host"; then
12069  case $host_os in
12070  mingw* | pw32*)
12071    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12072      want_nocaseglob=yes
12073    else
12074      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12075    fi
12076    ;;
12077  esac
12078fi
12079
12080file_magic_cmd=$lt_cv_file_magic_cmd
12081deplibs_check_method=$lt_cv_deplibs_check_method
12082test -z "$deplibs_check_method" && deplibs_check_method=unknown
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105if test -n "$ac_tool_prefix"; then
12106  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12107set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12109$as_echo_n "checking for $ac_word... " >&6; }
12110if ${ac_cv_prog_DLLTOOL+:} false; then :
12111  $as_echo_n "(cached) " >&6
12112else
12113  if test -n "$DLLTOOL"; then
12114  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12115else
12116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12117for as_dir in $PATH
12118do
12119  IFS=$as_save_IFS
12120  test -z "$as_dir" && as_dir=.
12121    for ac_exec_ext in '' $ac_executable_extensions; do
12122  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12123    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12125    break 2
12126  fi
12127done
12128  done
12129IFS=$as_save_IFS
12130
12131fi
12132fi
12133DLLTOOL=$ac_cv_prog_DLLTOOL
12134if test -n "$DLLTOOL"; then
12135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12136$as_echo "$DLLTOOL" >&6; }
12137else
12138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12139$as_echo "no" >&6; }
12140fi
12141
12142
12143fi
12144if test -z "$ac_cv_prog_DLLTOOL"; then
12145  ac_ct_DLLTOOL=$DLLTOOL
12146  # Extract the first word of "dlltool", so it can be a program name with args.
12147set dummy dlltool; ac_word=$2
12148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12149$as_echo_n "checking for $ac_word... " >&6; }
12150if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12151  $as_echo_n "(cached) " >&6
12152else
12153  if test -n "$ac_ct_DLLTOOL"; then
12154  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12155else
12156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12157for as_dir in $PATH
12158do
12159  IFS=$as_save_IFS
12160  test -z "$as_dir" && as_dir=.
12161    for ac_exec_ext in '' $ac_executable_extensions; do
12162  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12163    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12164    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12165    break 2
12166  fi
12167done
12168  done
12169IFS=$as_save_IFS
12170
12171fi
12172fi
12173ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12174if test -n "$ac_ct_DLLTOOL"; then
12175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12176$as_echo "$ac_ct_DLLTOOL" >&6; }
12177else
12178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12179$as_echo "no" >&6; }
12180fi
12181
12182  if test "x$ac_ct_DLLTOOL" = x; then
12183    DLLTOOL="false"
12184  else
12185    case $cross_compiling:$ac_tool_warned in
12186yes:)
12187{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12188$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12189ac_tool_warned=yes ;;
12190esac
12191    DLLTOOL=$ac_ct_DLLTOOL
12192  fi
12193else
12194  DLLTOOL="$ac_cv_prog_DLLTOOL"
12195fi
12196
12197test -z "$DLLTOOL" && DLLTOOL=dlltool
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12209$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12210if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12211  $as_echo_n "(cached) " >&6
12212else
12213  lt_cv_sharedlib_from_linklib_cmd='unknown'
12214
12215case $host_os in
12216cygwin* | mingw* | pw32* | cegcc*)
12217  # two different shell functions defined in ltmain.sh
12218  # decide which to use based on capabilities of $DLLTOOL
12219  case `$DLLTOOL --help 2>&1` in
12220  *--identify-strict*)
12221    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12222    ;;
12223  *)
12224    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12225    ;;
12226  esac
12227  ;;
12228*)
12229  # fallback: assume linklib IS sharedlib
12230  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12231  ;;
12232esac
12233
12234fi
12235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12236$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12237sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12238test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12239
12240
12241
12242
12243
12244
12245
12246if test -n "$ac_tool_prefix"; then
12247  for ac_prog in ar
12248  do
12249    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12250set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12252$as_echo_n "checking for $ac_word... " >&6; }
12253if ${ac_cv_prog_AR+:} false; then :
12254  $as_echo_n "(cached) " >&6
12255else
12256  if test -n "$AR"; then
12257  ac_cv_prog_AR="$AR" # Let the user override the test.
12258else
12259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12260for as_dir in $PATH
12261do
12262  IFS=$as_save_IFS
12263  test -z "$as_dir" && as_dir=.
12264    for ac_exec_ext in '' $ac_executable_extensions; do
12265  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12266    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12267    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12268    break 2
12269  fi
12270done
12271  done
12272IFS=$as_save_IFS
12273
12274fi
12275fi
12276AR=$ac_cv_prog_AR
12277if test -n "$AR"; then
12278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12279$as_echo "$AR" >&6; }
12280else
12281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282$as_echo "no" >&6; }
12283fi
12284
12285
12286    test -n "$AR" && break
12287  done
12288fi
12289if test -z "$AR"; then
12290  ac_ct_AR=$AR
12291  for ac_prog in ar
12292do
12293  # Extract the first word of "$ac_prog", so it can be a program name with args.
12294set dummy $ac_prog; ac_word=$2
12295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12296$as_echo_n "checking for $ac_word... " >&6; }
12297if ${ac_cv_prog_ac_ct_AR+:} false; then :
12298  $as_echo_n "(cached) " >&6
12299else
12300  if test -n "$ac_ct_AR"; then
12301  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12302else
12303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304for as_dir in $PATH
12305do
12306  IFS=$as_save_IFS
12307  test -z "$as_dir" && as_dir=.
12308    for ac_exec_ext in '' $ac_executable_extensions; do
12309  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12310    ac_cv_prog_ac_ct_AR="$ac_prog"
12311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12312    break 2
12313  fi
12314done
12315  done
12316IFS=$as_save_IFS
12317
12318fi
12319fi
12320ac_ct_AR=$ac_cv_prog_ac_ct_AR
12321if test -n "$ac_ct_AR"; then
12322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12323$as_echo "$ac_ct_AR" >&6; }
12324else
12325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326$as_echo "no" >&6; }
12327fi
12328
12329
12330  test -n "$ac_ct_AR" && break
12331done
12332
12333  if test "x$ac_ct_AR" = x; then
12334    AR="false"
12335  else
12336    case $cross_compiling:$ac_tool_warned in
12337yes:)
12338{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12340ac_tool_warned=yes ;;
12341esac
12342    AR=$ac_ct_AR
12343  fi
12344fi
12345
12346: ${AR=ar}
12347: ${AR_FLAGS=cru}
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12360$as_echo_n "checking for archiver @FILE support... " >&6; }
12361if ${lt_cv_ar_at_file+:} false; then :
12362  $as_echo_n "(cached) " >&6
12363else
12364  lt_cv_ar_at_file=no
12365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366/* end confdefs.h.  */
12367
12368int
12369main ()
12370{
12371
12372  ;
12373  return 0;
12374}
12375_ACEOF
12376if ac_fn_c_try_compile "$LINENO"; then :
12377  echo conftest.$ac_objext > conftest.lst
12378      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12379      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12380  (eval $lt_ar_try) 2>&5
12381  ac_status=$?
12382  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12383  test $ac_status = 0; }
12384      if test "$ac_status" -eq 0; then
12385	# Ensure the archiver fails upon bogus file names.
12386	rm -f conftest.$ac_objext libconftest.a
12387	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12388  (eval $lt_ar_try) 2>&5
12389  ac_status=$?
12390  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12391  test $ac_status = 0; }
12392	if test "$ac_status" -ne 0; then
12393          lt_cv_ar_at_file=@
12394        fi
12395      fi
12396      rm -f conftest.* libconftest.a
12397
12398fi
12399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12400
12401fi
12402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12403$as_echo "$lt_cv_ar_at_file" >&6; }
12404
12405if test "x$lt_cv_ar_at_file" = xno; then
12406  archiver_list_spec=
12407else
12408  archiver_list_spec=$lt_cv_ar_at_file
12409fi
12410
12411
12412
12413
12414
12415
12416
12417if test -n "$ac_tool_prefix"; then
12418  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12419set dummy ${ac_tool_prefix}strip; ac_word=$2
12420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12421$as_echo_n "checking for $ac_word... " >&6; }
12422if ${ac_cv_prog_STRIP+:} false; then :
12423  $as_echo_n "(cached) " >&6
12424else
12425  if test -n "$STRIP"; then
12426  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12427else
12428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429for as_dir in $PATH
12430do
12431  IFS=$as_save_IFS
12432  test -z "$as_dir" && as_dir=.
12433    for ac_exec_ext in '' $ac_executable_extensions; do
12434  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12435    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12436    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12437    break 2
12438  fi
12439done
12440  done
12441IFS=$as_save_IFS
12442
12443fi
12444fi
12445STRIP=$ac_cv_prog_STRIP
12446if test -n "$STRIP"; then
12447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12448$as_echo "$STRIP" >&6; }
12449else
12450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12451$as_echo "no" >&6; }
12452fi
12453
12454
12455fi
12456if test -z "$ac_cv_prog_STRIP"; then
12457  ac_ct_STRIP=$STRIP
12458  # Extract the first word of "strip", so it can be a program name with args.
12459set dummy strip; ac_word=$2
12460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12461$as_echo_n "checking for $ac_word... " >&6; }
12462if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12463  $as_echo_n "(cached) " >&6
12464else
12465  if test -n "$ac_ct_STRIP"; then
12466  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12467else
12468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12469for as_dir in $PATH
12470do
12471  IFS=$as_save_IFS
12472  test -z "$as_dir" && as_dir=.
12473    for ac_exec_ext in '' $ac_executable_extensions; do
12474  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12475    ac_cv_prog_ac_ct_STRIP="strip"
12476    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12477    break 2
12478  fi
12479done
12480  done
12481IFS=$as_save_IFS
12482
12483fi
12484fi
12485ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12486if test -n "$ac_ct_STRIP"; then
12487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12488$as_echo "$ac_ct_STRIP" >&6; }
12489else
12490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491$as_echo "no" >&6; }
12492fi
12493
12494  if test "x$ac_ct_STRIP" = x; then
12495    STRIP=":"
12496  else
12497    case $cross_compiling:$ac_tool_warned in
12498yes:)
12499{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12500$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12501ac_tool_warned=yes ;;
12502esac
12503    STRIP=$ac_ct_STRIP
12504  fi
12505else
12506  STRIP="$ac_cv_prog_STRIP"
12507fi
12508
12509test -z "$STRIP" && STRIP=:
12510
12511
12512
12513
12514
12515
12516if test -n "$ac_tool_prefix"; then
12517  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12518set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12520$as_echo_n "checking for $ac_word... " >&6; }
12521if ${ac_cv_prog_RANLIB+:} false; then :
12522  $as_echo_n "(cached) " >&6
12523else
12524  if test -n "$RANLIB"; then
12525  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12526else
12527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12528for as_dir in $PATH
12529do
12530  IFS=$as_save_IFS
12531  test -z "$as_dir" && as_dir=.
12532    for ac_exec_ext in '' $ac_executable_extensions; do
12533  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12534    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12536    break 2
12537  fi
12538done
12539  done
12540IFS=$as_save_IFS
12541
12542fi
12543fi
12544RANLIB=$ac_cv_prog_RANLIB
12545if test -n "$RANLIB"; then
12546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12547$as_echo "$RANLIB" >&6; }
12548else
12549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550$as_echo "no" >&6; }
12551fi
12552
12553
12554fi
12555if test -z "$ac_cv_prog_RANLIB"; then
12556  ac_ct_RANLIB=$RANLIB
12557  # Extract the first word of "ranlib", so it can be a program name with args.
12558set dummy ranlib; ac_word=$2
12559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12560$as_echo_n "checking for $ac_word... " >&6; }
12561if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12562  $as_echo_n "(cached) " >&6
12563else
12564  if test -n "$ac_ct_RANLIB"; then
12565  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12566else
12567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12568for as_dir in $PATH
12569do
12570  IFS=$as_save_IFS
12571  test -z "$as_dir" && as_dir=.
12572    for ac_exec_ext in '' $ac_executable_extensions; do
12573  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12574    ac_cv_prog_ac_ct_RANLIB="ranlib"
12575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12576    break 2
12577  fi
12578done
12579  done
12580IFS=$as_save_IFS
12581
12582fi
12583fi
12584ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12585if test -n "$ac_ct_RANLIB"; then
12586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12587$as_echo "$ac_ct_RANLIB" >&6; }
12588else
12589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12590$as_echo "no" >&6; }
12591fi
12592
12593  if test "x$ac_ct_RANLIB" = x; then
12594    RANLIB=":"
12595  else
12596    case $cross_compiling:$ac_tool_warned in
12597yes:)
12598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12600ac_tool_warned=yes ;;
12601esac
12602    RANLIB=$ac_ct_RANLIB
12603  fi
12604else
12605  RANLIB="$ac_cv_prog_RANLIB"
12606fi
12607
12608test -z "$RANLIB" && RANLIB=:
12609
12610
12611
12612
12613
12614
12615# Determine commands to create old-style static archives.
12616old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12617old_postinstall_cmds='chmod 644 $oldlib'
12618old_postuninstall_cmds=
12619
12620if test -n "$RANLIB"; then
12621  case $host_os in
12622  openbsd*)
12623    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12624    ;;
12625  *)
12626    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12627    ;;
12628  esac
12629  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12630fi
12631
12632case $host_os in
12633  darwin*)
12634    lock_old_archive_extraction=yes ;;
12635  *)
12636    lock_old_archive_extraction=no ;;
12637esac
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677# If no C compiler was specified, use CC.
12678LTCC=${LTCC-"$CC"}
12679
12680# If no C compiler flags were specified, use CFLAGS.
12681LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12682
12683# Allow CC to be a program name with arguments.
12684compiler=$CC
12685
12686
12687# Check for command to grab the raw symbol name followed by C symbol from nm.
12688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12689$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12690if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12691  $as_echo_n "(cached) " >&6
12692else
12693
12694# These are sane defaults that work on at least a few old systems.
12695# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12696
12697# Character class describing NM global symbol codes.
12698symcode='[BCDEGRST]'
12699
12700# Regexp to match symbols that can be accessed directly from C.
12701sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12702
12703# Define system-specific variables.
12704case $host_os in
12705aix*)
12706  symcode='[BCDT]'
12707  ;;
12708cygwin* | mingw* | pw32* | cegcc*)
12709  symcode='[ABCDGISTW]'
12710  ;;
12711hpux*)
12712  if test "$host_cpu" = ia64; then
12713    symcode='[ABCDEGRST]'
12714  fi
12715  ;;
12716irix* | nonstopux*)
12717  symcode='[BCDEGRST]'
12718  ;;
12719osf*)
12720  symcode='[BCDEGQRST]'
12721  ;;
12722solaris*)
12723  symcode='[BDRT]'
12724  ;;
12725sco3.2v5*)
12726  symcode='[DT]'
12727  ;;
12728sysv4.2uw2*)
12729  symcode='[DT]'
12730  ;;
12731sysv5* | sco5v6* | unixware* | OpenUNIX*)
12732  symcode='[ABDT]'
12733  ;;
12734sysv4)
12735  symcode='[DFNSTU]'
12736  ;;
12737esac
12738
12739# If we're using GNU nm, then use its standard symbol codes.
12740case `$NM -V 2>&1` in
12741*GNU* | *'with BFD'*)
12742  symcode='[ABCDGIRSTW]' ;;
12743esac
12744
12745# Transform an extracted symbol line into a proper C declaration.
12746# Some systems (esp. on ia64) link data and code symbols differently,
12747# so use this general approach.
12748lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12749
12750# Transform an extracted symbol line into symbol name and symbol address
12751lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12752lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
12753
12754# Handle CRLF in mingw tool chain
12755opt_cr=
12756case $build_os in
12757mingw*)
12758  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12759  ;;
12760esac
12761
12762# Try without a prefix underscore, then with it.
12763for ac_symprfx in "" "_"; do
12764
12765  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12766  symxfrm="\\1 $ac_symprfx\\2 \\2"
12767
12768  # Write the raw and C identifiers.
12769  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12770    # Fake it for dumpbin and say T for any non-static function
12771    # and D for any global variable.
12772    # Also find C++ and __fastcall symbols from MSVC++,
12773    # which start with @ or ?.
12774    lt_cv_sys_global_symbol_pipe="$AWK '"\
12775"     {last_section=section; section=\$ 3};"\
12776"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12777"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12778"     \$ 0!~/External *\|/{next};"\
12779"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12780"     {if(hide[section]) next};"\
12781"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12782"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12783"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12784"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12785"     ' prfx=^$ac_symprfx"
12786  else
12787    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12788  fi
12789  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12790
12791  # Check to see that the pipe works correctly.
12792  pipe_works=no
12793
12794  rm -f conftest*
12795  cat > conftest.$ac_ext <<_LT_EOF
12796#ifdef __cplusplus
12797extern "C" {
12798#endif
12799char nm_test_var;
12800void nm_test_func(void);
12801void nm_test_func(void){}
12802#ifdef __cplusplus
12803}
12804#endif
12805int main(){nm_test_var='a';nm_test_func();return(0);}
12806_LT_EOF
12807
12808  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12809  (eval $ac_compile) 2>&5
12810  ac_status=$?
12811  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12812  test $ac_status = 0; }; then
12813    # Now try to grab the symbols.
12814    nlist=conftest.nm
12815    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12816  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12817  ac_status=$?
12818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12819  test $ac_status = 0; } && test -s "$nlist"; then
12820      # Try sorting and uniquifying the output.
12821      if sort "$nlist" | uniq > "$nlist"T; then
12822	mv -f "$nlist"T "$nlist"
12823      else
12824	rm -f "$nlist"T
12825      fi
12826
12827      # Make sure that we snagged all the symbols we need.
12828      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12829	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12830	  cat <<_LT_EOF > conftest.$ac_ext
12831/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12832#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12833/* DATA imports from DLLs on WIN32 con't be const, because runtime
12834   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12835# define LT_DLSYM_CONST
12836#elif defined(__osf__)
12837/* This system does not cope well with relocations in const data.  */
12838# define LT_DLSYM_CONST
12839#else
12840# define LT_DLSYM_CONST const
12841#endif
12842
12843#ifdef __cplusplus
12844extern "C" {
12845#endif
12846
12847_LT_EOF
12848	  # Now generate the symbol file.
12849	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12850
12851	  cat <<_LT_EOF >> conftest.$ac_ext
12852
12853/* The mapping between symbol names and symbols.  */
12854LT_DLSYM_CONST struct {
12855  const char *name;
12856  void       *address;
12857}
12858lt__PROGRAM__LTX_preloaded_symbols[] =
12859{
12860  { "@PROGRAM@", (void *) 0 },
12861_LT_EOF
12862	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12863	  cat <<\_LT_EOF >> conftest.$ac_ext
12864  {0, (void *) 0}
12865};
12866
12867/* This works around a problem in FreeBSD linker */
12868#ifdef FREEBSD_WORKAROUND
12869static const void *lt_preloaded_setup() {
12870  return lt__PROGRAM__LTX_preloaded_symbols;
12871}
12872#endif
12873
12874#ifdef __cplusplus
12875}
12876#endif
12877_LT_EOF
12878	  # Now try linking the two files.
12879	  mv conftest.$ac_objext conftstm.$ac_objext
12880	  lt_globsym_save_LIBS=$LIBS
12881	  lt_globsym_save_CFLAGS=$CFLAGS
12882	  LIBS="conftstm.$ac_objext"
12883	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12884	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12885  (eval $ac_link) 2>&5
12886  ac_status=$?
12887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12888  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12889	    pipe_works=yes
12890	  fi
12891	  LIBS=$lt_globsym_save_LIBS
12892	  CFLAGS=$lt_globsym_save_CFLAGS
12893	else
12894	  echo "cannot find nm_test_func in $nlist" >&5
12895	fi
12896      else
12897	echo "cannot find nm_test_var in $nlist" >&5
12898      fi
12899    else
12900      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12901    fi
12902  else
12903    echo "$progname: failed program was:" >&5
12904    cat conftest.$ac_ext >&5
12905  fi
12906  rm -rf conftest* conftst*
12907
12908  # Do not use the global_symbol_pipe unless it works.
12909  if test "$pipe_works" = yes; then
12910    break
12911  else
12912    lt_cv_sys_global_symbol_pipe=
12913  fi
12914done
12915
12916fi
12917
12918if test -z "$lt_cv_sys_global_symbol_pipe"; then
12919  lt_cv_sys_global_symbol_to_cdecl=
12920fi
12921if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12923$as_echo "failed" >&6; }
12924else
12925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12926$as_echo "ok" >&6; }
12927fi
12928
12929# Response file support.
12930if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12931  nm_file_list_spec='@'
12932elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12933  nm_file_list_spec='@'
12934fi
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12963$as_echo_n "checking for sysroot... " >&6; }
12964
12965# Check whether --with-sysroot was given.
12966if test "${with_sysroot+set}" = set; then :
12967  withval=$with_sysroot;
12968else
12969  with_sysroot=no
12970fi
12971
12972
12973lt_sysroot=
12974case ${with_sysroot} in #(
12975 yes)
12976   if test "$GCC" = yes; then
12977     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12978   fi
12979   ;; #(
12980 /*)
12981   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12982   ;; #(
12983 no|'')
12984   ;; #(
12985 *)
12986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12987$as_echo "${with_sysroot}" >&6; }
12988   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12989   ;;
12990esac
12991
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12993$as_echo "${lt_sysroot:-no}" >&6; }
12994
12995
12996
12997
12998
12999# Check whether --enable-libtool-lock was given.
13000if test "${enable_libtool_lock+set}" = set; then :
13001  enableval=$enable_libtool_lock;
13002fi
13003
13004test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13005
13006# Some flags need to be propagated to the compiler or linker for good
13007# libtool support.
13008case $host in
13009ia64-*-hpux*)
13010  # Find out which ABI we are using.
13011  echo 'int i;' > conftest.$ac_ext
13012  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13013  (eval $ac_compile) 2>&5
13014  ac_status=$?
13015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13016  test $ac_status = 0; }; then
13017    case `/usr/bin/file conftest.$ac_objext` in
13018      *ELF-32*)
13019	HPUX_IA64_MODE="32"
13020	;;
13021      *ELF-64*)
13022	HPUX_IA64_MODE="64"
13023	;;
13024    esac
13025  fi
13026  rm -rf conftest*
13027  ;;
13028*-*-irix6*)
13029  # Find out which ABI we are using.
13030  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13031  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13032  (eval $ac_compile) 2>&5
13033  ac_status=$?
13034  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13035  test $ac_status = 0; }; then
13036    if test "$lt_cv_prog_gnu_ld" = yes; then
13037      case `/usr/bin/file conftest.$ac_objext` in
13038	*32-bit*)
13039	  LD="${LD-ld} -melf32bsmip"
13040	  ;;
13041	*N32*)
13042	  LD="${LD-ld} -melf32bmipn32"
13043	  ;;
13044	*64-bit*)
13045	  LD="${LD-ld} -melf64bmip"
13046	;;
13047      esac
13048    else
13049      case `/usr/bin/file conftest.$ac_objext` in
13050	*32-bit*)
13051	  LD="${LD-ld} -32"
13052	  ;;
13053	*N32*)
13054	  LD="${LD-ld} -n32"
13055	  ;;
13056	*64-bit*)
13057	  LD="${LD-ld} -64"
13058	  ;;
13059      esac
13060    fi
13061  fi
13062  rm -rf conftest*
13063  ;;
13064
13065x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13066s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13067  # Find out which ABI we are using.
13068  echo 'int i;' > conftest.$ac_ext
13069  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13070  (eval $ac_compile) 2>&5
13071  ac_status=$?
13072  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13073  test $ac_status = 0; }; then
13074    case `/usr/bin/file conftest.o` in
13075      *32-bit*)
13076	case $host in
13077	  x86_64-*kfreebsd*-gnu)
13078	    LD="${LD-ld} -m elf_i386_fbsd"
13079	    ;;
13080	  x86_64-*linux*)
13081	    case `/usr/bin/file conftest.o` in
13082	      *x86-64*)
13083		LD="${LD-ld} -m elf32_x86_64"
13084		;;
13085	      *)
13086		LD="${LD-ld} -m elf_i386"
13087		;;
13088	    esac
13089	    ;;
13090	  powerpc64le-*)
13091	    LD="${LD-ld} -m elf32lppclinux"
13092	    ;;
13093	  powerpc64-*)
13094	    LD="${LD-ld} -m elf32ppclinux"
13095	    ;;
13096	  s390x-*linux*)
13097	    LD="${LD-ld} -m elf_s390"
13098	    ;;
13099	  sparc64-*linux*)
13100	    LD="${LD-ld} -m elf32_sparc"
13101	    ;;
13102	esac
13103	;;
13104      *64-bit*)
13105	case $host in
13106	  x86_64-*kfreebsd*-gnu)
13107	    LD="${LD-ld} -m elf_x86_64_fbsd"
13108	    ;;
13109	  x86_64-*linux*)
13110	    LD="${LD-ld} -m elf_x86_64"
13111	    ;;
13112	  powerpcle-*)
13113	    LD="${LD-ld} -m elf64lppc"
13114	    ;;
13115	  powerpc-*)
13116	    LD="${LD-ld} -m elf64ppc"
13117	    ;;
13118	  s390*-*linux*|s390*-*tpf*)
13119	    LD="${LD-ld} -m elf64_s390"
13120	    ;;
13121	  sparc*-*linux*)
13122	    LD="${LD-ld} -m elf64_sparc"
13123	    ;;
13124	esac
13125	;;
13126    esac
13127  fi
13128  rm -rf conftest*
13129  ;;
13130
13131*-*-sco3.2v5*)
13132  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13133  SAVE_CFLAGS="$CFLAGS"
13134  CFLAGS="$CFLAGS -belf"
13135  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13136$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13137if ${lt_cv_cc_needs_belf+:} false; then :
13138  $as_echo_n "(cached) " >&6
13139else
13140  ac_ext=c
13141ac_cpp='$CPP $CPPFLAGS'
13142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13144ac_compiler_gnu=$ac_cv_c_compiler_gnu
13145
13146     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13147/* end confdefs.h.  */
13148
13149int
13150main ()
13151{
13152
13153  ;
13154  return 0;
13155}
13156_ACEOF
13157if ac_fn_c_try_link "$LINENO"; then :
13158  lt_cv_cc_needs_belf=yes
13159else
13160  lt_cv_cc_needs_belf=no
13161fi
13162rm -f core conftest.err conftest.$ac_objext \
13163    conftest$ac_exeext conftest.$ac_ext
13164     ac_ext=c
13165ac_cpp='$CPP $CPPFLAGS'
13166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13168ac_compiler_gnu=$ac_cv_c_compiler_gnu
13169
13170fi
13171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13172$as_echo "$lt_cv_cc_needs_belf" >&6; }
13173  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13174    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13175    CFLAGS="$SAVE_CFLAGS"
13176  fi
13177  ;;
13178*-*solaris*)
13179  # Find out which ABI we are using.
13180  echo 'int i;' > conftest.$ac_ext
13181  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13182  (eval $ac_compile) 2>&5
13183  ac_status=$?
13184  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13185  test $ac_status = 0; }; then
13186    case `/usr/bin/file conftest.o` in
13187    *64-bit*)
13188      case $lt_cv_prog_gnu_ld in
13189      yes*)
13190        case $host in
13191        i?86-*-solaris*)
13192          LD="${LD-ld} -m elf_x86_64"
13193          ;;
13194        sparc*-*-solaris*)
13195          LD="${LD-ld} -m elf64_sparc"
13196          ;;
13197        esac
13198        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13199        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13200          LD="${LD-ld}_sol2"
13201        fi
13202        ;;
13203      *)
13204	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13205	  LD="${LD-ld} -64"
13206	fi
13207	;;
13208      esac
13209      ;;
13210    esac
13211  fi
13212  rm -rf conftest*
13213  ;;
13214esac
13215
13216need_locks="$enable_libtool_lock"
13217
13218if test -n "$ac_tool_prefix"; then
13219  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13220set dummy ${ac_tool_prefix}mt; ac_word=$2
13221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13222$as_echo_n "checking for $ac_word... " >&6; }
13223if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13224  $as_echo_n "(cached) " >&6
13225else
13226  if test -n "$MANIFEST_TOOL"; then
13227  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13228else
13229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13230for as_dir in $PATH
13231do
13232  IFS=$as_save_IFS
13233  test -z "$as_dir" && as_dir=.
13234    for ac_exec_ext in '' $ac_executable_extensions; do
13235  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13236    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13238    break 2
13239  fi
13240done
13241  done
13242IFS=$as_save_IFS
13243
13244fi
13245fi
13246MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13247if test -n "$MANIFEST_TOOL"; then
13248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13249$as_echo "$MANIFEST_TOOL" >&6; }
13250else
13251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13252$as_echo "no" >&6; }
13253fi
13254
13255
13256fi
13257if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13258  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13259  # Extract the first word of "mt", so it can be a program name with args.
13260set dummy mt; ac_word=$2
13261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13262$as_echo_n "checking for $ac_word... " >&6; }
13263if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13264  $as_echo_n "(cached) " >&6
13265else
13266  if test -n "$ac_ct_MANIFEST_TOOL"; then
13267  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13268else
13269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13270for as_dir in $PATH
13271do
13272  IFS=$as_save_IFS
13273  test -z "$as_dir" && as_dir=.
13274    for ac_exec_ext in '' $ac_executable_extensions; do
13275  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13276    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13278    break 2
13279  fi
13280done
13281  done
13282IFS=$as_save_IFS
13283
13284fi
13285fi
13286ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13287if test -n "$ac_ct_MANIFEST_TOOL"; then
13288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13289$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13290else
13291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13292$as_echo "no" >&6; }
13293fi
13294
13295  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13296    MANIFEST_TOOL=":"
13297  else
13298    case $cross_compiling:$ac_tool_warned in
13299yes:)
13300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13302ac_tool_warned=yes ;;
13303esac
13304    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13305  fi
13306else
13307  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13308fi
13309
13310test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13312$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13313if ${lt_cv_path_mainfest_tool+:} false; then :
13314  $as_echo_n "(cached) " >&6
13315else
13316  lt_cv_path_mainfest_tool=no
13317  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13318  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13319  cat conftest.err >&5
13320  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13321    lt_cv_path_mainfest_tool=yes
13322  fi
13323  rm -f conftest*
13324fi
13325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13326$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13327if test "x$lt_cv_path_mainfest_tool" != xyes; then
13328  MANIFEST_TOOL=:
13329fi
13330
13331
13332
13333
13334
13335
13336  case $host_os in
13337    rhapsody* | darwin*)
13338    if test -n "$ac_tool_prefix"; then
13339  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13340set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13342$as_echo_n "checking for $ac_word... " >&6; }
13343if ${ac_cv_prog_DSYMUTIL+:} false; then :
13344  $as_echo_n "(cached) " >&6
13345else
13346  if test -n "$DSYMUTIL"; then
13347  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13348else
13349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13350for as_dir in $PATH
13351do
13352  IFS=$as_save_IFS
13353  test -z "$as_dir" && as_dir=.
13354    for ac_exec_ext in '' $ac_executable_extensions; do
13355  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13356    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13357    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13358    break 2
13359  fi
13360done
13361  done
13362IFS=$as_save_IFS
13363
13364fi
13365fi
13366DSYMUTIL=$ac_cv_prog_DSYMUTIL
13367if test -n "$DSYMUTIL"; then
13368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13369$as_echo "$DSYMUTIL" >&6; }
13370else
13371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372$as_echo "no" >&6; }
13373fi
13374
13375
13376fi
13377if test -z "$ac_cv_prog_DSYMUTIL"; then
13378  ac_ct_DSYMUTIL=$DSYMUTIL
13379  # Extract the first word of "dsymutil", so it can be a program name with args.
13380set dummy dsymutil; ac_word=$2
13381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13382$as_echo_n "checking for $ac_word... " >&6; }
13383if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13384  $as_echo_n "(cached) " >&6
13385else
13386  if test -n "$ac_ct_DSYMUTIL"; then
13387  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13388else
13389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13390for as_dir in $PATH
13391do
13392  IFS=$as_save_IFS
13393  test -z "$as_dir" && as_dir=.
13394    for ac_exec_ext in '' $ac_executable_extensions; do
13395  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13396    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13397    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13398    break 2
13399  fi
13400done
13401  done
13402IFS=$as_save_IFS
13403
13404fi
13405fi
13406ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13407if test -n "$ac_ct_DSYMUTIL"; then
13408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13409$as_echo "$ac_ct_DSYMUTIL" >&6; }
13410else
13411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13412$as_echo "no" >&6; }
13413fi
13414
13415  if test "x$ac_ct_DSYMUTIL" = x; then
13416    DSYMUTIL=":"
13417  else
13418    case $cross_compiling:$ac_tool_warned in
13419yes:)
13420{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13421$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13422ac_tool_warned=yes ;;
13423esac
13424    DSYMUTIL=$ac_ct_DSYMUTIL
13425  fi
13426else
13427  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13428fi
13429
13430    if test -n "$ac_tool_prefix"; then
13431  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13432set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13434$as_echo_n "checking for $ac_word... " >&6; }
13435if ${ac_cv_prog_NMEDIT+:} false; then :
13436  $as_echo_n "(cached) " >&6
13437else
13438  if test -n "$NMEDIT"; then
13439  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13440else
13441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13442for as_dir in $PATH
13443do
13444  IFS=$as_save_IFS
13445  test -z "$as_dir" && as_dir=.
13446    for ac_exec_ext in '' $ac_executable_extensions; do
13447  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13448    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13449    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13450    break 2
13451  fi
13452done
13453  done
13454IFS=$as_save_IFS
13455
13456fi
13457fi
13458NMEDIT=$ac_cv_prog_NMEDIT
13459if test -n "$NMEDIT"; then
13460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13461$as_echo "$NMEDIT" >&6; }
13462else
13463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13464$as_echo "no" >&6; }
13465fi
13466
13467
13468fi
13469if test -z "$ac_cv_prog_NMEDIT"; then
13470  ac_ct_NMEDIT=$NMEDIT
13471  # Extract the first word of "nmedit", so it can be a program name with args.
13472set dummy nmedit; ac_word=$2
13473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13474$as_echo_n "checking for $ac_word... " >&6; }
13475if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13476  $as_echo_n "(cached) " >&6
13477else
13478  if test -n "$ac_ct_NMEDIT"; then
13479  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13480else
13481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13482for as_dir in $PATH
13483do
13484  IFS=$as_save_IFS
13485  test -z "$as_dir" && as_dir=.
13486    for ac_exec_ext in '' $ac_executable_extensions; do
13487  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13488    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13490    break 2
13491  fi
13492done
13493  done
13494IFS=$as_save_IFS
13495
13496fi
13497fi
13498ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13499if test -n "$ac_ct_NMEDIT"; then
13500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13501$as_echo "$ac_ct_NMEDIT" >&6; }
13502else
13503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13504$as_echo "no" >&6; }
13505fi
13506
13507  if test "x$ac_ct_NMEDIT" = x; then
13508    NMEDIT=":"
13509  else
13510    case $cross_compiling:$ac_tool_warned in
13511yes:)
13512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13514ac_tool_warned=yes ;;
13515esac
13516    NMEDIT=$ac_ct_NMEDIT
13517  fi
13518else
13519  NMEDIT="$ac_cv_prog_NMEDIT"
13520fi
13521
13522    if test -n "$ac_tool_prefix"; then
13523  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13524set dummy ${ac_tool_prefix}lipo; ac_word=$2
13525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13526$as_echo_n "checking for $ac_word... " >&6; }
13527if ${ac_cv_prog_LIPO+:} false; then :
13528  $as_echo_n "(cached) " >&6
13529else
13530  if test -n "$LIPO"; then
13531  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13532else
13533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13534for as_dir in $PATH
13535do
13536  IFS=$as_save_IFS
13537  test -z "$as_dir" && as_dir=.
13538    for ac_exec_ext in '' $ac_executable_extensions; do
13539  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13540    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13542    break 2
13543  fi
13544done
13545  done
13546IFS=$as_save_IFS
13547
13548fi
13549fi
13550LIPO=$ac_cv_prog_LIPO
13551if test -n "$LIPO"; then
13552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13553$as_echo "$LIPO" >&6; }
13554else
13555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13556$as_echo "no" >&6; }
13557fi
13558
13559
13560fi
13561if test -z "$ac_cv_prog_LIPO"; then
13562  ac_ct_LIPO=$LIPO
13563  # Extract the first word of "lipo", so it can be a program name with args.
13564set dummy lipo; ac_word=$2
13565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13566$as_echo_n "checking for $ac_word... " >&6; }
13567if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13568  $as_echo_n "(cached) " >&6
13569else
13570  if test -n "$ac_ct_LIPO"; then
13571  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13572else
13573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574for as_dir in $PATH
13575do
13576  IFS=$as_save_IFS
13577  test -z "$as_dir" && as_dir=.
13578    for ac_exec_ext in '' $ac_executable_extensions; do
13579  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13580    ac_cv_prog_ac_ct_LIPO="lipo"
13581    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13582    break 2
13583  fi
13584done
13585  done
13586IFS=$as_save_IFS
13587
13588fi
13589fi
13590ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13591if test -n "$ac_ct_LIPO"; then
13592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13593$as_echo "$ac_ct_LIPO" >&6; }
13594else
13595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13596$as_echo "no" >&6; }
13597fi
13598
13599  if test "x$ac_ct_LIPO" = x; then
13600    LIPO=":"
13601  else
13602    case $cross_compiling:$ac_tool_warned in
13603yes:)
13604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13606ac_tool_warned=yes ;;
13607esac
13608    LIPO=$ac_ct_LIPO
13609  fi
13610else
13611  LIPO="$ac_cv_prog_LIPO"
13612fi
13613
13614    if test -n "$ac_tool_prefix"; then
13615  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13616set dummy ${ac_tool_prefix}otool; ac_word=$2
13617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13618$as_echo_n "checking for $ac_word... " >&6; }
13619if ${ac_cv_prog_OTOOL+:} false; then :
13620  $as_echo_n "(cached) " >&6
13621else
13622  if test -n "$OTOOL"; then
13623  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13624else
13625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13626for as_dir in $PATH
13627do
13628  IFS=$as_save_IFS
13629  test -z "$as_dir" && as_dir=.
13630    for ac_exec_ext in '' $ac_executable_extensions; do
13631  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13632    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13633    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13634    break 2
13635  fi
13636done
13637  done
13638IFS=$as_save_IFS
13639
13640fi
13641fi
13642OTOOL=$ac_cv_prog_OTOOL
13643if test -n "$OTOOL"; then
13644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13645$as_echo "$OTOOL" >&6; }
13646else
13647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13648$as_echo "no" >&6; }
13649fi
13650
13651
13652fi
13653if test -z "$ac_cv_prog_OTOOL"; then
13654  ac_ct_OTOOL=$OTOOL
13655  # Extract the first word of "otool", so it can be a program name with args.
13656set dummy otool; ac_word=$2
13657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13658$as_echo_n "checking for $ac_word... " >&6; }
13659if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13660  $as_echo_n "(cached) " >&6
13661else
13662  if test -n "$ac_ct_OTOOL"; then
13663  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13664else
13665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13666for as_dir in $PATH
13667do
13668  IFS=$as_save_IFS
13669  test -z "$as_dir" && as_dir=.
13670    for ac_exec_ext in '' $ac_executable_extensions; do
13671  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13672    ac_cv_prog_ac_ct_OTOOL="otool"
13673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13674    break 2
13675  fi
13676done
13677  done
13678IFS=$as_save_IFS
13679
13680fi
13681fi
13682ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13683if test -n "$ac_ct_OTOOL"; then
13684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13685$as_echo "$ac_ct_OTOOL" >&6; }
13686else
13687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13688$as_echo "no" >&6; }
13689fi
13690
13691  if test "x$ac_ct_OTOOL" = x; then
13692    OTOOL=":"
13693  else
13694    case $cross_compiling:$ac_tool_warned in
13695yes:)
13696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13698ac_tool_warned=yes ;;
13699esac
13700    OTOOL=$ac_ct_OTOOL
13701  fi
13702else
13703  OTOOL="$ac_cv_prog_OTOOL"
13704fi
13705
13706    if test -n "$ac_tool_prefix"; then
13707  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13708set dummy ${ac_tool_prefix}otool64; ac_word=$2
13709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13710$as_echo_n "checking for $ac_word... " >&6; }
13711if ${ac_cv_prog_OTOOL64+:} false; then :
13712  $as_echo_n "(cached) " >&6
13713else
13714  if test -n "$OTOOL64"; then
13715  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13716else
13717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13718for as_dir in $PATH
13719do
13720  IFS=$as_save_IFS
13721  test -z "$as_dir" && as_dir=.
13722    for ac_exec_ext in '' $ac_executable_extensions; do
13723  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13724    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13725    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13726    break 2
13727  fi
13728done
13729  done
13730IFS=$as_save_IFS
13731
13732fi
13733fi
13734OTOOL64=$ac_cv_prog_OTOOL64
13735if test -n "$OTOOL64"; then
13736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13737$as_echo "$OTOOL64" >&6; }
13738else
13739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13740$as_echo "no" >&6; }
13741fi
13742
13743
13744fi
13745if test -z "$ac_cv_prog_OTOOL64"; then
13746  ac_ct_OTOOL64=$OTOOL64
13747  # Extract the first word of "otool64", so it can be a program name with args.
13748set dummy otool64; ac_word=$2
13749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13750$as_echo_n "checking for $ac_word... " >&6; }
13751if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13752  $as_echo_n "(cached) " >&6
13753else
13754  if test -n "$ac_ct_OTOOL64"; then
13755  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13756else
13757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13758for as_dir in $PATH
13759do
13760  IFS=$as_save_IFS
13761  test -z "$as_dir" && as_dir=.
13762    for ac_exec_ext in '' $ac_executable_extensions; do
13763  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13764    ac_cv_prog_ac_ct_OTOOL64="otool64"
13765    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13766    break 2
13767  fi
13768done
13769  done
13770IFS=$as_save_IFS
13771
13772fi
13773fi
13774ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13775if test -n "$ac_ct_OTOOL64"; then
13776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13777$as_echo "$ac_ct_OTOOL64" >&6; }
13778else
13779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13780$as_echo "no" >&6; }
13781fi
13782
13783  if test "x$ac_ct_OTOOL64" = x; then
13784    OTOOL64=":"
13785  else
13786    case $cross_compiling:$ac_tool_warned in
13787yes:)
13788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13790ac_tool_warned=yes ;;
13791esac
13792    OTOOL64=$ac_ct_OTOOL64
13793  fi
13794else
13795  OTOOL64="$ac_cv_prog_OTOOL64"
13796fi
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13825$as_echo_n "checking for -single_module linker flag... " >&6; }
13826if ${lt_cv_apple_cc_single_mod+:} false; then :
13827  $as_echo_n "(cached) " >&6
13828else
13829  lt_cv_apple_cc_single_mod=no
13830      if test -z "${LT_MULTI_MODULE}"; then
13831	# By default we will add the -single_module flag. You can override
13832	# by either setting the environment variable LT_MULTI_MODULE
13833	# non-empty at configure time, or by adding -multi_module to the
13834	# link flags.
13835	rm -rf libconftest.dylib*
13836	echo "int foo(void){return 1;}" > conftest.c
13837	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13838-dynamiclib -Wl,-single_module conftest.c" >&5
13839	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13840	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13841        _lt_result=$?
13842	# If there is a non-empty error log, and "single_module"
13843	# appears in it, assume the flag caused a linker warning
13844        if test -s conftest.err && $GREP single_module conftest.err; then
13845	  cat conftest.err >&5
13846	# Otherwise, if the output was created with a 0 exit code from
13847	# the compiler, it worked.
13848	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13849	  lt_cv_apple_cc_single_mod=yes
13850	else
13851	  cat conftest.err >&5
13852	fi
13853	rm -rf libconftest.dylib*
13854	rm -f conftest.*
13855      fi
13856fi
13857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13858$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13859
13860    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13861$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13862if ${lt_cv_ld_exported_symbols_list+:} false; then :
13863  $as_echo_n "(cached) " >&6
13864else
13865  lt_cv_ld_exported_symbols_list=no
13866      save_LDFLAGS=$LDFLAGS
13867      echo "_main" > conftest.sym
13868      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13869      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870/* end confdefs.h.  */
13871
13872int
13873main ()
13874{
13875
13876  ;
13877  return 0;
13878}
13879_ACEOF
13880if ac_fn_c_try_link "$LINENO"; then :
13881  lt_cv_ld_exported_symbols_list=yes
13882else
13883  lt_cv_ld_exported_symbols_list=no
13884fi
13885rm -f core conftest.err conftest.$ac_objext \
13886    conftest$ac_exeext conftest.$ac_ext
13887	LDFLAGS="$save_LDFLAGS"
13888
13889fi
13890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13891$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13892
13893    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13894$as_echo_n "checking for -force_load linker flag... " >&6; }
13895if ${lt_cv_ld_force_load+:} false; then :
13896  $as_echo_n "(cached) " >&6
13897else
13898  lt_cv_ld_force_load=no
13899      cat > conftest.c << _LT_EOF
13900int forced_loaded() { return 2;}
13901_LT_EOF
13902      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13903      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13904      echo "$AR cru libconftest.a conftest.o" >&5
13905      $AR cru libconftest.a conftest.o 2>&5
13906      echo "$RANLIB libconftest.a" >&5
13907      $RANLIB libconftest.a 2>&5
13908      cat > conftest.c << _LT_EOF
13909int main() { return 0;}
13910_LT_EOF
13911      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13912      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13913      _lt_result=$?
13914      if test -s conftest.err && $GREP force_load conftest.err; then
13915	cat conftest.err >&5
13916      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13917	lt_cv_ld_force_load=yes
13918      else
13919	cat conftest.err >&5
13920      fi
13921        rm -f conftest.err libconftest.a conftest conftest.c
13922        rm -rf conftest.dSYM
13923
13924fi
13925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13926$as_echo "$lt_cv_ld_force_load" >&6; }
13927    case $host_os in
13928    rhapsody* | darwin1.[012])
13929      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13930    darwin1.*)
13931      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13932    darwin*) # darwin 5.x on
13933      # if running on 10.5 or later, the deployment target defaults
13934      # to the OS version, if on x86, and 10.4, the deployment
13935      # target defaults to 10.4. Don't you love it?
13936      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13937	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13938	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13939	10.[012]*)
13940	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13941	10.*)
13942	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13943      esac
13944    ;;
13945  esac
13946    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13947      _lt_dar_single_mod='$single_module'
13948    fi
13949    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13950      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13951    else
13952      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13953    fi
13954    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13955      _lt_dsymutil='~$DSYMUTIL $lib || :'
13956    else
13957      _lt_dsymutil=
13958    fi
13959    ;;
13960  esac
13961
13962for ac_header in dlfcn.h
13963do :
13964  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13965"
13966if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13967  cat >>confdefs.h <<_ACEOF
13968#define HAVE_DLFCN_H 1
13969_ACEOF
13970
13971fi
13972
13973done
13974
13975
13976
13977
13978
13979# Set options
13980
13981
13982
13983        enable_dlopen=no
13984
13985
13986  enable_win32_dll=no
13987
13988
13989            # Check whether --enable-shared was given.
13990if test "${enable_shared+set}" = set; then :
13991  enableval=$enable_shared; p=${PACKAGE-default}
13992    case $enableval in
13993    yes) enable_shared=yes ;;
13994    no) enable_shared=no ;;
13995    *)
13996      enable_shared=no
13997      # Look at the argument we got.  We use all the common list separators.
13998      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13999      for pkg in $enableval; do
14000	IFS="$lt_save_ifs"
14001	if test "X$pkg" = "X$p"; then
14002	  enable_shared=yes
14003	fi
14004      done
14005      IFS="$lt_save_ifs"
14006      ;;
14007    esac
14008else
14009  enable_shared=yes
14010fi
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022# Check whether --with-pic was given.
14023if test "${with_pic+set}" = set; then :
14024  withval=$with_pic; lt_p=${PACKAGE-default}
14025    case $withval in
14026    yes|no) pic_mode=$withval ;;
14027    *)
14028      pic_mode=default
14029      # Look at the argument we got.  We use all the common list separators.
14030      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14031      for lt_pkg in $withval; do
14032	IFS="$lt_save_ifs"
14033	if test "X$lt_pkg" = "X$lt_p"; then
14034	  pic_mode=yes
14035	fi
14036      done
14037      IFS="$lt_save_ifs"
14038      ;;
14039    esac
14040else
14041  pic_mode=default
14042fi
14043
14044
14045test -z "$pic_mode" && pic_mode=default
14046
14047
14048
14049
14050
14051
14052
14053  # Check whether --enable-fast-install was given.
14054if test "${enable_fast_install+set}" = set; then :
14055  enableval=$enable_fast_install; p=${PACKAGE-default}
14056    case $enableval in
14057    yes) enable_fast_install=yes ;;
14058    no) enable_fast_install=no ;;
14059    *)
14060      enable_fast_install=no
14061      # Look at the argument we got.  We use all the common list separators.
14062      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14063      for pkg in $enableval; do
14064	IFS="$lt_save_ifs"
14065	if test "X$pkg" = "X$p"; then
14066	  enable_fast_install=yes
14067	fi
14068      done
14069      IFS="$lt_save_ifs"
14070      ;;
14071    esac
14072else
14073  enable_fast_install=yes
14074fi
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086# This can be used to rebuild libtool when needed
14087LIBTOOL_DEPS="$ltmain"
14088
14089# Always use our own libtool.
14090LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121test -z "$LN_S" && LN_S="ln -s"
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136if test -n "${ZSH_VERSION+set}" ; then
14137   setopt NO_GLOB_SUBST
14138fi
14139
14140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14141$as_echo_n "checking for objdir... " >&6; }
14142if ${lt_cv_objdir+:} false; then :
14143  $as_echo_n "(cached) " >&6
14144else
14145  rm -f .libs 2>/dev/null
14146mkdir .libs 2>/dev/null
14147if test -d .libs; then
14148  lt_cv_objdir=.libs
14149else
14150  # MS-DOS does not allow filenames that begin with a dot.
14151  lt_cv_objdir=_libs
14152fi
14153rmdir .libs 2>/dev/null
14154fi
14155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14156$as_echo "$lt_cv_objdir" >&6; }
14157objdir=$lt_cv_objdir
14158
14159
14160
14161
14162
14163cat >>confdefs.h <<_ACEOF
14164#define LT_OBJDIR "$lt_cv_objdir/"
14165_ACEOF
14166
14167
14168
14169
14170case $host_os in
14171aix3*)
14172  # AIX sometimes has problems with the GCC collect2 program.  For some
14173  # reason, if we set the COLLECT_NAMES environment variable, the problems
14174  # vanish in a puff of smoke.
14175  if test "X${COLLECT_NAMES+set}" != Xset; then
14176    COLLECT_NAMES=
14177    export COLLECT_NAMES
14178  fi
14179  ;;
14180esac
14181
14182# Global variables:
14183ofile=libtool
14184can_build_shared=yes
14185
14186# All known linkers require a `.a' archive for static linking (except MSVC,
14187# which needs '.lib').
14188libext=a
14189
14190with_gnu_ld="$lt_cv_prog_gnu_ld"
14191
14192old_CC="$CC"
14193old_CFLAGS="$CFLAGS"
14194
14195# Set sane defaults for various variables
14196test -z "$CC" && CC=cc
14197test -z "$LTCC" && LTCC=$CC
14198test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14199test -z "$LD" && LD=ld
14200test -z "$ac_objext" && ac_objext=o
14201
14202for cc_temp in $compiler""; do
14203  case $cc_temp in
14204    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14205    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14206    \-*) ;;
14207    *) break;;
14208  esac
14209done
14210cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14211
14212
14213# Only perform the check for file, if the check method requires it
14214test -z "$MAGIC_CMD" && MAGIC_CMD=file
14215case $deplibs_check_method in
14216file_magic*)
14217  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14218    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14219$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14220if ${lt_cv_path_MAGIC_CMD+:} false; then :
14221  $as_echo_n "(cached) " >&6
14222else
14223  case $MAGIC_CMD in
14224[\\/*] |  ?:[\\/]*)
14225  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14226  ;;
14227*)
14228  lt_save_MAGIC_CMD="$MAGIC_CMD"
14229  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14230  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14231  for ac_dir in $ac_dummy; do
14232    IFS="$lt_save_ifs"
14233    test -z "$ac_dir" && ac_dir=.
14234    if test -f $ac_dir/${ac_tool_prefix}file; then
14235      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14236      if test -n "$file_magic_test_file"; then
14237	case $deplibs_check_method in
14238	"file_magic "*)
14239	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14240	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14241	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14242	    $EGREP "$file_magic_regex" > /dev/null; then
14243	    :
14244	  else
14245	    cat <<_LT_EOF 1>&2
14246
14247*** Warning: the command libtool uses to detect shared libraries,
14248*** $file_magic_cmd, produces output that libtool cannot recognize.
14249*** The result is that libtool may fail to recognize shared libraries
14250*** as such.  This will affect the creation of libtool libraries that
14251*** depend on shared libraries, but programs linked with such libtool
14252*** libraries will work regardless of this problem.  Nevertheless, you
14253*** may want to report the problem to your system manager and/or to
14254*** bug-libtool@gnu.org
14255
14256_LT_EOF
14257	  fi ;;
14258	esac
14259      fi
14260      break
14261    fi
14262  done
14263  IFS="$lt_save_ifs"
14264  MAGIC_CMD="$lt_save_MAGIC_CMD"
14265  ;;
14266esac
14267fi
14268
14269MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14270if test -n "$MAGIC_CMD"; then
14271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14272$as_echo "$MAGIC_CMD" >&6; }
14273else
14274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14275$as_echo "no" >&6; }
14276fi
14277
14278
14279
14280
14281
14282if test -z "$lt_cv_path_MAGIC_CMD"; then
14283  if test -n "$ac_tool_prefix"; then
14284    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14285$as_echo_n "checking for file... " >&6; }
14286if ${lt_cv_path_MAGIC_CMD+:} false; then :
14287  $as_echo_n "(cached) " >&6
14288else
14289  case $MAGIC_CMD in
14290[\\/*] |  ?:[\\/]*)
14291  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14292  ;;
14293*)
14294  lt_save_MAGIC_CMD="$MAGIC_CMD"
14295  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14296  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14297  for ac_dir in $ac_dummy; do
14298    IFS="$lt_save_ifs"
14299    test -z "$ac_dir" && ac_dir=.
14300    if test -f $ac_dir/file; then
14301      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14302      if test -n "$file_magic_test_file"; then
14303	case $deplibs_check_method in
14304	"file_magic "*)
14305	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14306	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14307	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14308	    $EGREP "$file_magic_regex" > /dev/null; then
14309	    :
14310	  else
14311	    cat <<_LT_EOF 1>&2
14312
14313*** Warning: the command libtool uses to detect shared libraries,
14314*** $file_magic_cmd, produces output that libtool cannot recognize.
14315*** The result is that libtool may fail to recognize shared libraries
14316*** as such.  This will affect the creation of libtool libraries that
14317*** depend on shared libraries, but programs linked with such libtool
14318*** libraries will work regardless of this problem.  Nevertheless, you
14319*** may want to report the problem to your system manager and/or to
14320*** bug-libtool@gnu.org
14321
14322_LT_EOF
14323	  fi ;;
14324	esac
14325      fi
14326      break
14327    fi
14328  done
14329  IFS="$lt_save_ifs"
14330  MAGIC_CMD="$lt_save_MAGIC_CMD"
14331  ;;
14332esac
14333fi
14334
14335MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14336if test -n "$MAGIC_CMD"; then
14337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14338$as_echo "$MAGIC_CMD" >&6; }
14339else
14340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14341$as_echo "no" >&6; }
14342fi
14343
14344
14345  else
14346    MAGIC_CMD=:
14347  fi
14348fi
14349
14350  fi
14351  ;;
14352esac
14353
14354# Use C for the default configuration in the libtool script
14355
14356lt_save_CC="$CC"
14357ac_ext=c
14358ac_cpp='$CPP $CPPFLAGS'
14359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14361ac_compiler_gnu=$ac_cv_c_compiler_gnu
14362
14363
14364# Source file extension for C test sources.
14365ac_ext=c
14366
14367# Object file extension for compiled C test sources.
14368objext=o
14369objext=$objext
14370
14371# Code to be used in simple compile tests
14372lt_simple_compile_test_code="int some_variable = 0;"
14373
14374# Code to be used in simple link tests
14375lt_simple_link_test_code='int main(){return(0);}'
14376
14377
14378
14379
14380
14381
14382
14383# If no C compiler was specified, use CC.
14384LTCC=${LTCC-"$CC"}
14385
14386# If no C compiler flags were specified, use CFLAGS.
14387LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14388
14389# Allow CC to be a program name with arguments.
14390compiler=$CC
14391
14392# Save the default compiler, since it gets overwritten when the other
14393# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14394compiler_DEFAULT=$CC
14395
14396# save warnings/boilerplate of simple test code
14397ac_outfile=conftest.$ac_objext
14398echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14399eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14400_lt_compiler_boilerplate=`cat conftest.err`
14401$RM conftest*
14402
14403ac_outfile=conftest.$ac_objext
14404echo "$lt_simple_link_test_code" >conftest.$ac_ext
14405eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14406_lt_linker_boilerplate=`cat conftest.err`
14407$RM -r conftest*
14408
14409
14410if test -n "$compiler"; then
14411
14412lt_prog_compiler_no_builtin_flag=
14413
14414if test "$GCC" = yes; then
14415  case $cc_basename in
14416  nvcc*)
14417    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14418  *)
14419    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14420  esac
14421
14422  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14423$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14424if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14425  $as_echo_n "(cached) " >&6
14426else
14427  lt_cv_prog_compiler_rtti_exceptions=no
14428   ac_outfile=conftest.$ac_objext
14429   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14430   lt_compiler_flag="-fno-rtti -fno-exceptions"
14431   # Insert the option either (1) after the last *FLAGS variable, or
14432   # (2) before a word containing "conftest.", or (3) at the end.
14433   # Note that $ac_compile itself does not contain backslashes and begins
14434   # with a dollar sign (not a hyphen), so the echo should work correctly.
14435   # The option is referenced via a variable to avoid confusing sed.
14436   lt_compile=`echo "$ac_compile" | $SED \
14437   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14438   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14439   -e 's:$: $lt_compiler_flag:'`
14440   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14441   (eval "$lt_compile" 2>conftest.err)
14442   ac_status=$?
14443   cat conftest.err >&5
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   if (exit $ac_status) && test -s "$ac_outfile"; then
14446     # The compiler can only warn and ignore the option if not recognized
14447     # So say no if there are warnings other than the usual output.
14448     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14449     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14450     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14451       lt_cv_prog_compiler_rtti_exceptions=yes
14452     fi
14453   fi
14454   $RM conftest*
14455
14456fi
14457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14458$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14459
14460if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14461    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14462else
14463    :
14464fi
14465
14466fi
14467
14468
14469
14470
14471
14472
14473  lt_prog_compiler_wl=
14474lt_prog_compiler_pic=
14475lt_prog_compiler_static=
14476
14477
14478  if test "$GCC" = yes; then
14479    lt_prog_compiler_wl='-Wl,'
14480    lt_prog_compiler_static='-static'
14481
14482    case $host_os in
14483      aix*)
14484      # All AIX code is PIC.
14485      if test "$host_cpu" = ia64; then
14486	# AIX 5 now supports IA64 processor
14487	lt_prog_compiler_static='-Bstatic'
14488      fi
14489      ;;
14490
14491    amigaos*)
14492      case $host_cpu in
14493      powerpc)
14494            # see comment about AmigaOS4 .so support
14495            lt_prog_compiler_pic='-fPIC'
14496        ;;
14497      m68k)
14498            # FIXME: we need at least 68020 code to build shared libraries, but
14499            # adding the `-m68020' flag to GCC prevents building anything better,
14500            # like `-m68040'.
14501            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14502        ;;
14503      esac
14504      ;;
14505
14506    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14507      # PIC is the default for these OSes.
14508      ;;
14509
14510    mingw* | cygwin* | pw32* | os2* | cegcc*)
14511      # This hack is so that the source file can tell whether it is being
14512      # built for inclusion in a dll (and should export symbols for example).
14513      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14514      # (--disable-auto-import) libraries
14515      lt_prog_compiler_pic='-DDLL_EXPORT'
14516      ;;
14517
14518    darwin* | rhapsody*)
14519      # PIC is the default on this platform
14520      # Common symbols not allowed in MH_DYLIB files
14521      lt_prog_compiler_pic='-fno-common'
14522      ;;
14523
14524    haiku*)
14525      # PIC is the default for Haiku.
14526      # The "-static" flag exists, but is broken.
14527      lt_prog_compiler_static=
14528      ;;
14529
14530    hpux*)
14531      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14532      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14533      # sets the default TLS model and affects inlining.
14534      case $host_cpu in
14535      hppa*64*)
14536	# +Z the default
14537	;;
14538      *)
14539	lt_prog_compiler_pic='-fPIC'
14540	;;
14541      esac
14542      ;;
14543
14544    interix[3-9]*)
14545      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14546      # Instead, we relocate shared libraries at runtime.
14547      ;;
14548
14549    msdosdjgpp*)
14550      # Just because we use GCC doesn't mean we suddenly get shared libraries
14551      # on systems that don't support them.
14552      lt_prog_compiler_can_build_shared=no
14553      enable_shared=no
14554      ;;
14555
14556    *nto* | *qnx*)
14557      # QNX uses GNU C++, but need to define -shared option too, otherwise
14558      # it will coredump.
14559      lt_prog_compiler_pic='-fPIC -shared'
14560      ;;
14561
14562    sysv4*MP*)
14563      if test -d /usr/nec; then
14564	lt_prog_compiler_pic=-Kconform_pic
14565      fi
14566      ;;
14567
14568    *)
14569      lt_prog_compiler_pic='-fPIC'
14570      ;;
14571    esac
14572
14573    case $cc_basename in
14574    nvcc*) # Cuda Compiler Driver 2.2
14575      lt_prog_compiler_wl='-Xlinker '
14576      if test -n "$lt_prog_compiler_pic"; then
14577        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14578      fi
14579      ;;
14580    esac
14581  else
14582    # PORTME Check for flag to pass linker flags through the system compiler.
14583    case $host_os in
14584    aix*)
14585      lt_prog_compiler_wl='-Wl,'
14586      if test "$host_cpu" = ia64; then
14587	# AIX 5 now supports IA64 processor
14588	lt_prog_compiler_static='-Bstatic'
14589      else
14590	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14591      fi
14592      ;;
14593
14594    mingw* | cygwin* | pw32* | os2* | cegcc*)
14595      # This hack is so that the source file can tell whether it is being
14596      # built for inclusion in a dll (and should export symbols for example).
14597      lt_prog_compiler_pic='-DDLL_EXPORT'
14598      ;;
14599
14600    hpux9* | hpux10* | hpux11*)
14601      lt_prog_compiler_wl='-Wl,'
14602      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14603      # not for PA HP-UX.
14604      case $host_cpu in
14605      hppa*64*|ia64*)
14606	# +Z the default
14607	;;
14608      *)
14609	lt_prog_compiler_pic='+Z'
14610	;;
14611      esac
14612      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14613      lt_prog_compiler_static='${wl}-a ${wl}archive'
14614      ;;
14615
14616    irix5* | irix6* | nonstopux*)
14617      lt_prog_compiler_wl='-Wl,'
14618      # PIC (with -KPIC) is the default.
14619      lt_prog_compiler_static='-non_shared'
14620      ;;
14621
14622    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14623      case $cc_basename in
14624      # old Intel for x86_64 which still supported -KPIC.
14625      ecc*)
14626	lt_prog_compiler_wl='-Wl,'
14627	lt_prog_compiler_pic='-KPIC'
14628	lt_prog_compiler_static='-static'
14629        ;;
14630      # icc used to be incompatible with GCC.
14631      # ICC 10 doesn't accept -KPIC any more.
14632      icc* | ifort*)
14633	lt_prog_compiler_wl='-Wl,'
14634	lt_prog_compiler_pic='-fPIC'
14635	lt_prog_compiler_static='-static'
14636        ;;
14637      # Lahey Fortran 8.1.
14638      lf95*)
14639	lt_prog_compiler_wl='-Wl,'
14640	lt_prog_compiler_pic='--shared'
14641	lt_prog_compiler_static='--static'
14642	;;
14643      nagfor*)
14644	# NAG Fortran compiler
14645	lt_prog_compiler_wl='-Wl,-Wl,,'
14646	lt_prog_compiler_pic='-PIC'
14647	lt_prog_compiler_static='-Bstatic'
14648	;;
14649      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14650        # Portland Group compilers (*not* the Pentium gcc compiler,
14651	# which looks to be a dead project)
14652	lt_prog_compiler_wl='-Wl,'
14653	lt_prog_compiler_pic='-fpic'
14654	lt_prog_compiler_static='-Bstatic'
14655        ;;
14656      ccc*)
14657        lt_prog_compiler_wl='-Wl,'
14658        # All Alpha code is PIC.
14659        lt_prog_compiler_static='-non_shared'
14660        ;;
14661      xl* | bgxl* | bgf* | mpixl*)
14662	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14663	lt_prog_compiler_wl='-Wl,'
14664	lt_prog_compiler_pic='-qpic'
14665	lt_prog_compiler_static='-qstaticlink'
14666	;;
14667      *)
14668	case `$CC -V 2>&1 | sed 5q` in
14669	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14670	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14671	  lt_prog_compiler_pic='-KPIC'
14672	  lt_prog_compiler_static='-Bstatic'
14673	  lt_prog_compiler_wl=''
14674	  ;;
14675	*Sun\ F* | *Sun*Fortran*)
14676	  lt_prog_compiler_pic='-KPIC'
14677	  lt_prog_compiler_static='-Bstatic'
14678	  lt_prog_compiler_wl='-Qoption ld '
14679	  ;;
14680	*Sun\ C*)
14681	  # Sun C 5.9
14682	  lt_prog_compiler_pic='-KPIC'
14683	  lt_prog_compiler_static='-Bstatic'
14684	  lt_prog_compiler_wl='-Wl,'
14685	  ;;
14686        *Intel*\ [CF]*Compiler*)
14687	  lt_prog_compiler_wl='-Wl,'
14688	  lt_prog_compiler_pic='-fPIC'
14689	  lt_prog_compiler_static='-static'
14690	  ;;
14691	*Portland\ Group*)
14692	  lt_prog_compiler_wl='-Wl,'
14693	  lt_prog_compiler_pic='-fpic'
14694	  lt_prog_compiler_static='-Bstatic'
14695	  ;;
14696	esac
14697	;;
14698      esac
14699      ;;
14700
14701    newsos6)
14702      lt_prog_compiler_pic='-KPIC'
14703      lt_prog_compiler_static='-Bstatic'
14704      ;;
14705
14706    *nto* | *qnx*)
14707      # QNX uses GNU C++, but need to define -shared option too, otherwise
14708      # it will coredump.
14709      lt_prog_compiler_pic='-fPIC -shared'
14710      ;;
14711
14712    osf3* | osf4* | osf5*)
14713      lt_prog_compiler_wl='-Wl,'
14714      # All OSF/1 code is PIC.
14715      lt_prog_compiler_static='-non_shared'
14716      ;;
14717
14718    rdos*)
14719      lt_prog_compiler_static='-non_shared'
14720      ;;
14721
14722    solaris*)
14723      lt_prog_compiler_pic='-KPIC'
14724      lt_prog_compiler_static='-Bstatic'
14725      case $cc_basename in
14726      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14727	lt_prog_compiler_wl='-Qoption ld ';;
14728      *)
14729	lt_prog_compiler_wl='-Wl,';;
14730      esac
14731      ;;
14732
14733    sunos4*)
14734      lt_prog_compiler_wl='-Qoption ld '
14735      lt_prog_compiler_pic='-PIC'
14736      lt_prog_compiler_static='-Bstatic'
14737      ;;
14738
14739    sysv4 | sysv4.2uw2* | sysv4.3*)
14740      lt_prog_compiler_wl='-Wl,'
14741      lt_prog_compiler_pic='-KPIC'
14742      lt_prog_compiler_static='-Bstatic'
14743      ;;
14744
14745    sysv4*MP*)
14746      if test -d /usr/nec ;then
14747	lt_prog_compiler_pic='-Kconform_pic'
14748	lt_prog_compiler_static='-Bstatic'
14749      fi
14750      ;;
14751
14752    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14753      lt_prog_compiler_wl='-Wl,'
14754      lt_prog_compiler_pic='-KPIC'
14755      lt_prog_compiler_static='-Bstatic'
14756      ;;
14757
14758    unicos*)
14759      lt_prog_compiler_wl='-Wl,'
14760      lt_prog_compiler_can_build_shared=no
14761      ;;
14762
14763    uts4*)
14764      lt_prog_compiler_pic='-pic'
14765      lt_prog_compiler_static='-Bstatic'
14766      ;;
14767
14768    *)
14769      lt_prog_compiler_can_build_shared=no
14770      ;;
14771    esac
14772  fi
14773
14774case $host_os in
14775  # For platforms which do not support PIC, -DPIC is meaningless:
14776  *djgpp*)
14777    lt_prog_compiler_pic=
14778    ;;
14779  *)
14780    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14781    ;;
14782esac
14783
14784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14785$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14786if ${lt_cv_prog_compiler_pic+:} false; then :
14787  $as_echo_n "(cached) " >&6
14788else
14789  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14790fi
14791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14792$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14793lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14794
14795#
14796# Check to make sure the PIC flag actually works.
14797#
14798if test -n "$lt_prog_compiler_pic"; then
14799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14800$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14801if ${lt_cv_prog_compiler_pic_works+:} false; then :
14802  $as_echo_n "(cached) " >&6
14803else
14804  lt_cv_prog_compiler_pic_works=no
14805   ac_outfile=conftest.$ac_objext
14806   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14807   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14808   # Insert the option either (1) after the last *FLAGS variable, or
14809   # (2) before a word containing "conftest.", or (3) at the end.
14810   # Note that $ac_compile itself does not contain backslashes and begins
14811   # with a dollar sign (not a hyphen), so the echo should work correctly.
14812   # The option is referenced via a variable to avoid confusing sed.
14813   lt_compile=`echo "$ac_compile" | $SED \
14814   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14815   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14816   -e 's:$: $lt_compiler_flag:'`
14817   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14818   (eval "$lt_compile" 2>conftest.err)
14819   ac_status=$?
14820   cat conftest.err >&5
14821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822   if (exit $ac_status) && test -s "$ac_outfile"; then
14823     # The compiler can only warn and ignore the option if not recognized
14824     # So say no if there are warnings other than the usual output.
14825     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14826     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14827     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14828       lt_cv_prog_compiler_pic_works=yes
14829     fi
14830   fi
14831   $RM conftest*
14832
14833fi
14834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14835$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14836
14837if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14838    case $lt_prog_compiler_pic in
14839     "" | " "*) ;;
14840     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14841     esac
14842else
14843    lt_prog_compiler_pic=
14844     lt_prog_compiler_can_build_shared=no
14845fi
14846
14847fi
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859#
14860# Check to make sure the static flag actually works.
14861#
14862wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14864$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14865if ${lt_cv_prog_compiler_static_works+:} false; then :
14866  $as_echo_n "(cached) " >&6
14867else
14868  lt_cv_prog_compiler_static_works=no
14869   save_LDFLAGS="$LDFLAGS"
14870   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14871   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14872   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14873     # The linker can only warn and ignore the option if not recognized
14874     # So say no if there are warnings
14875     if test -s conftest.err; then
14876       # Append any errors to the config.log.
14877       cat conftest.err 1>&5
14878       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14879       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14880       if diff conftest.exp conftest.er2 >/dev/null; then
14881         lt_cv_prog_compiler_static_works=yes
14882       fi
14883     else
14884       lt_cv_prog_compiler_static_works=yes
14885     fi
14886   fi
14887   $RM -r conftest*
14888   LDFLAGS="$save_LDFLAGS"
14889
14890fi
14891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14892$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14893
14894if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14895    :
14896else
14897    lt_prog_compiler_static=
14898fi
14899
14900
14901
14902
14903
14904
14905
14906  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14907$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14908if ${lt_cv_prog_compiler_c_o+:} false; then :
14909  $as_echo_n "(cached) " >&6
14910else
14911  lt_cv_prog_compiler_c_o=no
14912   $RM -r conftest 2>/dev/null
14913   mkdir conftest
14914   cd conftest
14915   mkdir out
14916   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14917
14918   lt_compiler_flag="-o out/conftest2.$ac_objext"
14919   # Insert the option either (1) after the last *FLAGS variable, or
14920   # (2) before a word containing "conftest.", or (3) at the end.
14921   # Note that $ac_compile itself does not contain backslashes and begins
14922   # with a dollar sign (not a hyphen), so the echo should work correctly.
14923   lt_compile=`echo "$ac_compile" | $SED \
14924   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14925   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14926   -e 's:$: $lt_compiler_flag:'`
14927   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14928   (eval "$lt_compile" 2>out/conftest.err)
14929   ac_status=$?
14930   cat out/conftest.err >&5
14931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14933   then
14934     # The compiler can only warn and ignore the option if not recognized
14935     # So say no if there are warnings
14936     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14937     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14938     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14939       lt_cv_prog_compiler_c_o=yes
14940     fi
14941   fi
14942   chmod u+w . 2>&5
14943   $RM conftest*
14944   # SGI C++ compiler will create directory out/ii_files/ for
14945   # template instantiation
14946   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14947   $RM out/* && rmdir out
14948   cd ..
14949   $RM -r conftest
14950   $RM conftest*
14951
14952fi
14953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14954$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14955
14956
14957
14958
14959
14960
14961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14962$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14963if ${lt_cv_prog_compiler_c_o+:} false; then :
14964  $as_echo_n "(cached) " >&6
14965else
14966  lt_cv_prog_compiler_c_o=no
14967   $RM -r conftest 2>/dev/null
14968   mkdir conftest
14969   cd conftest
14970   mkdir out
14971   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14972
14973   lt_compiler_flag="-o out/conftest2.$ac_objext"
14974   # Insert the option either (1) after the last *FLAGS variable, or
14975   # (2) before a word containing "conftest.", or (3) at the end.
14976   # Note that $ac_compile itself does not contain backslashes and begins
14977   # with a dollar sign (not a hyphen), so the echo should work correctly.
14978   lt_compile=`echo "$ac_compile" | $SED \
14979   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14980   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14981   -e 's:$: $lt_compiler_flag:'`
14982   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14983   (eval "$lt_compile" 2>out/conftest.err)
14984   ac_status=$?
14985   cat out/conftest.err >&5
14986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14988   then
14989     # The compiler can only warn and ignore the option if not recognized
14990     # So say no if there are warnings
14991     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14992     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14993     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14994       lt_cv_prog_compiler_c_o=yes
14995     fi
14996   fi
14997   chmod u+w . 2>&5
14998   $RM conftest*
14999   # SGI C++ compiler will create directory out/ii_files/ for
15000   # template instantiation
15001   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15002   $RM out/* && rmdir out
15003   cd ..
15004   $RM -r conftest
15005   $RM conftest*
15006
15007fi
15008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15009$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15010
15011
15012
15013
15014hard_links="nottested"
15015if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15016  # do not overwrite the value of need_locks provided by the user
15017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15018$as_echo_n "checking if we can lock with hard links... " >&6; }
15019  hard_links=yes
15020  $RM conftest*
15021  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15022  touch conftest.a
15023  ln conftest.a conftest.b 2>&5 || hard_links=no
15024  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15026$as_echo "$hard_links" >&6; }
15027  if test "$hard_links" = no; then
15028    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15029$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15030    need_locks=warn
15031  fi
15032else
15033  need_locks=no
15034fi
15035
15036
15037
15038
15039
15040
15041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15042$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15043
15044  runpath_var=
15045  allow_undefined_flag=
15046  always_export_symbols=no
15047  archive_cmds=
15048  archive_expsym_cmds=
15049  compiler_needs_object=no
15050  enable_shared_with_static_runtimes=no
15051  export_dynamic_flag_spec=
15052  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15053  hardcode_automatic=no
15054  hardcode_direct=no
15055  hardcode_direct_absolute=no
15056  hardcode_libdir_flag_spec=
15057  hardcode_libdir_separator=
15058  hardcode_minus_L=no
15059  hardcode_shlibpath_var=unsupported
15060  inherit_rpath=no
15061  link_all_deplibs=unknown
15062  module_cmds=
15063  module_expsym_cmds=
15064  old_archive_from_new_cmds=
15065  old_archive_from_expsyms_cmds=
15066  thread_safe_flag_spec=
15067  whole_archive_flag_spec=
15068  # include_expsyms should be a list of space-separated symbols to be *always*
15069  # included in the symbol list
15070  include_expsyms=
15071  # exclude_expsyms can be an extended regexp of symbols to exclude
15072  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15073  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15074  # as well as any symbol that contains `d'.
15075  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15076  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15077  # platforms (ab)use it in PIC code, but their linkers get confused if
15078  # the symbol is explicitly referenced.  Since portable code cannot
15079  # rely on this symbol name, it's probably fine to never include it in
15080  # preloaded symbol tables.
15081  # Exclude shared library initialization/finalization symbols.
15082  extract_expsyms_cmds=
15083
15084  case $host_os in
15085  cygwin* | mingw* | pw32* | cegcc*)
15086    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15087    # When not using gcc, we currently assume that we are using
15088    # Microsoft Visual C++.
15089    if test "$GCC" != yes; then
15090      with_gnu_ld=no
15091    fi
15092    ;;
15093  interix*)
15094    # we just hope/assume this is gcc and not c89 (= MSVC++)
15095    with_gnu_ld=yes
15096    ;;
15097  openbsd*)
15098    with_gnu_ld=no
15099    ;;
15100  linux* | k*bsd*-gnu | gnu*)
15101    link_all_deplibs=no
15102    ;;
15103  esac
15104
15105  ld_shlibs=yes
15106
15107  # On some targets, GNU ld is compatible enough with the native linker
15108  # that we're better off using the native interface for both.
15109  lt_use_gnu_ld_interface=no
15110  if test "$with_gnu_ld" = yes; then
15111    case $host_os in
15112      aix*)
15113	# The AIX port of GNU ld has always aspired to compatibility
15114	# with the native linker.  However, as the warning in the GNU ld
15115	# block says, versions before 2.19.5* couldn't really create working
15116	# shared libraries, regardless of the interface used.
15117	case `$LD -v 2>&1` in
15118	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15119	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15120	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15121	  *)
15122	    lt_use_gnu_ld_interface=yes
15123	    ;;
15124	esac
15125	;;
15126      *)
15127	lt_use_gnu_ld_interface=yes
15128	;;
15129    esac
15130  fi
15131
15132  if test "$lt_use_gnu_ld_interface" = yes; then
15133    # If archive_cmds runs LD, not CC, wlarc should be empty
15134    wlarc='${wl}'
15135
15136    # Set some defaults for GNU ld with shared library support. These
15137    # are reset later if shared libraries are not supported. Putting them
15138    # here allows them to be overridden if necessary.
15139    runpath_var=LD_RUN_PATH
15140    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15141    export_dynamic_flag_spec='${wl}--export-dynamic'
15142    # ancient GNU ld didn't support --whole-archive et. al.
15143    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15144      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15145    else
15146      whole_archive_flag_spec=
15147    fi
15148    supports_anon_versioning=no
15149    case `$LD -v 2>&1` in
15150      *GNU\ gold*) supports_anon_versioning=yes ;;
15151      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15152      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15153      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15154      *\ 2.11.*) ;; # other 2.11 versions
15155      *) supports_anon_versioning=yes ;;
15156    esac
15157
15158    # See if GNU ld supports shared libraries.
15159    case $host_os in
15160    aix[3-9]*)
15161      # On AIX/PPC, the GNU linker is very broken
15162      if test "$host_cpu" != ia64; then
15163	ld_shlibs=no
15164	cat <<_LT_EOF 1>&2
15165
15166*** Warning: the GNU linker, at least up to release 2.19, is reported
15167*** to be unable to reliably create shared libraries on AIX.
15168*** Therefore, libtool is disabling shared libraries support.  If you
15169*** really care for shared libraries, you may want to install binutils
15170*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15171*** You will then need to restart the configuration process.
15172
15173_LT_EOF
15174      fi
15175      ;;
15176
15177    amigaos*)
15178      case $host_cpu in
15179      powerpc)
15180            # see comment about AmigaOS4 .so support
15181            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15182            archive_expsym_cmds=''
15183        ;;
15184      m68k)
15185            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)'
15186            hardcode_libdir_flag_spec='-L$libdir'
15187            hardcode_minus_L=yes
15188        ;;
15189      esac
15190      ;;
15191
15192    beos*)
15193      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15194	allow_undefined_flag=unsupported
15195	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15196	# support --undefined.  This deserves some investigation.  FIXME
15197	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15198      else
15199	ld_shlibs=no
15200      fi
15201      ;;
15202
15203    cygwin* | mingw* | pw32* | cegcc*)
15204      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15205      # as there is no search path for DLLs.
15206      hardcode_libdir_flag_spec='-L$libdir'
15207      export_dynamic_flag_spec='${wl}--export-all-symbols'
15208      allow_undefined_flag=unsupported
15209      always_export_symbols=no
15210      enable_shared_with_static_runtimes=yes
15211      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'
15212      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15213
15214      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15215        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15216	# If the export-symbols file already is a .def file (1st line
15217	# is EXPORTS), use it as is; otherwise, prepend...
15218	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15219	  cp $export_symbols $output_objdir/$soname.def;
15220	else
15221	  echo EXPORTS > $output_objdir/$soname.def;
15222	  cat $export_symbols >> $output_objdir/$soname.def;
15223	fi~
15224	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15225      else
15226	ld_shlibs=no
15227      fi
15228      ;;
15229
15230    haiku*)
15231      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15232      link_all_deplibs=yes
15233      ;;
15234
15235    interix[3-9]*)
15236      hardcode_direct=no
15237      hardcode_shlibpath_var=no
15238      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15239      export_dynamic_flag_spec='${wl}-E'
15240      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15241      # Instead, shared libraries are loaded at an image base (0x10000000 by
15242      # default) and relocated if they conflict, which is a slow very memory
15243      # consuming and fragmenting process.  To avoid this, we pick a random,
15244      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15245      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15246      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15247      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'
15248      ;;
15249
15250    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15251      tmp_diet=no
15252      if test "$host_os" = linux-dietlibc; then
15253	case $cc_basename in
15254	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15255	esac
15256      fi
15257      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15258	 && test "$tmp_diet" = no
15259      then
15260	tmp_addflag=' $pic_flag'
15261	tmp_sharedflag='-shared'
15262	case $cc_basename,$host_cpu in
15263        pgcc*)				# Portland Group C compiler
15264	  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'
15265	  tmp_addflag=' $pic_flag'
15266	  ;;
15267	pgf77* | pgf90* | pgf95* | pgfortran*)
15268					# Portland Group f77 and f90 compilers
15269	  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'
15270	  tmp_addflag=' $pic_flag -Mnomain' ;;
15271	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15272	  tmp_addflag=' -i_dynamic' ;;
15273	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15274	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15275	ifc* | ifort*)			# Intel Fortran compiler
15276	  tmp_addflag=' -nofor_main' ;;
15277	lf95*)				# Lahey Fortran 8.1
15278	  whole_archive_flag_spec=
15279	  tmp_sharedflag='--shared' ;;
15280	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15281	  tmp_sharedflag='-qmkshrobj'
15282	  tmp_addflag= ;;
15283	nvcc*)	# Cuda Compiler Driver 2.2
15284	  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'
15285	  compiler_needs_object=yes
15286	  ;;
15287	esac
15288	case `$CC -V 2>&1 | sed 5q` in
15289	*Sun\ C*)			# Sun C 5.9
15290	  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'
15291	  compiler_needs_object=yes
15292	  tmp_sharedflag='-G' ;;
15293	*Sun\ F*)			# Sun Fortran 8.3
15294	  tmp_sharedflag='-G' ;;
15295	esac
15296	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15297
15298        if test "x$supports_anon_versioning" = xyes; then
15299          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15300	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15301	    echo "local: *; };" >> $output_objdir/$libname.ver~
15302	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15303        fi
15304
15305	case $cc_basename in
15306	xlf* | bgf* | bgxlf* | mpixlf*)
15307	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15308	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15309	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15310	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15311	  if test "x$supports_anon_versioning" = xyes; then
15312	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15313	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15314	      echo "local: *; };" >> $output_objdir/$libname.ver~
15315	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15316	  fi
15317	  ;;
15318	esac
15319      else
15320        ld_shlibs=no
15321      fi
15322      ;;
15323
15324    netbsd* | netbsdelf*-gnu)
15325      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15326	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15327	wlarc=
15328      else
15329	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15330	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15331      fi
15332      ;;
15333
15334    solaris*)
15335      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15336	ld_shlibs=no
15337	cat <<_LT_EOF 1>&2
15338
15339*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15340*** create shared libraries on Solaris systems.  Therefore, libtool
15341*** is disabling shared libraries support.  We urge you to upgrade GNU
15342*** binutils to release 2.9.1 or newer.  Another option is to modify
15343*** your PATH or compiler configuration so that the native linker is
15344*** used, and then restart.
15345
15346_LT_EOF
15347      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15348	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15349	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15350      else
15351	ld_shlibs=no
15352      fi
15353      ;;
15354
15355    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15356      case `$LD -v 2>&1` in
15357        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15358	ld_shlibs=no
15359	cat <<_LT_EOF 1>&2
15360
15361*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15362*** reliably create shared libraries on SCO systems.  Therefore, libtool
15363*** is disabling shared libraries support.  We urge you to upgrade GNU
15364*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15365*** your PATH or compiler configuration so that the native linker is
15366*** used, and then restart.
15367
15368_LT_EOF
15369	;;
15370	*)
15371	  # For security reasons, it is highly recommended that you always
15372	  # use absolute paths for naming shared libraries, and exclude the
15373	  # DT_RUNPATH tag from executables and libraries.  But doing so
15374	  # requires that you compile everything twice, which is a pain.
15375	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15376	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15377	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15378	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15379	  else
15380	    ld_shlibs=no
15381	  fi
15382	;;
15383      esac
15384      ;;
15385
15386    sunos4*)
15387      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15388      wlarc=
15389      hardcode_direct=yes
15390      hardcode_shlibpath_var=no
15391      ;;
15392
15393    *)
15394      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15395	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15396	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15397      else
15398	ld_shlibs=no
15399      fi
15400      ;;
15401    esac
15402
15403    if test "$ld_shlibs" = no; then
15404      runpath_var=
15405      hardcode_libdir_flag_spec=
15406      export_dynamic_flag_spec=
15407      whole_archive_flag_spec=
15408    fi
15409  else
15410    # PORTME fill in a description of your system's linker (not GNU ld)
15411    case $host_os in
15412    aix3*)
15413      allow_undefined_flag=unsupported
15414      always_export_symbols=yes
15415      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'
15416      # Note: this linker hardcodes the directories in LIBPATH if there
15417      # are no directories specified by -L.
15418      hardcode_minus_L=yes
15419      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15420	# Neither direct hardcoding nor static linking is supported with a
15421	# broken collect2.
15422	hardcode_direct=unsupported
15423      fi
15424      ;;
15425
15426    aix[4-9]*)
15427      if test "$host_cpu" = ia64; then
15428	# On IA64, the linker does run time linking by default, so we don't
15429	# have to do anything special.
15430	aix_use_runtimelinking=no
15431	exp_sym_flag='-Bexport'
15432	no_entry_flag=""
15433      else
15434	# If we're using GNU nm, then we don't want the "-C" option.
15435	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15436	# Also, AIX nm treats weak defined symbols like other global
15437	# defined symbols, whereas GNU nm marks them as "W".
15438	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15439	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15440	else
15441	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15442	fi
15443	aix_use_runtimelinking=no
15444
15445	# Test if we are trying to use run time linking or normal
15446	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15447	# need to do runtime linking.
15448	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15449	  for ld_flag in $LDFLAGS; do
15450	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15451	    aix_use_runtimelinking=yes
15452	    break
15453	  fi
15454	  done
15455	  ;;
15456	esac
15457
15458	exp_sym_flag='-bexport'
15459	no_entry_flag='-bnoentry'
15460      fi
15461
15462      # When large executables or shared objects are built, AIX ld can
15463      # have problems creating the table of contents.  If linking a library
15464      # or program results in "error TOC overflow" add -mminimal-toc to
15465      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15466      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15467
15468      archive_cmds=''
15469      hardcode_direct=yes
15470      hardcode_direct_absolute=yes
15471      hardcode_libdir_separator=':'
15472      link_all_deplibs=yes
15473      file_list_spec='${wl}-f,'
15474
15475      if test "$GCC" = yes; then
15476	case $host_os in aix4.[012]|aix4.[012].*)
15477	# We only want to do this on AIX 4.2 and lower, the check
15478	# below for broken collect2 doesn't work under 4.3+
15479	  collect2name=`${CC} -print-prog-name=collect2`
15480	  if test -f "$collect2name" &&
15481	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15482	  then
15483	  # We have reworked collect2
15484	  :
15485	  else
15486	  # We have old collect2
15487	  hardcode_direct=unsupported
15488	  # It fails to find uninstalled libraries when the uninstalled
15489	  # path is not listed in the libpath.  Setting hardcode_minus_L
15490	  # to unsupported forces relinking
15491	  hardcode_minus_L=yes
15492	  hardcode_libdir_flag_spec='-L$libdir'
15493	  hardcode_libdir_separator=
15494	  fi
15495	  ;;
15496	esac
15497	shared_flag='-shared'
15498	if test "$aix_use_runtimelinking" = yes; then
15499	  shared_flag="$shared_flag "'${wl}-G'
15500	fi
15501	link_all_deplibs=no
15502      else
15503	# not using gcc
15504	if test "$host_cpu" = ia64; then
15505	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15506	# chokes on -Wl,-G. The following line is correct:
15507	  shared_flag='-G'
15508	else
15509	  if test "$aix_use_runtimelinking" = yes; then
15510	    shared_flag='${wl}-G'
15511	  else
15512	    shared_flag='${wl}-bM:SRE'
15513	  fi
15514	fi
15515      fi
15516
15517      export_dynamic_flag_spec='${wl}-bexpall'
15518      # It seems that -bexpall does not export symbols beginning with
15519      # underscore (_), so it is better to generate a list of symbols to export.
15520      always_export_symbols=yes
15521      if test "$aix_use_runtimelinking" = yes; then
15522	# Warning - without using the other runtime loading flags (-brtl),
15523	# -berok will link without error, but may produce a broken library.
15524	allow_undefined_flag='-berok'
15525        # Determine the default libpath from the value encoded in an
15526        # empty executable.
15527        if test "${lt_cv_aix_libpath+set}" = set; then
15528  aix_libpath=$lt_cv_aix_libpath
15529else
15530  if ${lt_cv_aix_libpath_+:} false; then :
15531  $as_echo_n "(cached) " >&6
15532else
15533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15534/* end confdefs.h.  */
15535
15536int
15537main ()
15538{
15539
15540  ;
15541  return 0;
15542}
15543_ACEOF
15544if ac_fn_c_try_link "$LINENO"; then :
15545
15546  lt_aix_libpath_sed='
15547      /Import File Strings/,/^$/ {
15548	  /^0/ {
15549	      s/^0  *\([^ ]*\) *$/\1/
15550	      p
15551	  }
15552      }'
15553  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15554  # Check for a 64-bit object if we didn't find anything.
15555  if test -z "$lt_cv_aix_libpath_"; then
15556    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15557  fi
15558fi
15559rm -f core conftest.err conftest.$ac_objext \
15560    conftest$ac_exeext conftest.$ac_ext
15561  if test -z "$lt_cv_aix_libpath_"; then
15562    lt_cv_aix_libpath_="/usr/lib:/lib"
15563  fi
15564
15565fi
15566
15567  aix_libpath=$lt_cv_aix_libpath_
15568fi
15569
15570        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15571        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15572      else
15573	if test "$host_cpu" = ia64; then
15574	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15575	  allow_undefined_flag="-z nodefs"
15576	  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"
15577	else
15578	 # Determine the default libpath from the value encoded in an
15579	 # empty executable.
15580	 if test "${lt_cv_aix_libpath+set}" = set; then
15581  aix_libpath=$lt_cv_aix_libpath
15582else
15583  if ${lt_cv_aix_libpath_+:} false; then :
15584  $as_echo_n "(cached) " >&6
15585else
15586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15587/* end confdefs.h.  */
15588
15589int
15590main ()
15591{
15592
15593  ;
15594  return 0;
15595}
15596_ACEOF
15597if ac_fn_c_try_link "$LINENO"; then :
15598
15599  lt_aix_libpath_sed='
15600      /Import File Strings/,/^$/ {
15601	  /^0/ {
15602	      s/^0  *\([^ ]*\) *$/\1/
15603	      p
15604	  }
15605      }'
15606  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15607  # Check for a 64-bit object if we didn't find anything.
15608  if test -z "$lt_cv_aix_libpath_"; then
15609    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15610  fi
15611fi
15612rm -f core conftest.err conftest.$ac_objext \
15613    conftest$ac_exeext conftest.$ac_ext
15614  if test -z "$lt_cv_aix_libpath_"; then
15615    lt_cv_aix_libpath_="/usr/lib:/lib"
15616  fi
15617
15618fi
15619
15620  aix_libpath=$lt_cv_aix_libpath_
15621fi
15622
15623	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15624	  # Warning - without using the other run time loading flags,
15625	  # -berok will link without error, but may produce a broken library.
15626	  no_undefined_flag=' ${wl}-bernotok'
15627	  allow_undefined_flag=' ${wl}-berok'
15628	  if test "$with_gnu_ld" = yes; then
15629	    # We only use this code for GNU lds that support --whole-archive.
15630	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15631	  else
15632	    # Exported symbols can be pulled into shared objects from archives
15633	    whole_archive_flag_spec='$convenience'
15634	  fi
15635	  archive_cmds_need_lc=yes
15636	  # This is similar to how AIX traditionally builds its shared libraries.
15637	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15638	fi
15639      fi
15640      ;;
15641
15642    amigaos*)
15643      case $host_cpu in
15644      powerpc)
15645            # see comment about AmigaOS4 .so support
15646            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15647            archive_expsym_cmds=''
15648        ;;
15649      m68k)
15650            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)'
15651            hardcode_libdir_flag_spec='-L$libdir'
15652            hardcode_minus_L=yes
15653        ;;
15654      esac
15655      ;;
15656
15657    bsdi[45]*)
15658      export_dynamic_flag_spec=-rdynamic
15659      ;;
15660
15661    cygwin* | mingw* | pw32* | cegcc*)
15662      # When not using gcc, we currently assume that we are using
15663      # Microsoft Visual C++.
15664      # hardcode_libdir_flag_spec is actually meaningless, as there is
15665      # no search path for DLLs.
15666      case $cc_basename in
15667      cl*)
15668	# Native MSVC
15669	hardcode_libdir_flag_spec=' '
15670	allow_undefined_flag=unsupported
15671	always_export_symbols=yes
15672	file_list_spec='@'
15673	# Tell ltmain to make .lib files, not .a files.
15674	libext=lib
15675	# Tell ltmain to make .dll files, not .so files.
15676	shrext_cmds=".dll"
15677	# FIXME: Setting linknames here is a bad hack.
15678	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15679	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15680	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15681	  else
15682	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15683	  fi~
15684	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15685	  linknames='
15686	# The linker will not automatically build a static lib if we build a DLL.
15687	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15688	enable_shared_with_static_runtimes=yes
15689	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15690	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15691	# Don't use ranlib
15692	old_postinstall_cmds='chmod 644 $oldlib'
15693	postlink_cmds='lt_outputfile="@OUTPUT@"~
15694	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15695	  case $lt_outputfile in
15696	    *.exe|*.EXE) ;;
15697	    *)
15698	      lt_outputfile="$lt_outputfile.exe"
15699	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15700	      ;;
15701	  esac~
15702	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15703	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15704	    $RM "$lt_outputfile.manifest";
15705	  fi'
15706	;;
15707      *)
15708	# Assume MSVC wrapper
15709	hardcode_libdir_flag_spec=' '
15710	allow_undefined_flag=unsupported
15711	# Tell ltmain to make .lib files, not .a files.
15712	libext=lib
15713	# Tell ltmain to make .dll files, not .so files.
15714	shrext_cmds=".dll"
15715	# FIXME: Setting linknames here is a bad hack.
15716	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15717	# The linker will automatically build a .lib file if we build a DLL.
15718	old_archive_from_new_cmds='true'
15719	# FIXME: Should let the user specify the lib program.
15720	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15721	enable_shared_with_static_runtimes=yes
15722	;;
15723      esac
15724      ;;
15725
15726    darwin* | rhapsody*)
15727
15728
15729  archive_cmds_need_lc=no
15730  hardcode_direct=no
15731  hardcode_automatic=yes
15732  hardcode_shlibpath_var=unsupported
15733  if test "$lt_cv_ld_force_load" = "yes"; then
15734    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\"`'
15735
15736  else
15737    whole_archive_flag_spec=''
15738  fi
15739  link_all_deplibs=yes
15740  allow_undefined_flag="$_lt_dar_allow_undefined"
15741  case $cc_basename in
15742     ifort*) _lt_dar_can_shared=yes ;;
15743     *) _lt_dar_can_shared=$GCC ;;
15744  esac
15745  if test "$_lt_dar_can_shared" = "yes"; then
15746    output_verbose_link_cmd=func_echo_all
15747    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15748    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15749    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}"
15750    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}"
15751
15752  else
15753  ld_shlibs=no
15754  fi
15755
15756      ;;
15757
15758    dgux*)
15759      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15760      hardcode_libdir_flag_spec='-L$libdir'
15761      hardcode_shlibpath_var=no
15762      ;;
15763
15764    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15765    # support.  Future versions do this automatically, but an explicit c++rt0.o
15766    # does not break anything, and helps significantly (at the cost of a little
15767    # extra space).
15768    freebsd2.2*)
15769      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15770      hardcode_libdir_flag_spec='-R$libdir'
15771      hardcode_direct=yes
15772      hardcode_shlibpath_var=no
15773      ;;
15774
15775    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15776    freebsd2.*)
15777      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15778      hardcode_direct=yes
15779      hardcode_minus_L=yes
15780      hardcode_shlibpath_var=no
15781      ;;
15782
15783    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15784    freebsd* | dragonfly*)
15785      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15786      hardcode_libdir_flag_spec='-R$libdir'
15787      hardcode_direct=yes
15788      hardcode_shlibpath_var=no
15789      ;;
15790
15791    hpux9*)
15792      if test "$GCC" = yes; then
15793	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15794      else
15795	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15796      fi
15797      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15798      hardcode_libdir_separator=:
15799      hardcode_direct=yes
15800
15801      # hardcode_minus_L: Not really in the search PATH,
15802      # but as the default location of the library.
15803      hardcode_minus_L=yes
15804      export_dynamic_flag_spec='${wl}-E'
15805      ;;
15806
15807    hpux10*)
15808      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15809	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15810      else
15811	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15812      fi
15813      if test "$with_gnu_ld" = no; then
15814	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15815	hardcode_libdir_separator=:
15816	hardcode_direct=yes
15817	hardcode_direct_absolute=yes
15818	export_dynamic_flag_spec='${wl}-E'
15819	# hardcode_minus_L: Not really in the search PATH,
15820	# but as the default location of the library.
15821	hardcode_minus_L=yes
15822      fi
15823      ;;
15824
15825    hpux11*)
15826      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15827	case $host_cpu in
15828	hppa*64*)
15829	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15830	  ;;
15831	ia64*)
15832	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15833	  ;;
15834	*)
15835	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15836	  ;;
15837	esac
15838      else
15839	case $host_cpu in
15840	hppa*64*)
15841	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15842	  ;;
15843	ia64*)
15844	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15845	  ;;
15846	*)
15847
15848	  # Older versions of the 11.00 compiler do not understand -b yet
15849	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15850	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15851$as_echo_n "checking if $CC understands -b... " >&6; }
15852if ${lt_cv_prog_compiler__b+:} false; then :
15853  $as_echo_n "(cached) " >&6
15854else
15855  lt_cv_prog_compiler__b=no
15856   save_LDFLAGS="$LDFLAGS"
15857   LDFLAGS="$LDFLAGS -b"
15858   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15859   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15860     # The linker can only warn and ignore the option if not recognized
15861     # So say no if there are warnings
15862     if test -s conftest.err; then
15863       # Append any errors to the config.log.
15864       cat conftest.err 1>&5
15865       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15866       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15867       if diff conftest.exp conftest.er2 >/dev/null; then
15868         lt_cv_prog_compiler__b=yes
15869       fi
15870     else
15871       lt_cv_prog_compiler__b=yes
15872     fi
15873   fi
15874   $RM -r conftest*
15875   LDFLAGS="$save_LDFLAGS"
15876
15877fi
15878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15879$as_echo "$lt_cv_prog_compiler__b" >&6; }
15880
15881if test x"$lt_cv_prog_compiler__b" = xyes; then
15882    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15883else
15884    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15885fi
15886
15887	  ;;
15888	esac
15889      fi
15890      if test "$with_gnu_ld" = no; then
15891	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15892	hardcode_libdir_separator=:
15893
15894	case $host_cpu in
15895	hppa*64*|ia64*)
15896	  hardcode_direct=no
15897	  hardcode_shlibpath_var=no
15898	  ;;
15899	*)
15900	  hardcode_direct=yes
15901	  hardcode_direct_absolute=yes
15902	  export_dynamic_flag_spec='${wl}-E'
15903
15904	  # hardcode_minus_L: Not really in the search PATH,
15905	  # but as the default location of the library.
15906	  hardcode_minus_L=yes
15907	  ;;
15908	esac
15909      fi
15910      ;;
15911
15912    irix5* | irix6* | nonstopux*)
15913      if test "$GCC" = yes; then
15914	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'
15915	# Try to use the -exported_symbol ld option, if it does not
15916	# work, assume that -exports_file does not work either and
15917	# implicitly export all symbols.
15918	# This should be the same for all languages, so no per-tag cache variable.
15919	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15920$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15921if ${lt_cv_irix_exported_symbol+:} false; then :
15922  $as_echo_n "(cached) " >&6
15923else
15924  save_LDFLAGS="$LDFLAGS"
15925	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15926	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15927/* end confdefs.h.  */
15928int foo (void) { return 0; }
15929_ACEOF
15930if ac_fn_c_try_link "$LINENO"; then :
15931  lt_cv_irix_exported_symbol=yes
15932else
15933  lt_cv_irix_exported_symbol=no
15934fi
15935rm -f core conftest.err conftest.$ac_objext \
15936    conftest$ac_exeext conftest.$ac_ext
15937           LDFLAGS="$save_LDFLAGS"
15938fi
15939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15940$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15941	if test "$lt_cv_irix_exported_symbol" = yes; then
15942          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'
15943	fi
15944      else
15945	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'
15946	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'
15947      fi
15948      archive_cmds_need_lc='no'
15949      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15950      hardcode_libdir_separator=:
15951      inherit_rpath=yes
15952      link_all_deplibs=yes
15953      ;;
15954
15955    netbsd* | netbsdelf*-gnu)
15956      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15957	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15958      else
15959	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15960      fi
15961      hardcode_libdir_flag_spec='-R$libdir'
15962      hardcode_direct=yes
15963      hardcode_shlibpath_var=no
15964      ;;
15965
15966    newsos6)
15967      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15968      hardcode_direct=yes
15969      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15970      hardcode_libdir_separator=:
15971      hardcode_shlibpath_var=no
15972      ;;
15973
15974    *nto* | *qnx*)
15975      ;;
15976
15977    openbsd*)
15978      if test -f /usr/libexec/ld.so; then
15979	hardcode_direct=yes
15980	hardcode_shlibpath_var=no
15981	hardcode_direct_absolute=yes
15982	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15983	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15984	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15985	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15986	  export_dynamic_flag_spec='${wl}-E'
15987	else
15988	  case $host_os in
15989	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15990	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15991	     hardcode_libdir_flag_spec='-R$libdir'
15992	     ;;
15993	   *)
15994	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15995	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15996	     ;;
15997	  esac
15998	fi
15999      else
16000	ld_shlibs=no
16001      fi
16002      ;;
16003
16004    os2*)
16005      hardcode_libdir_flag_spec='-L$libdir'
16006      hardcode_minus_L=yes
16007      allow_undefined_flag=unsupported
16008      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16009      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16010      ;;
16011
16012    osf3*)
16013      if test "$GCC" = yes; then
16014	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16015	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'
16016      else
16017	allow_undefined_flag=' -expect_unresolved \*'
16018	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'
16019      fi
16020      archive_cmds_need_lc='no'
16021      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16022      hardcode_libdir_separator=:
16023      ;;
16024
16025    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16026      if test "$GCC" = yes; then
16027	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16028	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'
16029	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16030      else
16031	allow_undefined_flag=' -expect_unresolved \*'
16032	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'
16033	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~
16034	$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'
16035
16036	# Both c and cxx compiler support -rpath directly
16037	hardcode_libdir_flag_spec='-rpath $libdir'
16038      fi
16039      archive_cmds_need_lc='no'
16040      hardcode_libdir_separator=:
16041      ;;
16042
16043    solaris*)
16044      no_undefined_flag=' -z defs'
16045      if test "$GCC" = yes; then
16046	wlarc='${wl}'
16047	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16048	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16049	  $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'
16050      else
16051	case `$CC -V 2>&1` in
16052	*"Compilers 5.0"*)
16053	  wlarc=''
16054	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16055	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16056	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16057	  ;;
16058	*)
16059	  wlarc='${wl}'
16060	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16061	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16062	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16063	  ;;
16064	esac
16065      fi
16066      hardcode_libdir_flag_spec='-R$libdir'
16067      hardcode_shlibpath_var=no
16068      case $host_os in
16069      solaris2.[0-5] | solaris2.[0-5].*) ;;
16070      *)
16071	# The compiler driver will combine and reorder linker options,
16072	# but understands `-z linker_flag'.  GCC discards it without `$wl',
16073	# but is careful enough not to reorder.
16074	# Supported since Solaris 2.6 (maybe 2.5.1?)
16075	if test "$GCC" = yes; then
16076	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16077	else
16078	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16079	fi
16080	;;
16081      esac
16082      link_all_deplibs=yes
16083      ;;
16084
16085    sunos4*)
16086      if test "x$host_vendor" = xsequent; then
16087	# Use $CC to link under sequent, because it throws in some extra .o
16088	# files that make .init and .fini sections work.
16089	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16090      else
16091	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16092      fi
16093      hardcode_libdir_flag_spec='-L$libdir'
16094      hardcode_direct=yes
16095      hardcode_minus_L=yes
16096      hardcode_shlibpath_var=no
16097      ;;
16098
16099    sysv4)
16100      case $host_vendor in
16101	sni)
16102	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16103	  hardcode_direct=yes # is this really true???
16104	;;
16105	siemens)
16106	  ## LD is ld it makes a PLAMLIB
16107	  ## CC just makes a GrossModule.
16108	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16109	  reload_cmds='$CC -r -o $output$reload_objs'
16110	  hardcode_direct=no
16111        ;;
16112	motorola)
16113	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16114	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16115	;;
16116      esac
16117      runpath_var='LD_RUN_PATH'
16118      hardcode_shlibpath_var=no
16119      ;;
16120
16121    sysv4.3*)
16122      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16123      hardcode_shlibpath_var=no
16124      export_dynamic_flag_spec='-Bexport'
16125      ;;
16126
16127    sysv4*MP*)
16128      if test -d /usr/nec; then
16129	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16130	hardcode_shlibpath_var=no
16131	runpath_var=LD_RUN_PATH
16132	hardcode_runpath_var=yes
16133	ld_shlibs=yes
16134      fi
16135      ;;
16136
16137    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16138      no_undefined_flag='${wl}-z,text'
16139      archive_cmds_need_lc=no
16140      hardcode_shlibpath_var=no
16141      runpath_var='LD_RUN_PATH'
16142
16143      if test "$GCC" = yes; then
16144	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16145	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16146      else
16147	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16148	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16149      fi
16150      ;;
16151
16152    sysv5* | sco3.2v5* | sco5v6*)
16153      # Note: We can NOT use -z defs as we might desire, because we do not
16154      # link with -lc, and that would cause any symbols used from libc to
16155      # always be unresolved, which means just about no library would
16156      # ever link correctly.  If we're not using GNU ld we use -z text
16157      # though, which does catch some bad symbols but isn't as heavy-handed
16158      # as -z defs.
16159      no_undefined_flag='${wl}-z,text'
16160      allow_undefined_flag='${wl}-z,nodefs'
16161      archive_cmds_need_lc=no
16162      hardcode_shlibpath_var=no
16163      hardcode_libdir_flag_spec='${wl}-R,$libdir'
16164      hardcode_libdir_separator=':'
16165      link_all_deplibs=yes
16166      export_dynamic_flag_spec='${wl}-Bexport'
16167      runpath_var='LD_RUN_PATH'
16168
16169      if test "$GCC" = yes; then
16170	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16171	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16172      else
16173	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16174	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16175      fi
16176      ;;
16177
16178    uts4*)
16179      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16180      hardcode_libdir_flag_spec='-L$libdir'
16181      hardcode_shlibpath_var=no
16182      ;;
16183
16184    *)
16185      ld_shlibs=no
16186      ;;
16187    esac
16188
16189    if test x$host_vendor = xsni; then
16190      case $host in
16191      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16192	export_dynamic_flag_spec='${wl}-Blargedynsym'
16193	;;
16194      esac
16195    fi
16196  fi
16197
16198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16199$as_echo "$ld_shlibs" >&6; }
16200test "$ld_shlibs" = no && can_build_shared=no
16201
16202with_gnu_ld=$with_gnu_ld
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218#
16219# Do we need to explicitly link libc?
16220#
16221case "x$archive_cmds_need_lc" in
16222x|xyes)
16223  # Assume -lc should be added
16224  archive_cmds_need_lc=yes
16225
16226  if test "$enable_shared" = yes && test "$GCC" = yes; then
16227    case $archive_cmds in
16228    *'~'*)
16229      # FIXME: we may have to deal with multi-command sequences.
16230      ;;
16231    '$CC '*)
16232      # Test whether the compiler implicitly links with -lc since on some
16233      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16234      # to ld, don't add -lc before -lgcc.
16235      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16236$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16237if ${lt_cv_archive_cmds_need_lc+:} false; then :
16238  $as_echo_n "(cached) " >&6
16239else
16240  $RM conftest*
16241	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16242
16243	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16244  (eval $ac_compile) 2>&5
16245  ac_status=$?
16246  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16247  test $ac_status = 0; } 2>conftest.err; then
16248	  soname=conftest
16249	  lib=conftest
16250	  libobjs=conftest.$ac_objext
16251	  deplibs=
16252	  wl=$lt_prog_compiler_wl
16253	  pic_flag=$lt_prog_compiler_pic
16254	  compiler_flags=-v
16255	  linker_flags=-v
16256	  verstring=
16257	  output_objdir=.
16258	  libname=conftest
16259	  lt_save_allow_undefined_flag=$allow_undefined_flag
16260	  allow_undefined_flag=
16261	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16262  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16263  ac_status=$?
16264  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16265  test $ac_status = 0; }
16266	  then
16267	    lt_cv_archive_cmds_need_lc=no
16268	  else
16269	    lt_cv_archive_cmds_need_lc=yes
16270	  fi
16271	  allow_undefined_flag=$lt_save_allow_undefined_flag
16272	else
16273	  cat conftest.err 1>&5
16274	fi
16275	$RM conftest*
16276
16277fi
16278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16279$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16280      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16281      ;;
16282    esac
16283  fi
16284  ;;
16285esac
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16439$as_echo_n "checking dynamic linker characteristics... " >&6; }
16440
16441if test "$GCC" = yes; then
16442  case $host_os in
16443    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16444    *) lt_awk_arg="/^libraries:/" ;;
16445  esac
16446  case $host_os in
16447    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16448    *) lt_sed_strip_eq="s,=/,/,g" ;;
16449  esac
16450  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16451  case $lt_search_path_spec in
16452  *\;*)
16453    # if the path contains ";" then we assume it to be the separator
16454    # otherwise default to the standard path separator (i.e. ":") - it is
16455    # assumed that no part of a normal pathname contains ";" but that should
16456    # okay in the real world where ";" in dirpaths is itself problematic.
16457    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16458    ;;
16459  *)
16460    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16461    ;;
16462  esac
16463  # Ok, now we have the path, separated by spaces, we can step through it
16464  # and add multilib dir if necessary.
16465  lt_tmp_lt_search_path_spec=
16466  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16467  for lt_sys_path in $lt_search_path_spec; do
16468    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16469      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16470    else
16471      test -d "$lt_sys_path" && \
16472	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16473    fi
16474  done
16475  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16476BEGIN {RS=" "; FS="/|\n";} {
16477  lt_foo="";
16478  lt_count=0;
16479  for (lt_i = NF; lt_i > 0; lt_i--) {
16480    if ($lt_i != "" && $lt_i != ".") {
16481      if ($lt_i == "..") {
16482        lt_count++;
16483      } else {
16484        if (lt_count == 0) {
16485          lt_foo="/" $lt_i lt_foo;
16486        } else {
16487          lt_count--;
16488        }
16489      }
16490    }
16491  }
16492  if (lt_foo != "") { lt_freq[lt_foo]++; }
16493  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16494}'`
16495  # AWK program above erroneously prepends '/' to C:/dos/paths
16496  # for these hosts.
16497  case $host_os in
16498    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16499      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16500  esac
16501  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16502else
16503  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16504fi
16505library_names_spec=
16506libname_spec='lib$name'
16507soname_spec=
16508shrext_cmds=".so"
16509postinstall_cmds=
16510postuninstall_cmds=
16511finish_cmds=
16512finish_eval=
16513shlibpath_var=
16514shlibpath_overrides_runpath=unknown
16515version_type=none
16516dynamic_linker="$host_os ld.so"
16517sys_lib_dlsearch_path_spec="/lib /usr/lib"
16518need_lib_prefix=unknown
16519hardcode_into_libs=no
16520
16521# when you set need_version to no, make sure it does not cause -set_version
16522# flags to be left without arguments
16523need_version=unknown
16524
16525case $host_os in
16526aix3*)
16527  version_type=linux # correct to gnu/linux during the next big refactor
16528  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16529  shlibpath_var=LIBPATH
16530
16531  # AIX 3 has no versioning support, so we append a major version to the name.
16532  soname_spec='${libname}${release}${shared_ext}$major'
16533  ;;
16534
16535aix[4-9]*)
16536  version_type=linux # correct to gnu/linux during the next big refactor
16537  need_lib_prefix=no
16538  need_version=no
16539  hardcode_into_libs=yes
16540  if test "$host_cpu" = ia64; then
16541    # AIX 5 supports IA64
16542    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16543    shlibpath_var=LD_LIBRARY_PATH
16544  else
16545    # With GCC up to 2.95.x, collect2 would create an import file
16546    # for dependence libraries.  The import file would start with
16547    # the line `#! .'.  This would cause the generated library to
16548    # depend on `.', always an invalid library.  This was fixed in
16549    # development snapshots of GCC prior to 3.0.
16550    case $host_os in
16551      aix4 | aix4.[01] | aix4.[01].*)
16552      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16553	   echo ' yes '
16554	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16555	:
16556      else
16557	can_build_shared=no
16558      fi
16559      ;;
16560    esac
16561    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16562    # soname into executable. Probably we can add versioning support to
16563    # collect2, so additional links can be useful in future.
16564    if test "$aix_use_runtimelinking" = yes; then
16565      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16566      # instead of lib<name>.a to let people know that these are not
16567      # typical AIX shared libraries.
16568      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16569    else
16570      # We preserve .a as extension for shared libraries through AIX4.2
16571      # and later when we are not doing run time linking.
16572      library_names_spec='${libname}${release}.a $libname.a'
16573      soname_spec='${libname}${release}${shared_ext}$major'
16574    fi
16575    shlibpath_var=LIBPATH
16576  fi
16577  ;;
16578
16579amigaos*)
16580  case $host_cpu in
16581  powerpc)
16582    # Since July 2007 AmigaOS4 officially supports .so libraries.
16583    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16584    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16585    ;;
16586  m68k)
16587    library_names_spec='$libname.ixlibrary $libname.a'
16588    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16589    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16590    ;;
16591  esac
16592  ;;
16593
16594beos*)
16595  library_names_spec='${libname}${shared_ext}'
16596  dynamic_linker="$host_os ld.so"
16597  shlibpath_var=LIBRARY_PATH
16598  ;;
16599
16600bsdi[45]*)
16601  version_type=linux # correct to gnu/linux during the next big refactor
16602  need_version=no
16603  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16604  soname_spec='${libname}${release}${shared_ext}$major'
16605  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16606  shlibpath_var=LD_LIBRARY_PATH
16607  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16608  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16609  # the default ld.so.conf also contains /usr/contrib/lib and
16610  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16611  # libtool to hard-code these into programs
16612  ;;
16613
16614cygwin* | mingw* | pw32* | cegcc*)
16615  version_type=windows
16616  shrext_cmds=".dll"
16617  need_version=no
16618  need_lib_prefix=no
16619
16620  case $GCC,$cc_basename in
16621  yes,*)
16622    # gcc
16623    library_names_spec='$libname.dll.a'
16624    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16625    postinstall_cmds='base_file=`basename \${file}`~
16626      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16627      dldir=$destdir/`dirname \$dlpath`~
16628      test -d \$dldir || mkdir -p \$dldir~
16629      $install_prog $dir/$dlname \$dldir/$dlname~
16630      chmod a+x \$dldir/$dlname~
16631      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16632        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16633      fi'
16634    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16635      dlpath=$dir/\$dldll~
16636       $RM \$dlpath'
16637    shlibpath_overrides_runpath=yes
16638
16639    case $host_os in
16640    cygwin*)
16641      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16642      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16643
16644      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16645      ;;
16646    mingw* | cegcc*)
16647      # MinGW DLLs use traditional 'lib' prefix
16648      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16649      ;;
16650    pw32*)
16651      # pw32 DLLs use 'pw' prefix rather than 'lib'
16652      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16653      ;;
16654    esac
16655    dynamic_linker='Win32 ld.exe'
16656    ;;
16657
16658  *,cl*)
16659    # Native MSVC
16660    libname_spec='$name'
16661    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16662    library_names_spec='${libname}.dll.lib'
16663
16664    case $build_os in
16665    mingw*)
16666      sys_lib_search_path_spec=
16667      lt_save_ifs=$IFS
16668      IFS=';'
16669      for lt_path in $LIB
16670      do
16671        IFS=$lt_save_ifs
16672        # Let DOS variable expansion print the short 8.3 style file name.
16673        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16674        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16675      done
16676      IFS=$lt_save_ifs
16677      # Convert to MSYS style.
16678      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16679      ;;
16680    cygwin*)
16681      # Convert to unix form, then to dos form, then back to unix form
16682      # but this time dos style (no spaces!) so that the unix form looks
16683      # like /cygdrive/c/PROGRA~1:/cygdr...
16684      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16685      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16686      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16687      ;;
16688    *)
16689      sys_lib_search_path_spec="$LIB"
16690      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16691        # It is most probably a Windows format PATH.
16692        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16693      else
16694        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16695      fi
16696      # FIXME: find the short name or the path components, as spaces are
16697      # common. (e.g. "Program Files" -> "PROGRA~1")
16698      ;;
16699    esac
16700
16701    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16702    postinstall_cmds='base_file=`basename \${file}`~
16703      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16704      dldir=$destdir/`dirname \$dlpath`~
16705      test -d \$dldir || mkdir -p \$dldir~
16706      $install_prog $dir/$dlname \$dldir/$dlname'
16707    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16708      dlpath=$dir/\$dldll~
16709       $RM \$dlpath'
16710    shlibpath_overrides_runpath=yes
16711    dynamic_linker='Win32 link.exe'
16712    ;;
16713
16714  *)
16715    # Assume MSVC wrapper
16716    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16717    dynamic_linker='Win32 ld.exe'
16718    ;;
16719  esac
16720  # FIXME: first we should search . and the directory the executable is in
16721  shlibpath_var=PATH
16722  ;;
16723
16724darwin* | rhapsody*)
16725  dynamic_linker="$host_os dyld"
16726  version_type=darwin
16727  need_lib_prefix=no
16728  need_version=no
16729  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16730  soname_spec='${libname}${release}${major}$shared_ext'
16731  shlibpath_overrides_runpath=yes
16732  shlibpath_var=DYLD_LIBRARY_PATH
16733  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16734
16735  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16736  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16737  ;;
16738
16739dgux*)
16740  version_type=linux # correct to gnu/linux during the next big refactor
16741  need_lib_prefix=no
16742  need_version=no
16743  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16744  soname_spec='${libname}${release}${shared_ext}$major'
16745  shlibpath_var=LD_LIBRARY_PATH
16746  ;;
16747
16748freebsd* | dragonfly*)
16749  # DragonFly does not have aout.  When/if they implement a new
16750  # versioning mechanism, adjust this.
16751  if test -x /usr/bin/objformat; then
16752    objformat=`/usr/bin/objformat`
16753  else
16754    case $host_os in
16755    freebsd[23].*) objformat=aout ;;
16756    *) objformat=elf ;;
16757    esac
16758  fi
16759  version_type=freebsd-$objformat
16760  case $version_type in
16761    freebsd-elf*)
16762      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16763      need_version=no
16764      need_lib_prefix=no
16765      ;;
16766    freebsd-*)
16767      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16768      need_version=yes
16769      ;;
16770  esac
16771  shlibpath_var=LD_LIBRARY_PATH
16772  case $host_os in
16773  freebsd2.*)
16774    shlibpath_overrides_runpath=yes
16775    ;;
16776  freebsd3.[01]* | freebsdelf3.[01]*)
16777    shlibpath_overrides_runpath=yes
16778    hardcode_into_libs=yes
16779    ;;
16780  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16781  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16782    shlibpath_overrides_runpath=no
16783    hardcode_into_libs=yes
16784    ;;
16785  *) # from 4.6 on, and DragonFly
16786    shlibpath_overrides_runpath=yes
16787    hardcode_into_libs=yes
16788    ;;
16789  esac
16790  ;;
16791
16792haiku*)
16793  version_type=linux # correct to gnu/linux during the next big refactor
16794  need_lib_prefix=no
16795  need_version=no
16796  dynamic_linker="$host_os runtime_loader"
16797  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16798  soname_spec='${libname}${release}${shared_ext}$major'
16799  shlibpath_var=LIBRARY_PATH
16800  shlibpath_overrides_runpath=yes
16801  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16802  hardcode_into_libs=yes
16803  ;;
16804
16805hpux9* | hpux10* | hpux11*)
16806  # Give a soname corresponding to the major version so that dld.sl refuses to
16807  # link against other versions.
16808  version_type=sunos
16809  need_lib_prefix=no
16810  need_version=no
16811  case $host_cpu in
16812  ia64*)
16813    shrext_cmds='.so'
16814    hardcode_into_libs=yes
16815    dynamic_linker="$host_os dld.so"
16816    shlibpath_var=LD_LIBRARY_PATH
16817    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16818    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16819    soname_spec='${libname}${release}${shared_ext}$major'
16820    if test "X$HPUX_IA64_MODE" = X32; then
16821      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16822    else
16823      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16824    fi
16825    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16826    ;;
16827  hppa*64*)
16828    shrext_cmds='.sl'
16829    hardcode_into_libs=yes
16830    dynamic_linker="$host_os dld.sl"
16831    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16832    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16833    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16834    soname_spec='${libname}${release}${shared_ext}$major'
16835    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16836    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16837    ;;
16838  *)
16839    shrext_cmds='.sl'
16840    dynamic_linker="$host_os dld.sl"
16841    shlibpath_var=SHLIB_PATH
16842    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16843    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16844    soname_spec='${libname}${release}${shared_ext}$major'
16845    ;;
16846  esac
16847  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16848  postinstall_cmds='chmod 555 $lib'
16849  # or fails outright, so override atomically:
16850  install_override_mode=555
16851  ;;
16852
16853interix[3-9]*)
16854  version_type=linux # correct to gnu/linux during the next big refactor
16855  need_lib_prefix=no
16856  need_version=no
16857  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16858  soname_spec='${libname}${release}${shared_ext}$major'
16859  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16860  shlibpath_var=LD_LIBRARY_PATH
16861  shlibpath_overrides_runpath=no
16862  hardcode_into_libs=yes
16863  ;;
16864
16865irix5* | irix6* | nonstopux*)
16866  case $host_os in
16867    nonstopux*) version_type=nonstopux ;;
16868    *)
16869	if test "$lt_cv_prog_gnu_ld" = yes; then
16870		version_type=linux # correct to gnu/linux during the next big refactor
16871	else
16872		version_type=irix
16873	fi ;;
16874  esac
16875  need_lib_prefix=no
16876  need_version=no
16877  soname_spec='${libname}${release}${shared_ext}$major'
16878  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16879  case $host_os in
16880  irix5* | nonstopux*)
16881    libsuff= shlibsuff=
16882    ;;
16883  *)
16884    case $LD in # libtool.m4 will add one of these switches to LD
16885    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16886      libsuff= shlibsuff= libmagic=32-bit;;
16887    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16888      libsuff=32 shlibsuff=N32 libmagic=N32;;
16889    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16890      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16891    *) libsuff= shlibsuff= libmagic=never-match;;
16892    esac
16893    ;;
16894  esac
16895  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16896  shlibpath_overrides_runpath=no
16897  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16898  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16899  hardcode_into_libs=yes
16900  ;;
16901
16902# No shared lib support for Linux oldld, aout, or coff.
16903linux*oldld* | linux*aout* | linux*coff*)
16904  dynamic_linker=no
16905  ;;
16906
16907# This must be glibc/ELF.
16908linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16909  version_type=linux # correct to gnu/linux during the next big refactor
16910  need_lib_prefix=no
16911  need_version=no
16912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16913  soname_spec='${libname}${release}${shared_ext}$major'
16914  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16915  shlibpath_var=LD_LIBRARY_PATH
16916  shlibpath_overrides_runpath=no
16917
16918  # Some binutils ld are patched to set DT_RUNPATH
16919  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16920  $as_echo_n "(cached) " >&6
16921else
16922  lt_cv_shlibpath_overrides_runpath=no
16923    save_LDFLAGS=$LDFLAGS
16924    save_libdir=$libdir
16925    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16926	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16927    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16928/* end confdefs.h.  */
16929
16930int
16931main ()
16932{
16933
16934  ;
16935  return 0;
16936}
16937_ACEOF
16938if ac_fn_c_try_link "$LINENO"; then :
16939  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16940  lt_cv_shlibpath_overrides_runpath=yes
16941fi
16942fi
16943rm -f core conftest.err conftest.$ac_objext \
16944    conftest$ac_exeext conftest.$ac_ext
16945    LDFLAGS=$save_LDFLAGS
16946    libdir=$save_libdir
16947
16948fi
16949
16950  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16951
16952  # This implies no fast_install, which is unacceptable.
16953  # Some rework will be needed to allow for fast_install
16954  # before this can be enabled.
16955  hardcode_into_libs=yes
16956
16957  # Append ld.so.conf contents to the search path
16958  if test -f /etc/ld.so.conf; then
16959    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' ' '`
16960    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16961  fi
16962
16963  # We used to test for /lib/ld.so.1 and disable shared libraries on
16964  # powerpc, because MkLinux only supported shared libraries with the
16965  # GNU dynamic linker.  Since this was broken with cross compilers,
16966  # most powerpc-linux boxes support dynamic linking these days and
16967  # people can always --disable-shared, the test was removed, and we
16968  # assume the GNU/Linux dynamic linker is in use.
16969  dynamic_linker='GNU/Linux ld.so'
16970  ;;
16971
16972netbsdelf*-gnu)
16973  version_type=linux
16974  need_lib_prefix=no
16975  need_version=no
16976  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16977  soname_spec='${libname}${release}${shared_ext}$major'
16978  shlibpath_var=LD_LIBRARY_PATH
16979  shlibpath_overrides_runpath=no
16980  hardcode_into_libs=yes
16981  dynamic_linker='NetBSD ld.elf_so'
16982  ;;
16983
16984netbsd*)
16985  version_type=sunos
16986  need_lib_prefix=no
16987  need_version=no
16988  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16989    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16990    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16991    dynamic_linker='NetBSD (a.out) ld.so'
16992  else
16993    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16994    soname_spec='${libname}${release}${shared_ext}$major'
16995    dynamic_linker='NetBSD ld.elf_so'
16996  fi
16997  shlibpath_var=LD_LIBRARY_PATH
16998  shlibpath_overrides_runpath=yes
16999  hardcode_into_libs=yes
17000  ;;
17001
17002newsos6)
17003  version_type=linux # correct to gnu/linux during the next big refactor
17004  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17005  shlibpath_var=LD_LIBRARY_PATH
17006  shlibpath_overrides_runpath=yes
17007  ;;
17008
17009*nto* | *qnx*)
17010  version_type=qnx
17011  need_lib_prefix=no
17012  need_version=no
17013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17014  soname_spec='${libname}${release}${shared_ext}$major'
17015  shlibpath_var=LD_LIBRARY_PATH
17016  shlibpath_overrides_runpath=no
17017  hardcode_into_libs=yes
17018  dynamic_linker='ldqnx.so'
17019  ;;
17020
17021openbsd*)
17022  version_type=sunos
17023  sys_lib_dlsearch_path_spec="/usr/lib"
17024  need_lib_prefix=no
17025  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17026  case $host_os in
17027    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
17028    *)				need_version=no  ;;
17029  esac
17030  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17031  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17032  shlibpath_var=LD_LIBRARY_PATH
17033  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17034    case $host_os in
17035      openbsd2.[89] | openbsd2.[89].*)
17036	shlibpath_overrides_runpath=no
17037	;;
17038      *)
17039	shlibpath_overrides_runpath=yes
17040	;;
17041      esac
17042  else
17043    shlibpath_overrides_runpath=yes
17044  fi
17045  ;;
17046
17047os2*)
17048  libname_spec='$name'
17049  shrext_cmds=".dll"
17050  need_lib_prefix=no
17051  library_names_spec='$libname${shared_ext} $libname.a'
17052  dynamic_linker='OS/2 ld.exe'
17053  shlibpath_var=LIBPATH
17054  ;;
17055
17056osf3* | osf4* | osf5*)
17057  version_type=osf
17058  need_lib_prefix=no
17059  need_version=no
17060  soname_spec='${libname}${release}${shared_ext}$major'
17061  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17062  shlibpath_var=LD_LIBRARY_PATH
17063  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17064  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17065  ;;
17066
17067rdos*)
17068  dynamic_linker=no
17069  ;;
17070
17071solaris*)
17072  version_type=linux # correct to gnu/linux during the next big refactor
17073  need_lib_prefix=no
17074  need_version=no
17075  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17076  soname_spec='${libname}${release}${shared_ext}$major'
17077  shlibpath_var=LD_LIBRARY_PATH
17078  shlibpath_overrides_runpath=yes
17079  hardcode_into_libs=yes
17080  # ldd complains unless libraries are executable
17081  postinstall_cmds='chmod +x $lib'
17082  ;;
17083
17084sunos4*)
17085  version_type=sunos
17086  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17087  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17088  shlibpath_var=LD_LIBRARY_PATH
17089  shlibpath_overrides_runpath=yes
17090  if test "$with_gnu_ld" = yes; then
17091    need_lib_prefix=no
17092  fi
17093  need_version=yes
17094  ;;
17095
17096sysv4 | sysv4.3*)
17097  version_type=linux # correct to gnu/linux during the next big refactor
17098  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17099  soname_spec='${libname}${release}${shared_ext}$major'
17100  shlibpath_var=LD_LIBRARY_PATH
17101  case $host_vendor in
17102    sni)
17103      shlibpath_overrides_runpath=no
17104      need_lib_prefix=no
17105      runpath_var=LD_RUN_PATH
17106      ;;
17107    siemens)
17108      need_lib_prefix=no
17109      ;;
17110    motorola)
17111      need_lib_prefix=no
17112      need_version=no
17113      shlibpath_overrides_runpath=no
17114      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17115      ;;
17116  esac
17117  ;;
17118
17119sysv4*MP*)
17120  if test -d /usr/nec ;then
17121    version_type=linux # correct to gnu/linux during the next big refactor
17122    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17123    soname_spec='$libname${shared_ext}.$major'
17124    shlibpath_var=LD_LIBRARY_PATH
17125  fi
17126  ;;
17127
17128sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17129  version_type=freebsd-elf
17130  need_lib_prefix=no
17131  need_version=no
17132  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17133  soname_spec='${libname}${release}${shared_ext}$major'
17134  shlibpath_var=LD_LIBRARY_PATH
17135  shlibpath_overrides_runpath=yes
17136  hardcode_into_libs=yes
17137  if test "$with_gnu_ld" = yes; then
17138    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17139  else
17140    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17141    case $host_os in
17142      sco3.2v5*)
17143        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17144	;;
17145    esac
17146  fi
17147  sys_lib_dlsearch_path_spec='/usr/lib'
17148  ;;
17149
17150tpf*)
17151  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17152  version_type=linux # correct to gnu/linux during the next big refactor
17153  need_lib_prefix=no
17154  need_version=no
17155  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156  shlibpath_var=LD_LIBRARY_PATH
17157  shlibpath_overrides_runpath=no
17158  hardcode_into_libs=yes
17159  ;;
17160
17161uts4*)
17162  version_type=linux # correct to gnu/linux during the next big refactor
17163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17164  soname_spec='${libname}${release}${shared_ext}$major'
17165  shlibpath_var=LD_LIBRARY_PATH
17166  ;;
17167
17168*)
17169  dynamic_linker=no
17170  ;;
17171esac
17172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17173$as_echo "$dynamic_linker" >&6; }
17174test "$dynamic_linker" = no && can_build_shared=no
17175
17176variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17177if test "$GCC" = yes; then
17178  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17179fi
17180
17181if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17182  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17183fi
17184if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17185  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17186fi
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17280$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17281hardcode_action=
17282if test -n "$hardcode_libdir_flag_spec" ||
17283   test -n "$runpath_var" ||
17284   test "X$hardcode_automatic" = "Xyes" ; then
17285
17286  # We can hardcode non-existent directories.
17287  if test "$hardcode_direct" != no &&
17288     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17289     # have to relink, otherwise we might link with an installed library
17290     # when we should be linking with a yet-to-be-installed one
17291     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17292     test "$hardcode_minus_L" != no; then
17293    # Linking always hardcodes the temporary library directory.
17294    hardcode_action=relink
17295  else
17296    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17297    hardcode_action=immediate
17298  fi
17299else
17300  # We cannot hardcode anything, or else we can only hardcode existing
17301  # directories.
17302  hardcode_action=unsupported
17303fi
17304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17305$as_echo "$hardcode_action" >&6; }
17306
17307if test "$hardcode_action" = relink ||
17308   test "$inherit_rpath" = yes; then
17309  # Fast installation is not supported
17310  enable_fast_install=no
17311elif test "$shlibpath_overrides_runpath" = yes ||
17312     test "$enable_shared" = no; then
17313  # Fast installation is not necessary
17314  enable_fast_install=needless
17315fi
17316
17317
17318
17319
17320
17321
17322  if test "x$enable_dlopen" != xyes; then
17323  enable_dlopen=unknown
17324  enable_dlopen_self=unknown
17325  enable_dlopen_self_static=unknown
17326else
17327  lt_cv_dlopen=no
17328  lt_cv_dlopen_libs=
17329
17330  case $host_os in
17331  beos*)
17332    lt_cv_dlopen="load_add_on"
17333    lt_cv_dlopen_libs=
17334    lt_cv_dlopen_self=yes
17335    ;;
17336
17337  mingw* | pw32* | cegcc*)
17338    lt_cv_dlopen="LoadLibrary"
17339    lt_cv_dlopen_libs=
17340    ;;
17341
17342  cygwin*)
17343    lt_cv_dlopen="dlopen"
17344    lt_cv_dlopen_libs=
17345    ;;
17346
17347  darwin*)
17348  # if libdl is installed we need to link against it
17349    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17350$as_echo_n "checking for dlopen in -ldl... " >&6; }
17351if ${ac_cv_lib_dl_dlopen+:} false; then :
17352  $as_echo_n "(cached) " >&6
17353else
17354  ac_check_lib_save_LIBS=$LIBS
17355LIBS="-ldl  $LIBS"
17356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17357/* end confdefs.h.  */
17358
17359/* Override any GCC internal prototype to avoid an error.
17360   Use char because int might match the return type of a GCC
17361   builtin and then its argument prototype would still apply.  */
17362#ifdef __cplusplus
17363extern "C"
17364#endif
17365char dlopen ();
17366int
17367main ()
17368{
17369return dlopen ();
17370  ;
17371  return 0;
17372}
17373_ACEOF
17374if ac_fn_c_try_link "$LINENO"; then :
17375  ac_cv_lib_dl_dlopen=yes
17376else
17377  ac_cv_lib_dl_dlopen=no
17378fi
17379rm -f core conftest.err conftest.$ac_objext \
17380    conftest$ac_exeext conftest.$ac_ext
17381LIBS=$ac_check_lib_save_LIBS
17382fi
17383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17384$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17385if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17386  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17387else
17388
17389    lt_cv_dlopen="dyld"
17390    lt_cv_dlopen_libs=
17391    lt_cv_dlopen_self=yes
17392
17393fi
17394
17395    ;;
17396
17397  *)
17398    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17399if test "x$ac_cv_func_shl_load" = xyes; then :
17400  lt_cv_dlopen="shl_load"
17401else
17402  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17403$as_echo_n "checking for shl_load in -ldld... " >&6; }
17404if ${ac_cv_lib_dld_shl_load+:} false; then :
17405  $as_echo_n "(cached) " >&6
17406else
17407  ac_check_lib_save_LIBS=$LIBS
17408LIBS="-ldld  $LIBS"
17409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17410/* end confdefs.h.  */
17411
17412/* Override any GCC internal prototype to avoid an error.
17413   Use char because int might match the return type of a GCC
17414   builtin and then its argument prototype would still apply.  */
17415#ifdef __cplusplus
17416extern "C"
17417#endif
17418char shl_load ();
17419int
17420main ()
17421{
17422return shl_load ();
17423  ;
17424  return 0;
17425}
17426_ACEOF
17427if ac_fn_c_try_link "$LINENO"; then :
17428  ac_cv_lib_dld_shl_load=yes
17429else
17430  ac_cv_lib_dld_shl_load=no
17431fi
17432rm -f core conftest.err conftest.$ac_objext \
17433    conftest$ac_exeext conftest.$ac_ext
17434LIBS=$ac_check_lib_save_LIBS
17435fi
17436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17437$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17438if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17439  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17440else
17441  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17442if test "x$ac_cv_func_dlopen" = xyes; then :
17443  lt_cv_dlopen="dlopen"
17444else
17445  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17446$as_echo_n "checking for dlopen in -ldl... " >&6; }
17447if ${ac_cv_lib_dl_dlopen+:} false; then :
17448  $as_echo_n "(cached) " >&6
17449else
17450  ac_check_lib_save_LIBS=$LIBS
17451LIBS="-ldl  $LIBS"
17452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17453/* end confdefs.h.  */
17454
17455/* Override any GCC internal prototype to avoid an error.
17456   Use char because int might match the return type of a GCC
17457   builtin and then its argument prototype would still apply.  */
17458#ifdef __cplusplus
17459extern "C"
17460#endif
17461char dlopen ();
17462int
17463main ()
17464{
17465return dlopen ();
17466  ;
17467  return 0;
17468}
17469_ACEOF
17470if ac_fn_c_try_link "$LINENO"; then :
17471  ac_cv_lib_dl_dlopen=yes
17472else
17473  ac_cv_lib_dl_dlopen=no
17474fi
17475rm -f core conftest.err conftest.$ac_objext \
17476    conftest$ac_exeext conftest.$ac_ext
17477LIBS=$ac_check_lib_save_LIBS
17478fi
17479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17480$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17481if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17482  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17483else
17484  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17485$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17486if ${ac_cv_lib_svld_dlopen+:} false; then :
17487  $as_echo_n "(cached) " >&6
17488else
17489  ac_check_lib_save_LIBS=$LIBS
17490LIBS="-lsvld  $LIBS"
17491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492/* end confdefs.h.  */
17493
17494/* Override any GCC internal prototype to avoid an error.
17495   Use char because int might match the return type of a GCC
17496   builtin and then its argument prototype would still apply.  */
17497#ifdef __cplusplus
17498extern "C"
17499#endif
17500char dlopen ();
17501int
17502main ()
17503{
17504return dlopen ();
17505  ;
17506  return 0;
17507}
17508_ACEOF
17509if ac_fn_c_try_link "$LINENO"; then :
17510  ac_cv_lib_svld_dlopen=yes
17511else
17512  ac_cv_lib_svld_dlopen=no
17513fi
17514rm -f core conftest.err conftest.$ac_objext \
17515    conftest$ac_exeext conftest.$ac_ext
17516LIBS=$ac_check_lib_save_LIBS
17517fi
17518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17519$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17520if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17521  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17522else
17523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17524$as_echo_n "checking for dld_link in -ldld... " >&6; }
17525if ${ac_cv_lib_dld_dld_link+:} false; then :
17526  $as_echo_n "(cached) " >&6
17527else
17528  ac_check_lib_save_LIBS=$LIBS
17529LIBS="-ldld  $LIBS"
17530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17531/* end confdefs.h.  */
17532
17533/* Override any GCC internal prototype to avoid an error.
17534   Use char because int might match the return type of a GCC
17535   builtin and then its argument prototype would still apply.  */
17536#ifdef __cplusplus
17537extern "C"
17538#endif
17539char dld_link ();
17540int
17541main ()
17542{
17543return dld_link ();
17544  ;
17545  return 0;
17546}
17547_ACEOF
17548if ac_fn_c_try_link "$LINENO"; then :
17549  ac_cv_lib_dld_dld_link=yes
17550else
17551  ac_cv_lib_dld_dld_link=no
17552fi
17553rm -f core conftest.err conftest.$ac_objext \
17554    conftest$ac_exeext conftest.$ac_ext
17555LIBS=$ac_check_lib_save_LIBS
17556fi
17557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17558$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17559if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17560  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17561fi
17562
17563
17564fi
17565
17566
17567fi
17568
17569
17570fi
17571
17572
17573fi
17574
17575
17576fi
17577
17578    ;;
17579  esac
17580
17581  if test "x$lt_cv_dlopen" != xno; then
17582    enable_dlopen=yes
17583  else
17584    enable_dlopen=no
17585  fi
17586
17587  case $lt_cv_dlopen in
17588  dlopen)
17589    save_CPPFLAGS="$CPPFLAGS"
17590    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17591
17592    save_LDFLAGS="$LDFLAGS"
17593    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17594
17595    save_LIBS="$LIBS"
17596    LIBS="$lt_cv_dlopen_libs $LIBS"
17597
17598    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17599$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17600if ${lt_cv_dlopen_self+:} false; then :
17601  $as_echo_n "(cached) " >&6
17602else
17603  	  if test "$cross_compiling" = yes; then :
17604  lt_cv_dlopen_self=cross
17605else
17606  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17607  lt_status=$lt_dlunknown
17608  cat > conftest.$ac_ext <<_LT_EOF
17609#line $LINENO "configure"
17610#include "confdefs.h"
17611
17612#if HAVE_DLFCN_H
17613#include <dlfcn.h>
17614#endif
17615
17616#include <stdio.h>
17617
17618#ifdef RTLD_GLOBAL
17619#  define LT_DLGLOBAL		RTLD_GLOBAL
17620#else
17621#  ifdef DL_GLOBAL
17622#    define LT_DLGLOBAL		DL_GLOBAL
17623#  else
17624#    define LT_DLGLOBAL		0
17625#  endif
17626#endif
17627
17628/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17629   find out it does not work in some platform. */
17630#ifndef LT_DLLAZY_OR_NOW
17631#  ifdef RTLD_LAZY
17632#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17633#  else
17634#    ifdef DL_LAZY
17635#      define LT_DLLAZY_OR_NOW		DL_LAZY
17636#    else
17637#      ifdef RTLD_NOW
17638#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17639#      else
17640#        ifdef DL_NOW
17641#          define LT_DLLAZY_OR_NOW	DL_NOW
17642#        else
17643#          define LT_DLLAZY_OR_NOW	0
17644#        endif
17645#      endif
17646#    endif
17647#  endif
17648#endif
17649
17650/* When -fvisbility=hidden is used, assume the code has been annotated
17651   correspondingly for the symbols needed.  */
17652#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17653int fnord () __attribute__((visibility("default")));
17654#endif
17655
17656int fnord () { return 42; }
17657int main ()
17658{
17659  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17660  int status = $lt_dlunknown;
17661
17662  if (self)
17663    {
17664      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17665      else
17666        {
17667	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17668          else puts (dlerror ());
17669	}
17670      /* dlclose (self); */
17671    }
17672  else
17673    puts (dlerror ());
17674
17675  return status;
17676}
17677_LT_EOF
17678  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17679  (eval $ac_link) 2>&5
17680  ac_status=$?
17681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17682  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17683    (./conftest; exit; ) >&5 2>/dev/null
17684    lt_status=$?
17685    case x$lt_status in
17686      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17687      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17688      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17689    esac
17690  else :
17691    # compilation failed
17692    lt_cv_dlopen_self=no
17693  fi
17694fi
17695rm -fr conftest*
17696
17697
17698fi
17699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17700$as_echo "$lt_cv_dlopen_self" >&6; }
17701
17702    if test "x$lt_cv_dlopen_self" = xyes; then
17703      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17704      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17705$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17706if ${lt_cv_dlopen_self_static+:} false; then :
17707  $as_echo_n "(cached) " >&6
17708else
17709  	  if test "$cross_compiling" = yes; then :
17710  lt_cv_dlopen_self_static=cross
17711else
17712  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17713  lt_status=$lt_dlunknown
17714  cat > conftest.$ac_ext <<_LT_EOF
17715#line $LINENO "configure"
17716#include "confdefs.h"
17717
17718#if HAVE_DLFCN_H
17719#include <dlfcn.h>
17720#endif
17721
17722#include <stdio.h>
17723
17724#ifdef RTLD_GLOBAL
17725#  define LT_DLGLOBAL		RTLD_GLOBAL
17726#else
17727#  ifdef DL_GLOBAL
17728#    define LT_DLGLOBAL		DL_GLOBAL
17729#  else
17730#    define LT_DLGLOBAL		0
17731#  endif
17732#endif
17733
17734/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17735   find out it does not work in some platform. */
17736#ifndef LT_DLLAZY_OR_NOW
17737#  ifdef RTLD_LAZY
17738#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17739#  else
17740#    ifdef DL_LAZY
17741#      define LT_DLLAZY_OR_NOW		DL_LAZY
17742#    else
17743#      ifdef RTLD_NOW
17744#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17745#      else
17746#        ifdef DL_NOW
17747#          define LT_DLLAZY_OR_NOW	DL_NOW
17748#        else
17749#          define LT_DLLAZY_OR_NOW	0
17750#        endif
17751#      endif
17752#    endif
17753#  endif
17754#endif
17755
17756/* When -fvisbility=hidden is used, assume the code has been annotated
17757   correspondingly for the symbols needed.  */
17758#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17759int fnord () __attribute__((visibility("default")));
17760#endif
17761
17762int fnord () { return 42; }
17763int main ()
17764{
17765  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17766  int status = $lt_dlunknown;
17767
17768  if (self)
17769    {
17770      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17771      else
17772        {
17773	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17774          else puts (dlerror ());
17775	}
17776      /* dlclose (self); */
17777    }
17778  else
17779    puts (dlerror ());
17780
17781  return status;
17782}
17783_LT_EOF
17784  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17785  (eval $ac_link) 2>&5
17786  ac_status=$?
17787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17788  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17789    (./conftest; exit; ) >&5 2>/dev/null
17790    lt_status=$?
17791    case x$lt_status in
17792      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17793      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17794      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17795    esac
17796  else :
17797    # compilation failed
17798    lt_cv_dlopen_self_static=no
17799  fi
17800fi
17801rm -fr conftest*
17802
17803
17804fi
17805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17806$as_echo "$lt_cv_dlopen_self_static" >&6; }
17807    fi
17808
17809    CPPFLAGS="$save_CPPFLAGS"
17810    LDFLAGS="$save_LDFLAGS"
17811    LIBS="$save_LIBS"
17812    ;;
17813  esac
17814
17815  case $lt_cv_dlopen_self in
17816  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17817  *) enable_dlopen_self=unknown ;;
17818  esac
17819
17820  case $lt_cv_dlopen_self_static in
17821  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17822  *) enable_dlopen_self_static=unknown ;;
17823  esac
17824fi
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842striplib=
17843old_striplib=
17844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17845$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17846if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17847  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17848  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17850$as_echo "yes" >&6; }
17851else
17852# FIXME - insert some real tests, host_os isn't really good enough
17853  case $host_os in
17854  darwin*)
17855    if test -n "$STRIP" ; then
17856      striplib="$STRIP -x"
17857      old_striplib="$STRIP -S"
17858      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17859$as_echo "yes" >&6; }
17860    else
17861      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17862$as_echo "no" >&6; }
17863    fi
17864    ;;
17865  *)
17866    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17867$as_echo "no" >&6; }
17868    ;;
17869  esac
17870fi
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883  # Report which library types will actually be built
17884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17885$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17887$as_echo "$can_build_shared" >&6; }
17888
17889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17890$as_echo_n "checking whether to build shared libraries... " >&6; }
17891  test "$can_build_shared" = "no" && enable_shared=no
17892
17893  # On AIX, shared libraries and static libraries use the same namespace, and
17894  # are all built from PIC.
17895  case $host_os in
17896  aix3*)
17897    test "$enable_shared" = yes && enable_static=no
17898    if test -n "$RANLIB"; then
17899      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17900      postinstall_cmds='$RANLIB $lib'
17901    fi
17902    ;;
17903
17904  aix[4-9]*)
17905    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17906      test "$enable_shared" = yes && enable_static=no
17907    fi
17908    ;;
17909  esac
17910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17911$as_echo "$enable_shared" >&6; }
17912
17913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17914$as_echo_n "checking whether to build static libraries... " >&6; }
17915  # Make sure either enable_shared or enable_static is yes.
17916  test "$enable_shared" = yes || enable_static=yes
17917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17918$as_echo "$enable_static" >&6; }
17919
17920
17921
17922
17923fi
17924ac_ext=c
17925ac_cpp='$CPP $CPPFLAGS'
17926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17928ac_compiler_gnu=$ac_cv_c_compiler_gnu
17929
17930CC="$lt_save_CC"
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946        ac_config_commands="$ac_config_commands libtool"
17947
17948
17949
17950
17951# Only expand once:
17952
17953
17954
17955
17956
17957# Define a configure option for an alternate module directory
17958
17959# Check whether --with-xorg-module-dir was given.
17960if test "${with_xorg_module_dir+set}" = set; then :
17961  withval=$with_xorg_module_dir; moduledir="$withval"
17962else
17963  moduledir="$libdir/xorg/modules"
17964fi
17965
17966
17967# Store the list of server defined optional extensions in REQUIRED_MODULES
17968
17969
17970	SAVE_CFLAGS="$CFLAGS"
17971	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17972	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17973/* end confdefs.h.  */
17974
17975#include "xorg-server.h"
17976#if !defined RANDR
17977#error RANDR not defined
17978#endif
17979
17980int
17981main ()
17982{
17983
17984  ;
17985  return 0;
17986}
17987_ACEOF
17988if ac_fn_c_try_compile "$LINENO"; then :
17989  _EXT_CHECK=yes
17990else
17991  _EXT_CHECK=no
17992fi
17993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17994	CFLAGS="$SAVE_CFLAGS"
17995	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17996$as_echo_n "checking if RANDR is defined... " >&6; }
17997	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17998$as_echo "$_EXT_CHECK" >&6; }
17999	if test "$_EXT_CHECK" != no; then
18000		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18001	fi
18002
18003
18004
18005	SAVE_CFLAGS="$CFLAGS"
18006	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18007	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18008/* end confdefs.h.  */
18009
18010#include "xorg-server.h"
18011#if !defined RENDER
18012#error RENDER not defined
18013#endif
18014
18015int
18016main ()
18017{
18018
18019  ;
18020  return 0;
18021}
18022_ACEOF
18023if ac_fn_c_try_compile "$LINENO"; then :
18024  _EXT_CHECK=yes
18025else
18026  _EXT_CHECK=no
18027fi
18028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18029	CFLAGS="$SAVE_CFLAGS"
18030	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18031$as_echo_n "checking if RENDER is defined... " >&6; }
18032	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18033$as_echo "$_EXT_CHECK" >&6; }
18034	if test "$_EXT_CHECK" != no; then
18035		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18036	fi
18037
18038
18039
18040	SAVE_CFLAGS="$CFLAGS"
18041	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18042	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18043/* end confdefs.h.  */
18044
18045#include "xorg-server.h"
18046#if !defined XV
18047#error XV not defined
18048#endif
18049
18050int
18051main ()
18052{
18053
18054  ;
18055  return 0;
18056}
18057_ACEOF
18058if ac_fn_c_try_compile "$LINENO"; then :
18059  _EXT_CHECK=yes
18060else
18061  _EXT_CHECK=no
18062fi
18063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18064	CFLAGS="$SAVE_CFLAGS"
18065	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18066$as_echo_n "checking if XV is defined... " >&6; }
18067	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18068$as_echo "$_EXT_CHECK" >&6; }
18069	if test "$_EXT_CHECK" != no; then
18070		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18071	fi
18072
18073
18074
18075	SAVE_CFLAGS="$CFLAGS"
18076	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18077	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18078/* end confdefs.h.  */
18079
18080#include "xorg-server.h"
18081#if !defined DPMSExtension
18082#error DPMSExtension not defined
18083#endif
18084
18085int
18086main ()
18087{
18088
18089  ;
18090  return 0;
18091}
18092_ACEOF
18093if ac_fn_c_try_compile "$LINENO"; then :
18094  _EXT_CHECK=yes
18095else
18096  _EXT_CHECK=no
18097fi
18098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18099	CFLAGS="$SAVE_CFLAGS"
18100	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18101$as_echo_n "checking if DPMSExtension is defined... " >&6; }
18102	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18103$as_echo "$_EXT_CHECK" >&6; }
18104	if test "$_EXT_CHECK" != no; then
18105		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18106	fi
18107
18108
18109# Obtain compiler/linker options for the driver dependencies
18110
18111pkg_failed=no
18112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18113$as_echo_n "checking for XORG... " >&6; }
18114
18115if test -n "$XORG_CFLAGS"; then
18116    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18117 elif test -n "$PKG_CONFIG"; then
18118    if test -n "$PKG_CONFIG" && \
18119    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18120  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES") 2>&5
18121  ac_status=$?
18122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18123  test $ac_status = 0; }; then
18124  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18125		      test "x$?" != "x0" && pkg_failed=yes
18126else
18127  pkg_failed=yes
18128fi
18129 else
18130    pkg_failed=untried
18131fi
18132if test -n "$XORG_LIBS"; then
18133    pkg_cv_XORG_LIBS="$XORG_LIBS"
18134 elif test -n "$PKG_CONFIG"; then
18135    if test -n "$PKG_CONFIG" && \
18136    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18137  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES") 2>&5
18138  ac_status=$?
18139  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18140  test $ac_status = 0; }; then
18141  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18142		      test "x$?" != "x0" && pkg_failed=yes
18143else
18144  pkg_failed=yes
18145fi
18146 else
18147    pkg_failed=untried
18148fi
18149
18150
18151
18152if test $pkg_failed = yes; then
18153   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18154$as_echo "no" >&6; }
18155
18156if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18157        _pkg_short_errors_supported=yes
18158else
18159        _pkg_short_errors_supported=no
18160fi
18161        if test $_pkg_short_errors_supported = yes; then
18162	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18163        else
18164	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18165        fi
18166	# Put the nasty error message in config.log where it belongs
18167	echo "$XORG_PKG_ERRORS" >&5
18168
18169	as_fn_error $? "Package requirements (xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES) were not met:
18170
18171$XORG_PKG_ERRORS
18172
18173Consider adjusting the PKG_CONFIG_PATH environment variable if you
18174installed software in a non-standard prefix.
18175
18176Alternatively, you may set the environment variables XORG_CFLAGS
18177and XORG_LIBS to avoid the need to call pkg-config.
18178See the pkg-config man page for more details." "$LINENO" 5
18179elif test $pkg_failed = untried; then
18180     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18181$as_echo "no" >&6; }
18182	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18184as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18185is in your PATH or set the PKG_CONFIG environment variable to the full
18186path to pkg-config.
18187
18188Alternatively, you may set the environment variables XORG_CFLAGS
18189and XORG_LIBS to avoid the need to call pkg-config.
18190See the pkg-config man page for more details.
18191
18192To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18193See \`config.log' for more details" "$LINENO" 5; }
18194else
18195	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18196	XORG_LIBS=$pkg_cv_XORG_LIBS
18197        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18198$as_echo "yes" >&6; }
18199
18200fi
18201
18202# Checks for libraries.
18203SAVE_CPPFLAGS="$CPPFLAGS"
18204CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18205ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18206"
18207if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18208  XSERVER_LIBPCIACCESS=yes
18209else
18210  XSERVER_LIBPCIACCESS=no
18211fi
18212
18213ac_fn_c_check_header_mongrel "$LINENO" "xf1bpp.h" "ac_cv_header_xf1bpp_h" "$ac_includes_default"
18214if test "x$ac_cv_header_xf1bpp_h" = xyes; then :
18215
18216$as_echo "#define HAVE_XF1BPP 1" >>confdefs.h
18217
18218fi
18219
18220
18221ac_fn_c_check_header_mongrel "$LINENO" "xf4bpp.h" "ac_cv_header_xf4bpp_h" "$ac_includes_default"
18222if test "x$ac_cv_header_xf4bpp_h" = xyes; then :
18223
18224$as_echo "#define HAVE_XF4BPP 1" >>confdefs.h
18225
18226fi
18227
18228
18229CPPFLAGS="$SAVE_CPPFLAGS"
18230
18231# Check whether --enable-xaa was given.
18232if test "${enable_xaa+set}" = set; then :
18233  enableval=$enable_xaa; XAA="$enableval"
18234else
18235  XAA=auto
18236fi
18237
18238if test "x$XAA" != xno; then
18239        save_CFLAGS=$CFLAGS
18240        save_CPPFLAGS=$CPPFLAGS
18241        CFLAGS=$XORG_CFLAGS
18242        CPPFLAGS="$XORG_CFLAGS"
18243        for ac_header in xaa.h
18244do :
18245  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18246if test "x$ac_cv_header_xaa_h" = xyes; then :
18247  cat >>confdefs.h <<_ACEOF
18248#define HAVE_XAA_H 1
18249_ACEOF
18250 XAA=yes
18251else
18252  XAA=no
18253fi
18254
18255done
18256
18257        CFLAGS=$save_CFLAGS
18258        CPPFLAGS=$save_CPPFLAGS
18259fi
18260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18261$as_echo_n "checking whether to include XAA support... " >&6; }
18262 if test "x$XAA" = xyes; then
18263  XAA_TRUE=
18264  XAA_FALSE='#'
18265else
18266  XAA_TRUE='#'
18267  XAA_FALSE=
18268fi
18269
18270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18271$as_echo "$XAA" >&6; }
18272
18273if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18274
18275pkg_failed=no
18276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18277$as_echo_n "checking for PCIACCESS... " >&6; }
18278
18279if test -n "$PCIACCESS_CFLAGS"; then
18280    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18281 elif test -n "$PKG_CONFIG"; then
18282    if test -n "$PKG_CONFIG" && \
18283    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18284  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18285  ac_status=$?
18286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18287  test $ac_status = 0; }; then
18288  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18289		      test "x$?" != "x0" && pkg_failed=yes
18290else
18291  pkg_failed=yes
18292fi
18293 else
18294    pkg_failed=untried
18295fi
18296if test -n "$PCIACCESS_LIBS"; then
18297    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18298 elif test -n "$PKG_CONFIG"; then
18299    if test -n "$PKG_CONFIG" && \
18300    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18301  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18302  ac_status=$?
18303  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18304  test $ac_status = 0; }; then
18305  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18306		      test "x$?" != "x0" && pkg_failed=yes
18307else
18308  pkg_failed=yes
18309fi
18310 else
18311    pkg_failed=untried
18312fi
18313
18314
18315
18316if test $pkg_failed = yes; then
18317   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18318$as_echo "no" >&6; }
18319
18320if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18321        _pkg_short_errors_supported=yes
18322else
18323        _pkg_short_errors_supported=no
18324fi
18325        if test $_pkg_short_errors_supported = yes; then
18326	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18327        else
18328	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18329        fi
18330	# Put the nasty error message in config.log where it belongs
18331	echo "$PCIACCESS_PKG_ERRORS" >&5
18332
18333	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18334
18335$PCIACCESS_PKG_ERRORS
18336
18337Consider adjusting the PKG_CONFIG_PATH environment variable if you
18338installed software in a non-standard prefix.
18339
18340Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18341and PCIACCESS_LIBS to avoid the need to call pkg-config.
18342See the pkg-config man page for more details." "$LINENO" 5
18343elif test $pkg_failed = untried; then
18344     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18345$as_echo "no" >&6; }
18346	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18348as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18349is in your PATH or set the PKG_CONFIG environment variable to the full
18350path to pkg-config.
18351
18352Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18353and PCIACCESS_LIBS to avoid the need to call pkg-config.
18354See the pkg-config man page for more details.
18355
18356To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18357See \`config.log' for more details" "$LINENO" 5; }
18358else
18359	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18360	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18361        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18362$as_echo "yes" >&6; }
18363
18364fi
18365    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18366fi
18367 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18368  XSERVER_LIBPCIACCESS_TRUE=
18369  XSERVER_LIBPCIACCESS_FALSE='#'
18370else
18371  XSERVER_LIBPCIACCESS_TRUE='#'
18372  XSERVER_LIBPCIACCESS_FALSE=
18373fi
18374
18375
18376
18377
18378
18379DRIVER_NAME=cirrus
18380
18381
18382ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18383
18384cat >confcache <<\_ACEOF
18385# This file is a shell script that caches the results of configure
18386# tests run on this system so they can be shared between configure
18387# scripts and configure runs, see configure's option --config-cache.
18388# It is not useful on other systems.  If it contains results you don't
18389# want to keep, you may remove or edit it.
18390#
18391# config.status only pays attention to the cache file if you give it
18392# the --recheck option to rerun configure.
18393#
18394# `ac_cv_env_foo' variables (set or unset) will be overridden when
18395# loading this file, other *unset* `ac_cv_foo' will be assigned the
18396# following values.
18397
18398_ACEOF
18399
18400# The following way of writing the cache mishandles newlines in values,
18401# but we know of no workaround that is simple, portable, and efficient.
18402# So, we kill variables containing newlines.
18403# Ultrix sh set writes to stderr and can't be redirected directly,
18404# and sets the high bit in the cache file unless we assign to the vars.
18405(
18406  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18407    eval ac_val=\$$ac_var
18408    case $ac_val in #(
18409    *${as_nl}*)
18410      case $ac_var in #(
18411      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18412$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18413      esac
18414      case $ac_var in #(
18415      _ | IFS | as_nl) ;; #(
18416      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18417      *) { eval $ac_var=; unset $ac_var;} ;;
18418      esac ;;
18419    esac
18420  done
18421
18422  (set) 2>&1 |
18423    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18424    *${as_nl}ac_space=\ *)
18425      # `set' does not quote correctly, so add quotes: double-quote
18426      # substitution turns \\\\ into \\, and sed turns \\ into \.
18427      sed -n \
18428	"s/'/'\\\\''/g;
18429	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18430      ;; #(
18431    *)
18432      # `set' quotes correctly as required by POSIX, so do not add quotes.
18433      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18434      ;;
18435    esac |
18436    sort
18437) |
18438  sed '
18439     /^ac_cv_env_/b end
18440     t clear
18441     :clear
18442     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18443     t end
18444     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18445     :end' >>confcache
18446if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18447  if test -w "$cache_file"; then
18448    if test "x$cache_file" != "x/dev/null"; then
18449      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18450$as_echo "$as_me: updating cache $cache_file" >&6;}
18451      if test ! -f "$cache_file" || test -h "$cache_file"; then
18452	cat confcache >"$cache_file"
18453      else
18454        case $cache_file in #(
18455        */* | ?:*)
18456	  mv -f confcache "$cache_file"$$ &&
18457	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18458        *)
18459	  mv -f confcache "$cache_file" ;;
18460	esac
18461      fi
18462    fi
18463  else
18464    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18465$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18466  fi
18467fi
18468rm -f confcache
18469
18470test "x$prefix" = xNONE && prefix=$ac_default_prefix
18471# Let make expand exec_prefix.
18472test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18473
18474DEFS=-DHAVE_CONFIG_H
18475
18476ac_libobjs=
18477ac_ltlibobjs=
18478U=
18479for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18480  # 1. Remove the extension, and $U if already installed.
18481  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18482  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18483  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18484  #    will be set to the directory where LIBOBJS objects are built.
18485  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18486  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18487done
18488LIBOBJS=$ac_libobjs
18489
18490LTLIBOBJS=$ac_ltlibobjs
18491
18492
18493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18494$as_echo_n "checking that generated files are newer than configure... " >&6; }
18495   if test -n "$am_sleep_pid"; then
18496     # Hide warnings about reused PIDs.
18497     wait $am_sleep_pid 2>/dev/null
18498   fi
18499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18500$as_echo "done" >&6; }
18501 if test -n "$EXEEXT"; then
18502  am__EXEEXT_TRUE=
18503  am__EXEEXT_FALSE='#'
18504else
18505  am__EXEEXT_TRUE='#'
18506  am__EXEEXT_FALSE=
18507fi
18508
18509if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18510  as_fn_error $? "conditional \"AMDEP\" was never defined.
18511Usually this means the macro was only invoked conditionally." "$LINENO" 5
18512fi
18513if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18514  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18515Usually this means the macro was only invoked conditionally." "$LINENO" 5
18516fi
18517if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
18518  as_fn_error $? "conditional \"XAA\" was never defined.
18519Usually this means the macro was only invoked conditionally." "$LINENO" 5
18520fi
18521if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18522  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18523Usually this means the macro was only invoked conditionally." "$LINENO" 5
18524fi
18525
18526: "${CONFIG_STATUS=./config.status}"
18527ac_write_fail=0
18528ac_clean_files_save=$ac_clean_files
18529ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18530{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18531$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18532as_write_fail=0
18533cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18534#! $SHELL
18535# Generated by $as_me.
18536# Run this file to recreate the current configuration.
18537# Compiler output produced by configure, useful for debugging
18538# configure, is in config.log if it exists.
18539
18540debug=false
18541ac_cs_recheck=false
18542ac_cs_silent=false
18543
18544SHELL=\${CONFIG_SHELL-$SHELL}
18545export SHELL
18546_ASEOF
18547cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18548## -------------------- ##
18549## M4sh Initialization. ##
18550## -------------------- ##
18551
18552# Be more Bourne compatible
18553DUALCASE=1; export DUALCASE # for MKS sh
18554if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18555  emulate sh
18556  NULLCMD=:
18557  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18558  # is contrary to our usage.  Disable this feature.
18559  alias -g '${1+"$@"}'='"$@"'
18560  setopt NO_GLOB_SUBST
18561else
18562  case `(set -o) 2>/dev/null` in #(
18563  *posix*) :
18564    set -o posix ;; #(
18565  *) :
18566     ;;
18567esac
18568fi
18569
18570
18571as_nl='
18572'
18573export as_nl
18574# Printing a long string crashes Solaris 7 /usr/bin/printf.
18575as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18576as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18577as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18578# Prefer a ksh shell builtin over an external printf program on Solaris,
18579# but without wasting forks for bash or zsh.
18580if test -z "$BASH_VERSION$ZSH_VERSION" \
18581    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18582  as_echo='print -r --'
18583  as_echo_n='print -rn --'
18584elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18585  as_echo='printf %s\n'
18586  as_echo_n='printf %s'
18587else
18588  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18589    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18590    as_echo_n='/usr/ucb/echo -n'
18591  else
18592    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18593    as_echo_n_body='eval
18594      arg=$1;
18595      case $arg in #(
18596      *"$as_nl"*)
18597	expr "X$arg" : "X\\(.*\\)$as_nl";
18598	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18599      esac;
18600      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18601    '
18602    export as_echo_n_body
18603    as_echo_n='sh -c $as_echo_n_body as_echo'
18604  fi
18605  export as_echo_body
18606  as_echo='sh -c $as_echo_body as_echo'
18607fi
18608
18609# The user is always right.
18610if test "${PATH_SEPARATOR+set}" != set; then
18611  PATH_SEPARATOR=:
18612  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18613    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18614      PATH_SEPARATOR=';'
18615  }
18616fi
18617
18618
18619# IFS
18620# We need space, tab and new line, in precisely that order.  Quoting is
18621# there to prevent editors from complaining about space-tab.
18622# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18623# splitting by setting IFS to empty value.)
18624IFS=" ""	$as_nl"
18625
18626# Find who we are.  Look in the path if we contain no directory separator.
18627as_myself=
18628case $0 in #((
18629  *[\\/]* ) as_myself=$0 ;;
18630  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18631for as_dir in $PATH
18632do
18633  IFS=$as_save_IFS
18634  test -z "$as_dir" && as_dir=.
18635    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18636  done
18637IFS=$as_save_IFS
18638
18639     ;;
18640esac
18641# We did not find ourselves, most probably we were run as `sh COMMAND'
18642# in which case we are not to be found in the path.
18643if test "x$as_myself" = x; then
18644  as_myself=$0
18645fi
18646if test ! -f "$as_myself"; then
18647  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18648  exit 1
18649fi
18650
18651# Unset variables that we do not need and which cause bugs (e.g. in
18652# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18653# suppresses any "Segmentation fault" message there.  '((' could
18654# trigger a bug in pdksh 5.2.14.
18655for as_var in BASH_ENV ENV MAIL MAILPATH
18656do eval test x\${$as_var+set} = xset \
18657  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18658done
18659PS1='$ '
18660PS2='> '
18661PS4='+ '
18662
18663# NLS nuisances.
18664LC_ALL=C
18665export LC_ALL
18666LANGUAGE=C
18667export LANGUAGE
18668
18669# CDPATH.
18670(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18671
18672
18673# as_fn_error STATUS ERROR [LINENO LOG_FD]
18674# ----------------------------------------
18675# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18676# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18677# script with STATUS, using 1 if that was 0.
18678as_fn_error ()
18679{
18680  as_status=$1; test $as_status -eq 0 && as_status=1
18681  if test "$4"; then
18682    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18683    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18684  fi
18685  $as_echo "$as_me: error: $2" >&2
18686  as_fn_exit $as_status
18687} # as_fn_error
18688
18689
18690# as_fn_set_status STATUS
18691# -----------------------
18692# Set $? to STATUS, without forking.
18693as_fn_set_status ()
18694{
18695  return $1
18696} # as_fn_set_status
18697
18698# as_fn_exit STATUS
18699# -----------------
18700# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18701as_fn_exit ()
18702{
18703  set +e
18704  as_fn_set_status $1
18705  exit $1
18706} # as_fn_exit
18707
18708# as_fn_unset VAR
18709# ---------------
18710# Portably unset VAR.
18711as_fn_unset ()
18712{
18713  { eval $1=; unset $1;}
18714}
18715as_unset=as_fn_unset
18716# as_fn_append VAR VALUE
18717# ----------------------
18718# Append the text in VALUE to the end of the definition contained in VAR. Take
18719# advantage of any shell optimizations that allow amortized linear growth over
18720# repeated appends, instead of the typical quadratic growth present in naive
18721# implementations.
18722if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18723  eval 'as_fn_append ()
18724  {
18725    eval $1+=\$2
18726  }'
18727else
18728  as_fn_append ()
18729  {
18730    eval $1=\$$1\$2
18731  }
18732fi # as_fn_append
18733
18734# as_fn_arith ARG...
18735# ------------------
18736# Perform arithmetic evaluation on the ARGs, and store the result in the
18737# global $as_val. Take advantage of shells that can avoid forks. The arguments
18738# must be portable across $(()) and expr.
18739if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18740  eval 'as_fn_arith ()
18741  {
18742    as_val=$(( $* ))
18743  }'
18744else
18745  as_fn_arith ()
18746  {
18747    as_val=`expr "$@" || test $? -eq 1`
18748  }
18749fi # as_fn_arith
18750
18751
18752if expr a : '\(a\)' >/dev/null 2>&1 &&
18753   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18754  as_expr=expr
18755else
18756  as_expr=false
18757fi
18758
18759if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18760  as_basename=basename
18761else
18762  as_basename=false
18763fi
18764
18765if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18766  as_dirname=dirname
18767else
18768  as_dirname=false
18769fi
18770
18771as_me=`$as_basename -- "$0" ||
18772$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18773	 X"$0" : 'X\(//\)$' \| \
18774	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18775$as_echo X/"$0" |
18776    sed '/^.*\/\([^/][^/]*\)\/*$/{
18777	    s//\1/
18778	    q
18779	  }
18780	  /^X\/\(\/\/\)$/{
18781	    s//\1/
18782	    q
18783	  }
18784	  /^X\/\(\/\).*/{
18785	    s//\1/
18786	    q
18787	  }
18788	  s/.*/./; q'`
18789
18790# Avoid depending upon Character Ranges.
18791as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18792as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18793as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18794as_cr_digits='0123456789'
18795as_cr_alnum=$as_cr_Letters$as_cr_digits
18796
18797ECHO_C= ECHO_N= ECHO_T=
18798case `echo -n x` in #(((((
18799-n*)
18800  case `echo 'xy\c'` in
18801  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18802  xy)  ECHO_C='\c';;
18803  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18804       ECHO_T='	';;
18805  esac;;
18806*)
18807  ECHO_N='-n';;
18808esac
18809
18810rm -f conf$$ conf$$.exe conf$$.file
18811if test -d conf$$.dir; then
18812  rm -f conf$$.dir/conf$$.file
18813else
18814  rm -f conf$$.dir
18815  mkdir conf$$.dir 2>/dev/null
18816fi
18817if (echo >conf$$.file) 2>/dev/null; then
18818  if ln -s conf$$.file conf$$ 2>/dev/null; then
18819    as_ln_s='ln -s'
18820    # ... but there are two gotchas:
18821    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18822    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18823    # In both cases, we have to default to `cp -pR'.
18824    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18825      as_ln_s='cp -pR'
18826  elif ln conf$$.file conf$$ 2>/dev/null; then
18827    as_ln_s=ln
18828  else
18829    as_ln_s='cp -pR'
18830  fi
18831else
18832  as_ln_s='cp -pR'
18833fi
18834rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18835rmdir conf$$.dir 2>/dev/null
18836
18837
18838# as_fn_mkdir_p
18839# -------------
18840# Create "$as_dir" as a directory, including parents if necessary.
18841as_fn_mkdir_p ()
18842{
18843
18844  case $as_dir in #(
18845  -*) as_dir=./$as_dir;;
18846  esac
18847  test -d "$as_dir" || eval $as_mkdir_p || {
18848    as_dirs=
18849    while :; do
18850      case $as_dir in #(
18851      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18852      *) as_qdir=$as_dir;;
18853      esac
18854      as_dirs="'$as_qdir' $as_dirs"
18855      as_dir=`$as_dirname -- "$as_dir" ||
18856$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18857	 X"$as_dir" : 'X\(//\)[^/]' \| \
18858	 X"$as_dir" : 'X\(//\)$' \| \
18859	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18860$as_echo X"$as_dir" |
18861    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18862	    s//\1/
18863	    q
18864	  }
18865	  /^X\(\/\/\)[^/].*/{
18866	    s//\1/
18867	    q
18868	  }
18869	  /^X\(\/\/\)$/{
18870	    s//\1/
18871	    q
18872	  }
18873	  /^X\(\/\).*/{
18874	    s//\1/
18875	    q
18876	  }
18877	  s/.*/./; q'`
18878      test -d "$as_dir" && break
18879    done
18880    test -z "$as_dirs" || eval "mkdir $as_dirs"
18881  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18882
18883
18884} # as_fn_mkdir_p
18885if mkdir -p . 2>/dev/null; then
18886  as_mkdir_p='mkdir -p "$as_dir"'
18887else
18888  test -d ./-p && rmdir ./-p
18889  as_mkdir_p=false
18890fi
18891
18892
18893# as_fn_executable_p FILE
18894# -----------------------
18895# Test if FILE is an executable regular file.
18896as_fn_executable_p ()
18897{
18898  test -f "$1" && test -x "$1"
18899} # as_fn_executable_p
18900as_test_x='test -x'
18901as_executable_p=as_fn_executable_p
18902
18903# Sed expression to map a string onto a valid CPP name.
18904as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18905
18906# Sed expression to map a string onto a valid variable name.
18907as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18908
18909
18910exec 6>&1
18911## ----------------------------------- ##
18912## Main body of $CONFIG_STATUS script. ##
18913## ----------------------------------- ##
18914_ASEOF
18915test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18916
18917cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18918# Save the log message, to keep $0 and so on meaningful, and to
18919# report actual input values of CONFIG_FILES etc. instead of their
18920# values after options handling.
18921ac_log="
18922This file was extended by xf86-video-cirrus $as_me 1.5.3, which was
18923generated by GNU Autoconf 2.69.  Invocation command line was
18924
18925  CONFIG_FILES    = $CONFIG_FILES
18926  CONFIG_HEADERS  = $CONFIG_HEADERS
18927  CONFIG_LINKS    = $CONFIG_LINKS
18928  CONFIG_COMMANDS = $CONFIG_COMMANDS
18929  $ $0 $@
18930
18931on `(hostname || uname -n) 2>/dev/null | sed 1q`
18932"
18933
18934_ACEOF
18935
18936case $ac_config_files in *"
18937"*) set x $ac_config_files; shift; ac_config_files=$*;;
18938esac
18939
18940case $ac_config_headers in *"
18941"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18942esac
18943
18944
18945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18946# Files that config.status was made for.
18947config_files="$ac_config_files"
18948config_headers="$ac_config_headers"
18949config_commands="$ac_config_commands"
18950
18951_ACEOF
18952
18953cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18954ac_cs_usage="\
18955\`$as_me' instantiates files and other configuration actions
18956from templates according to the current configuration.  Unless the files
18957and actions are specified as TAGs, all are instantiated by default.
18958
18959Usage: $0 [OPTION]... [TAG]...
18960
18961  -h, --help       print this help, then exit
18962  -V, --version    print version number and configuration settings, then exit
18963      --config     print configuration, then exit
18964  -q, --quiet, --silent
18965                   do not print progress messages
18966  -d, --debug      don't remove temporary files
18967      --recheck    update $as_me by reconfiguring in the same conditions
18968      --file=FILE[:TEMPLATE]
18969                   instantiate the configuration file FILE
18970      --header=FILE[:TEMPLATE]
18971                   instantiate the configuration header FILE
18972
18973Configuration files:
18974$config_files
18975
18976Configuration headers:
18977$config_headers
18978
18979Configuration commands:
18980$config_commands
18981
18982Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18983
18984_ACEOF
18985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18986ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18987ac_cs_version="\\
18988xf86-video-cirrus config.status 1.5.3
18989configured by $0, generated by GNU Autoconf 2.69,
18990  with options \\"\$ac_cs_config\\"
18991
18992Copyright (C) 2012 Free Software Foundation, Inc.
18993This config.status script is free software; the Free Software Foundation
18994gives unlimited permission to copy, distribute and modify it."
18995
18996ac_pwd='$ac_pwd'
18997srcdir='$srcdir'
18998INSTALL='$INSTALL'
18999MKDIR_P='$MKDIR_P'
19000AWK='$AWK'
19001test -n "\$AWK" || AWK=awk
19002_ACEOF
19003
19004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19005# The default lists apply if the user does not specify any file.
19006ac_need_defaults=:
19007while test $# != 0
19008do
19009  case $1 in
19010  --*=?*)
19011    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19012    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19013    ac_shift=:
19014    ;;
19015  --*=)
19016    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19017    ac_optarg=
19018    ac_shift=:
19019    ;;
19020  *)
19021    ac_option=$1
19022    ac_optarg=$2
19023    ac_shift=shift
19024    ;;
19025  esac
19026
19027  case $ac_option in
19028  # Handling of the options.
19029  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19030    ac_cs_recheck=: ;;
19031  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19032    $as_echo "$ac_cs_version"; exit ;;
19033  --config | --confi | --conf | --con | --co | --c )
19034    $as_echo "$ac_cs_config"; exit ;;
19035  --debug | --debu | --deb | --de | --d | -d )
19036    debug=: ;;
19037  --file | --fil | --fi | --f )
19038    $ac_shift
19039    case $ac_optarg in
19040    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19041    '') as_fn_error $? "missing file argument" ;;
19042    esac
19043    as_fn_append CONFIG_FILES " '$ac_optarg'"
19044    ac_need_defaults=false;;
19045  --header | --heade | --head | --hea )
19046    $ac_shift
19047    case $ac_optarg in
19048    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19049    esac
19050    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19051    ac_need_defaults=false;;
19052  --he | --h)
19053    # Conflict between --help and --header
19054    as_fn_error $? "ambiguous option: \`$1'
19055Try \`$0 --help' for more information.";;
19056  --help | --hel | -h )
19057    $as_echo "$ac_cs_usage"; exit ;;
19058  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19059  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19060    ac_cs_silent=: ;;
19061
19062  # This is an error.
19063  -*) as_fn_error $? "unrecognized option: \`$1'
19064Try \`$0 --help' for more information." ;;
19065
19066  *) as_fn_append ac_config_targets " $1"
19067     ac_need_defaults=false ;;
19068
19069  esac
19070  shift
19071done
19072
19073ac_configure_extra_args=
19074
19075if $ac_cs_silent; then
19076  exec 6>/dev/null
19077  ac_configure_extra_args="$ac_configure_extra_args --silent"
19078fi
19079
19080_ACEOF
19081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19082if \$ac_cs_recheck; then
19083  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19084  shift
19085  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19086  CONFIG_SHELL='$SHELL'
19087  export CONFIG_SHELL
19088  exec "\$@"
19089fi
19090
19091_ACEOF
19092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19093exec 5>>config.log
19094{
19095  echo
19096  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19097## Running $as_me. ##
19098_ASBOX
19099  $as_echo "$ac_log"
19100} >&5
19101
19102_ACEOF
19103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19104#
19105# INIT-COMMANDS
19106#
19107AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19108
19109
19110# The HP-UX ksh and POSIX shell print the target directory to stdout
19111# if CDPATH is set.
19112(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19113
19114sed_quote_subst='$sed_quote_subst'
19115double_quote_subst='$double_quote_subst'
19116delay_variable_subst='$delay_variable_subst'
19117enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19118macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19119macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19120enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19121pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19122enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19123SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19124ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19125PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19126host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19127host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19128host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19129build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19130build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19131build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19132SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19133Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19134GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19135EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19136FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19137LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19138NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19139LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19140max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19141ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19142exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19143lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19144lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19145lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19146lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19147lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19148reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19149reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19150OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19151deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19152file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19153file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19154want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19155DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19156sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19157AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19158AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19159archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19160STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19161RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19162old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19163old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19164old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19165lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19166CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19167CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19168compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19169GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19170lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19171lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19172lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19173lt_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"`'
19174nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19175lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19176objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19177MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19178lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19179lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19180lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19181lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19182lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19183need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19184MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19185DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19186NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19187LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19188OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19189OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19190libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19191shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19192extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19193archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19194enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19195export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19196whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19197compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19198old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19199old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19200archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19201archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19202module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19203module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19204with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19205allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19206no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19207hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19208hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19209hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19210hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19211hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19212hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19213hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19214inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19215link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19216always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19217export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19218exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19219include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19220prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19221postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19222file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19223variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19224need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19225need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19226version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19227runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19228shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19229shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19230libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19231library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19232soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19233install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19234postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19235postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19236finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19237finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19238hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19239sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19240sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19241hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19242enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19243enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19244enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19245old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19246striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19247
19248LTCC='$LTCC'
19249LTCFLAGS='$LTCFLAGS'
19250compiler='$compiler_DEFAULT'
19251
19252# A function that is used when there is no print builtin or printf.
19253func_fallback_echo ()
19254{
19255  eval 'cat <<_LTECHO_EOF
19256\$1
19257_LTECHO_EOF'
19258}
19259
19260# Quote evaled strings.
19261for var in SHELL \
19262ECHO \
19263PATH_SEPARATOR \
19264SED \
19265GREP \
19266EGREP \
19267FGREP \
19268LD \
19269NM \
19270LN_S \
19271lt_SP2NL \
19272lt_NL2SP \
19273reload_flag \
19274OBJDUMP \
19275deplibs_check_method \
19276file_magic_cmd \
19277file_magic_glob \
19278want_nocaseglob \
19279DLLTOOL \
19280sharedlib_from_linklib_cmd \
19281AR \
19282AR_FLAGS \
19283archiver_list_spec \
19284STRIP \
19285RANLIB \
19286CC \
19287CFLAGS \
19288compiler \
19289lt_cv_sys_global_symbol_pipe \
19290lt_cv_sys_global_symbol_to_cdecl \
19291lt_cv_sys_global_symbol_to_c_name_address \
19292lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19293nm_file_list_spec \
19294lt_prog_compiler_no_builtin_flag \
19295lt_prog_compiler_pic \
19296lt_prog_compiler_wl \
19297lt_prog_compiler_static \
19298lt_cv_prog_compiler_c_o \
19299need_locks \
19300MANIFEST_TOOL \
19301DSYMUTIL \
19302NMEDIT \
19303LIPO \
19304OTOOL \
19305OTOOL64 \
19306shrext_cmds \
19307export_dynamic_flag_spec \
19308whole_archive_flag_spec \
19309compiler_needs_object \
19310with_gnu_ld \
19311allow_undefined_flag \
19312no_undefined_flag \
19313hardcode_libdir_flag_spec \
19314hardcode_libdir_separator \
19315exclude_expsyms \
19316include_expsyms \
19317file_list_spec \
19318variables_saved_for_relink \
19319libname_spec \
19320library_names_spec \
19321soname_spec \
19322install_override_mode \
19323finish_eval \
19324old_striplib \
19325striplib; do
19326    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19327    *[\\\\\\\`\\"\\\$]*)
19328      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19329      ;;
19330    *)
19331      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19332      ;;
19333    esac
19334done
19335
19336# Double-quote double-evaled strings.
19337for var in reload_cmds \
19338old_postinstall_cmds \
19339old_postuninstall_cmds \
19340old_archive_cmds \
19341extract_expsyms_cmds \
19342old_archive_from_new_cmds \
19343old_archive_from_expsyms_cmds \
19344archive_cmds \
19345archive_expsym_cmds \
19346module_cmds \
19347module_expsym_cmds \
19348export_symbols_cmds \
19349prelink_cmds \
19350postlink_cmds \
19351postinstall_cmds \
19352postuninstall_cmds \
19353finish_cmds \
19354sys_lib_search_path_spec \
19355sys_lib_dlsearch_path_spec; do
19356    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19357    *[\\\\\\\`\\"\\\$]*)
19358      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19359      ;;
19360    *)
19361      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19362      ;;
19363    esac
19364done
19365
19366ac_aux_dir='$ac_aux_dir'
19367xsi_shell='$xsi_shell'
19368lt_shell_append='$lt_shell_append'
19369
19370# See if we are running on zsh, and set the options which allow our
19371# commands through without removal of \ escapes INIT.
19372if test -n "\${ZSH_VERSION+set}" ; then
19373   setopt NO_GLOB_SUBST
19374fi
19375
19376
19377    PACKAGE='$PACKAGE'
19378    VERSION='$VERSION'
19379    TIMESTAMP='$TIMESTAMP'
19380    RM='$RM'
19381    ofile='$ofile'
19382
19383
19384
19385
19386_ACEOF
19387
19388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19389
19390# Handling of arguments.
19391for ac_config_target in $ac_config_targets
19392do
19393  case $ac_config_target in
19394    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19395    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19396    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19397    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19398    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19399    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19400
19401  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19402  esac
19403done
19404
19405
19406# If the user did not use the arguments to specify the items to instantiate,
19407# then the envvar interface is used.  Set only those that are not.
19408# We use the long form for the default assignment because of an extremely
19409# bizarre bug on SunOS 4.1.3.
19410if $ac_need_defaults; then
19411  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19412  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19413  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19414fi
19415
19416# Have a temporary directory for convenience.  Make it in the build tree
19417# simply because there is no reason against having it here, and in addition,
19418# creating and moving files from /tmp can sometimes cause problems.
19419# Hook for its removal unless debugging.
19420# Note that there is a small window in which the directory will not be cleaned:
19421# after its creation but before its name has been assigned to `$tmp'.
19422$debug ||
19423{
19424  tmp= ac_tmp=
19425  trap 'exit_status=$?
19426  : "${ac_tmp:=$tmp}"
19427  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19428' 0
19429  trap 'as_fn_exit 1' 1 2 13 15
19430}
19431# Create a (secure) tmp directory for tmp files.
19432
19433{
19434  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19435  test -d "$tmp"
19436}  ||
19437{
19438  tmp=./conf$$-$RANDOM
19439  (umask 077 && mkdir "$tmp")
19440} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19441ac_tmp=$tmp
19442
19443# Set up the scripts for CONFIG_FILES section.
19444# No need to generate them if there are no CONFIG_FILES.
19445# This happens for instance with `./config.status config.h'.
19446if test -n "$CONFIG_FILES"; then
19447
19448
19449ac_cr=`echo X | tr X '\015'`
19450# On cygwin, bash can eat \r inside `` if the user requested igncr.
19451# But we know of no other shell where ac_cr would be empty at this
19452# point, so we can use a bashism as a fallback.
19453if test "x$ac_cr" = x; then
19454  eval ac_cr=\$\'\\r\'
19455fi
19456ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19457if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19458  ac_cs_awk_cr='\\r'
19459else
19460  ac_cs_awk_cr=$ac_cr
19461fi
19462
19463echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19464_ACEOF
19465
19466
19467{
19468  echo "cat >conf$$subs.awk <<_ACEOF" &&
19469  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19470  echo "_ACEOF"
19471} >conf$$subs.sh ||
19472  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19473ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19474ac_delim='%!_!# '
19475for ac_last_try in false false false false false :; do
19476  . ./conf$$subs.sh ||
19477    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19478
19479  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19480  if test $ac_delim_n = $ac_delim_num; then
19481    break
19482  elif $ac_last_try; then
19483    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19484  else
19485    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19486  fi
19487done
19488rm -f conf$$subs.sh
19489
19490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19491cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19492_ACEOF
19493sed -n '
19494h
19495s/^/S["/; s/!.*/"]=/
19496p
19497g
19498s/^[^!]*!//
19499:repl
19500t repl
19501s/'"$ac_delim"'$//
19502t delim
19503:nl
19504h
19505s/\(.\{148\}\)..*/\1/
19506t more1
19507s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19508p
19509n
19510b repl
19511:more1
19512s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19513p
19514g
19515s/.\{148\}//
19516t nl
19517:delim
19518h
19519s/\(.\{148\}\)..*/\1/
19520t more2
19521s/["\\]/\\&/g; s/^/"/; s/$/"/
19522p
19523b
19524:more2
19525s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19526p
19527g
19528s/.\{148\}//
19529t delim
19530' <conf$$subs.awk | sed '
19531/^[^""]/{
19532  N
19533  s/\n//
19534}
19535' >>$CONFIG_STATUS || ac_write_fail=1
19536rm -f conf$$subs.awk
19537cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19538_ACAWK
19539cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19540  for (key in S) S_is_set[key] = 1
19541  FS = ""
19542
19543}
19544{
19545  line = $ 0
19546  nfields = split(line, field, "@")
19547  substed = 0
19548  len = length(field[1])
19549  for (i = 2; i < nfields; i++) {
19550    key = field[i]
19551    keylen = length(key)
19552    if (S_is_set[key]) {
19553      value = S[key]
19554      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19555      len += length(value) + length(field[++i])
19556      substed = 1
19557    } else
19558      len += 1 + keylen
19559  }
19560
19561  print line
19562}
19563
19564_ACAWK
19565_ACEOF
19566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19567if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19568  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19569else
19570  cat
19571fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19572  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19573_ACEOF
19574
19575# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19576# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19577# trailing colons and then remove the whole line if VPATH becomes empty
19578# (actually we leave an empty line to preserve line numbers).
19579if test "x$srcdir" = x.; then
19580  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19581h
19582s///
19583s/^/:/
19584s/[	 ]*$/:/
19585s/:\$(srcdir):/:/g
19586s/:\${srcdir}:/:/g
19587s/:@srcdir@:/:/g
19588s/^:*//
19589s/:*$//
19590x
19591s/\(=[	 ]*\).*/\1/
19592G
19593s/\n//
19594s/^[^=]*=[	 ]*$//
19595}'
19596fi
19597
19598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19599fi # test -n "$CONFIG_FILES"
19600
19601# Set up the scripts for CONFIG_HEADERS section.
19602# No need to generate them if there are no CONFIG_HEADERS.
19603# This happens for instance with `./config.status Makefile'.
19604if test -n "$CONFIG_HEADERS"; then
19605cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19606BEGIN {
19607_ACEOF
19608
19609# Transform confdefs.h into an awk script `defines.awk', embedded as
19610# here-document in config.status, that substitutes the proper values into
19611# config.h.in to produce config.h.
19612
19613# Create a delimiter string that does not exist in confdefs.h, to ease
19614# handling of long lines.
19615ac_delim='%!_!# '
19616for ac_last_try in false false :; do
19617  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19618  if test -z "$ac_tt"; then
19619    break
19620  elif $ac_last_try; then
19621    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19622  else
19623    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19624  fi
19625done
19626
19627# For the awk script, D is an array of macro values keyed by name,
19628# likewise P contains macro parameters if any.  Preserve backslash
19629# newline sequences.
19630
19631ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19632sed -n '
19633s/.\{148\}/&'"$ac_delim"'/g
19634t rset
19635:rset
19636s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19637t def
19638d
19639:def
19640s/\\$//
19641t bsnl
19642s/["\\]/\\&/g
19643s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19644D["\1"]=" \3"/p
19645s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19646d
19647:bsnl
19648s/["\\]/\\&/g
19649s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19650D["\1"]=" \3\\\\\\n"\\/p
19651t cont
19652s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19653t cont
19654d
19655:cont
19656n
19657s/.\{148\}/&'"$ac_delim"'/g
19658t clear
19659:clear
19660s/\\$//
19661t bsnlc
19662s/["\\]/\\&/g; s/^/"/; s/$/"/p
19663d
19664:bsnlc
19665s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19666b cont
19667' <confdefs.h | sed '
19668s/'"$ac_delim"'/"\\\
19669"/g' >>$CONFIG_STATUS || ac_write_fail=1
19670
19671cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19672  for (key in D) D_is_set[key] = 1
19673  FS = ""
19674}
19675/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19676  line = \$ 0
19677  split(line, arg, " ")
19678  if (arg[1] == "#") {
19679    defundef = arg[2]
19680    mac1 = arg[3]
19681  } else {
19682    defundef = substr(arg[1], 2)
19683    mac1 = arg[2]
19684  }
19685  split(mac1, mac2, "(") #)
19686  macro = mac2[1]
19687  prefix = substr(line, 1, index(line, defundef) - 1)
19688  if (D_is_set[macro]) {
19689    # Preserve the white space surrounding the "#".
19690    print prefix "define", macro P[macro] D[macro]
19691    next
19692  } else {
19693    # Replace #undef with comments.  This is necessary, for example,
19694    # in the case of _POSIX_SOURCE, which is predefined and required
19695    # on some systems where configure will not decide to define it.
19696    if (defundef == "undef") {
19697      print "/*", prefix defundef, macro, "*/"
19698      next
19699    }
19700  }
19701}
19702{ print }
19703_ACAWK
19704_ACEOF
19705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19706  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19707fi # test -n "$CONFIG_HEADERS"
19708
19709
19710eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19711shift
19712for ac_tag
19713do
19714  case $ac_tag in
19715  :[FHLC]) ac_mode=$ac_tag; continue;;
19716  esac
19717  case $ac_mode$ac_tag in
19718  :[FHL]*:*);;
19719  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19720  :[FH]-) ac_tag=-:-;;
19721  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19722  esac
19723  ac_save_IFS=$IFS
19724  IFS=:
19725  set x $ac_tag
19726  IFS=$ac_save_IFS
19727  shift
19728  ac_file=$1
19729  shift
19730
19731  case $ac_mode in
19732  :L) ac_source=$1;;
19733  :[FH])
19734    ac_file_inputs=
19735    for ac_f
19736    do
19737      case $ac_f in
19738      -) ac_f="$ac_tmp/stdin";;
19739      *) # Look for the file first in the build tree, then in the source tree
19740	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19741	 # because $ac_f cannot contain `:'.
19742	 test -f "$ac_f" ||
19743	   case $ac_f in
19744	   [\\/$]*) false;;
19745	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19746	   esac ||
19747	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19748      esac
19749      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19750      as_fn_append ac_file_inputs " '$ac_f'"
19751    done
19752
19753    # Let's still pretend it is `configure' which instantiates (i.e., don't
19754    # use $as_me), people would be surprised to read:
19755    #    /* config.h.  Generated by config.status.  */
19756    configure_input='Generated from '`
19757	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19758	`' by configure.'
19759    if test x"$ac_file" != x-; then
19760      configure_input="$ac_file.  $configure_input"
19761      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19762$as_echo "$as_me: creating $ac_file" >&6;}
19763    fi
19764    # Neutralize special characters interpreted by sed in replacement strings.
19765    case $configure_input in #(
19766    *\&* | *\|* | *\\* )
19767       ac_sed_conf_input=`$as_echo "$configure_input" |
19768       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19769    *) ac_sed_conf_input=$configure_input;;
19770    esac
19771
19772    case $ac_tag in
19773    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19774      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19775    esac
19776    ;;
19777  esac
19778
19779  ac_dir=`$as_dirname -- "$ac_file" ||
19780$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19781	 X"$ac_file" : 'X\(//\)[^/]' \| \
19782	 X"$ac_file" : 'X\(//\)$' \| \
19783	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19784$as_echo X"$ac_file" |
19785    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19786	    s//\1/
19787	    q
19788	  }
19789	  /^X\(\/\/\)[^/].*/{
19790	    s//\1/
19791	    q
19792	  }
19793	  /^X\(\/\/\)$/{
19794	    s//\1/
19795	    q
19796	  }
19797	  /^X\(\/\).*/{
19798	    s//\1/
19799	    q
19800	  }
19801	  s/.*/./; q'`
19802  as_dir="$ac_dir"; as_fn_mkdir_p
19803  ac_builddir=.
19804
19805case "$ac_dir" in
19806.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19807*)
19808  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19809  # A ".." for each directory in $ac_dir_suffix.
19810  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19811  case $ac_top_builddir_sub in
19812  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19813  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19814  esac ;;
19815esac
19816ac_abs_top_builddir=$ac_pwd
19817ac_abs_builddir=$ac_pwd$ac_dir_suffix
19818# for backward compatibility:
19819ac_top_builddir=$ac_top_build_prefix
19820
19821case $srcdir in
19822  .)  # We are building in place.
19823    ac_srcdir=.
19824    ac_top_srcdir=$ac_top_builddir_sub
19825    ac_abs_top_srcdir=$ac_pwd ;;
19826  [\\/]* | ?:[\\/]* )  # Absolute name.
19827    ac_srcdir=$srcdir$ac_dir_suffix;
19828    ac_top_srcdir=$srcdir
19829    ac_abs_top_srcdir=$srcdir ;;
19830  *) # Relative name.
19831    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19832    ac_top_srcdir=$ac_top_build_prefix$srcdir
19833    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19834esac
19835ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19836
19837
19838  case $ac_mode in
19839  :F)
19840  #
19841  # CONFIG_FILE
19842  #
19843
19844  case $INSTALL in
19845  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19846  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19847  esac
19848  ac_MKDIR_P=$MKDIR_P
19849  case $MKDIR_P in
19850  [\\/$]* | ?:[\\/]* ) ;;
19851  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19852  esac
19853_ACEOF
19854
19855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19856# If the template does not know about datarootdir, expand it.
19857# FIXME: This hack should be removed a few years after 2.60.
19858ac_datarootdir_hack=; ac_datarootdir_seen=
19859ac_sed_dataroot='
19860/datarootdir/ {
19861  p
19862  q
19863}
19864/@datadir@/p
19865/@docdir@/p
19866/@infodir@/p
19867/@localedir@/p
19868/@mandir@/p'
19869case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19870*datarootdir*) ac_datarootdir_seen=yes;;
19871*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19872  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19873$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19874_ACEOF
19875cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19876  ac_datarootdir_hack='
19877  s&@datadir@&$datadir&g
19878  s&@docdir@&$docdir&g
19879  s&@infodir@&$infodir&g
19880  s&@localedir@&$localedir&g
19881  s&@mandir@&$mandir&g
19882  s&\\\${datarootdir}&$datarootdir&g' ;;
19883esac
19884_ACEOF
19885
19886# Neutralize VPATH when `$srcdir' = `.'.
19887# Shell code in configure.ac might set extrasub.
19888# FIXME: do we really want to maintain this feature?
19889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19890ac_sed_extra="$ac_vpsub
19891$extrasub
19892_ACEOF
19893cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19894:t
19895/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19896s|@configure_input@|$ac_sed_conf_input|;t t
19897s&@top_builddir@&$ac_top_builddir_sub&;t t
19898s&@top_build_prefix@&$ac_top_build_prefix&;t t
19899s&@srcdir@&$ac_srcdir&;t t
19900s&@abs_srcdir@&$ac_abs_srcdir&;t t
19901s&@top_srcdir@&$ac_top_srcdir&;t t
19902s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19903s&@builddir@&$ac_builddir&;t t
19904s&@abs_builddir@&$ac_abs_builddir&;t t
19905s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19906s&@INSTALL@&$ac_INSTALL&;t t
19907s&@MKDIR_P@&$ac_MKDIR_P&;t t
19908$ac_datarootdir_hack
19909"
19910eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19911  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19912
19913test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19914  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19915  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19916      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19917  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19918which seems to be undefined.  Please make sure it is defined" >&5
19919$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19920which seems to be undefined.  Please make sure it is defined" >&2;}
19921
19922  rm -f "$ac_tmp/stdin"
19923  case $ac_file in
19924  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19925  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19926  esac \
19927  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19928 ;;
19929  :H)
19930  #
19931  # CONFIG_HEADER
19932  #
19933  if test x"$ac_file" != x-; then
19934    {
19935      $as_echo "/* $configure_input  */" \
19936      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19937    } >"$ac_tmp/config.h" \
19938      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19939    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19940      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19941$as_echo "$as_me: $ac_file is unchanged" >&6;}
19942    else
19943      rm -f "$ac_file"
19944      mv "$ac_tmp/config.h" "$ac_file" \
19945	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19946    fi
19947  else
19948    $as_echo "/* $configure_input  */" \
19949      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19950      || as_fn_error $? "could not create -" "$LINENO" 5
19951  fi
19952# Compute "$ac_file"'s index in $config_headers.
19953_am_arg="$ac_file"
19954_am_stamp_count=1
19955for _am_header in $config_headers :; do
19956  case $_am_header in
19957    $_am_arg | $_am_arg:* )
19958      break ;;
19959    * )
19960      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19961  esac
19962done
19963echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19964$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19965	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19966	 X"$_am_arg" : 'X\(//\)$' \| \
19967	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19968$as_echo X"$_am_arg" |
19969    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19970	    s//\1/
19971	    q
19972	  }
19973	  /^X\(\/\/\)[^/].*/{
19974	    s//\1/
19975	    q
19976	  }
19977	  /^X\(\/\/\)$/{
19978	    s//\1/
19979	    q
19980	  }
19981	  /^X\(\/\).*/{
19982	    s//\1/
19983	    q
19984	  }
19985	  s/.*/./; q'`/stamp-h$_am_stamp_count
19986 ;;
19987
19988  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19989$as_echo "$as_me: executing $ac_file commands" >&6;}
19990 ;;
19991  esac
19992
19993
19994  case $ac_file$ac_mode in
19995    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19996  # Older Autoconf quotes --file arguments for eval, but not when files
19997  # are listed without --file.  Let's play safe and only enable the eval
19998  # if we detect the quoting.
19999  case $CONFIG_FILES in
20000  *\'*) eval set x "$CONFIG_FILES" ;;
20001  *)   set x $CONFIG_FILES ;;
20002  esac
20003  shift
20004  for mf
20005  do
20006    # Strip MF so we end up with the name of the file.
20007    mf=`echo "$mf" | sed -e 's/:.*$//'`
20008    # Check whether this is an Automake generated Makefile or not.
20009    # We used to match only the files named 'Makefile.in', but
20010    # some people rename them; so instead we look at the file content.
20011    # Grep'ing the first line is not enough: some people post-process
20012    # each Makefile.in and add a new line on top of each file to say so.
20013    # Grep'ing the whole file is not good either: AIX grep has a line
20014    # limit of 2048, but all sed's we know have understand at least 4000.
20015    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20016      dirpart=`$as_dirname -- "$mf" ||
20017$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20018	 X"$mf" : 'X\(//\)[^/]' \| \
20019	 X"$mf" : 'X\(//\)$' \| \
20020	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20021$as_echo X"$mf" |
20022    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20023	    s//\1/
20024	    q
20025	  }
20026	  /^X\(\/\/\)[^/].*/{
20027	    s//\1/
20028	    q
20029	  }
20030	  /^X\(\/\/\)$/{
20031	    s//\1/
20032	    q
20033	  }
20034	  /^X\(\/\).*/{
20035	    s//\1/
20036	    q
20037	  }
20038	  s/.*/./; q'`
20039    else
20040      continue
20041    fi
20042    # Extract the definition of DEPDIR, am__include, and am__quote
20043    # from the Makefile without running 'make'.
20044    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20045    test -z "$DEPDIR" && continue
20046    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20047    test -z "$am__include" && continue
20048    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20049    # Find all dependency output files, they are included files with
20050    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20051    # simplest approach to changing $(DEPDIR) to its actual value in the
20052    # expansion.
20053    for file in `sed -n "
20054      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20055	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20056      # Make sure the directory exists.
20057      test -f "$dirpart/$file" && continue
20058      fdir=`$as_dirname -- "$file" ||
20059$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20060	 X"$file" : 'X\(//\)[^/]' \| \
20061	 X"$file" : 'X\(//\)$' \| \
20062	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20063$as_echo X"$file" |
20064    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20065	    s//\1/
20066	    q
20067	  }
20068	  /^X\(\/\/\)[^/].*/{
20069	    s//\1/
20070	    q
20071	  }
20072	  /^X\(\/\/\)$/{
20073	    s//\1/
20074	    q
20075	  }
20076	  /^X\(\/\).*/{
20077	    s//\1/
20078	    q
20079	  }
20080	  s/.*/./; q'`
20081      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20082      # echo "creating $dirpart/$file"
20083      echo '# dummy' > "$dirpart/$file"
20084    done
20085  done
20086}
20087 ;;
20088    "libtool":C)
20089
20090    # See if we are running on zsh, and set the options which allow our
20091    # commands through without removal of \ escapes.
20092    if test -n "${ZSH_VERSION+set}" ; then
20093      setopt NO_GLOB_SUBST
20094    fi
20095
20096    cfgfile="${ofile}T"
20097    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20098    $RM "$cfgfile"
20099
20100    cat <<_LT_EOF >> "$cfgfile"
20101#! $SHELL
20102
20103# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20104# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20105# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20106# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20107#
20108#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20109#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20110#                 Foundation, Inc.
20111#   Written by Gordon Matzigkeit, 1996
20112#
20113#   This file is part of GNU Libtool.
20114#
20115# GNU Libtool is free software; you can redistribute it and/or
20116# modify it under the terms of the GNU General Public License as
20117# published by the Free Software Foundation; either version 2 of
20118# the License, or (at your option) any later version.
20119#
20120# As a special exception to the GNU General Public License,
20121# if you distribute this file as part of a program or library that
20122# is built using GNU Libtool, you may include this file under the
20123# same distribution terms that you use for the rest of that program.
20124#
20125# GNU Libtool is distributed in the hope that it will be useful,
20126# but WITHOUT ANY WARRANTY; without even the implied warranty of
20127# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20128# GNU General Public License for more details.
20129#
20130# You should have received a copy of the GNU General Public License
20131# along with GNU Libtool; see the file COPYING.  If not, a copy
20132# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20133# obtained by writing to the Free Software Foundation, Inc.,
20134# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20135
20136
20137# The names of the tagged configurations supported by this script.
20138available_tags=""
20139
20140# ### BEGIN LIBTOOL CONFIG
20141
20142# Whether or not to build static libraries.
20143build_old_libs=$enable_static
20144
20145# Which release of libtool.m4 was used?
20146macro_version=$macro_version
20147macro_revision=$macro_revision
20148
20149# Whether or not to build shared libraries.
20150build_libtool_libs=$enable_shared
20151
20152# What type of objects to build.
20153pic_mode=$pic_mode
20154
20155# Whether or not to optimize for fast installation.
20156fast_install=$enable_fast_install
20157
20158# Shell to use when invoking shell scripts.
20159SHELL=$lt_SHELL
20160
20161# An echo program that protects backslashes.
20162ECHO=$lt_ECHO
20163
20164# The PATH separator for the build system.
20165PATH_SEPARATOR=$lt_PATH_SEPARATOR
20166
20167# The host system.
20168host_alias=$host_alias
20169host=$host
20170host_os=$host_os
20171
20172# The build system.
20173build_alias=$build_alias
20174build=$build
20175build_os=$build_os
20176
20177# A sed program that does not truncate output.
20178SED=$lt_SED
20179
20180# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20181Xsed="\$SED -e 1s/^X//"
20182
20183# A grep program that handles long lines.
20184GREP=$lt_GREP
20185
20186# An ERE matcher.
20187EGREP=$lt_EGREP
20188
20189# A literal string matcher.
20190FGREP=$lt_FGREP
20191
20192# A BSD- or MS-compatible name lister.
20193NM=$lt_NM
20194
20195# Whether we need soft or hard links.
20196LN_S=$lt_LN_S
20197
20198# What is the maximum length of a command?
20199max_cmd_len=$max_cmd_len
20200
20201# Object file suffix (normally "o").
20202objext=$ac_objext
20203
20204# Executable file suffix (normally "").
20205exeext=$exeext
20206
20207# whether the shell understands "unset".
20208lt_unset=$lt_unset
20209
20210# turn spaces into newlines.
20211SP2NL=$lt_lt_SP2NL
20212
20213# turn newlines into spaces.
20214NL2SP=$lt_lt_NL2SP
20215
20216# convert \$build file names to \$host format.
20217to_host_file_cmd=$lt_cv_to_host_file_cmd
20218
20219# convert \$build files to toolchain format.
20220to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20221
20222# An object symbol dumper.
20223OBJDUMP=$lt_OBJDUMP
20224
20225# Method to check whether dependent libraries are shared objects.
20226deplibs_check_method=$lt_deplibs_check_method
20227
20228# Command to use when deplibs_check_method = "file_magic".
20229file_magic_cmd=$lt_file_magic_cmd
20230
20231# How to find potential files when deplibs_check_method = "file_magic".
20232file_magic_glob=$lt_file_magic_glob
20233
20234# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20235want_nocaseglob=$lt_want_nocaseglob
20236
20237# DLL creation program.
20238DLLTOOL=$lt_DLLTOOL
20239
20240# Command to associate shared and link libraries.
20241sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20242
20243# The archiver.
20244AR=$lt_AR
20245
20246# Flags to create an archive.
20247AR_FLAGS=$lt_AR_FLAGS
20248
20249# How to feed a file listing to the archiver.
20250archiver_list_spec=$lt_archiver_list_spec
20251
20252# A symbol stripping program.
20253STRIP=$lt_STRIP
20254
20255# Commands used to install an old-style archive.
20256RANLIB=$lt_RANLIB
20257old_postinstall_cmds=$lt_old_postinstall_cmds
20258old_postuninstall_cmds=$lt_old_postuninstall_cmds
20259
20260# Whether to use a lock for old archive extraction.
20261lock_old_archive_extraction=$lock_old_archive_extraction
20262
20263# A C compiler.
20264LTCC=$lt_CC
20265
20266# LTCC compiler flags.
20267LTCFLAGS=$lt_CFLAGS
20268
20269# Take the output of nm and produce a listing of raw symbols and C names.
20270global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20271
20272# Transform the output of nm in a proper C declaration.
20273global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20274
20275# Transform the output of nm in a C name address pair.
20276global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20277
20278# Transform the output of nm in a C name address pair when lib prefix is needed.
20279global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20280
20281# Specify filename containing input files for \$NM.
20282nm_file_list_spec=$lt_nm_file_list_spec
20283
20284# The root where to search for dependent libraries,and in which our libraries should be installed.
20285lt_sysroot=$lt_sysroot
20286
20287# The name of the directory that contains temporary libtool files.
20288objdir=$objdir
20289
20290# Used to examine libraries when file_magic_cmd begins with "file".
20291MAGIC_CMD=$MAGIC_CMD
20292
20293# Must we lock files when doing compilation?
20294need_locks=$lt_need_locks
20295
20296# Manifest tool.
20297MANIFEST_TOOL=$lt_MANIFEST_TOOL
20298
20299# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20300DSYMUTIL=$lt_DSYMUTIL
20301
20302# Tool to change global to local symbols on Mac OS X.
20303NMEDIT=$lt_NMEDIT
20304
20305# Tool to manipulate fat objects and archives on Mac OS X.
20306LIPO=$lt_LIPO
20307
20308# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20309OTOOL=$lt_OTOOL
20310
20311# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20312OTOOL64=$lt_OTOOL64
20313
20314# Old archive suffix (normally "a").
20315libext=$libext
20316
20317# Shared library suffix (normally ".so").
20318shrext_cmds=$lt_shrext_cmds
20319
20320# The commands to extract the exported symbol list from a shared archive.
20321extract_expsyms_cmds=$lt_extract_expsyms_cmds
20322
20323# Variables whose values should be saved in libtool wrapper scripts and
20324# restored at link time.
20325variables_saved_for_relink=$lt_variables_saved_for_relink
20326
20327# Do we need the "lib" prefix for modules?
20328need_lib_prefix=$need_lib_prefix
20329
20330# Do we need a version for libraries?
20331need_version=$need_version
20332
20333# Library versioning type.
20334version_type=$version_type
20335
20336# Shared library runtime path variable.
20337runpath_var=$runpath_var
20338
20339# Shared library path variable.
20340shlibpath_var=$shlibpath_var
20341
20342# Is shlibpath searched before the hard-coded library search path?
20343shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20344
20345# Format of library name prefix.
20346libname_spec=$lt_libname_spec
20347
20348# List of archive names.  First name is the real one, the rest are links.
20349# The last name is the one that the linker finds with -lNAME
20350library_names_spec=$lt_library_names_spec
20351
20352# The coded name of the library, if different from the real name.
20353soname_spec=$lt_soname_spec
20354
20355# Permission mode override for installation of shared libraries.
20356install_override_mode=$lt_install_override_mode
20357
20358# Command to use after installation of a shared archive.
20359postinstall_cmds=$lt_postinstall_cmds
20360
20361# Command to use after uninstallation of a shared archive.
20362postuninstall_cmds=$lt_postuninstall_cmds
20363
20364# Commands used to finish a libtool library installation in a directory.
20365finish_cmds=$lt_finish_cmds
20366
20367# As "finish_cmds", except a single script fragment to be evaled but
20368# not shown.
20369finish_eval=$lt_finish_eval
20370
20371# Whether we should hardcode library paths into libraries.
20372hardcode_into_libs=$hardcode_into_libs
20373
20374# Compile-time system search path for libraries.
20375sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20376
20377# Run-time system search path for libraries.
20378sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20379
20380# Whether dlopen is supported.
20381dlopen_support=$enable_dlopen
20382
20383# Whether dlopen of programs is supported.
20384dlopen_self=$enable_dlopen_self
20385
20386# Whether dlopen of statically linked programs is supported.
20387dlopen_self_static=$enable_dlopen_self_static
20388
20389# Commands to strip libraries.
20390old_striplib=$lt_old_striplib
20391striplib=$lt_striplib
20392
20393
20394# The linker used to build libraries.
20395LD=$lt_LD
20396
20397# How to create reloadable object files.
20398reload_flag=$lt_reload_flag
20399reload_cmds=$lt_reload_cmds
20400
20401# Commands used to build an old-style archive.
20402old_archive_cmds=$lt_old_archive_cmds
20403
20404# A language specific compiler.
20405CC=$lt_compiler
20406
20407# Is the compiler the GNU compiler?
20408with_gcc=$GCC
20409
20410# Compiler flag to turn off builtin functions.
20411no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20412
20413# Additional compiler flags for building library objects.
20414pic_flag=$lt_lt_prog_compiler_pic
20415
20416# How to pass a linker flag through the compiler.
20417wl=$lt_lt_prog_compiler_wl
20418
20419# Compiler flag to prevent dynamic linking.
20420link_static_flag=$lt_lt_prog_compiler_static
20421
20422# Does compiler simultaneously support -c and -o options?
20423compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20424
20425# Whether or not to add -lc for building shared libraries.
20426build_libtool_need_lc=$archive_cmds_need_lc
20427
20428# Whether or not to disallow shared libs when runtime libs are static.
20429allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20430
20431# Compiler flag to allow reflexive dlopens.
20432export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20433
20434# Compiler flag to generate shared objects directly from archives.
20435whole_archive_flag_spec=$lt_whole_archive_flag_spec
20436
20437# Whether the compiler copes with passing no objects directly.
20438compiler_needs_object=$lt_compiler_needs_object
20439
20440# Create an old-style archive from a shared archive.
20441old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20442
20443# Create a temporary old-style archive to link instead of a shared archive.
20444old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20445
20446# Commands used to build a shared archive.
20447archive_cmds=$lt_archive_cmds
20448archive_expsym_cmds=$lt_archive_expsym_cmds
20449
20450# Commands used to build a loadable module if different from building
20451# a shared archive.
20452module_cmds=$lt_module_cmds
20453module_expsym_cmds=$lt_module_expsym_cmds
20454
20455# Whether we are building with GNU ld or not.
20456with_gnu_ld=$lt_with_gnu_ld
20457
20458# Flag that allows shared libraries with undefined symbols to be built.
20459allow_undefined_flag=$lt_allow_undefined_flag
20460
20461# Flag that enforces no undefined symbols.
20462no_undefined_flag=$lt_no_undefined_flag
20463
20464# Flag to hardcode \$libdir into a binary during linking.
20465# This must work even if \$libdir does not exist
20466hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20467
20468# Whether we need a single "-rpath" flag with a separated argument.
20469hardcode_libdir_separator=$lt_hardcode_libdir_separator
20470
20471# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20472# DIR into the resulting binary.
20473hardcode_direct=$hardcode_direct
20474
20475# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20476# DIR into the resulting binary and the resulting library dependency is
20477# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20478# library is relocated.
20479hardcode_direct_absolute=$hardcode_direct_absolute
20480
20481# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20482# into the resulting binary.
20483hardcode_minus_L=$hardcode_minus_L
20484
20485# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20486# into the resulting binary.
20487hardcode_shlibpath_var=$hardcode_shlibpath_var
20488
20489# Set to "yes" if building a shared library automatically hardcodes DIR
20490# into the library and all subsequent libraries and executables linked
20491# against it.
20492hardcode_automatic=$hardcode_automatic
20493
20494# Set to yes if linker adds runtime paths of dependent libraries
20495# to runtime path list.
20496inherit_rpath=$inherit_rpath
20497
20498# Whether libtool must link a program against all its dependency libraries.
20499link_all_deplibs=$link_all_deplibs
20500
20501# Set to "yes" if exported symbols are required.
20502always_export_symbols=$always_export_symbols
20503
20504# The commands to list exported symbols.
20505export_symbols_cmds=$lt_export_symbols_cmds
20506
20507# Symbols that should not be listed in the preloaded symbols.
20508exclude_expsyms=$lt_exclude_expsyms
20509
20510# Symbols that must always be exported.
20511include_expsyms=$lt_include_expsyms
20512
20513# Commands necessary for linking programs (against libraries) with templates.
20514prelink_cmds=$lt_prelink_cmds
20515
20516# Commands necessary for finishing linking programs.
20517postlink_cmds=$lt_postlink_cmds
20518
20519# Specify filename containing input files.
20520file_list_spec=$lt_file_list_spec
20521
20522# How to hardcode a shared library path into an executable.
20523hardcode_action=$hardcode_action
20524
20525# ### END LIBTOOL CONFIG
20526
20527_LT_EOF
20528
20529  case $host_os in
20530  aix3*)
20531    cat <<\_LT_EOF >> "$cfgfile"
20532# AIX sometimes has problems with the GCC collect2 program.  For some
20533# reason, if we set the COLLECT_NAMES environment variable, the problems
20534# vanish in a puff of smoke.
20535if test "X${COLLECT_NAMES+set}" != Xset; then
20536  COLLECT_NAMES=
20537  export COLLECT_NAMES
20538fi
20539_LT_EOF
20540    ;;
20541  esac
20542
20543
20544ltmain="$ac_aux_dir/ltmain.sh"
20545
20546
20547  # We use sed instead of cat because bash on DJGPP gets confused if
20548  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20549  # text mode, it properly converts lines to CR/LF.  This bash problem
20550  # is reportedly fixed, but why not run on old versions too?
20551  sed '$q' "$ltmain" >> "$cfgfile" \
20552     || (rm -f "$cfgfile"; exit 1)
20553
20554  if test x"$xsi_shell" = xyes; then
20555  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20556func_dirname ()\
20557{\
20558\    case ${1} in\
20559\      */*) func_dirname_result="${1%/*}${2}" ;;\
20560\      *  ) func_dirname_result="${3}" ;;\
20561\    esac\
20562} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20563  && mv -f "$cfgfile.tmp" "$cfgfile" \
20564    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20565test 0 -eq $? || _lt_function_replace_fail=:
20566
20567
20568  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20569func_basename ()\
20570{\
20571\    func_basename_result="${1##*/}"\
20572} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20573  && mv -f "$cfgfile.tmp" "$cfgfile" \
20574    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20575test 0 -eq $? || _lt_function_replace_fail=:
20576
20577
20578  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20579func_dirname_and_basename ()\
20580{\
20581\    case ${1} in\
20582\      */*) func_dirname_result="${1%/*}${2}" ;;\
20583\      *  ) func_dirname_result="${3}" ;;\
20584\    esac\
20585\    func_basename_result="${1##*/}"\
20586} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20587  && mv -f "$cfgfile.tmp" "$cfgfile" \
20588    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20589test 0 -eq $? || _lt_function_replace_fail=:
20590
20591
20592  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20593func_stripname ()\
20594{\
20595\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20596\    # positional parameters, so assign one to ordinary parameter first.\
20597\    func_stripname_result=${3}\
20598\    func_stripname_result=${func_stripname_result#"${1}"}\
20599\    func_stripname_result=${func_stripname_result%"${2}"}\
20600} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20601  && mv -f "$cfgfile.tmp" "$cfgfile" \
20602    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20603test 0 -eq $? || _lt_function_replace_fail=:
20604
20605
20606  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20607func_split_long_opt ()\
20608{\
20609\    func_split_long_opt_name=${1%%=*}\
20610\    func_split_long_opt_arg=${1#*=}\
20611} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20612  && mv -f "$cfgfile.tmp" "$cfgfile" \
20613    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20614test 0 -eq $? || _lt_function_replace_fail=:
20615
20616
20617  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20618func_split_short_opt ()\
20619{\
20620\    func_split_short_opt_arg=${1#??}\
20621\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20622} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20623  && mv -f "$cfgfile.tmp" "$cfgfile" \
20624    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20625test 0 -eq $? || _lt_function_replace_fail=:
20626
20627
20628  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20629func_lo2o ()\
20630{\
20631\    case ${1} in\
20632\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20633\      *)    func_lo2o_result=${1} ;;\
20634\    esac\
20635} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20636  && mv -f "$cfgfile.tmp" "$cfgfile" \
20637    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20638test 0 -eq $? || _lt_function_replace_fail=:
20639
20640
20641  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20642func_xform ()\
20643{\
20644    func_xform_result=${1%.*}.lo\
20645} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20646  && mv -f "$cfgfile.tmp" "$cfgfile" \
20647    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20648test 0 -eq $? || _lt_function_replace_fail=:
20649
20650
20651  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20652func_arith ()\
20653{\
20654    func_arith_result=$(( $* ))\
20655} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20656  && mv -f "$cfgfile.tmp" "$cfgfile" \
20657    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20658test 0 -eq $? || _lt_function_replace_fail=:
20659
20660
20661  sed -e '/^func_len ()$/,/^} # func_len /c\
20662func_len ()\
20663{\
20664    func_len_result=${#1}\
20665} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20666  && mv -f "$cfgfile.tmp" "$cfgfile" \
20667    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20668test 0 -eq $? || _lt_function_replace_fail=:
20669
20670fi
20671
20672if test x"$lt_shell_append" = xyes; then
20673  sed -e '/^func_append ()$/,/^} # func_append /c\
20674func_append ()\
20675{\
20676    eval "${1}+=\\${2}"\
20677} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20678  && mv -f "$cfgfile.tmp" "$cfgfile" \
20679    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20680test 0 -eq $? || _lt_function_replace_fail=:
20681
20682
20683  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20684func_append_quoted ()\
20685{\
20686\    func_quote_for_eval "${2}"\
20687\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20688} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20689  && mv -f "$cfgfile.tmp" "$cfgfile" \
20690    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20691test 0 -eq $? || _lt_function_replace_fail=:
20692
20693
20694  # Save a `func_append' function call where possible by direct use of '+='
20695  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20696    && mv -f "$cfgfile.tmp" "$cfgfile" \
20697      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20698  test 0 -eq $? || _lt_function_replace_fail=:
20699else
20700  # Save a `func_append' function call even when '+=' is not available
20701  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20702    && mv -f "$cfgfile.tmp" "$cfgfile" \
20703      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20704  test 0 -eq $? || _lt_function_replace_fail=:
20705fi
20706
20707if test x"$_lt_function_replace_fail" = x":"; then
20708  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20709$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20710fi
20711
20712
20713   mv -f "$cfgfile" "$ofile" ||
20714    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20715  chmod +x "$ofile"
20716
20717 ;;
20718
20719  esac
20720done # for ac_tag
20721
20722
20723as_fn_exit 0
20724_ACEOF
20725ac_clean_files=$ac_clean_files_save
20726
20727test $ac_write_fail = 0 ||
20728  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20729
20730
20731# configure is writing to config.log, and then calls config.status.
20732# config.status does its own redirection, appending to config.log.
20733# Unfortunately, on DOS this fails, as config.log is still kept open
20734# by configure, so config.status won't be able to write to it; its
20735# output is simply discarded.  So we exec the FD to /dev/null,
20736# effectively closing config.log, so it can be properly (re)opened and
20737# appended to by config.status.  When coming back to configure, we
20738# need to make the FD available again.
20739if test "$no_create" != yes; then
20740  ac_cs_success=:
20741  ac_config_status_args=
20742  test "$silent" = yes &&
20743    ac_config_status_args="$ac_config_status_args --quiet"
20744  exec 5>/dev/null
20745  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20746  exec 5>>config.log
20747  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20748  # would make configure fail if this is the last instruction.
20749  $ac_cs_success || as_fn_exit 1
20750fi
20751if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20752  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20753$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20754fi
20755
20756