configure revision 63847c39
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.2.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='xf86-video-cirrus'
593PACKAGE_TARNAME='xf86-video-cirrus'
594PACKAGE_VERSION='1.5.2'
595PACKAGE_STRING='xf86-video-cirrus 1.5.2'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597PACKAGE_URL=''
598
599ac_unique_file="Makefile.am"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640DRIVER_NAME
641moduledir
642XSERVER_LIBPCIACCESS_FALSE
643XSERVER_LIBPCIACCESS_TRUE
644PCIACCESS_LIBS
645PCIACCESS_CFLAGS
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
668AM_BACKSLASH
669AM_DEFAULT_VERBOSITY
670AM_DEFAULT_V
671AM_V
672MAN_SUBSTS
673XORG_MAN_PAGE
674ADMIN_MAN_DIR
675DRIVER_MAN_DIR
676MISC_MAN_DIR
677FILE_MAN_DIR
678LIB_MAN_DIR
679APP_MAN_DIR
680ADMIN_MAN_SUFFIX
681DRIVER_MAN_SUFFIX
682MISC_MAN_SUFFIX
683FILE_MAN_SUFFIX
684LIB_MAN_SUFFIX
685APP_MAN_SUFFIX
686SED
687host_os
688host_vendor
689host_cpu
690host
691build_os
692build_vendor
693build_cpu
694build
695INSTALL_CMD
696PKG_CONFIG_LIBDIR
697PKG_CONFIG_PATH
698PKG_CONFIG
699CHANGELOG_CMD
700STRICT_CFLAGS
701CWARNFLAGS
702BASE_CFLAGS
703EGREP
704GREP
705CPP
706am__fastdepCC_FALSE
707am__fastdepCC_TRUE
708CCDEPMODE
709am__nodep
710AMDEPBACKSLASH
711AMDEP_FALSE
712AMDEP_TRUE
713am__quote
714am__include
715DEPDIR
716OBJEXT
717EXEEXT
718ac_ct_CC
719CPPFLAGS
720LDFLAGS
721CFLAGS
722CC
723MAINT
724MAINTAINER_MODE_FALSE
725MAINTAINER_MODE_TRUE
726am__untar
727am__tar
728AMTAR
729am__leading_dot
730SET_MAKE
731AWK
732mkdir_p
733MKDIR_P
734INSTALL_STRIP_PROGRAM
735STRIP
736install_sh
737MAKEINFO
738AUTOHEADER
739AUTOMAKE
740AUTOCONF
741ACLOCAL
742VERSION
743PACKAGE
744CYGPATH_W
745am__isrc
746INSTALL_DATA
747INSTALL_SCRIPT
748INSTALL_PROGRAM
749target_alias
750host_alias
751build_alias
752LIBS
753ECHO_T
754ECHO_N
755ECHO_C
756DEFS
757mandir
758localedir
759libdir
760psdir
761pdfdir
762dvidir
763htmldir
764infodir
765docdir
766oldincludedir
767includedir
768localstatedir
769sharedstatedir
770sysconfdir
771datadir
772datarootdir
773libexecdir
774sbindir
775bindir
776program_transform_name
777prefix
778exec_prefix
779PACKAGE_URL
780PACKAGE_BUGREPORT
781PACKAGE_STRING
782PACKAGE_VERSION
783PACKAGE_TARNAME
784PACKAGE_NAME
785PATH_SEPARATOR
786SHELL'
787ac_subst_files=''
788ac_user_opts='
789enable_option_checking
790enable_maintainer_mode
791enable_dependency_tracking
792enable_selective_werror
793enable_strict_compilation
794enable_silent_rules
795enable_static
796enable_shared
797with_pic
798enable_fast_install
799with_gnu_ld
800with_sysroot
801enable_libtool_lock
802with_xorg_module_dir
803enable_xaa
804'
805      ac_precious_vars='build_alias
806host_alias
807target_alias
808CC
809CFLAGS
810LDFLAGS
811LIBS
812CPPFLAGS
813CPP
814PKG_CONFIG
815PKG_CONFIG_PATH
816PKG_CONFIG_LIBDIR
817XORG_CFLAGS
818XORG_LIBS
819PCIACCESS_CFLAGS
820PCIACCESS_LIBS'
821
822
823# Initialize some variables set by options.
824ac_init_help=
825ac_init_version=false
826ac_unrecognized_opts=
827ac_unrecognized_sep=
828# The variables have the same names as the options, with
829# dashes changed to underlines.
830cache_file=/dev/null
831exec_prefix=NONE
832no_create=
833no_recursion=
834prefix=NONE
835program_prefix=NONE
836program_suffix=NONE
837program_transform_name=s,x,x,
838silent=
839site=
840srcdir=
841verbose=
842x_includes=NONE
843x_libraries=NONE
844
845# Installation directory options.
846# These are left unexpanded so users can "make install exec_prefix=/foo"
847# and all the variables that are supposed to be based on exec_prefix
848# by default will actually change.
849# Use braces instead of parens because sh, perl, etc. also accept them.
850# (The list follows the same order as the GNU Coding Standards.)
851bindir='${exec_prefix}/bin'
852sbindir='${exec_prefix}/sbin'
853libexecdir='${exec_prefix}/libexec'
854datarootdir='${prefix}/share'
855datadir='${datarootdir}'
856sysconfdir='${prefix}/etc'
857sharedstatedir='${prefix}/com'
858localstatedir='${prefix}/var'
859includedir='${prefix}/include'
860oldincludedir='/usr/include'
861docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862infodir='${datarootdir}/info'
863htmldir='${docdir}'
864dvidir='${docdir}'
865pdfdir='${docdir}'
866psdir='${docdir}'
867libdir='${exec_prefix}/lib'
868localedir='${datarootdir}/locale'
869mandir='${datarootdir}/man'
870
871ac_prev=
872ac_dashdash=
873for ac_option
874do
875  # If the previous option needs an argument, assign it.
876  if test -n "$ac_prev"; then
877    eval $ac_prev=\$ac_option
878    ac_prev=
879    continue
880  fi
881
882  case $ac_option in
883  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884  *=)   ac_optarg= ;;
885  *)    ac_optarg=yes ;;
886  esac
887
888  # Accept the important Cygnus configure options, so we can diagnose typos.
889
890  case $ac_dashdash$ac_option in
891  --)
892    ac_dashdash=yes ;;
893
894  -bindir | --bindir | --bindi | --bind | --bin | --bi)
895    ac_prev=bindir ;;
896  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897    bindir=$ac_optarg ;;
898
899  -build | --build | --buil | --bui | --bu)
900    ac_prev=build_alias ;;
901  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902    build_alias=$ac_optarg ;;
903
904  -cache-file | --cache-file | --cache-fil | --cache-fi \
905  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906    ac_prev=cache_file ;;
907  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909    cache_file=$ac_optarg ;;
910
911  --config-cache | -C)
912    cache_file=config.cache ;;
913
914  -datadir | --datadir | --datadi | --datad)
915    ac_prev=datadir ;;
916  -datadir=* | --datadir=* | --datadi=* | --datad=*)
917    datadir=$ac_optarg ;;
918
919  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920  | --dataroo | --dataro | --datar)
921    ac_prev=datarootdir ;;
922  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924    datarootdir=$ac_optarg ;;
925
926  -disable-* | --disable-*)
927    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928    # Reject names that are not valid shell variable names.
929    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930      as_fn_error $? "invalid feature name: $ac_useropt"
931    ac_useropt_orig=$ac_useropt
932    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933    case $ac_user_opts in
934      *"
935"enable_$ac_useropt"
936"*) ;;
937      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938	 ac_unrecognized_sep=', ';;
939    esac
940    eval enable_$ac_useropt=no ;;
941
942  -docdir | --docdir | --docdi | --doc | --do)
943    ac_prev=docdir ;;
944  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945    docdir=$ac_optarg ;;
946
947  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948    ac_prev=dvidir ;;
949  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950    dvidir=$ac_optarg ;;
951
952  -enable-* | --enable-*)
953    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954    # Reject names that are not valid shell variable names.
955    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956      as_fn_error $? "invalid feature name: $ac_useropt"
957    ac_useropt_orig=$ac_useropt
958    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959    case $ac_user_opts in
960      *"
961"enable_$ac_useropt"
962"*) ;;
963      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964	 ac_unrecognized_sep=', ';;
965    esac
966    eval enable_$ac_useropt=\$ac_optarg ;;
967
968  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970  | --exec | --exe | --ex)
971    ac_prev=exec_prefix ;;
972  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974  | --exec=* | --exe=* | --ex=*)
975    exec_prefix=$ac_optarg ;;
976
977  -gas | --gas | --ga | --g)
978    # Obsolete; use --with-gas.
979    with_gas=yes ;;
980
981  -help | --help | --hel | --he | -h)
982    ac_init_help=long ;;
983  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984    ac_init_help=recursive ;;
985  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986    ac_init_help=short ;;
987
988  -host | --host | --hos | --ho)
989    ac_prev=host_alias ;;
990  -host=* | --host=* | --hos=* | --ho=*)
991    host_alias=$ac_optarg ;;
992
993  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994    ac_prev=htmldir ;;
995  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996  | --ht=*)
997    htmldir=$ac_optarg ;;
998
999  -includedir | --includedir | --includedi | --included | --include \
1000  | --includ | --inclu | --incl | --inc)
1001    ac_prev=includedir ;;
1002  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003  | --includ=* | --inclu=* | --incl=* | --inc=*)
1004    includedir=$ac_optarg ;;
1005
1006  -infodir | --infodir | --infodi | --infod | --info | --inf)
1007    ac_prev=infodir ;;
1008  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009    infodir=$ac_optarg ;;
1010
1011  -libdir | --libdir | --libdi | --libd)
1012    ac_prev=libdir ;;
1013  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014    libdir=$ac_optarg ;;
1015
1016  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017  | --libexe | --libex | --libe)
1018    ac_prev=libexecdir ;;
1019  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020  | --libexe=* | --libex=* | --libe=*)
1021    libexecdir=$ac_optarg ;;
1022
1023  -localedir | --localedir | --localedi | --localed | --locale)
1024    ac_prev=localedir ;;
1025  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026    localedir=$ac_optarg ;;
1027
1028  -localstatedir | --localstatedir | --localstatedi | --localstated \
1029  | --localstate | --localstat | --localsta | --localst | --locals)
1030    ac_prev=localstatedir ;;
1031  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033    localstatedir=$ac_optarg ;;
1034
1035  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036    ac_prev=mandir ;;
1037  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038    mandir=$ac_optarg ;;
1039
1040  -nfp | --nfp | --nf)
1041    # Obsolete; use --without-fp.
1042    with_fp=no ;;
1043
1044  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045  | --no-cr | --no-c | -n)
1046    no_create=yes ;;
1047
1048  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050    no_recursion=yes ;;
1051
1052  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054  | --oldin | --oldi | --old | --ol | --o)
1055    ac_prev=oldincludedir ;;
1056  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059    oldincludedir=$ac_optarg ;;
1060
1061  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062    ac_prev=prefix ;;
1063  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064    prefix=$ac_optarg ;;
1065
1066  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067  | --program-pre | --program-pr | --program-p)
1068    ac_prev=program_prefix ;;
1069  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071    program_prefix=$ac_optarg ;;
1072
1073  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074  | --program-suf | --program-su | --program-s)
1075    ac_prev=program_suffix ;;
1076  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078    program_suffix=$ac_optarg ;;
1079
1080  -program-transform-name | --program-transform-name \
1081  | --program-transform-nam | --program-transform-na \
1082  | --program-transform-n | --program-transform- \
1083  | --program-transform | --program-transfor \
1084  | --program-transfo | --program-transf \
1085  | --program-trans | --program-tran \
1086  | --progr-tra | --program-tr | --program-t)
1087    ac_prev=program_transform_name ;;
1088  -program-transform-name=* | --program-transform-name=* \
1089  | --program-transform-nam=* | --program-transform-na=* \
1090  | --program-transform-n=* | --program-transform-=* \
1091  | --program-transform=* | --program-transfor=* \
1092  | --program-transfo=* | --program-transf=* \
1093  | --program-trans=* | --program-tran=* \
1094  | --progr-tra=* | --program-tr=* | --program-t=*)
1095    program_transform_name=$ac_optarg ;;
1096
1097  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098    ac_prev=pdfdir ;;
1099  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100    pdfdir=$ac_optarg ;;
1101
1102  -psdir | --psdir | --psdi | --psd | --ps)
1103    ac_prev=psdir ;;
1104  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105    psdir=$ac_optarg ;;
1106
1107  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108  | -silent | --silent | --silen | --sile | --sil)
1109    silent=yes ;;
1110
1111  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1112    ac_prev=sbindir ;;
1113  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1114  | --sbi=* | --sb=*)
1115    sbindir=$ac_optarg ;;
1116
1117  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1118  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1119  | --sharedst | --shareds | --shared | --share | --shar \
1120  | --sha | --sh)
1121    ac_prev=sharedstatedir ;;
1122  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1123  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1124  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1125  | --sha=* | --sh=*)
1126    sharedstatedir=$ac_optarg ;;
1127
1128  -site | --site | --sit)
1129    ac_prev=site ;;
1130  -site=* | --site=* | --sit=*)
1131    site=$ac_optarg ;;
1132
1133  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1134    ac_prev=srcdir ;;
1135  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1136    srcdir=$ac_optarg ;;
1137
1138  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1139  | --syscon | --sysco | --sysc | --sys | --sy)
1140    ac_prev=sysconfdir ;;
1141  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1142  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1143    sysconfdir=$ac_optarg ;;
1144
1145  -target | --target | --targe | --targ | --tar | --ta | --t)
1146    ac_prev=target_alias ;;
1147  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1148    target_alias=$ac_optarg ;;
1149
1150  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1151    verbose=yes ;;
1152
1153  -version | --version | --versio | --versi | --vers | -V)
1154    ac_init_version=: ;;
1155
1156  -with-* | --with-*)
1157    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1158    # Reject names that are not valid shell variable names.
1159    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160      as_fn_error $? "invalid package name: $ac_useropt"
1161    ac_useropt_orig=$ac_useropt
1162    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163    case $ac_user_opts in
1164      *"
1165"with_$ac_useropt"
1166"*) ;;
1167      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1168	 ac_unrecognized_sep=', ';;
1169    esac
1170    eval with_$ac_useropt=\$ac_optarg ;;
1171
1172  -without-* | --without-*)
1173    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1174    # Reject names that are not valid shell variable names.
1175    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176      as_fn_error $? "invalid package name: $ac_useropt"
1177    ac_useropt_orig=$ac_useropt
1178    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179    case $ac_user_opts in
1180      *"
1181"with_$ac_useropt"
1182"*) ;;
1183      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1184	 ac_unrecognized_sep=', ';;
1185    esac
1186    eval with_$ac_useropt=no ;;
1187
1188  --x)
1189    # Obsolete; use --with-x.
1190    with_x=yes ;;
1191
1192  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193  | --x-incl | --x-inc | --x-in | --x-i)
1194    ac_prev=x_includes ;;
1195  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197    x_includes=$ac_optarg ;;
1198
1199  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201    ac_prev=x_libraries ;;
1202  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204    x_libraries=$ac_optarg ;;
1205
1206  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1207Try \`$0 --help' for more information"
1208    ;;
1209
1210  *=*)
1211    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1212    # Reject names that are not valid shell variable names.
1213    case $ac_envvar in #(
1214      '' | [0-9]* | *[!_$as_cr_alnum]* )
1215      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1216    esac
1217    eval $ac_envvar=\$ac_optarg
1218    export $ac_envvar ;;
1219
1220  *)
1221    # FIXME: should be removed in autoconf 3.0.
1222    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1226    ;;
1227
1228  esac
1229done
1230
1231if test -n "$ac_prev"; then
1232  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233  as_fn_error $? "missing argument to $ac_option"
1234fi
1235
1236if test -n "$ac_unrecognized_opts"; then
1237  case $enable_option_checking in
1238    no) ;;
1239    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1240    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1241  esac
1242fi
1243
1244# Check all directory arguments for consistency.
1245for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246		datadir sysconfdir sharedstatedir localstatedir includedir \
1247		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248		libdir localedir mandir
1249do
1250  eval ac_val=\$$ac_var
1251  # Remove trailing slashes.
1252  case $ac_val in
1253    */ )
1254      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255      eval $ac_var=\$ac_val;;
1256  esac
1257  # Be sure to have absolute directory names.
1258  case $ac_val in
1259    [\\/$]* | ?:[\\/]* )  continue;;
1260    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1261  esac
1262  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1263done
1264
1265# There might be people who depend on the old broken behavior: `$host'
1266# used to hold the argument of --host etc.
1267# FIXME: To remove some day.
1268build=$build_alias
1269host=$host_alias
1270target=$target_alias
1271
1272# FIXME: To remove some day.
1273if test "x$host_alias" != x; then
1274  if test "x$build_alias" = x; then
1275    cross_compiling=maybe
1276  elif test "x$build_alias" != "x$host_alias"; then
1277    cross_compiling=yes
1278  fi
1279fi
1280
1281ac_tool_prefix=
1282test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283
1284test "$silent" = yes && exec 6>/dev/null
1285
1286
1287ac_pwd=`pwd` && test -n "$ac_pwd" &&
1288ac_ls_di=`ls -di .` &&
1289ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1290  as_fn_error $? "working directory cannot be determined"
1291test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292  as_fn_error $? "pwd does not report name of working directory"
1293
1294
1295# Find the source files, if location was not specified.
1296if test -z "$srcdir"; then
1297  ac_srcdir_defaulted=yes
1298  # Try the directory containing this script, then the parent directory.
1299  ac_confdir=`$as_dirname -- "$as_myself" ||
1300$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301	 X"$as_myself" : 'X\(//\)[^/]' \| \
1302	 X"$as_myself" : 'X\(//\)$' \| \
1303	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1304$as_echo X"$as_myself" |
1305    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306	    s//\1/
1307	    q
1308	  }
1309	  /^X\(\/\/\)[^/].*/{
1310	    s//\1/
1311	    q
1312	  }
1313	  /^X\(\/\/\)$/{
1314	    s//\1/
1315	    q
1316	  }
1317	  /^X\(\/\).*/{
1318	    s//\1/
1319	    q
1320	  }
1321	  s/.*/./; q'`
1322  srcdir=$ac_confdir
1323  if test ! -r "$srcdir/$ac_unique_file"; then
1324    srcdir=..
1325  fi
1326else
1327  ac_srcdir_defaulted=no
1328fi
1329if test ! -r "$srcdir/$ac_unique_file"; then
1330  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1332fi
1333ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334ac_abs_confdir=`(
1335	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1336	pwd)`
1337# When building in place, set srcdir=.
1338if test "$ac_abs_confdir" = "$ac_pwd"; then
1339  srcdir=.
1340fi
1341# Remove unnecessary trailing slashes from srcdir.
1342# Double slashes in file names in object file debugging info
1343# mess up M-x gdb in Emacs.
1344case $srcdir in
1345*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346esac
1347for ac_var in $ac_precious_vars; do
1348  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1349  eval ac_env_${ac_var}_value=\$${ac_var}
1350  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1351  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352done
1353
1354#
1355# Report the --help message.
1356#
1357if test "$ac_init_help" = "long"; then
1358  # Omit some internal or obsolete options to make the list less imposing.
1359  # This message is too long to be a string in the A/UX 3.1 sh.
1360  cat <<_ACEOF
1361\`configure' configures xf86-video-cirrus 1.5.2 to adapt to many kinds of systems.
1362
1363Usage: $0 [OPTION]... [VAR=VALUE]...
1364
1365To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366VAR=VALUE.  See below for descriptions of some of the useful variables.
1367
1368Defaults for the options are specified in brackets.
1369
1370Configuration:
1371  -h, --help              display this help and exit
1372      --help=short        display options specific to this package
1373      --help=recursive    display the short help of all the included packages
1374  -V, --version           display version information and exit
1375  -q, --quiet, --silent   do not print \`checking ...' messages
1376      --cache-file=FILE   cache test results in FILE [disabled]
1377  -C, --config-cache      alias for \`--cache-file=config.cache'
1378  -n, --no-create         do not create output files
1379      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1380
1381Installation directories:
1382  --prefix=PREFIX         install architecture-independent files in PREFIX
1383                          [$ac_default_prefix]
1384  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1385                          [PREFIX]
1386
1387By default, \`make install' will install all the files in
1388\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1389an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1390for instance \`--prefix=\$HOME'.
1391
1392For better control, use the options below.
1393
1394Fine tuning of the installation directories:
1395  --bindir=DIR            user executables [EPREFIX/bin]
1396  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1397  --libexecdir=DIR        program executables [EPREFIX/libexec]
1398  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1399  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1400  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1401  --libdir=DIR            object code libraries [EPREFIX/lib]
1402  --includedir=DIR        C header files [PREFIX/include]
1403  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1404  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1405  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1406  --infodir=DIR           info documentation [DATAROOTDIR/info]
1407  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1408  --mandir=DIR            man documentation [DATAROOTDIR/man]
1409  --docdir=DIR            documentation root
1410                          [DATAROOTDIR/doc/xf86-video-cirrus]
1411  --htmldir=DIR           html documentation [DOCDIR]
1412  --dvidir=DIR            dvi documentation [DOCDIR]
1413  --pdfdir=DIR            pdf documentation [DOCDIR]
1414  --psdir=DIR             ps documentation [DOCDIR]
1415_ACEOF
1416
1417  cat <<\_ACEOF
1418
1419Program names:
1420  --program-prefix=PREFIX            prepend PREFIX to installed program names
1421  --program-suffix=SUFFIX            append SUFFIX to installed program names
1422  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1423
1424System types:
1425  --build=BUILD     configure for building on BUILD [guessed]
1426  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1427_ACEOF
1428fi
1429
1430if test -n "$ac_init_help"; then
1431  case $ac_init_help in
1432     short | recursive ) echo "Configuration of xf86-video-cirrus 1.5.2:";;
1433   esac
1434  cat <<\_ACEOF
1435
1436Optional Features:
1437  --disable-option-checking  ignore unrecognized --enable/--with options
1438  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1439  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1440  --enable-maintainer-mode  enable make rules and dependencies not useful
1441			  (and sometimes confusing) to the casual installer
1442  --disable-dependency-tracking  speeds up one-time build
1443  --enable-dependency-tracking   do not reject slow dependency extractors
1444  --disable-selective-werror
1445                          Turn off selective compiler errors. (default:
1446                          enabled)
1447  --enable-strict-compilation
1448                          Enable all warnings from compiler and make them
1449                          errors (default: disabled)
1450  --enable-silent-rules          less verbose build output (undo: `make V=1')
1451  --disable-silent-rules         verbose build output (undo: `make V=0')
1452  --enable-static[=PKGS]  build static libraries [default=no]
1453  --enable-shared[=PKGS]  build shared libraries [default=yes]
1454  --enable-fast-install[=PKGS]
1455                          optimize for fast installation [default=yes]
1456  --disable-libtool-lock  avoid locking (might break parallel builds)
1457  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1458                          [default=auto]
1459
1460Optional Packages:
1461  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1462  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1463  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1464                          both]
1465  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1466  --with-sysroot=DIR Search for dependent libraries within DIR
1467                        (or the compiler's sysroot if not specified).
1468  --with-xorg-module-dir=DIR
1469                          Default xorg module directory
1470                          [[default=$libdir/xorg/modules]]
1471
1472Some influential environment variables:
1473  CC          C compiler command
1474  CFLAGS      C compiler flags
1475  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1476              nonstandard directory <lib dir>
1477  LIBS        libraries to pass to the linker, e.g. -l<library>
1478  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1479              you have headers in a nonstandard directory <include dir>
1480  CPP         C preprocessor
1481  PKG_CONFIG  path to pkg-config utility
1482  PKG_CONFIG_PATH
1483              directories to add to pkg-config's search path
1484  PKG_CONFIG_LIBDIR
1485              path overriding pkg-config's built-in search path
1486  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1487  XORG_LIBS   linker flags for XORG, overriding pkg-config
1488  PCIACCESS_CFLAGS
1489              C compiler flags for PCIACCESS, overriding pkg-config
1490  PCIACCESS_LIBS
1491              linker flags for PCIACCESS, overriding pkg-config
1492
1493Use these variables to override the choices made by `configure' or to help
1494it to find libraries and programs with nonstandard names/locations.
1495
1496Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1497_ACEOF
1498ac_status=$?
1499fi
1500
1501if test "$ac_init_help" = "recursive"; then
1502  # If there are subdirs, report their specific --help.
1503  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504    test -d "$ac_dir" ||
1505      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506      continue
1507    ac_builddir=.
1508
1509case "$ac_dir" in
1510.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511*)
1512  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513  # A ".." for each directory in $ac_dir_suffix.
1514  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515  case $ac_top_builddir_sub in
1516  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518  esac ;;
1519esac
1520ac_abs_top_builddir=$ac_pwd
1521ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522# for backward compatibility:
1523ac_top_builddir=$ac_top_build_prefix
1524
1525case $srcdir in
1526  .)  # We are building in place.
1527    ac_srcdir=.
1528    ac_top_srcdir=$ac_top_builddir_sub
1529    ac_abs_top_srcdir=$ac_pwd ;;
1530  [\\/]* | ?:[\\/]* )  # Absolute name.
1531    ac_srcdir=$srcdir$ac_dir_suffix;
1532    ac_top_srcdir=$srcdir
1533    ac_abs_top_srcdir=$srcdir ;;
1534  *) # Relative name.
1535    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536    ac_top_srcdir=$ac_top_build_prefix$srcdir
1537    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538esac
1539ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540
1541    cd "$ac_dir" || { ac_status=$?; continue; }
1542    # Check for guested configure.
1543    if test -f "$ac_srcdir/configure.gnu"; then
1544      echo &&
1545      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546    elif test -f "$ac_srcdir/configure"; then
1547      echo &&
1548      $SHELL "$ac_srcdir/configure" --help=recursive
1549    else
1550      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551    fi || ac_status=$?
1552    cd "$ac_pwd" || { ac_status=$?; break; }
1553  done
1554fi
1555
1556test -n "$ac_init_help" && exit $ac_status
1557if $ac_init_version; then
1558  cat <<\_ACEOF
1559xf86-video-cirrus configure 1.5.2
1560generated by GNU Autoconf 2.69
1561
1562Copyright (C) 2012 Free Software Foundation, Inc.
1563This configure script is free software; the Free Software Foundation
1564gives unlimited permission to copy, distribute and modify it.
1565_ACEOF
1566  exit
1567fi
1568
1569## ------------------------ ##
1570## Autoconf initialization. ##
1571## ------------------------ ##
1572
1573# ac_fn_c_try_compile LINENO
1574# --------------------------
1575# Try to compile conftest.$ac_ext, and return whether this succeeded.
1576ac_fn_c_try_compile ()
1577{
1578  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579  rm -f conftest.$ac_objext
1580  if { { ac_try="$ac_compile"
1581case "(($ac_try" in
1582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583  *) ac_try_echo=$ac_try;;
1584esac
1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586$as_echo "$ac_try_echo"; } >&5
1587  (eval "$ac_compile") 2>conftest.err
1588  ac_status=$?
1589  if test -s conftest.err; then
1590    grep -v '^ *+' conftest.err >conftest.er1
1591    cat conftest.er1 >&5
1592    mv -f conftest.er1 conftest.err
1593  fi
1594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595  test $ac_status = 0; } && {
1596	 test -z "$ac_c_werror_flag" ||
1597	 test ! -s conftest.err
1598       } && test -s conftest.$ac_objext; then :
1599  ac_retval=0
1600else
1601  $as_echo "$as_me: failed program was:" >&5
1602sed 's/^/| /' conftest.$ac_ext >&5
1603
1604	ac_retval=1
1605fi
1606  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607  as_fn_set_status $ac_retval
1608
1609} # ac_fn_c_try_compile
1610
1611# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1612# ---------------------------------------------
1613# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1614# accordingly.
1615ac_fn_c_check_decl ()
1616{
1617  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618  as_decl_name=`echo $2|sed 's/ *(.*//'`
1619  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1621$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1622if eval \${$3+:} false; then :
1623  $as_echo_n "(cached) " >&6
1624else
1625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626/* end confdefs.h.  */
1627$4
1628int
1629main ()
1630{
1631#ifndef $as_decl_name
1632#ifdef __cplusplus
1633  (void) $as_decl_use;
1634#else
1635  (void) $as_decl_name;
1636#endif
1637#endif
1638
1639  ;
1640  return 0;
1641}
1642_ACEOF
1643if ac_fn_c_try_compile "$LINENO"; then :
1644  eval "$3=yes"
1645else
1646  eval "$3=no"
1647fi
1648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1649fi
1650eval ac_res=\$$3
1651	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652$as_echo "$ac_res" >&6; }
1653  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654
1655} # ac_fn_c_check_decl
1656
1657# ac_fn_c_try_cpp LINENO
1658# ----------------------
1659# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1660ac_fn_c_try_cpp ()
1661{
1662  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663  if { { ac_try="$ac_cpp conftest.$ac_ext"
1664case "(($ac_try" in
1665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666  *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1671  ac_status=$?
1672  if test -s conftest.err; then
1673    grep -v '^ *+' conftest.err >conftest.er1
1674    cat conftest.er1 >&5
1675    mv -f conftest.er1 conftest.err
1676  fi
1677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678  test $ac_status = 0; } > conftest.i && {
1679	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1680	 test ! -s conftest.err
1681       }; then :
1682  ac_retval=0
1683else
1684  $as_echo "$as_me: failed program was:" >&5
1685sed 's/^/| /' conftest.$ac_ext >&5
1686
1687    ac_retval=1
1688fi
1689  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690  as_fn_set_status $ac_retval
1691
1692} # ac_fn_c_try_cpp
1693
1694# ac_fn_c_try_run LINENO
1695# ----------------------
1696# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697# that executables *can* be run.
1698ac_fn_c_try_run ()
1699{
1700  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701  if { { ac_try="$ac_link"
1702case "(($ac_try" in
1703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704  *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708  (eval "$ac_link") 2>&5
1709  ac_status=$?
1710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712  { { case "(($ac_try" in
1713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714  *) ac_try_echo=$ac_try;;
1715esac
1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717$as_echo "$ac_try_echo"; } >&5
1718  (eval "$ac_try") 2>&5
1719  ac_status=$?
1720  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721  test $ac_status = 0; }; }; then :
1722  ac_retval=0
1723else
1724  $as_echo "$as_me: program exited with status $ac_status" >&5
1725       $as_echo "$as_me: failed program was:" >&5
1726sed 's/^/| /' conftest.$ac_ext >&5
1727
1728       ac_retval=$ac_status
1729fi
1730  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732  as_fn_set_status $ac_retval
1733
1734} # ac_fn_c_try_run
1735
1736# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1737# -------------------------------------------------------
1738# Tests whether HEADER exists and can be compiled using the include files in
1739# INCLUDES, setting the cache variable VAR accordingly.
1740ac_fn_c_check_header_compile ()
1741{
1742  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744$as_echo_n "checking for $2... " >&6; }
1745if eval \${$3+:} false; then :
1746  $as_echo_n "(cached) " >&6
1747else
1748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749/* end confdefs.h.  */
1750$4
1751#include <$2>
1752_ACEOF
1753if ac_fn_c_try_compile "$LINENO"; then :
1754  eval "$3=yes"
1755else
1756  eval "$3=no"
1757fi
1758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1759fi
1760eval ac_res=\$$3
1761	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762$as_echo "$ac_res" >&6; }
1763  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764
1765} # ac_fn_c_check_header_compile
1766
1767# ac_fn_c_try_link LINENO
1768# -----------------------
1769# Try to link conftest.$ac_ext, and return whether this succeeded.
1770ac_fn_c_try_link ()
1771{
1772  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773  rm -f conftest.$ac_objext conftest$ac_exeext
1774  if { { ac_try="$ac_link"
1775case "(($ac_try" in
1776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777  *) ac_try_echo=$ac_try;;
1778esac
1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780$as_echo "$ac_try_echo"; } >&5
1781  (eval "$ac_link") 2>conftest.err
1782  ac_status=$?
1783  if test -s conftest.err; then
1784    grep -v '^ *+' conftest.err >conftest.er1
1785    cat conftest.er1 >&5
1786    mv -f conftest.er1 conftest.err
1787  fi
1788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789  test $ac_status = 0; } && {
1790	 test -z "$ac_c_werror_flag" ||
1791	 test ! -s conftest.err
1792       } && test -s conftest$ac_exeext && {
1793	 test "$cross_compiling" = yes ||
1794	 test -x conftest$ac_exeext
1795       }; then :
1796  ac_retval=0
1797else
1798  $as_echo "$as_me: failed program was:" >&5
1799sed 's/^/| /' conftest.$ac_ext >&5
1800
1801	ac_retval=1
1802fi
1803  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1804  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1805  # interfere with the next link command; also delete a directory that is
1806  # left behind by Apple's compiler.  We do this before executing the actions.
1807  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809  as_fn_set_status $ac_retval
1810
1811} # ac_fn_c_try_link
1812
1813# ac_fn_c_check_func LINENO FUNC VAR
1814# ----------------------------------
1815# Tests whether FUNC exists, setting the cache variable VAR accordingly
1816ac_fn_c_check_func ()
1817{
1818  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820$as_echo_n "checking for $2... " >&6; }
1821if eval \${$3+:} false; then :
1822  $as_echo_n "(cached) " >&6
1823else
1824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825/* end confdefs.h.  */
1826/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1828#define $2 innocuous_$2
1829
1830/* System header to define __stub macros and hopefully few prototypes,
1831    which can conflict with char $2 (); below.
1832    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833    <limits.h> exists even on freestanding compilers.  */
1834
1835#ifdef __STDC__
1836# include <limits.h>
1837#else
1838# include <assert.h>
1839#endif
1840
1841#undef $2
1842
1843/* Override any GCC internal prototype to avoid an error.
1844   Use char because int might match the return type of a GCC
1845   builtin and then its argument prototype would still apply.  */
1846#ifdef __cplusplus
1847extern "C"
1848#endif
1849char $2 ();
1850/* The GNU C library defines this for functions which it implements
1851    to always fail with ENOSYS.  Some functions are actually named
1852    something starting with __ and the normal name is an alias.  */
1853#if defined __stub_$2 || defined __stub___$2
1854choke me
1855#endif
1856
1857int
1858main ()
1859{
1860return $2 ();
1861  ;
1862  return 0;
1863}
1864_ACEOF
1865if ac_fn_c_try_link "$LINENO"; then :
1866  eval "$3=yes"
1867else
1868  eval "$3=no"
1869fi
1870rm -f core conftest.err conftest.$ac_objext \
1871    conftest$ac_exeext conftest.$ac_ext
1872fi
1873eval ac_res=\$$3
1874	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875$as_echo "$ac_res" >&6; }
1876  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878} # ac_fn_c_check_func
1879
1880# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1881# -------------------------------------------------------
1882# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1883# the include files in INCLUDES and setting the cache variable VAR
1884# accordingly.
1885ac_fn_c_check_header_mongrel ()
1886{
1887  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888  if eval \${$3+:} false; then :
1889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890$as_echo_n "checking for $2... " >&6; }
1891if eval \${$3+:} false; then :
1892  $as_echo_n "(cached) " >&6
1893fi
1894eval ac_res=\$$3
1895	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896$as_echo "$ac_res" >&6; }
1897else
1898  # Is the header compilable?
1899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1900$as_echo_n "checking $2 usability... " >&6; }
1901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902/* end confdefs.h.  */
1903$4
1904#include <$2>
1905_ACEOF
1906if ac_fn_c_try_compile "$LINENO"; then :
1907  ac_header_compiler=yes
1908else
1909  ac_header_compiler=no
1910fi
1911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1913$as_echo "$ac_header_compiler" >&6; }
1914
1915# Is the header present?
1916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1917$as_echo_n "checking $2 presence... " >&6; }
1918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h.  */
1920#include <$2>
1921_ACEOF
1922if ac_fn_c_try_cpp "$LINENO"; then :
1923  ac_header_preproc=yes
1924else
1925  ac_header_preproc=no
1926fi
1927rm -f conftest.err conftest.i conftest.$ac_ext
1928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1929$as_echo "$ac_header_preproc" >&6; }
1930
1931# So?  What about this header?
1932case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1933  yes:no: )
1934    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1935$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1936    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1937$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1938    ;;
1939  no:yes:* )
1940    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1941$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1942    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1943$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1944    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1945$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1946    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1947$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1948    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1949$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1950( $as_echo "## ---------------------------------------------------------------------- ##
1951## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1952## ---------------------------------------------------------------------- ##"
1953     ) | sed "s/^/$as_me: WARNING:     /" >&2
1954    ;;
1955esac
1956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957$as_echo_n "checking for $2... " >&6; }
1958if eval \${$3+:} false; then :
1959  $as_echo_n "(cached) " >&6
1960else
1961  eval "$3=\$ac_header_compiler"
1962fi
1963eval ac_res=\$$3
1964	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965$as_echo "$ac_res" >&6; }
1966fi
1967  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968
1969} # ac_fn_c_check_header_mongrel
1970cat >config.log <<_ACEOF
1971This file contains any messages produced by compilers while
1972running configure, to aid debugging if configure makes a mistake.
1973
1974It was created by xf86-video-cirrus $as_me 1.5.2, which was
1975generated by GNU Autoconf 2.69.  Invocation command line was
1976
1977  $ $0 $@
1978
1979_ACEOF
1980exec 5>>config.log
1981{
1982cat <<_ASUNAME
1983## --------- ##
1984## Platform. ##
1985## --------- ##
1986
1987hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1988uname -m = `(uname -m) 2>/dev/null || echo unknown`
1989uname -r = `(uname -r) 2>/dev/null || echo unknown`
1990uname -s = `(uname -s) 2>/dev/null || echo unknown`
1991uname -v = `(uname -v) 2>/dev/null || echo unknown`
1992
1993/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1994/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1995
1996/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1997/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1998/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1999/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2000/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2001/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2002/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2003
2004_ASUNAME
2005
2006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007for as_dir in $PATH
2008do
2009  IFS=$as_save_IFS
2010  test -z "$as_dir" && as_dir=.
2011    $as_echo "PATH: $as_dir"
2012  done
2013IFS=$as_save_IFS
2014
2015} >&5
2016
2017cat >&5 <<_ACEOF
2018
2019
2020## ----------- ##
2021## Core tests. ##
2022## ----------- ##
2023
2024_ACEOF
2025
2026
2027# Keep a trace of the command line.
2028# Strip out --no-create and --no-recursion so they do not pile up.
2029# Strip out --silent because we don't want to record it for future runs.
2030# Also quote any args containing shell meta-characters.
2031# Make two passes to allow for proper duplicate-argument suppression.
2032ac_configure_args=
2033ac_configure_args0=
2034ac_configure_args1=
2035ac_must_keep_next=false
2036for ac_pass in 1 2
2037do
2038  for ac_arg
2039  do
2040    case $ac_arg in
2041    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2042    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2043    | -silent | --silent | --silen | --sile | --sil)
2044      continue ;;
2045    *\'*)
2046      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2047    esac
2048    case $ac_pass in
2049    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2050    2)
2051      as_fn_append ac_configure_args1 " '$ac_arg'"
2052      if test $ac_must_keep_next = true; then
2053	ac_must_keep_next=false # Got value, back to normal.
2054      else
2055	case $ac_arg in
2056	  *=* | --config-cache | -C | -disable-* | --disable-* \
2057	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2058	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2059	  | -with-* | --with-* | -without-* | --without-* | --x)
2060	    case "$ac_configure_args0 " in
2061	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2062	    esac
2063	    ;;
2064	  -* ) ac_must_keep_next=true ;;
2065	esac
2066      fi
2067      as_fn_append ac_configure_args " '$ac_arg'"
2068      ;;
2069    esac
2070  done
2071done
2072{ ac_configure_args0=; unset ac_configure_args0;}
2073{ ac_configure_args1=; unset ac_configure_args1;}
2074
2075# When interrupted or exit'd, cleanup temporary files, and complete
2076# config.log.  We remove comments because anyway the quotes in there
2077# would cause problems or look ugly.
2078# WARNING: Use '\'' to represent an apostrophe within the trap.
2079# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2080trap 'exit_status=$?
2081  # Save into config.log some information that might help in debugging.
2082  {
2083    echo
2084
2085    $as_echo "## ---------------- ##
2086## Cache variables. ##
2087## ---------------- ##"
2088    echo
2089    # The following way of writing the cache mishandles newlines in values,
2090(
2091  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2092    eval ac_val=\$$ac_var
2093    case $ac_val in #(
2094    *${as_nl}*)
2095      case $ac_var in #(
2096      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2097$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2098      esac
2099      case $ac_var in #(
2100      _ | IFS | as_nl) ;; #(
2101      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2102      *) { eval $ac_var=; unset $ac_var;} ;;
2103      esac ;;
2104    esac
2105  done
2106  (set) 2>&1 |
2107    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2108    *${as_nl}ac_space=\ *)
2109      sed -n \
2110	"s/'\''/'\''\\\\'\'''\''/g;
2111	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2112      ;; #(
2113    *)
2114      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2115      ;;
2116    esac |
2117    sort
2118)
2119    echo
2120
2121    $as_echo "## ----------------- ##
2122## Output variables. ##
2123## ----------------- ##"
2124    echo
2125    for ac_var in $ac_subst_vars
2126    do
2127      eval ac_val=\$$ac_var
2128      case $ac_val in
2129      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2130      esac
2131      $as_echo "$ac_var='\''$ac_val'\''"
2132    done | sort
2133    echo
2134
2135    if test -n "$ac_subst_files"; then
2136      $as_echo "## ------------------- ##
2137## File substitutions. ##
2138## ------------------- ##"
2139      echo
2140      for ac_var in $ac_subst_files
2141      do
2142	eval ac_val=\$$ac_var
2143	case $ac_val in
2144	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2145	esac
2146	$as_echo "$ac_var='\''$ac_val'\''"
2147      done | sort
2148      echo
2149    fi
2150
2151    if test -s confdefs.h; then
2152      $as_echo "## ----------- ##
2153## confdefs.h. ##
2154## ----------- ##"
2155      echo
2156      cat confdefs.h
2157      echo
2158    fi
2159    test "$ac_signal" != 0 &&
2160      $as_echo "$as_me: caught signal $ac_signal"
2161    $as_echo "$as_me: exit $exit_status"
2162  } >&5
2163  rm -f core *.core core.conftest.* &&
2164    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2165    exit $exit_status
2166' 0
2167for ac_signal in 1 2 13 15; do
2168  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2169done
2170ac_signal=0
2171
2172# confdefs.h avoids OS command line length limits that DEFS can exceed.
2173rm -f -r conftest* confdefs.h
2174
2175$as_echo "/* confdefs.h */" > confdefs.h
2176
2177# Predefined preprocessor variables.
2178
2179cat >>confdefs.h <<_ACEOF
2180#define PACKAGE_NAME "$PACKAGE_NAME"
2181_ACEOF
2182
2183cat >>confdefs.h <<_ACEOF
2184#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2185_ACEOF
2186
2187cat >>confdefs.h <<_ACEOF
2188#define PACKAGE_VERSION "$PACKAGE_VERSION"
2189_ACEOF
2190
2191cat >>confdefs.h <<_ACEOF
2192#define PACKAGE_STRING "$PACKAGE_STRING"
2193_ACEOF
2194
2195cat >>confdefs.h <<_ACEOF
2196#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2197_ACEOF
2198
2199cat >>confdefs.h <<_ACEOF
2200#define PACKAGE_URL "$PACKAGE_URL"
2201_ACEOF
2202
2203
2204# Let the site file select an alternate cache file if it wants to.
2205# Prefer an explicitly selected file to automatically selected ones.
2206ac_site_file1=NONE
2207ac_site_file2=NONE
2208if test -n "$CONFIG_SITE"; then
2209  # We do not want a PATH search for config.site.
2210  case $CONFIG_SITE in #((
2211    -*)  ac_site_file1=./$CONFIG_SITE;;
2212    */*) ac_site_file1=$CONFIG_SITE;;
2213    *)   ac_site_file1=./$CONFIG_SITE;;
2214  esac
2215elif test "x$prefix" != xNONE; then
2216  ac_site_file1=$prefix/share/config.site
2217  ac_site_file2=$prefix/etc/config.site
2218else
2219  ac_site_file1=$ac_default_prefix/share/config.site
2220  ac_site_file2=$ac_default_prefix/etc/config.site
2221fi
2222for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2223do
2224  test "x$ac_site_file" = xNONE && continue
2225  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2226    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2227$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2228    sed 's/^/| /' "$ac_site_file" >&5
2229    . "$ac_site_file" \
2230      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2232as_fn_error $? "failed to load site script $ac_site_file
2233See \`config.log' for more details" "$LINENO" 5; }
2234  fi
2235done
2236
2237if test -r "$cache_file"; then
2238  # Some versions of bash will fail to source /dev/null (special files
2239  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2240  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2241    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2242$as_echo "$as_me: loading cache $cache_file" >&6;}
2243    case $cache_file in
2244      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2245      *)                      . "./$cache_file";;
2246    esac
2247  fi
2248else
2249  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2250$as_echo "$as_me: creating cache $cache_file" >&6;}
2251  >$cache_file
2252fi
2253
2254# Check that the precious variables saved in the cache have kept the same
2255# value.
2256ac_cache_corrupted=false
2257for ac_var in $ac_precious_vars; do
2258  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2259  eval ac_new_set=\$ac_env_${ac_var}_set
2260  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2261  eval ac_new_val=\$ac_env_${ac_var}_value
2262  case $ac_old_set,$ac_new_set in
2263    set,)
2264      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2265$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2266      ac_cache_corrupted=: ;;
2267    ,set)
2268      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2269$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2270      ac_cache_corrupted=: ;;
2271    ,);;
2272    *)
2273      if test "x$ac_old_val" != "x$ac_new_val"; then
2274	# differences in whitespace do not lead to failure.
2275	ac_old_val_w=`echo x $ac_old_val`
2276	ac_new_val_w=`echo x $ac_new_val`
2277	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2278	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2279$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2280	  ac_cache_corrupted=:
2281	else
2282	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2283$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2284	  eval $ac_var=\$ac_old_val
2285	fi
2286	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2287$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2288	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2289$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2290      fi;;
2291  esac
2292  # Pass precious variables to config.status.
2293  if test "$ac_new_set" = set; then
2294    case $ac_new_val in
2295    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2296    *) ac_arg=$ac_var=$ac_new_val ;;
2297    esac
2298    case " $ac_configure_args " in
2299      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2300      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2301    esac
2302  fi
2303done
2304if $ac_cache_corrupted; then
2305  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2307  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2308$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2309  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2310fi
2311## -------------------- ##
2312## Main body of script. ##
2313## -------------------- ##
2314
2315ac_ext=c
2316ac_cpp='$CPP $CPPFLAGS'
2317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2319ac_compiler_gnu=$ac_cv_c_compiler_gnu
2320
2321
2322
2323ac_config_headers="$ac_config_headers config.h"
2324
2325ac_aux_dir=
2326for ac_dir in . "$srcdir"/.; do
2327  if 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/install.sh"; then
2332    ac_aux_dir=$ac_dir
2333    ac_install_sh="$ac_aux_dir/install.sh -c"
2334    break
2335  elif test -f "$ac_dir/shtool"; then
2336    ac_aux_dir=$ac_dir
2337    ac_install_sh="$ac_aux_dir/shtool install -c"
2338    break
2339  fi
2340done
2341if test -z "$ac_aux_dir"; then
2342  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2343fi
2344
2345# These three variables are undocumented and unsupported,
2346# and are intended to be withdrawn in a future Autoconf release.
2347# They can cause serious problems if a builder's source tree is in a directory
2348# whose full name contains unusual characters.
2349ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2350ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2351ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2352
2353
2354
2355# Initialize Automake
2356am__api_version='1.11'
2357
2358# Find a good install program.  We prefer a C program (faster),
2359# so one script is as good as another.  But avoid the broken or
2360# incompatible versions:
2361# SysV /etc/install, /usr/sbin/install
2362# SunOS /usr/etc/install
2363# IRIX /sbin/install
2364# AIX /bin/install
2365# AmigaOS /C/install, which installs bootblocks on floppy discs
2366# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2367# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2368# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2369# OS/2's system install, which has a completely different semantic
2370# ./install, which can be erroneously created by make from ./install.sh.
2371# Reject install programs that cannot install multiple files.
2372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2373$as_echo_n "checking for a BSD-compatible install... " >&6; }
2374if test -z "$INSTALL"; then
2375if ${ac_cv_path_install+:} false; then :
2376  $as_echo_n "(cached) " >&6
2377else
2378  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379for as_dir in $PATH
2380do
2381  IFS=$as_save_IFS
2382  test -z "$as_dir" && as_dir=.
2383    # Account for people who put trailing slashes in PATH elements.
2384case $as_dir/ in #((
2385  ./ | .// | /[cC]/* | \
2386  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2387  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2388  /usr/ucb/* ) ;;
2389  *)
2390    # OSF1 and SCO ODT 3.0 have their own names for install.
2391    # Don't use installbsd from OSF since it installs stuff as root
2392    # by default.
2393    for ac_prog in ginstall scoinst install; do
2394      for ac_exec_ext in '' $ac_executable_extensions; do
2395	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2396	  if test $ac_prog = install &&
2397	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2398	    # AIX install.  It has an incompatible calling convention.
2399	    :
2400	  elif test $ac_prog = install &&
2401	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2402	    # program-specific install script used by HP pwplus--don't use.
2403	    :
2404	  else
2405	    rm -rf conftest.one conftest.two conftest.dir
2406	    echo one > conftest.one
2407	    echo two > conftest.two
2408	    mkdir conftest.dir
2409	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2410	      test -s conftest.one && test -s conftest.two &&
2411	      test -s conftest.dir/conftest.one &&
2412	      test -s conftest.dir/conftest.two
2413	    then
2414	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2415	      break 3
2416	    fi
2417	  fi
2418	fi
2419      done
2420    done
2421    ;;
2422esac
2423
2424  done
2425IFS=$as_save_IFS
2426
2427rm -rf conftest.one conftest.two conftest.dir
2428
2429fi
2430  if test "${ac_cv_path_install+set}" = set; then
2431    INSTALL=$ac_cv_path_install
2432  else
2433    # As a last resort, use the slow shell script.  Don't cache a
2434    # value for INSTALL within a source directory, because that will
2435    # break other packages using the cache if that directory is
2436    # removed, or if the value is a relative name.
2437    INSTALL=$ac_install_sh
2438  fi
2439fi
2440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2441$as_echo "$INSTALL" >&6; }
2442
2443# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2444# It thinks the first close brace ends the variable substitution.
2445test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2446
2447test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2448
2449test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2450
2451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2452$as_echo_n "checking whether build environment is sane... " >&6; }
2453# Just in case
2454sleep 1
2455echo timestamp > conftest.file
2456# Reject unsafe characters in $srcdir or the absolute working directory
2457# name.  Accept space and tab only in the latter.
2458am_lf='
2459'
2460case `pwd` in
2461  *[\\\"\#\$\&\'\`$am_lf]*)
2462    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2463esac
2464case $srcdir in
2465  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2466    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2467esac
2468
2469# Do `set' in a subshell so we don't clobber the current shell's
2470# arguments.  Must try -L first in case configure is actually a
2471# symlink; some systems play weird games with the mod time of symlinks
2472# (eg FreeBSD returns the mod time of the symlink's containing
2473# directory).
2474if (
2475   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2476   if test "$*" = "X"; then
2477      # -L didn't work.
2478      set X `ls -t "$srcdir/configure" conftest.file`
2479   fi
2480   rm -f conftest.file
2481   if test "$*" != "X $srcdir/configure conftest.file" \
2482      && test "$*" != "X conftest.file $srcdir/configure"; then
2483
2484      # If neither matched, then we have a broken ls.  This can happen
2485      # if, for instance, CONFIG_SHELL is bash and it inherits a
2486      # broken ls alias from the environment.  This has actually
2487      # happened.  Such a system could not be considered "sane".
2488      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2489alias in your environment" "$LINENO" 5
2490   fi
2491
2492   test "$2" = conftest.file
2493   )
2494then
2495   # Ok.
2496   :
2497else
2498   as_fn_error $? "newly created file is older than distributed files!
2499Check your system clock" "$LINENO" 5
2500fi
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2502$as_echo "yes" >&6; }
2503test "$program_prefix" != NONE &&
2504  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2505# Use a double $ so make ignores it.
2506test "$program_suffix" != NONE &&
2507  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2508# Double any \ or $.
2509# By default was `s,x,x', remove it if useless.
2510ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2511program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2512
2513# expand $ac_aux_dir to an absolute path
2514am_aux_dir=`cd $ac_aux_dir && pwd`
2515
2516if test x"${MISSING+set}" != xset; then
2517  case $am_aux_dir in
2518  *\ * | *\	*)
2519    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2520  *)
2521    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2522  esac
2523fi
2524# Use eval to expand $SHELL
2525if eval "$MISSING --run true"; then
2526  am_missing_run="$MISSING --run "
2527else
2528  am_missing_run=
2529  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2530$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2531fi
2532
2533if test x"${install_sh}" != xset; then
2534  case $am_aux_dir in
2535  *\ * | *\	*)
2536    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2537  *)
2538    install_sh="\${SHELL} $am_aux_dir/install-sh"
2539  esac
2540fi
2541
2542# Installed binaries are usually stripped using `strip' when the user
2543# run `make install-strip'.  However `strip' might not be the right
2544# tool to use in cross-compilation environments, therefore Automake
2545# will honor the `STRIP' environment variable to overrule this program.
2546if test "$cross_compiling" != no; then
2547  if test -n "$ac_tool_prefix"; then
2548  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2549set dummy ${ac_tool_prefix}strip; ac_word=$2
2550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2551$as_echo_n "checking for $ac_word... " >&6; }
2552if ${ac_cv_prog_STRIP+:} false; then :
2553  $as_echo_n "(cached) " >&6
2554else
2555  if test -n "$STRIP"; then
2556  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2557else
2558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559for as_dir in $PATH
2560do
2561  IFS=$as_save_IFS
2562  test -z "$as_dir" && as_dir=.
2563    for ac_exec_ext in '' $ac_executable_extensions; do
2564  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2565    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2566    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2567    break 2
2568  fi
2569done
2570  done
2571IFS=$as_save_IFS
2572
2573fi
2574fi
2575STRIP=$ac_cv_prog_STRIP
2576if test -n "$STRIP"; then
2577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2578$as_echo "$STRIP" >&6; }
2579else
2580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2581$as_echo "no" >&6; }
2582fi
2583
2584
2585fi
2586if test -z "$ac_cv_prog_STRIP"; then
2587  ac_ct_STRIP=$STRIP
2588  # Extract the first word of "strip", so it can be a program name with args.
2589set dummy strip; ac_word=$2
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591$as_echo_n "checking for $ac_word... " >&6; }
2592if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2593  $as_echo_n "(cached) " >&6
2594else
2595  if test -n "$ac_ct_STRIP"; then
2596  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2597else
2598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599for as_dir in $PATH
2600do
2601  IFS=$as_save_IFS
2602  test -z "$as_dir" && as_dir=.
2603    for ac_exec_ext in '' $ac_executable_extensions; do
2604  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2605    ac_cv_prog_ac_ct_STRIP="strip"
2606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2607    break 2
2608  fi
2609done
2610  done
2611IFS=$as_save_IFS
2612
2613fi
2614fi
2615ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2616if test -n "$ac_ct_STRIP"; then
2617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2618$as_echo "$ac_ct_STRIP" >&6; }
2619else
2620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621$as_echo "no" >&6; }
2622fi
2623
2624  if test "x$ac_ct_STRIP" = x; then
2625    STRIP=":"
2626  else
2627    case $cross_compiling:$ac_tool_warned in
2628yes:)
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2631ac_tool_warned=yes ;;
2632esac
2633    STRIP=$ac_ct_STRIP
2634  fi
2635else
2636  STRIP="$ac_cv_prog_STRIP"
2637fi
2638
2639fi
2640INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2641
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2643$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2644if test -z "$MKDIR_P"; then
2645  if ${ac_cv_path_mkdir+:} false; then :
2646  $as_echo_n "(cached) " >&6
2647else
2648  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2650do
2651  IFS=$as_save_IFS
2652  test -z "$as_dir" && as_dir=.
2653    for ac_prog in mkdir gmkdir; do
2654	 for ac_exec_ext in '' $ac_executable_extensions; do
2655	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2656	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2657	     'mkdir (GNU coreutils) '* | \
2658	     'mkdir (coreutils) '* | \
2659	     'mkdir (fileutils) '4.1*)
2660	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2661	       break 3;;
2662	   esac
2663	 done
2664       done
2665  done
2666IFS=$as_save_IFS
2667
2668fi
2669
2670  test -d ./--version && rmdir ./--version
2671  if test "${ac_cv_path_mkdir+set}" = set; then
2672    MKDIR_P="$ac_cv_path_mkdir -p"
2673  else
2674    # As a last resort, use the slow shell script.  Don't cache a
2675    # value for MKDIR_P within a source directory, because that will
2676    # break other packages using the cache if that directory is
2677    # removed, or if the value is a relative name.
2678    MKDIR_P="$ac_install_sh -d"
2679  fi
2680fi
2681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2682$as_echo "$MKDIR_P" >&6; }
2683
2684mkdir_p="$MKDIR_P"
2685case $mkdir_p in
2686  [\\/$]* | ?:[\\/]*) ;;
2687  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2688esac
2689
2690for ac_prog in gawk mawk nawk awk
2691do
2692  # Extract the first word of "$ac_prog", so it can be a program name with args.
2693set dummy $ac_prog; ac_word=$2
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695$as_echo_n "checking for $ac_word... " >&6; }
2696if ${ac_cv_prog_AWK+:} false; then :
2697  $as_echo_n "(cached) " >&6
2698else
2699  if test -n "$AWK"; then
2700  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2701else
2702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703for as_dir in $PATH
2704do
2705  IFS=$as_save_IFS
2706  test -z "$as_dir" && as_dir=.
2707    for ac_exec_ext in '' $ac_executable_extensions; do
2708  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709    ac_cv_prog_AWK="$ac_prog"
2710    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711    break 2
2712  fi
2713done
2714  done
2715IFS=$as_save_IFS
2716
2717fi
2718fi
2719AWK=$ac_cv_prog_AWK
2720if test -n "$AWK"; then
2721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2722$as_echo "$AWK" >&6; }
2723else
2724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725$as_echo "no" >&6; }
2726fi
2727
2728
2729  test -n "$AWK" && break
2730done
2731
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2733$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2734set x ${MAKE-make}
2735ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2736if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2737  $as_echo_n "(cached) " >&6
2738else
2739  cat >conftest.make <<\_ACEOF
2740SHELL = /bin/sh
2741all:
2742	@echo '@@@%%%=$(MAKE)=@@@%%%'
2743_ACEOF
2744# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2745case `${MAKE-make} -f conftest.make 2>/dev/null` in
2746  *@@@%%%=?*=@@@%%%*)
2747    eval ac_cv_prog_make_${ac_make}_set=yes;;
2748  *)
2749    eval ac_cv_prog_make_${ac_make}_set=no;;
2750esac
2751rm -f conftest.make
2752fi
2753if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2755$as_echo "yes" >&6; }
2756  SET_MAKE=
2757else
2758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759$as_echo "no" >&6; }
2760  SET_MAKE="MAKE=${MAKE-make}"
2761fi
2762
2763rm -rf .tst 2>/dev/null
2764mkdir .tst 2>/dev/null
2765if test -d .tst; then
2766  am__leading_dot=.
2767else
2768  am__leading_dot=_
2769fi
2770rmdir .tst 2>/dev/null
2771
2772if test "`cd $srcdir && pwd`" != "`pwd`"; then
2773  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2774  # is not polluted with repeated "-I."
2775  am__isrc=' -I$(srcdir)'
2776  # test to see if srcdir already configured
2777  if test -f $srcdir/config.status; then
2778    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2779  fi
2780fi
2781
2782# test whether we have cygpath
2783if test -z "$CYGPATH_W"; then
2784  if (cygpath --version) >/dev/null 2>/dev/null; then
2785    CYGPATH_W='cygpath -w'
2786  else
2787    CYGPATH_W=echo
2788  fi
2789fi
2790
2791
2792# Define the identity of the package.
2793 PACKAGE='xf86-video-cirrus'
2794 VERSION='1.5.2'
2795
2796
2797cat >>confdefs.h <<_ACEOF
2798#define PACKAGE "$PACKAGE"
2799_ACEOF
2800
2801
2802cat >>confdefs.h <<_ACEOF
2803#define VERSION "$VERSION"
2804_ACEOF
2805
2806# Some tools Automake needs.
2807
2808ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2809
2810
2811AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2812
2813
2814AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2815
2816
2817AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2818
2819
2820MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2821
2822# We need awk for the "check" target.  The system "awk" is bad on
2823# some platforms.
2824# Always define AMTAR for backward compatibility.  Yes, it's still used
2825# in the wild :-(  We should find a proper way to deprecate it ...
2826AMTAR='$${TAR-tar}'
2827
2828am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2829
2830
2831
2832
2833
2834
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2836$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2837    # Check whether --enable-maintainer-mode was given.
2838if test "${enable_maintainer_mode+set}" = set; then :
2839  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2840else
2841  USE_MAINTAINER_MODE=no
2842fi
2843
2844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2845$as_echo "$USE_MAINTAINER_MODE" >&6; }
2846   if test $USE_MAINTAINER_MODE = yes; then
2847  MAINTAINER_MODE_TRUE=
2848  MAINTAINER_MODE_FALSE='#'
2849else
2850  MAINTAINER_MODE_TRUE='#'
2851  MAINTAINER_MODE_FALSE=
2852fi
2853
2854  MAINT=$MAINTAINER_MODE_TRUE
2855
2856
2857
2858# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870DEPDIR="${am__leading_dot}deps"
2871
2872ac_config_commands="$ac_config_commands depfiles"
2873
2874
2875am_make=${MAKE-make}
2876cat > confinc << 'END'
2877am__doit:
2878	@echo this is the am__doit target
2879.PHONY: am__doit
2880END
2881# If we don't find an include directive, just comment out the code.
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2883$as_echo_n "checking for style of include used by $am_make... " >&6; }
2884am__include="#"
2885am__quote=
2886_am_result=none
2887# First try GNU make style include.
2888echo "include confinc" > confmf
2889# Ignore all kinds of additional output from `make'.
2890case `$am_make -s -f confmf 2> /dev/null` in #(
2891*the\ am__doit\ target*)
2892  am__include=include
2893  am__quote=
2894  _am_result=GNU
2895  ;;
2896esac
2897# Now try BSD make style include.
2898if test "$am__include" = "#"; then
2899   echo '.include "confinc"' > confmf
2900   case `$am_make -s -f confmf 2> /dev/null` in #(
2901   *the\ am__doit\ target*)
2902     am__include=.include
2903     am__quote="\""
2904     _am_result=BSD
2905     ;;
2906   esac
2907fi
2908
2909
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2911$as_echo "$_am_result" >&6; }
2912rm -f confinc confmf
2913
2914# Check whether --enable-dependency-tracking was given.
2915if test "${enable_dependency_tracking+set}" = set; then :
2916  enableval=$enable_dependency_tracking;
2917fi
2918
2919if test "x$enable_dependency_tracking" != xno; then
2920  am_depcomp="$ac_aux_dir/depcomp"
2921  AMDEPBACKSLASH='\'
2922  am__nodep='_no'
2923fi
2924 if test "x$enable_dependency_tracking" != xno; then
2925  AMDEP_TRUE=
2926  AMDEP_FALSE='#'
2927else
2928  AMDEP_TRUE='#'
2929  AMDEP_FALSE=
2930fi
2931
2932
2933ac_ext=c
2934ac_cpp='$CPP $CPPFLAGS'
2935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938if test -n "$ac_tool_prefix"; then
2939  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2940set dummy ${ac_tool_prefix}gcc; ac_word=$2
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942$as_echo_n "checking for $ac_word... " >&6; }
2943if ${ac_cv_prog_CC+:} false; then :
2944  $as_echo_n "(cached) " >&6
2945else
2946  if test -n "$CC"; then
2947  ac_cv_prog_CC="$CC" # Let the user override the test.
2948else
2949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950for as_dir in $PATH
2951do
2952  IFS=$as_save_IFS
2953  test -z "$as_dir" && as_dir=.
2954    for ac_exec_ext in '' $ac_executable_extensions; do
2955  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2956    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958    break 2
2959  fi
2960done
2961  done
2962IFS=$as_save_IFS
2963
2964fi
2965fi
2966CC=$ac_cv_prog_CC
2967if test -n "$CC"; then
2968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2969$as_echo "$CC" >&6; }
2970else
2971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972$as_echo "no" >&6; }
2973fi
2974
2975
2976fi
2977if test -z "$ac_cv_prog_CC"; then
2978  ac_ct_CC=$CC
2979  # Extract the first word of "gcc", so it can be a program name with args.
2980set dummy gcc; ac_word=$2
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982$as_echo_n "checking for $ac_word... " >&6; }
2983if ${ac_cv_prog_ac_ct_CC+:} false; then :
2984  $as_echo_n "(cached) " >&6
2985else
2986  if test -n "$ac_ct_CC"; then
2987  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2988else
2989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990for as_dir in $PATH
2991do
2992  IFS=$as_save_IFS
2993  test -z "$as_dir" && as_dir=.
2994    for ac_exec_ext in '' $ac_executable_extensions; do
2995  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996    ac_cv_prog_ac_ct_CC="gcc"
2997    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998    break 2
2999  fi
3000done
3001  done
3002IFS=$as_save_IFS
3003
3004fi
3005fi
3006ac_ct_CC=$ac_cv_prog_ac_ct_CC
3007if test -n "$ac_ct_CC"; then
3008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3009$as_echo "$ac_ct_CC" >&6; }
3010else
3011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012$as_echo "no" >&6; }
3013fi
3014
3015  if test "x$ac_ct_CC" = x; then
3016    CC=""
3017  else
3018    case $cross_compiling:$ac_tool_warned in
3019yes:)
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3022ac_tool_warned=yes ;;
3023esac
3024    CC=$ac_ct_CC
3025  fi
3026else
3027  CC="$ac_cv_prog_CC"
3028fi
3029
3030if test -z "$CC"; then
3031          if test -n "$ac_tool_prefix"; then
3032    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3033set dummy ${ac_tool_prefix}cc; ac_word=$2
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035$as_echo_n "checking for $ac_word... " >&6; }
3036if ${ac_cv_prog_CC+:} false; then :
3037  $as_echo_n "(cached) " >&6
3038else
3039  if test -n "$CC"; then
3040  ac_cv_prog_CC="$CC" # Let the user override the test.
3041else
3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045  IFS=$as_save_IFS
3046  test -z "$as_dir" && as_dir=.
3047    for ac_exec_ext in '' $ac_executable_extensions; do
3048  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049    ac_cv_prog_CC="${ac_tool_prefix}cc"
3050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051    break 2
3052  fi
3053done
3054  done
3055IFS=$as_save_IFS
3056
3057fi
3058fi
3059CC=$ac_cv_prog_CC
3060if test -n "$CC"; then
3061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3062$as_echo "$CC" >&6; }
3063else
3064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065$as_echo "no" >&6; }
3066fi
3067
3068
3069  fi
3070fi
3071if test -z "$CC"; then
3072  # Extract the first word of "cc", so it can be a program name with args.
3073set dummy cc; ac_word=$2
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075$as_echo_n "checking for $ac_word... " >&6; }
3076if ${ac_cv_prog_CC+:} false; then :
3077  $as_echo_n "(cached) " >&6
3078else
3079  if test -n "$CC"; then
3080  ac_cv_prog_CC="$CC" # Let the user override the test.
3081else
3082  ac_prog_rejected=no
3083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084for as_dir in $PATH
3085do
3086  IFS=$as_save_IFS
3087  test -z "$as_dir" && as_dir=.
3088    for ac_exec_ext in '' $ac_executable_extensions; do
3089  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3090    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3091       ac_prog_rejected=yes
3092       continue
3093     fi
3094    ac_cv_prog_CC="cc"
3095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096    break 2
3097  fi
3098done
3099  done
3100IFS=$as_save_IFS
3101
3102if test $ac_prog_rejected = yes; then
3103  # We found a bogon in the path, so make sure we never use it.
3104  set dummy $ac_cv_prog_CC
3105  shift
3106  if test $# != 0; then
3107    # We chose a different compiler from the bogus one.
3108    # However, it has the same basename, so the bogon will be chosen
3109    # first if we set CC to just the basename; use the full file name.
3110    shift
3111    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3112  fi
3113fi
3114fi
3115fi
3116CC=$ac_cv_prog_CC
3117if test -n "$CC"; then
3118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3119$as_echo "$CC" >&6; }
3120else
3121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122$as_echo "no" >&6; }
3123fi
3124
3125
3126fi
3127if test -z "$CC"; then
3128  if test -n "$ac_tool_prefix"; then
3129  for ac_prog in cl.exe
3130  do
3131    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3132set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134$as_echo_n "checking for $ac_word... " >&6; }
3135if ${ac_cv_prog_CC+:} false; then :
3136  $as_echo_n "(cached) " >&6
3137else
3138  if test -n "$CC"; then
3139  ac_cv_prog_CC="$CC" # Let the user override the test.
3140else
3141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142for as_dir in $PATH
3143do
3144  IFS=$as_save_IFS
3145  test -z "$as_dir" && as_dir=.
3146    for ac_exec_ext in '' $ac_executable_extensions; do
3147  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150    break 2
3151  fi
3152done
3153  done
3154IFS=$as_save_IFS
3155
3156fi
3157fi
3158CC=$ac_cv_prog_CC
3159if test -n "$CC"; then
3160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3161$as_echo "$CC" >&6; }
3162else
3163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164$as_echo "no" >&6; }
3165fi
3166
3167
3168    test -n "$CC" && break
3169  done
3170fi
3171if test -z "$CC"; then
3172  ac_ct_CC=$CC
3173  for ac_prog in cl.exe
3174do
3175  # Extract the first word of "$ac_prog", so it can be a program name with args.
3176set dummy $ac_prog; ac_word=$2
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178$as_echo_n "checking for $ac_word... " >&6; }
3179if ${ac_cv_prog_ac_ct_CC+:} false; then :
3180  $as_echo_n "(cached) " >&6
3181else
3182  if test -n "$ac_ct_CC"; then
3183  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3184else
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188  IFS=$as_save_IFS
3189  test -z "$as_dir" && as_dir=.
3190    for ac_exec_ext in '' $ac_executable_extensions; do
3191  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192    ac_cv_prog_ac_ct_CC="$ac_prog"
3193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194    break 2
3195  fi
3196done
3197  done
3198IFS=$as_save_IFS
3199
3200fi
3201fi
3202ac_ct_CC=$ac_cv_prog_ac_ct_CC
3203if test -n "$ac_ct_CC"; then
3204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3205$as_echo "$ac_ct_CC" >&6; }
3206else
3207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208$as_echo "no" >&6; }
3209fi
3210
3211
3212  test -n "$ac_ct_CC" && break
3213done
3214
3215  if test "x$ac_ct_CC" = x; then
3216    CC=""
3217  else
3218    case $cross_compiling:$ac_tool_warned in
3219yes:)
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3222ac_tool_warned=yes ;;
3223esac
3224    CC=$ac_ct_CC
3225  fi
3226fi
3227
3228fi
3229
3230
3231test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233as_fn_error $? "no acceptable C compiler found in \$PATH
3234See \`config.log' for more details" "$LINENO" 5; }
3235
3236# Provide some information about the compiler.
3237$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3238set X $ac_compile
3239ac_compiler=$2
3240for ac_option in --version -v -V -qversion; do
3241  { { ac_try="$ac_compiler $ac_option >&5"
3242case "(($ac_try" in
3243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244  *) ac_try_echo=$ac_try;;
3245esac
3246eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247$as_echo "$ac_try_echo"; } >&5
3248  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3249  ac_status=$?
3250  if test -s conftest.err; then
3251    sed '10a\
3252... rest of stderr output deleted ...
3253         10q' conftest.err >conftest.er1
3254    cat conftest.er1 >&5
3255  fi
3256  rm -f conftest.er1 conftest.err
3257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258  test $ac_status = 0; }
3259done
3260
3261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262/* end confdefs.h.  */
3263
3264int
3265main ()
3266{
3267
3268  ;
3269  return 0;
3270}
3271_ACEOF
3272ac_clean_files_save=$ac_clean_files
3273ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3274# Try to create an executable without -o first, disregard a.out.
3275# It will help us diagnose broken compilers, and finding out an intuition
3276# of exeext.
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3278$as_echo_n "checking whether the C compiler works... " >&6; }
3279ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3280
3281# The possible output files:
3282ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3283
3284ac_rmfiles=
3285for ac_file in $ac_files
3286do
3287  case $ac_file in
3288    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3289    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3290  esac
3291done
3292rm -f $ac_rmfiles
3293
3294if { { ac_try="$ac_link_default"
3295case "(($ac_try" in
3296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297  *) ac_try_echo=$ac_try;;
3298esac
3299eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300$as_echo "$ac_try_echo"; } >&5
3301  (eval "$ac_link_default") 2>&5
3302  ac_status=$?
3303  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304  test $ac_status = 0; }; then :
3305  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3306# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3307# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3308# so that the user can short-circuit this test for compilers unknown to
3309# Autoconf.
3310for ac_file in $ac_files ''
3311do
3312  test -f "$ac_file" || continue
3313  case $ac_file in
3314    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3315	;;
3316    [ab].out )
3317	# We found the default executable, but exeext='' is most
3318	# certainly right.
3319	break;;
3320    *.* )
3321	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3322	then :; else
3323	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3324	fi
3325	# We set ac_cv_exeext here because the later test for it is not
3326	# safe: cross compilers may not add the suffix if given an `-o'
3327	# argument, so we may need to know it at that point already.
3328	# Even if this section looks crufty: it has the advantage of
3329	# actually working.
3330	break;;
3331    * )
3332	break;;
3333  esac
3334done
3335test "$ac_cv_exeext" = no && ac_cv_exeext=
3336
3337else
3338  ac_file=''
3339fi
3340if test -z "$ac_file"; then :
3341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342$as_echo "no" >&6; }
3343$as_echo "$as_me: failed program was:" >&5
3344sed 's/^/| /' conftest.$ac_ext >&5
3345
3346{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348as_fn_error 77 "C compiler cannot create executables
3349See \`config.log' for more details" "$LINENO" 5; }
3350else
3351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3352$as_echo "yes" >&6; }
3353fi
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3355$as_echo_n "checking for C compiler default output file name... " >&6; }
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3357$as_echo "$ac_file" >&6; }
3358ac_exeext=$ac_cv_exeext
3359
3360rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3361ac_clean_files=$ac_clean_files_save
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3363$as_echo_n "checking for suffix of executables... " >&6; }
3364if { { ac_try="$ac_link"
3365case "(($ac_try" in
3366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367  *) ac_try_echo=$ac_try;;
3368esac
3369eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370$as_echo "$ac_try_echo"; } >&5
3371  (eval "$ac_link") 2>&5
3372  ac_status=$?
3373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374  test $ac_status = 0; }; then :
3375  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3376# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3377# work properly (i.e., refer to `conftest.exe'), while it won't with
3378# `rm'.
3379for ac_file in conftest.exe conftest conftest.*; do
3380  test -f "$ac_file" || continue
3381  case $ac_file in
3382    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3383    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3384	  break;;
3385    * ) break;;
3386  esac
3387done
3388else
3389  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3392See \`config.log' for more details" "$LINENO" 5; }
3393fi
3394rm -f conftest conftest$ac_cv_exeext
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3396$as_echo "$ac_cv_exeext" >&6; }
3397
3398rm -f conftest.$ac_ext
3399EXEEXT=$ac_cv_exeext
3400ac_exeext=$EXEEXT
3401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402/* end confdefs.h.  */
3403#include <stdio.h>
3404int
3405main ()
3406{
3407FILE *f = fopen ("conftest.out", "w");
3408 return ferror (f) || fclose (f) != 0;
3409
3410  ;
3411  return 0;
3412}
3413_ACEOF
3414ac_clean_files="$ac_clean_files conftest.out"
3415# Check that the compiler produces executables we can run.  If not, either
3416# the compiler is broken, or we cross compile.
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3418$as_echo_n "checking whether we are cross compiling... " >&6; }
3419if test "$cross_compiling" != yes; then
3420  { { ac_try="$ac_link"
3421case "(($ac_try" in
3422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423  *) ac_try_echo=$ac_try;;
3424esac
3425eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426$as_echo "$ac_try_echo"; } >&5
3427  (eval "$ac_link") 2>&5
3428  ac_status=$?
3429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430  test $ac_status = 0; }
3431  if { ac_try='./conftest$ac_cv_exeext'
3432  { { case "(($ac_try" in
3433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434  *) ac_try_echo=$ac_try;;
3435esac
3436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3437$as_echo "$ac_try_echo"; } >&5
3438  (eval "$ac_try") 2>&5
3439  ac_status=$?
3440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3441  test $ac_status = 0; }; }; then
3442    cross_compiling=no
3443  else
3444    if test "$cross_compiling" = maybe; then
3445	cross_compiling=yes
3446    else
3447	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3449as_fn_error $? "cannot run C compiled programs.
3450If you meant to cross compile, use \`--host'.
3451See \`config.log' for more details" "$LINENO" 5; }
3452    fi
3453  fi
3454fi
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3456$as_echo "$cross_compiling" >&6; }
3457
3458rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3459ac_clean_files=$ac_clean_files_save
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3461$as_echo_n "checking for suffix of object files... " >&6; }
3462if ${ac_cv_objext+:} false; then :
3463  $as_echo_n "(cached) " >&6
3464else
3465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466/* end confdefs.h.  */
3467
3468int
3469main ()
3470{
3471
3472  ;
3473  return 0;
3474}
3475_ACEOF
3476rm -f conftest.o conftest.obj
3477if { { ac_try="$ac_compile"
3478case "(($ac_try" in
3479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480  *) ac_try_echo=$ac_try;;
3481esac
3482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483$as_echo "$ac_try_echo"; } >&5
3484  (eval "$ac_compile") 2>&5
3485  ac_status=$?
3486  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3487  test $ac_status = 0; }; then :
3488  for ac_file in conftest.o conftest.obj conftest.*; do
3489  test -f "$ac_file" || continue;
3490  case $ac_file in
3491    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3492    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3493       break;;
3494  esac
3495done
3496else
3497  $as_echo "$as_me: failed program was:" >&5
3498sed 's/^/| /' conftest.$ac_ext >&5
3499
3500{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502as_fn_error $? "cannot compute suffix of object files: cannot compile
3503See \`config.log' for more details" "$LINENO" 5; }
3504fi
3505rm -f conftest.$ac_cv_objext conftest.$ac_ext
3506fi
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3508$as_echo "$ac_cv_objext" >&6; }
3509OBJEXT=$ac_cv_objext
3510ac_objext=$OBJEXT
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3512$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3513if ${ac_cv_c_compiler_gnu+:} false; then :
3514  $as_echo_n "(cached) " >&6
3515else
3516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517/* end confdefs.h.  */
3518
3519int
3520main ()
3521{
3522#ifndef __GNUC__
3523       choke me
3524#endif
3525
3526  ;
3527  return 0;
3528}
3529_ACEOF
3530if ac_fn_c_try_compile "$LINENO"; then :
3531  ac_compiler_gnu=yes
3532else
3533  ac_compiler_gnu=no
3534fi
3535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536ac_cv_c_compiler_gnu=$ac_compiler_gnu
3537
3538fi
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3540$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3541if test $ac_compiler_gnu = yes; then
3542  GCC=yes
3543else
3544  GCC=
3545fi
3546ac_test_CFLAGS=${CFLAGS+set}
3547ac_save_CFLAGS=$CFLAGS
3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3549$as_echo_n "checking whether $CC accepts -g... " >&6; }
3550if ${ac_cv_prog_cc_g+:} false; then :
3551  $as_echo_n "(cached) " >&6
3552else
3553  ac_save_c_werror_flag=$ac_c_werror_flag
3554   ac_c_werror_flag=yes
3555   ac_cv_prog_cc_g=no
3556   CFLAGS="-g"
3557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558/* end confdefs.h.  */
3559
3560int
3561main ()
3562{
3563
3564  ;
3565  return 0;
3566}
3567_ACEOF
3568if ac_fn_c_try_compile "$LINENO"; then :
3569  ac_cv_prog_cc_g=yes
3570else
3571  CFLAGS=""
3572      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573/* end confdefs.h.  */
3574
3575int
3576main ()
3577{
3578
3579  ;
3580  return 0;
3581}
3582_ACEOF
3583if ac_fn_c_try_compile "$LINENO"; then :
3584
3585else
3586  ac_c_werror_flag=$ac_save_c_werror_flag
3587	 CFLAGS="-g"
3588	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589/* end confdefs.h.  */
3590
3591int
3592main ()
3593{
3594
3595  ;
3596  return 0;
3597}
3598_ACEOF
3599if ac_fn_c_try_compile "$LINENO"; then :
3600  ac_cv_prog_cc_g=yes
3601fi
3602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603fi
3604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605fi
3606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607   ac_c_werror_flag=$ac_save_c_werror_flag
3608fi
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3610$as_echo "$ac_cv_prog_cc_g" >&6; }
3611if test "$ac_test_CFLAGS" = set; then
3612  CFLAGS=$ac_save_CFLAGS
3613elif test $ac_cv_prog_cc_g = yes; then
3614  if test "$GCC" = yes; then
3615    CFLAGS="-g -O2"
3616  else
3617    CFLAGS="-g"
3618  fi
3619else
3620  if test "$GCC" = yes; then
3621    CFLAGS="-O2"
3622  else
3623    CFLAGS=
3624  fi
3625fi
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3627$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3628if ${ac_cv_prog_cc_c89+:} false; then :
3629  $as_echo_n "(cached) " >&6
3630else
3631  ac_cv_prog_cc_c89=no
3632ac_save_CC=$CC
3633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634/* end confdefs.h.  */
3635#include <stdarg.h>
3636#include <stdio.h>
3637struct stat;
3638/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3639struct buf { int x; };
3640FILE * (*rcsopen) (struct buf *, struct stat *, int);
3641static char *e (p, i)
3642     char **p;
3643     int i;
3644{
3645  return p[i];
3646}
3647static char *f (char * (*g) (char **, int), char **p, ...)
3648{
3649  char *s;
3650  va_list v;
3651  va_start (v,p);
3652  s = g (p, va_arg (v,int));
3653  va_end (v);
3654  return s;
3655}
3656
3657/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3658   function prototypes and stuff, but not '\xHH' hex character constants.
3659   These don't provoke an error unfortunately, instead are silently treated
3660   as 'x'.  The following induces an error, until -std is added to get
3661   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3662   array size at least.  It's necessary to write '\x00'==0 to get something
3663   that's true only with -std.  */
3664int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3665
3666/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3667   inside strings and character constants.  */
3668#define FOO(x) 'x'
3669int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3670
3671int test (int i, double x);
3672struct s1 {int (*f) (int a);};
3673struct s2 {int (*f) (double a);};
3674int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3675int argc;
3676char **argv;
3677int
3678main ()
3679{
3680return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3681  ;
3682  return 0;
3683}
3684_ACEOF
3685for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3686	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3687do
3688  CC="$ac_save_CC $ac_arg"
3689  if ac_fn_c_try_compile "$LINENO"; then :
3690  ac_cv_prog_cc_c89=$ac_arg
3691fi
3692rm -f core conftest.err conftest.$ac_objext
3693  test "x$ac_cv_prog_cc_c89" != "xno" && break
3694done
3695rm -f conftest.$ac_ext
3696CC=$ac_save_CC
3697
3698fi
3699# AC_CACHE_VAL
3700case "x$ac_cv_prog_cc_c89" in
3701  x)
3702    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3703$as_echo "none needed" >&6; } ;;
3704  xno)
3705    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3706$as_echo "unsupported" >&6; } ;;
3707  *)
3708    CC="$CC $ac_cv_prog_cc_c89"
3709    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3710$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3711esac
3712if test "x$ac_cv_prog_cc_c89" != xno; then :
3713
3714fi
3715
3716ac_ext=c
3717ac_cpp='$CPP $CPPFLAGS'
3718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721
3722depcc="$CC"   am_compiler_list=
3723
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3725$as_echo_n "checking dependency style of $depcc... " >&6; }
3726if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3727  $as_echo_n "(cached) " >&6
3728else
3729  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3730  # We make a subdir and do the tests there.  Otherwise we can end up
3731  # making bogus files that we don't know about and never remove.  For
3732  # instance it was reported that on HP-UX the gcc test will end up
3733  # making a dummy file named `D' -- because `-MD' means `put the output
3734  # in D'.
3735  rm -rf conftest.dir
3736  mkdir conftest.dir
3737  # Copy depcomp to subdir because otherwise we won't find it if we're
3738  # using a relative directory.
3739  cp "$am_depcomp" conftest.dir
3740  cd conftest.dir
3741  # We will build objects and dependencies in a subdirectory because
3742  # it helps to detect inapplicable dependency modes.  For instance
3743  # both Tru64's cc and ICC support -MD to output dependencies as a
3744  # side effect of compilation, but ICC will put the dependencies in
3745  # the current directory while Tru64 will put them in the object
3746  # directory.
3747  mkdir sub
3748
3749  am_cv_CC_dependencies_compiler_type=none
3750  if test "$am_compiler_list" = ""; then
3751     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3752  fi
3753  am__universal=false
3754  case " $depcc " in #(
3755     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3756     esac
3757
3758  for depmode in $am_compiler_list; do
3759    # Setup a source with many dependencies, because some compilers
3760    # like to wrap large dependency lists on column 80 (with \), and
3761    # we should not choose a depcomp mode which is confused by this.
3762    #
3763    # We need to recreate these files for each test, as the compiler may
3764    # overwrite some of them when testing with obscure command lines.
3765    # This happens at least with the AIX C compiler.
3766    : > sub/conftest.c
3767    for i in 1 2 3 4 5 6; do
3768      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3769      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3770      # Solaris 8's {/usr,}/bin/sh.
3771      touch sub/conftst$i.h
3772    done
3773    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3774
3775    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3776    # mode.  It turns out that the SunPro C++ compiler does not properly
3777    # handle `-M -o', and we need to detect this.  Also, some Intel
3778    # versions had trouble with output in subdirs
3779    am__obj=sub/conftest.${OBJEXT-o}
3780    am__minus_obj="-o $am__obj"
3781    case $depmode in
3782    gcc)
3783      # This depmode causes a compiler race in universal mode.
3784      test "$am__universal" = false || continue
3785      ;;
3786    nosideeffect)
3787      # after this tag, mechanisms are not by side-effect, so they'll
3788      # only be used when explicitly requested
3789      if test "x$enable_dependency_tracking" = xyes; then
3790	continue
3791      else
3792	break
3793      fi
3794      ;;
3795    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3796      # This compiler won't grok `-c -o', but also, the minuso test has
3797      # not run yet.  These depmodes are late enough in the game, and
3798      # so weak that their functioning should not be impacted.
3799      am__obj=conftest.${OBJEXT-o}
3800      am__minus_obj=
3801      ;;
3802    none) break ;;
3803    esac
3804    if depmode=$depmode \
3805       source=sub/conftest.c object=$am__obj \
3806       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3807       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3808         >/dev/null 2>conftest.err &&
3809       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3810       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3811       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3812       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3813      # icc doesn't choke on unknown options, it will just issue warnings
3814      # or remarks (even with -Werror).  So we grep stderr for any message
3815      # that says an option was ignored or not supported.
3816      # When given -MP, icc 7.0 and 7.1 complain thusly:
3817      #   icc: Command line warning: ignoring option '-M'; no argument required
3818      # The diagnosis changed in icc 8.0:
3819      #   icc: Command line remark: option '-MP' not supported
3820      if (grep 'ignoring option' conftest.err ||
3821          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3822        am_cv_CC_dependencies_compiler_type=$depmode
3823        break
3824      fi
3825    fi
3826  done
3827
3828  cd ..
3829  rm -rf conftest.dir
3830else
3831  am_cv_CC_dependencies_compiler_type=none
3832fi
3833
3834fi
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3836$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3837CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3838
3839 if
3840  test "x$enable_dependency_tracking" != xno \
3841  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3842  am__fastdepCC_TRUE=
3843  am__fastdepCC_FALSE='#'
3844else
3845  am__fastdepCC_TRUE='#'
3846  am__fastdepCC_FALSE=
3847fi
3848
3849
3850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3851$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3852if ${ac_cv_prog_cc_c99+:} false; then :
3853  $as_echo_n "(cached) " >&6
3854else
3855  ac_cv_prog_cc_c99=no
3856ac_save_CC=$CC
3857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858/* end confdefs.h.  */
3859#include <stdarg.h>
3860#include <stdbool.h>
3861#include <stdlib.h>
3862#include <wchar.h>
3863#include <stdio.h>
3864
3865// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3866#define debug(...) fprintf (stderr, __VA_ARGS__)
3867#define showlist(...) puts (#__VA_ARGS__)
3868#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3869static void
3870test_varargs_macros (void)
3871{
3872  int x = 1234;
3873  int y = 5678;
3874  debug ("Flag");
3875  debug ("X = %d\n", x);
3876  showlist (The first, second, and third items.);
3877  report (x>y, "x is %d but y is %d", x, y);
3878}
3879
3880// Check long long types.
3881#define BIG64 18446744073709551615ull
3882#define BIG32 4294967295ul
3883#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3884#if !BIG_OK
3885  your preprocessor is broken;
3886#endif
3887#if BIG_OK
3888#else
3889  your preprocessor is broken;
3890#endif
3891static long long int bignum = -9223372036854775807LL;
3892static unsigned long long int ubignum = BIG64;
3893
3894struct incomplete_array
3895{
3896  int datasize;
3897  double data[];
3898};
3899
3900struct named_init {
3901  int number;
3902  const wchar_t *name;
3903  double average;
3904};
3905
3906typedef const char *ccp;
3907
3908static inline int
3909test_restrict (ccp restrict text)
3910{
3911  // See if C++-style comments work.
3912  // Iterate through items via the restricted pointer.
3913  // Also check for declarations in for loops.
3914  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3915    continue;
3916  return 0;
3917}
3918
3919// Check varargs and va_copy.
3920static void
3921test_varargs (const char *format, ...)
3922{
3923  va_list args;
3924  va_start (args, format);
3925  va_list args_copy;
3926  va_copy (args_copy, args);
3927
3928  const char *str;
3929  int number;
3930  float fnumber;
3931
3932  while (*format)
3933    {
3934      switch (*format++)
3935	{
3936	case 's': // string
3937	  str = va_arg (args_copy, const char *);
3938	  break;
3939	case 'd': // int
3940	  number = va_arg (args_copy, int);
3941	  break;
3942	case 'f': // float
3943	  fnumber = va_arg (args_copy, double);
3944	  break;
3945	default:
3946	  break;
3947	}
3948    }
3949  va_end (args_copy);
3950  va_end (args);
3951}
3952
3953int
3954main ()
3955{
3956
3957  // Check bool.
3958  _Bool success = false;
3959
3960  // Check restrict.
3961  if (test_restrict ("String literal") == 0)
3962    success = true;
3963  char *restrict newvar = "Another string";
3964
3965  // Check varargs.
3966  test_varargs ("s, d' f .", "string", 65, 34.234);
3967  test_varargs_macros ();
3968
3969  // Check flexible array members.
3970  struct incomplete_array *ia =
3971    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3972  ia->datasize = 10;
3973  for (int i = 0; i < ia->datasize; ++i)
3974    ia->data[i] = i * 1.234;
3975
3976  // Check named initializers.
3977  struct named_init ni = {
3978    .number = 34,
3979    .name = L"Test wide string",
3980    .average = 543.34343,
3981  };
3982
3983  ni.number = 58;
3984
3985  int dynamic_array[ni.number];
3986  dynamic_array[ni.number - 1] = 543;
3987
3988  // work around unused variable warnings
3989  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3990	  || dynamic_array[ni.number - 1] != 543);
3991
3992  ;
3993  return 0;
3994}
3995_ACEOF
3996for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3997do
3998  CC="$ac_save_CC $ac_arg"
3999  if ac_fn_c_try_compile "$LINENO"; then :
4000  ac_cv_prog_cc_c99=$ac_arg
4001fi
4002rm -f core conftest.err conftest.$ac_objext
4003  test "x$ac_cv_prog_cc_c99" != "xno" && break
4004done
4005rm -f conftest.$ac_ext
4006CC=$ac_save_CC
4007
4008fi
4009# AC_CACHE_VAL
4010case "x$ac_cv_prog_cc_c99" in
4011  x)
4012    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4013$as_echo "none needed" >&6; } ;;
4014  xno)
4015    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4016$as_echo "unsupported" >&6; } ;;
4017  *)
4018    CC="$CC $ac_cv_prog_cc_c99"
4019    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4020$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4021esac
4022if test "x$ac_cv_prog_cc_c99" != xno; then :
4023
4024fi
4025
4026
4027
4028ac_ext=c
4029ac_cpp='$CPP $CPPFLAGS'
4030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032ac_compiler_gnu=$ac_cv_c_compiler_gnu
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4034$as_echo_n "checking how to run the C preprocessor... " >&6; }
4035# On Suns, sometimes $CPP names a directory.
4036if test -n "$CPP" && test -d "$CPP"; then
4037  CPP=
4038fi
4039if test -z "$CPP"; then
4040  if ${ac_cv_prog_CPP+:} false; then :
4041  $as_echo_n "(cached) " >&6
4042else
4043      # Double quotes because CPP needs to be expanded
4044    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4045    do
4046      ac_preproc_ok=false
4047for ac_c_preproc_warn_flag in '' yes
4048do
4049  # Use a header file that comes with gcc, so configuring glibc
4050  # with a fresh cross-compiler works.
4051  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4052  # <limits.h> exists even on freestanding compilers.
4053  # On the NeXT, cc -E runs the code through the compiler's parser,
4054  # not just through cpp. "Syntax error" is here to catch this case.
4055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056/* end confdefs.h.  */
4057#ifdef __STDC__
4058# include <limits.h>
4059#else
4060# include <assert.h>
4061#endif
4062		     Syntax error
4063_ACEOF
4064if ac_fn_c_try_cpp "$LINENO"; then :
4065
4066else
4067  # Broken: fails on valid input.
4068continue
4069fi
4070rm -f conftest.err conftest.i conftest.$ac_ext
4071
4072  # OK, works on sane cases.  Now check whether nonexistent headers
4073  # can be detected and how.
4074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075/* end confdefs.h.  */
4076#include <ac_nonexistent.h>
4077_ACEOF
4078if ac_fn_c_try_cpp "$LINENO"; then :
4079  # Broken: success on invalid input.
4080continue
4081else
4082  # Passes both tests.
4083ac_preproc_ok=:
4084break
4085fi
4086rm -f conftest.err conftest.i conftest.$ac_ext
4087
4088done
4089# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4090rm -f conftest.i conftest.err conftest.$ac_ext
4091if $ac_preproc_ok; then :
4092  break
4093fi
4094
4095    done
4096    ac_cv_prog_CPP=$CPP
4097
4098fi
4099  CPP=$ac_cv_prog_CPP
4100else
4101  ac_cv_prog_CPP=$CPP
4102fi
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4104$as_echo "$CPP" >&6; }
4105ac_preproc_ok=false
4106for ac_c_preproc_warn_flag in '' yes
4107do
4108  # Use a header file that comes with gcc, so configuring glibc
4109  # with a fresh cross-compiler works.
4110  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4111  # <limits.h> exists even on freestanding compilers.
4112  # On the NeXT, cc -E runs the code through the compiler's parser,
4113  # not just through cpp. "Syntax error" is here to catch this case.
4114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115/* end confdefs.h.  */
4116#ifdef __STDC__
4117# include <limits.h>
4118#else
4119# include <assert.h>
4120#endif
4121		     Syntax error
4122_ACEOF
4123if ac_fn_c_try_cpp "$LINENO"; then :
4124
4125else
4126  # Broken: fails on valid input.
4127continue
4128fi
4129rm -f conftest.err conftest.i conftest.$ac_ext
4130
4131  # OK, works on sane cases.  Now check whether nonexistent headers
4132  # can be detected and how.
4133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134/* end confdefs.h.  */
4135#include <ac_nonexistent.h>
4136_ACEOF
4137if ac_fn_c_try_cpp "$LINENO"; then :
4138  # Broken: success on invalid input.
4139continue
4140else
4141  # Passes both tests.
4142ac_preproc_ok=:
4143break
4144fi
4145rm -f conftest.err conftest.i conftest.$ac_ext
4146
4147done
4148# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4149rm -f conftest.i conftest.err conftest.$ac_ext
4150if $ac_preproc_ok; then :
4151
4152else
4153  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4155as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4156See \`config.log' for more details" "$LINENO" 5; }
4157fi
4158
4159ac_ext=c
4160ac_cpp='$CPP $CPPFLAGS'
4161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4163ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164
4165
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4167$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4168if ${ac_cv_path_GREP+:} false; then :
4169  $as_echo_n "(cached) " >&6
4170else
4171  if test -z "$GREP"; then
4172  ac_path_GREP_found=false
4173  # Loop through the user's path and test for each of PROGNAME-LIST
4174  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4176do
4177  IFS=$as_save_IFS
4178  test -z "$as_dir" && as_dir=.
4179    for ac_prog in grep ggrep; do
4180    for ac_exec_ext in '' $ac_executable_extensions; do
4181      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4182      as_fn_executable_p "$ac_path_GREP" || continue
4183# Check for GNU ac_path_GREP and select it if it is found.
4184  # Check for GNU $ac_path_GREP
4185case `"$ac_path_GREP" --version 2>&1` in
4186*GNU*)
4187  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4188*)
4189  ac_count=0
4190  $as_echo_n 0123456789 >"conftest.in"
4191  while :
4192  do
4193    cat "conftest.in" "conftest.in" >"conftest.tmp"
4194    mv "conftest.tmp" "conftest.in"
4195    cp "conftest.in" "conftest.nl"
4196    $as_echo 'GREP' >> "conftest.nl"
4197    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4198    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4199    as_fn_arith $ac_count + 1 && ac_count=$as_val
4200    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4201      # Best one so far, save it but keep looking for a better one
4202      ac_cv_path_GREP="$ac_path_GREP"
4203      ac_path_GREP_max=$ac_count
4204    fi
4205    # 10*(2^10) chars as input seems more than enough
4206    test $ac_count -gt 10 && break
4207  done
4208  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4209esac
4210
4211      $ac_path_GREP_found && break 3
4212    done
4213  done
4214  done
4215IFS=$as_save_IFS
4216  if test -z "$ac_cv_path_GREP"; then
4217    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4218  fi
4219else
4220  ac_cv_path_GREP=$GREP
4221fi
4222
4223fi
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4225$as_echo "$ac_cv_path_GREP" >&6; }
4226 GREP="$ac_cv_path_GREP"
4227
4228
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4230$as_echo_n "checking for egrep... " >&6; }
4231if ${ac_cv_path_EGREP+:} false; then :
4232  $as_echo_n "(cached) " >&6
4233else
4234  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4235   then ac_cv_path_EGREP="$GREP -E"
4236   else
4237     if test -z "$EGREP"; then
4238  ac_path_EGREP_found=false
4239  # Loop through the user's path and test for each of PROGNAME-LIST
4240  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4242do
4243  IFS=$as_save_IFS
4244  test -z "$as_dir" && as_dir=.
4245    for ac_prog in egrep; do
4246    for ac_exec_ext in '' $ac_executable_extensions; do
4247      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4248      as_fn_executable_p "$ac_path_EGREP" || continue
4249# Check for GNU ac_path_EGREP and select it if it is found.
4250  # Check for GNU $ac_path_EGREP
4251case `"$ac_path_EGREP" --version 2>&1` in
4252*GNU*)
4253  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4254*)
4255  ac_count=0
4256  $as_echo_n 0123456789 >"conftest.in"
4257  while :
4258  do
4259    cat "conftest.in" "conftest.in" >"conftest.tmp"
4260    mv "conftest.tmp" "conftest.in"
4261    cp "conftest.in" "conftest.nl"
4262    $as_echo 'EGREP' >> "conftest.nl"
4263    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4264    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4265    as_fn_arith $ac_count + 1 && ac_count=$as_val
4266    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4267      # Best one so far, save it but keep looking for a better one
4268      ac_cv_path_EGREP="$ac_path_EGREP"
4269      ac_path_EGREP_max=$ac_count
4270    fi
4271    # 10*(2^10) chars as input seems more than enough
4272    test $ac_count -gt 10 && break
4273  done
4274  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4275esac
4276
4277      $ac_path_EGREP_found && break 3
4278    done
4279  done
4280  done
4281IFS=$as_save_IFS
4282  if test -z "$ac_cv_path_EGREP"; then
4283    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4284  fi
4285else
4286  ac_cv_path_EGREP=$EGREP
4287fi
4288
4289   fi
4290fi
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4292$as_echo "$ac_cv_path_EGREP" >&6; }
4293 EGREP="$ac_cv_path_EGREP"
4294
4295
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4297$as_echo_n "checking for ANSI C header files... " >&6; }
4298if ${ac_cv_header_stdc+:} false; then :
4299  $as_echo_n "(cached) " >&6
4300else
4301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302/* end confdefs.h.  */
4303#include <stdlib.h>
4304#include <stdarg.h>
4305#include <string.h>
4306#include <float.h>
4307
4308int
4309main ()
4310{
4311
4312  ;
4313  return 0;
4314}
4315_ACEOF
4316if ac_fn_c_try_compile "$LINENO"; then :
4317  ac_cv_header_stdc=yes
4318else
4319  ac_cv_header_stdc=no
4320fi
4321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4322
4323if test $ac_cv_header_stdc = yes; then
4324  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326/* end confdefs.h.  */
4327#include <string.h>
4328
4329_ACEOF
4330if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4331  $EGREP "memchr" >/dev/null 2>&1; then :
4332
4333else
4334  ac_cv_header_stdc=no
4335fi
4336rm -f conftest*
4337
4338fi
4339
4340if test $ac_cv_header_stdc = yes; then
4341  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343/* end confdefs.h.  */
4344#include <stdlib.h>
4345
4346_ACEOF
4347if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4348  $EGREP "free" >/dev/null 2>&1; then :
4349
4350else
4351  ac_cv_header_stdc=no
4352fi
4353rm -f conftest*
4354
4355fi
4356
4357if test $ac_cv_header_stdc = yes; then
4358  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4359  if test "$cross_compiling" = yes; then :
4360  :
4361else
4362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363/* end confdefs.h.  */
4364#include <ctype.h>
4365#include <stdlib.h>
4366#if ((' ' & 0x0FF) == 0x020)
4367# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4368# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4369#else
4370# define ISLOWER(c) \
4371		   (('a' <= (c) && (c) <= 'i') \
4372		     || ('j' <= (c) && (c) <= 'r') \
4373		     || ('s' <= (c) && (c) <= 'z'))
4374# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4375#endif
4376
4377#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4378int
4379main ()
4380{
4381  int i;
4382  for (i = 0; i < 256; i++)
4383    if (XOR (islower (i), ISLOWER (i))
4384	|| toupper (i) != TOUPPER (i))
4385      return 2;
4386  return 0;
4387}
4388_ACEOF
4389if ac_fn_c_try_run "$LINENO"; then :
4390
4391else
4392  ac_cv_header_stdc=no
4393fi
4394rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4395  conftest.$ac_objext conftest.beam conftest.$ac_ext
4396fi
4397
4398fi
4399fi
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4401$as_echo "$ac_cv_header_stdc" >&6; }
4402if test $ac_cv_header_stdc = yes; then
4403
4404$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4405
4406fi
4407
4408# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4409for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4410		  inttypes.h stdint.h unistd.h
4411do :
4412  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4413ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4414"
4415if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4416  cat >>confdefs.h <<_ACEOF
4417#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4418_ACEOF
4419
4420fi
4421
4422done
4423
4424
4425
4426
4427
4428
4429ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4430if test "x$ac_cv_have_decl___clang__" = xyes; then :
4431  CLANGCC="yes"
4432else
4433  CLANGCC="no"
4434fi
4435
4436ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4437if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4438  INTELCC="yes"
4439else
4440  INTELCC="no"
4441fi
4442
4443ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4444if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4445  SUNCC="yes"
4446else
4447  SUNCC="no"
4448fi
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4459	if test -n "$ac_tool_prefix"; then
4460  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4461set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463$as_echo_n "checking for $ac_word... " >&6; }
4464if ${ac_cv_path_PKG_CONFIG+:} false; then :
4465  $as_echo_n "(cached) " >&6
4466else
4467  case $PKG_CONFIG in
4468  [\\/]* | ?:[\\/]*)
4469  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4470  ;;
4471  *)
4472  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473for as_dir in $PATH
4474do
4475  IFS=$as_save_IFS
4476  test -z "$as_dir" && as_dir=.
4477    for ac_exec_ext in '' $ac_executable_extensions; do
4478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4479    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4481    break 2
4482  fi
4483done
4484  done
4485IFS=$as_save_IFS
4486
4487  ;;
4488esac
4489fi
4490PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4491if test -n "$PKG_CONFIG"; then
4492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4493$as_echo "$PKG_CONFIG" >&6; }
4494else
4495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496$as_echo "no" >&6; }
4497fi
4498
4499
4500fi
4501if test -z "$ac_cv_path_PKG_CONFIG"; then
4502  ac_pt_PKG_CONFIG=$PKG_CONFIG
4503  # Extract the first word of "pkg-config", so it can be a program name with args.
4504set dummy pkg-config; ac_word=$2
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4506$as_echo_n "checking for $ac_word... " >&6; }
4507if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4508  $as_echo_n "(cached) " >&6
4509else
4510  case $ac_pt_PKG_CONFIG in
4511  [\\/]* | ?:[\\/]*)
4512  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4513  ;;
4514  *)
4515  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516for as_dir in $PATH
4517do
4518  IFS=$as_save_IFS
4519  test -z "$as_dir" && as_dir=.
4520    for ac_exec_ext in '' $ac_executable_extensions; do
4521  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4522    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4523    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4524    break 2
4525  fi
4526done
4527  done
4528IFS=$as_save_IFS
4529
4530  ;;
4531esac
4532fi
4533ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4534if test -n "$ac_pt_PKG_CONFIG"; then
4535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4536$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4537else
4538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539$as_echo "no" >&6; }
4540fi
4541
4542  if test "x$ac_pt_PKG_CONFIG" = x; then
4543    PKG_CONFIG=""
4544  else
4545    case $cross_compiling:$ac_tool_warned in
4546yes:)
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4549ac_tool_warned=yes ;;
4550esac
4551    PKG_CONFIG=$ac_pt_PKG_CONFIG
4552  fi
4553else
4554  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4555fi
4556
4557fi
4558if test -n "$PKG_CONFIG"; then
4559	_pkg_min_version=0.9.0
4560	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4561$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4562	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4563		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4564$as_echo "yes" >&6; }
4565	else
4566		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567$as_echo "no" >&6; }
4568		PKG_CONFIG=""
4569	fi
4570fi
4571# Make sure we can run config.sub.
4572$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4573  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4574
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4576$as_echo_n "checking build system type... " >&6; }
4577if ${ac_cv_build+:} false; then :
4578  $as_echo_n "(cached) " >&6
4579else
4580  ac_build_alias=$build_alias
4581test "x$ac_build_alias" = x &&
4582  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4583test "x$ac_build_alias" = x &&
4584  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4585ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4586  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4587
4588fi
4589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4590$as_echo "$ac_cv_build" >&6; }
4591case $ac_cv_build in
4592*-*-*) ;;
4593*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4594esac
4595build=$ac_cv_build
4596ac_save_IFS=$IFS; IFS='-'
4597set x $ac_cv_build
4598shift
4599build_cpu=$1
4600build_vendor=$2
4601shift; shift
4602# Remember, the first character of IFS is used to create $*,
4603# except with old shells:
4604build_os=$*
4605IFS=$ac_save_IFS
4606case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4607
4608
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4610$as_echo_n "checking host system type... " >&6; }
4611if ${ac_cv_host+:} false; then :
4612  $as_echo_n "(cached) " >&6
4613else
4614  if test "x$host_alias" = x; then
4615  ac_cv_host=$ac_cv_build
4616else
4617  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4618    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4619fi
4620
4621fi
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4623$as_echo "$ac_cv_host" >&6; }
4624case $ac_cv_host in
4625*-*-*) ;;
4626*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4627esac
4628host=$ac_cv_host
4629ac_save_IFS=$IFS; IFS='-'
4630set x $ac_cv_host
4631shift
4632host_cpu=$1
4633host_vendor=$2
4634shift; shift
4635# Remember, the first character of IFS is used to create $*,
4636# except with old shells:
4637host_os=$*
4638IFS=$ac_save_IFS
4639case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4640
4641
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4643$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4644if ${ac_cv_path_SED+:} false; then :
4645  $as_echo_n "(cached) " >&6
4646else
4647            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4648     for ac_i in 1 2 3 4 5 6 7; do
4649       ac_script="$ac_script$as_nl$ac_script"
4650     done
4651     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4652     { ac_script=; unset ac_script;}
4653     if test -z "$SED"; then
4654  ac_path_SED_found=false
4655  # Loop through the user's path and test for each of PROGNAME-LIST
4656  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659  IFS=$as_save_IFS
4660  test -z "$as_dir" && as_dir=.
4661    for ac_prog in sed gsed; do
4662    for ac_exec_ext in '' $ac_executable_extensions; do
4663      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4664      as_fn_executable_p "$ac_path_SED" || continue
4665# Check for GNU ac_path_SED and select it if it is found.
4666  # Check for GNU $ac_path_SED
4667case `"$ac_path_SED" --version 2>&1` in
4668*GNU*)
4669  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4670*)
4671  ac_count=0
4672  $as_echo_n 0123456789 >"conftest.in"
4673  while :
4674  do
4675    cat "conftest.in" "conftest.in" >"conftest.tmp"
4676    mv "conftest.tmp" "conftest.in"
4677    cp "conftest.in" "conftest.nl"
4678    $as_echo '' >> "conftest.nl"
4679    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4680    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4681    as_fn_arith $ac_count + 1 && ac_count=$as_val
4682    if test $ac_count -gt ${ac_path_SED_max-0}; then
4683      # Best one so far, save it but keep looking for a better one
4684      ac_cv_path_SED="$ac_path_SED"
4685      ac_path_SED_max=$ac_count
4686    fi
4687    # 10*(2^10) chars as input seems more than enough
4688    test $ac_count -gt 10 && break
4689  done
4690  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4691esac
4692
4693      $ac_path_SED_found && break 3
4694    done
4695  done
4696  done
4697IFS=$as_save_IFS
4698  if test -z "$ac_cv_path_SED"; then
4699    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4700  fi
4701else
4702  ac_cv_path_SED=$SED
4703fi
4704
4705fi
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4707$as_echo "$ac_cv_path_SED" >&6; }
4708 SED="$ac_cv_path_SED"
4709  rm -f conftest.sed
4710
4711
4712
4713
4714
4715
4716# Check whether --enable-selective-werror was given.
4717if test "${enable_selective_werror+set}" = set; then :
4718  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4719else
4720  SELECTIVE_WERROR=yes
4721fi
4722
4723
4724
4725
4726
4727# -v is too short to test reliably with XORG_TESTSET_CFLAG
4728if test "x$SUNCC" = "xyes"; then
4729    BASE_CFLAGS="-v"
4730else
4731    BASE_CFLAGS=""
4732fi
4733
4734# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748xorg_testset_save_CFLAGS="$CFLAGS"
4749
4750if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4751	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4752	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4753$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4754if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4755  $as_echo_n "(cached) " >&6
4756else
4757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758/* end confdefs.h.  */
4759int i;
4760_ACEOF
4761if ac_fn_c_try_compile "$LINENO"; then :
4762  xorg_cv_cc_flag_unknown_warning_option=yes
4763else
4764  xorg_cv_cc_flag_unknown_warning_option=no
4765fi
4766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767fi
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4769$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4770	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4771	CFLAGS="$xorg_testset_save_CFLAGS"
4772fi
4773
4774if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4775	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4776		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4777	fi
4778	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4779	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4780$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4781if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4782  $as_echo_n "(cached) " >&6
4783else
4784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785/* end confdefs.h.  */
4786int i;
4787_ACEOF
4788if ac_fn_c_try_compile "$LINENO"; then :
4789  xorg_cv_cc_flag_unused_command_line_argument=yes
4790else
4791  xorg_cv_cc_flag_unused_command_line_argument=no
4792fi
4793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794fi
4795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4796$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4797	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4798	CFLAGS="$xorg_testset_save_CFLAGS"
4799fi
4800
4801found="no"
4802
4803	if test $found = "no" ; then
4804		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4805			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4806		fi
4807
4808		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4809			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4810		fi
4811
4812		CFLAGS="$CFLAGS -Wall"
4813
4814		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4815$as_echo_n "checking if $CC supports-Wall... " >&6; }
4816		cacheid=xorg_cv_cc_flag__Wall
4817		if eval \${$cacheid+:} false; then :
4818  $as_echo_n "(cached) " >&6
4819else
4820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821/* end confdefs.h.  */
4822int i;
4823int
4824main ()
4825{
4826
4827  ;
4828  return 0;
4829}
4830_ACEOF
4831if ac_fn_c_try_link "$LINENO"; then :
4832  eval $cacheid=yes
4833else
4834  eval $cacheid=no
4835fi
4836rm -f core conftest.err conftest.$ac_objext \
4837    conftest$ac_exeext conftest.$ac_ext
4838fi
4839
4840
4841		CFLAGS="$xorg_testset_save_CFLAGS"
4842
4843		eval supported=\$$cacheid
4844		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4845$as_echo "$supported" >&6; }
4846		if test "$supported" = "yes" ; then
4847			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4848			found="yes"
4849		fi
4850	fi
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866xorg_testset_save_CFLAGS="$CFLAGS"
4867
4868if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4869	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4870	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4871$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4872if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4873  $as_echo_n "(cached) " >&6
4874else
4875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876/* end confdefs.h.  */
4877int i;
4878_ACEOF
4879if ac_fn_c_try_compile "$LINENO"; then :
4880  xorg_cv_cc_flag_unknown_warning_option=yes
4881else
4882  xorg_cv_cc_flag_unknown_warning_option=no
4883fi
4884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885fi
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4887$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4888	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4889	CFLAGS="$xorg_testset_save_CFLAGS"
4890fi
4891
4892if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4893	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4894		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4895	fi
4896	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4897	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4898$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4899if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4900  $as_echo_n "(cached) " >&6
4901else
4902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903/* end confdefs.h.  */
4904int i;
4905_ACEOF
4906if ac_fn_c_try_compile "$LINENO"; then :
4907  xorg_cv_cc_flag_unused_command_line_argument=yes
4908else
4909  xorg_cv_cc_flag_unused_command_line_argument=no
4910fi
4911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4912fi
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4914$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4915	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4916	CFLAGS="$xorg_testset_save_CFLAGS"
4917fi
4918
4919found="no"
4920
4921	if test $found = "no" ; then
4922		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4923			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4924		fi
4925
4926		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4927			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4928		fi
4929
4930		CFLAGS="$CFLAGS -Wpointer-arith"
4931
4932		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4933$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4934		cacheid=xorg_cv_cc_flag__Wpointer_arith
4935		if eval \${$cacheid+:} false; then :
4936  $as_echo_n "(cached) " >&6
4937else
4938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939/* end confdefs.h.  */
4940int i;
4941int
4942main ()
4943{
4944
4945  ;
4946  return 0;
4947}
4948_ACEOF
4949if ac_fn_c_try_link "$LINENO"; then :
4950  eval $cacheid=yes
4951else
4952  eval $cacheid=no
4953fi
4954rm -f core conftest.err conftest.$ac_objext \
4955    conftest$ac_exeext conftest.$ac_ext
4956fi
4957
4958
4959		CFLAGS="$xorg_testset_save_CFLAGS"
4960
4961		eval supported=\$$cacheid
4962		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4963$as_echo "$supported" >&6; }
4964		if test "$supported" = "yes" ; then
4965			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4966			found="yes"
4967		fi
4968	fi
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984xorg_testset_save_CFLAGS="$CFLAGS"
4985
4986if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4987	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4988	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4989$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4990if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4991  $as_echo_n "(cached) " >&6
4992else
4993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994/* end confdefs.h.  */
4995int i;
4996_ACEOF
4997if ac_fn_c_try_compile "$LINENO"; then :
4998  xorg_cv_cc_flag_unknown_warning_option=yes
4999else
5000  xorg_cv_cc_flag_unknown_warning_option=no
5001fi
5002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003fi
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5005$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5006	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5007	CFLAGS="$xorg_testset_save_CFLAGS"
5008fi
5009
5010if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5011	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5012		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5013	fi
5014	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5015	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5016$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5017if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5018  $as_echo_n "(cached) " >&6
5019else
5020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021/* end confdefs.h.  */
5022int i;
5023_ACEOF
5024if ac_fn_c_try_compile "$LINENO"; then :
5025  xorg_cv_cc_flag_unused_command_line_argument=yes
5026else
5027  xorg_cv_cc_flag_unused_command_line_argument=no
5028fi
5029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030fi
5031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5032$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5033	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5034	CFLAGS="$xorg_testset_save_CFLAGS"
5035fi
5036
5037found="no"
5038
5039	if test $found = "no" ; then
5040		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5041			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5042		fi
5043
5044		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5045			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5046		fi
5047
5048		CFLAGS="$CFLAGS -Wmissing-declarations"
5049
5050		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
5051$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
5052		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5053		if eval \${$cacheid+:} false; then :
5054  $as_echo_n "(cached) " >&6
5055else
5056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057/* end confdefs.h.  */
5058int i;
5059int
5060main ()
5061{
5062
5063  ;
5064  return 0;
5065}
5066_ACEOF
5067if ac_fn_c_try_link "$LINENO"; then :
5068  eval $cacheid=yes
5069else
5070  eval $cacheid=no
5071fi
5072rm -f core conftest.err conftest.$ac_objext \
5073    conftest$ac_exeext conftest.$ac_ext
5074fi
5075
5076
5077		CFLAGS="$xorg_testset_save_CFLAGS"
5078
5079		eval supported=\$$cacheid
5080		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5081$as_echo "$supported" >&6; }
5082		if test "$supported" = "yes" ; then
5083			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5084			found="yes"
5085		fi
5086	fi
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102xorg_testset_save_CFLAGS="$CFLAGS"
5103
5104if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5105	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5106	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5107$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5108if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5109  $as_echo_n "(cached) " >&6
5110else
5111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112/* end confdefs.h.  */
5113int i;
5114_ACEOF
5115if ac_fn_c_try_compile "$LINENO"; then :
5116  xorg_cv_cc_flag_unknown_warning_option=yes
5117else
5118  xorg_cv_cc_flag_unknown_warning_option=no
5119fi
5120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5121fi
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5123$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5124	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5125	CFLAGS="$xorg_testset_save_CFLAGS"
5126fi
5127
5128if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5129	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5130		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5131	fi
5132	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5133	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5134$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5135if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5136  $as_echo_n "(cached) " >&6
5137else
5138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139/* end confdefs.h.  */
5140int i;
5141_ACEOF
5142if ac_fn_c_try_compile "$LINENO"; then :
5143  xorg_cv_cc_flag_unused_command_line_argument=yes
5144else
5145  xorg_cv_cc_flag_unused_command_line_argument=no
5146fi
5147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5148fi
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5150$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5151	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5152	CFLAGS="$xorg_testset_save_CFLAGS"
5153fi
5154
5155found="no"
5156
5157	if test $found = "no" ; then
5158		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5159			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5160		fi
5161
5162		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5163			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5164		fi
5165
5166		CFLAGS="$CFLAGS -Wformat=2"
5167
5168		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
5169$as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
5170		cacheid=xorg_cv_cc_flag__Wformat_2
5171		if eval \${$cacheid+:} false; then :
5172  $as_echo_n "(cached) " >&6
5173else
5174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175/* end confdefs.h.  */
5176int i;
5177int
5178main ()
5179{
5180
5181  ;
5182  return 0;
5183}
5184_ACEOF
5185if ac_fn_c_try_link "$LINENO"; then :
5186  eval $cacheid=yes
5187else
5188  eval $cacheid=no
5189fi
5190rm -f core conftest.err conftest.$ac_objext \
5191    conftest$ac_exeext conftest.$ac_ext
5192fi
5193
5194
5195		CFLAGS="$xorg_testset_save_CFLAGS"
5196
5197		eval supported=\$$cacheid
5198		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5199$as_echo "$supported" >&6; }
5200		if test "$supported" = "yes" ; then
5201			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5202			found="yes"
5203		fi
5204	fi
5205
5206	if test $found = "no" ; then
5207		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5208			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5209		fi
5210
5211		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5212			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5213		fi
5214
5215		CFLAGS="$CFLAGS -Wformat"
5216
5217		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5218$as_echo_n "checking if $CC supports-Wformat... " >&6; }
5219		cacheid=xorg_cv_cc_flag__Wformat
5220		if eval \${$cacheid+:} false; then :
5221  $as_echo_n "(cached) " >&6
5222else
5223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224/* end confdefs.h.  */
5225int i;
5226int
5227main ()
5228{
5229
5230  ;
5231  return 0;
5232}
5233_ACEOF
5234if ac_fn_c_try_link "$LINENO"; then :
5235  eval $cacheid=yes
5236else
5237  eval $cacheid=no
5238fi
5239rm -f core conftest.err conftest.$ac_objext \
5240    conftest$ac_exeext conftest.$ac_ext
5241fi
5242
5243
5244		CFLAGS="$xorg_testset_save_CFLAGS"
5245
5246		eval supported=\$$cacheid
5247		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5248$as_echo "$supported" >&6; }
5249		if test "$supported" = "yes" ; then
5250			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5251			found="yes"
5252		fi
5253	fi
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271xorg_testset_save_CFLAGS="$CFLAGS"
5272
5273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5274	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5275	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5276$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5277if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5278  $as_echo_n "(cached) " >&6
5279else
5280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281/* end confdefs.h.  */
5282int i;
5283_ACEOF
5284if ac_fn_c_try_compile "$LINENO"; then :
5285  xorg_cv_cc_flag_unknown_warning_option=yes
5286else
5287  xorg_cv_cc_flag_unknown_warning_option=no
5288fi
5289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290fi
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5292$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5293	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5294	CFLAGS="$xorg_testset_save_CFLAGS"
5295fi
5296
5297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5298	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5299		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5300	fi
5301	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5302	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5303$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5304if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5305  $as_echo_n "(cached) " >&6
5306else
5307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308/* end confdefs.h.  */
5309int i;
5310_ACEOF
5311if ac_fn_c_try_compile "$LINENO"; then :
5312  xorg_cv_cc_flag_unused_command_line_argument=yes
5313else
5314  xorg_cv_cc_flag_unused_command_line_argument=no
5315fi
5316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5317fi
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5319$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5320	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5321	CFLAGS="$xorg_testset_save_CFLAGS"
5322fi
5323
5324found="no"
5325
5326	if test $found = "no" ; then
5327		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5328			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5329		fi
5330
5331		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5332			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5333		fi
5334
5335		CFLAGS="$CFLAGS -Wstrict-prototypes"
5336
5337		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5338$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5339		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5340		if eval \${$cacheid+:} false; then :
5341  $as_echo_n "(cached) " >&6
5342else
5343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344/* end confdefs.h.  */
5345int i;
5346int
5347main ()
5348{
5349
5350  ;
5351  return 0;
5352}
5353_ACEOF
5354if ac_fn_c_try_link "$LINENO"; then :
5355  eval $cacheid=yes
5356else
5357  eval $cacheid=no
5358fi
5359rm -f core conftest.err conftest.$ac_objext \
5360    conftest$ac_exeext conftest.$ac_ext
5361fi
5362
5363
5364		CFLAGS="$xorg_testset_save_CFLAGS"
5365
5366		eval supported=\$$cacheid
5367		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5368$as_echo "$supported" >&6; }
5369		if test "$supported" = "yes" ; then
5370			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5371			found="yes"
5372		fi
5373	fi
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389xorg_testset_save_CFLAGS="$CFLAGS"
5390
5391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5392	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5393	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5394$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5395if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5396  $as_echo_n "(cached) " >&6
5397else
5398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399/* end confdefs.h.  */
5400int i;
5401_ACEOF
5402if ac_fn_c_try_compile "$LINENO"; then :
5403  xorg_cv_cc_flag_unknown_warning_option=yes
5404else
5405  xorg_cv_cc_flag_unknown_warning_option=no
5406fi
5407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408fi
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5410$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5411	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5412	CFLAGS="$xorg_testset_save_CFLAGS"
5413fi
5414
5415if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5416	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5417		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5418	fi
5419	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5420	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5421$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5422if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5423  $as_echo_n "(cached) " >&6
5424else
5425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426/* end confdefs.h.  */
5427int i;
5428_ACEOF
5429if ac_fn_c_try_compile "$LINENO"; then :
5430  xorg_cv_cc_flag_unused_command_line_argument=yes
5431else
5432  xorg_cv_cc_flag_unused_command_line_argument=no
5433fi
5434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435fi
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5437$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5438	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5439	CFLAGS="$xorg_testset_save_CFLAGS"
5440fi
5441
5442found="no"
5443
5444	if test $found = "no" ; then
5445		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5446			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5447		fi
5448
5449		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5450			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5451		fi
5452
5453		CFLAGS="$CFLAGS -Wmissing-prototypes"
5454
5455		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5456$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5457		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5458		if eval \${$cacheid+:} false; then :
5459  $as_echo_n "(cached) " >&6
5460else
5461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462/* end confdefs.h.  */
5463int i;
5464int
5465main ()
5466{
5467
5468  ;
5469  return 0;
5470}
5471_ACEOF
5472if ac_fn_c_try_link "$LINENO"; then :
5473  eval $cacheid=yes
5474else
5475  eval $cacheid=no
5476fi
5477rm -f core conftest.err conftest.$ac_objext \
5478    conftest$ac_exeext conftest.$ac_ext
5479fi
5480
5481
5482		CFLAGS="$xorg_testset_save_CFLAGS"
5483
5484		eval supported=\$$cacheid
5485		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5486$as_echo "$supported" >&6; }
5487		if test "$supported" = "yes" ; then
5488			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5489			found="yes"
5490		fi
5491	fi
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507xorg_testset_save_CFLAGS="$CFLAGS"
5508
5509if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5510	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5511	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5512$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5513if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5514  $as_echo_n "(cached) " >&6
5515else
5516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517/* end confdefs.h.  */
5518int i;
5519_ACEOF
5520if ac_fn_c_try_compile "$LINENO"; then :
5521  xorg_cv_cc_flag_unknown_warning_option=yes
5522else
5523  xorg_cv_cc_flag_unknown_warning_option=no
5524fi
5525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526fi
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5528$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5529	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5530	CFLAGS="$xorg_testset_save_CFLAGS"
5531fi
5532
5533if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5534	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5535		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5536	fi
5537	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5538	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5539$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5540if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5541  $as_echo_n "(cached) " >&6
5542else
5543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544/* end confdefs.h.  */
5545int i;
5546_ACEOF
5547if ac_fn_c_try_compile "$LINENO"; then :
5548  xorg_cv_cc_flag_unused_command_line_argument=yes
5549else
5550  xorg_cv_cc_flag_unused_command_line_argument=no
5551fi
5552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553fi
5554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5555$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5556	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5557	CFLAGS="$xorg_testset_save_CFLAGS"
5558fi
5559
5560found="no"
5561
5562	if test $found = "no" ; then
5563		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5564			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5565		fi
5566
5567		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5568			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5569		fi
5570
5571		CFLAGS="$CFLAGS -Wnested-externs"
5572
5573		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5574$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5575		cacheid=xorg_cv_cc_flag__Wnested_externs
5576		if eval \${$cacheid+:} false; then :
5577  $as_echo_n "(cached) " >&6
5578else
5579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580/* end confdefs.h.  */
5581int i;
5582int
5583main ()
5584{
5585
5586  ;
5587  return 0;
5588}
5589_ACEOF
5590if ac_fn_c_try_link "$LINENO"; then :
5591  eval $cacheid=yes
5592else
5593  eval $cacheid=no
5594fi
5595rm -f core conftest.err conftest.$ac_objext \
5596    conftest$ac_exeext conftest.$ac_ext
5597fi
5598
5599
5600		CFLAGS="$xorg_testset_save_CFLAGS"
5601
5602		eval supported=\$$cacheid
5603		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5604$as_echo "$supported" >&6; }
5605		if test "$supported" = "yes" ; then
5606			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5607			found="yes"
5608		fi
5609	fi
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625xorg_testset_save_CFLAGS="$CFLAGS"
5626
5627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5628	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5629	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5630$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5631if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5632  $as_echo_n "(cached) " >&6
5633else
5634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635/* end confdefs.h.  */
5636int i;
5637_ACEOF
5638if ac_fn_c_try_compile "$LINENO"; then :
5639  xorg_cv_cc_flag_unknown_warning_option=yes
5640else
5641  xorg_cv_cc_flag_unknown_warning_option=no
5642fi
5643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5644fi
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5646$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5647	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5648	CFLAGS="$xorg_testset_save_CFLAGS"
5649fi
5650
5651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5652	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5653		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5654	fi
5655	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5656	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5657$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5658if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5659  $as_echo_n "(cached) " >&6
5660else
5661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662/* end confdefs.h.  */
5663int i;
5664_ACEOF
5665if ac_fn_c_try_compile "$LINENO"; then :
5666  xorg_cv_cc_flag_unused_command_line_argument=yes
5667else
5668  xorg_cv_cc_flag_unused_command_line_argument=no
5669fi
5670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5671fi
5672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5673$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5674	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5675	CFLAGS="$xorg_testset_save_CFLAGS"
5676fi
5677
5678found="no"
5679
5680	if test $found = "no" ; then
5681		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5682			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5683		fi
5684
5685		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5686			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5687		fi
5688
5689		CFLAGS="$CFLAGS -Wbad-function-cast"
5690
5691		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5692$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5693		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5694		if eval \${$cacheid+:} false; then :
5695  $as_echo_n "(cached) " >&6
5696else
5697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698/* end confdefs.h.  */
5699int i;
5700int
5701main ()
5702{
5703
5704  ;
5705  return 0;
5706}
5707_ACEOF
5708if ac_fn_c_try_link "$LINENO"; then :
5709  eval $cacheid=yes
5710else
5711  eval $cacheid=no
5712fi
5713rm -f core conftest.err conftest.$ac_objext \
5714    conftest$ac_exeext conftest.$ac_ext
5715fi
5716
5717
5718		CFLAGS="$xorg_testset_save_CFLAGS"
5719
5720		eval supported=\$$cacheid
5721		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5722$as_echo "$supported" >&6; }
5723		if test "$supported" = "yes" ; then
5724			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5725			found="yes"
5726		fi
5727	fi
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743xorg_testset_save_CFLAGS="$CFLAGS"
5744
5745if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5746	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5747	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5748$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5749if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5750  $as_echo_n "(cached) " >&6
5751else
5752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753/* end confdefs.h.  */
5754int i;
5755_ACEOF
5756if ac_fn_c_try_compile "$LINENO"; then :
5757  xorg_cv_cc_flag_unknown_warning_option=yes
5758else
5759  xorg_cv_cc_flag_unknown_warning_option=no
5760fi
5761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762fi
5763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5764$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5765	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5766	CFLAGS="$xorg_testset_save_CFLAGS"
5767fi
5768
5769if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5770	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5771		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5772	fi
5773	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5774	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5775$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5776if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5777  $as_echo_n "(cached) " >&6
5778else
5779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780/* end confdefs.h.  */
5781int i;
5782_ACEOF
5783if ac_fn_c_try_compile "$LINENO"; then :
5784  xorg_cv_cc_flag_unused_command_line_argument=yes
5785else
5786  xorg_cv_cc_flag_unused_command_line_argument=no
5787fi
5788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789fi
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5791$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5792	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5793	CFLAGS="$xorg_testset_save_CFLAGS"
5794fi
5795
5796found="no"
5797
5798	if test $found = "no" ; then
5799		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5800			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5801		fi
5802
5803		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5804			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5805		fi
5806
5807		CFLAGS="$CFLAGS -Wold-style-definition"
5808
5809		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5810$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5811		cacheid=xorg_cv_cc_flag__Wold_style_definition
5812		if eval \${$cacheid+:} false; then :
5813  $as_echo_n "(cached) " >&6
5814else
5815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816/* end confdefs.h.  */
5817int i;
5818int
5819main ()
5820{
5821
5822  ;
5823  return 0;
5824}
5825_ACEOF
5826if ac_fn_c_try_link "$LINENO"; then :
5827  eval $cacheid=yes
5828else
5829  eval $cacheid=no
5830fi
5831rm -f core conftest.err conftest.$ac_objext \
5832    conftest$ac_exeext conftest.$ac_ext
5833fi
5834
5835
5836		CFLAGS="$xorg_testset_save_CFLAGS"
5837
5838		eval supported=\$$cacheid
5839		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5840$as_echo "$supported" >&6; }
5841		if test "$supported" = "yes" ; then
5842			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5843			found="yes"
5844		fi
5845	fi
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861xorg_testset_save_CFLAGS="$CFLAGS"
5862
5863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5864	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5865	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5866$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5867if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5868  $as_echo_n "(cached) " >&6
5869else
5870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871/* end confdefs.h.  */
5872int i;
5873_ACEOF
5874if ac_fn_c_try_compile "$LINENO"; then :
5875  xorg_cv_cc_flag_unknown_warning_option=yes
5876else
5877  xorg_cv_cc_flag_unknown_warning_option=no
5878fi
5879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880fi
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5882$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5883	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5884	CFLAGS="$xorg_testset_save_CFLAGS"
5885fi
5886
5887if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5888	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5889		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5890	fi
5891	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5892	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5893$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5894if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5895  $as_echo_n "(cached) " >&6
5896else
5897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898/* end confdefs.h.  */
5899int i;
5900_ACEOF
5901if ac_fn_c_try_compile "$LINENO"; then :
5902  xorg_cv_cc_flag_unused_command_line_argument=yes
5903else
5904  xorg_cv_cc_flag_unused_command_line_argument=no
5905fi
5906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5907fi
5908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5909$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5910	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5911	CFLAGS="$xorg_testset_save_CFLAGS"
5912fi
5913
5914found="no"
5915
5916	if test $found = "no" ; then
5917		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5918			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5919		fi
5920
5921		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5922			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5923		fi
5924
5925		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5926
5927		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5928$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5929		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5930		if eval \${$cacheid+:} false; then :
5931  $as_echo_n "(cached) " >&6
5932else
5933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934/* end confdefs.h.  */
5935int i;
5936int
5937main ()
5938{
5939
5940  ;
5941  return 0;
5942}
5943_ACEOF
5944if ac_fn_c_try_link "$LINENO"; then :
5945  eval $cacheid=yes
5946else
5947  eval $cacheid=no
5948fi
5949rm -f core conftest.err conftest.$ac_objext \
5950    conftest$ac_exeext conftest.$ac_ext
5951fi
5952
5953
5954		CFLAGS="$xorg_testset_save_CFLAGS"
5955
5956		eval supported=\$$cacheid
5957		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5958$as_echo "$supported" >&6; }
5959		if test "$supported" = "yes" ; then
5960			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5961			found="yes"
5962		fi
5963	fi
5964
5965
5966
5967
5968
5969# This chunk adds additional warnings that could catch undesired effects.
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983xorg_testset_save_CFLAGS="$CFLAGS"
5984
5985if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5986	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5987	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5988$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5989if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5990  $as_echo_n "(cached) " >&6
5991else
5992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993/* end confdefs.h.  */
5994int i;
5995_ACEOF
5996if ac_fn_c_try_compile "$LINENO"; then :
5997  xorg_cv_cc_flag_unknown_warning_option=yes
5998else
5999  xorg_cv_cc_flag_unknown_warning_option=no
6000fi
6001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6002fi
6003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6004$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6005	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6006	CFLAGS="$xorg_testset_save_CFLAGS"
6007fi
6008
6009if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6010	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6011		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6012	fi
6013	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6014	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6015$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6016if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6017  $as_echo_n "(cached) " >&6
6018else
6019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020/* end confdefs.h.  */
6021int i;
6022_ACEOF
6023if ac_fn_c_try_compile "$LINENO"; then :
6024  xorg_cv_cc_flag_unused_command_line_argument=yes
6025else
6026  xorg_cv_cc_flag_unused_command_line_argument=no
6027fi
6028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029fi
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6031$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6032	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6033	CFLAGS="$xorg_testset_save_CFLAGS"
6034fi
6035
6036found="no"
6037
6038	if test $found = "no" ; then
6039		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6040			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6041		fi
6042
6043		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6044			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6045		fi
6046
6047		CFLAGS="$CFLAGS -Wunused"
6048
6049		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
6050$as_echo_n "checking if $CC supports-Wunused... " >&6; }
6051		cacheid=xorg_cv_cc_flag__Wunused
6052		if eval \${$cacheid+:} false; then :
6053  $as_echo_n "(cached) " >&6
6054else
6055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056/* end confdefs.h.  */
6057int i;
6058int
6059main ()
6060{
6061
6062  ;
6063  return 0;
6064}
6065_ACEOF
6066if ac_fn_c_try_link "$LINENO"; then :
6067  eval $cacheid=yes
6068else
6069  eval $cacheid=no
6070fi
6071rm -f core conftest.err conftest.$ac_objext \
6072    conftest$ac_exeext conftest.$ac_ext
6073fi
6074
6075
6076		CFLAGS="$xorg_testset_save_CFLAGS"
6077
6078		eval supported=\$$cacheid
6079		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6080$as_echo "$supported" >&6; }
6081		if test "$supported" = "yes" ; then
6082			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6083			found="yes"
6084		fi
6085	fi
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101xorg_testset_save_CFLAGS="$CFLAGS"
6102
6103if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6104	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6105	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6106$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6107if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6108  $as_echo_n "(cached) " >&6
6109else
6110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111/* end confdefs.h.  */
6112int i;
6113_ACEOF
6114if ac_fn_c_try_compile "$LINENO"; then :
6115  xorg_cv_cc_flag_unknown_warning_option=yes
6116else
6117  xorg_cv_cc_flag_unknown_warning_option=no
6118fi
6119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120fi
6121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6122$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6123	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6124	CFLAGS="$xorg_testset_save_CFLAGS"
6125fi
6126
6127if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6128	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6129		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6130	fi
6131	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6132	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6133$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6134if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6135  $as_echo_n "(cached) " >&6
6136else
6137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138/* end confdefs.h.  */
6139int i;
6140_ACEOF
6141if ac_fn_c_try_compile "$LINENO"; then :
6142  xorg_cv_cc_flag_unused_command_line_argument=yes
6143else
6144  xorg_cv_cc_flag_unused_command_line_argument=no
6145fi
6146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147fi
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6149$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6150	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6151	CFLAGS="$xorg_testset_save_CFLAGS"
6152fi
6153
6154found="no"
6155
6156	if test $found = "no" ; then
6157		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6158			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6159		fi
6160
6161		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6162			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6163		fi
6164
6165		CFLAGS="$CFLAGS -Wuninitialized"
6166
6167		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
6168$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
6169		cacheid=xorg_cv_cc_flag__Wuninitialized
6170		if eval \${$cacheid+:} false; then :
6171  $as_echo_n "(cached) " >&6
6172else
6173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174/* end confdefs.h.  */
6175int i;
6176int
6177main ()
6178{
6179
6180  ;
6181  return 0;
6182}
6183_ACEOF
6184if ac_fn_c_try_link "$LINENO"; then :
6185  eval $cacheid=yes
6186else
6187  eval $cacheid=no
6188fi
6189rm -f core conftest.err conftest.$ac_objext \
6190    conftest$ac_exeext conftest.$ac_ext
6191fi
6192
6193
6194		CFLAGS="$xorg_testset_save_CFLAGS"
6195
6196		eval supported=\$$cacheid
6197		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6198$as_echo "$supported" >&6; }
6199		if test "$supported" = "yes" ; then
6200			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6201			found="yes"
6202		fi
6203	fi
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219xorg_testset_save_CFLAGS="$CFLAGS"
6220
6221if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6222	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6223	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6224$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6225if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6226  $as_echo_n "(cached) " >&6
6227else
6228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229/* end confdefs.h.  */
6230int i;
6231_ACEOF
6232if ac_fn_c_try_compile "$LINENO"; then :
6233  xorg_cv_cc_flag_unknown_warning_option=yes
6234else
6235  xorg_cv_cc_flag_unknown_warning_option=no
6236fi
6237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6238fi
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6240$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6241	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6242	CFLAGS="$xorg_testset_save_CFLAGS"
6243fi
6244
6245if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6246	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6247		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6248	fi
6249	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6250	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6251$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6252if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6253  $as_echo_n "(cached) " >&6
6254else
6255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256/* end confdefs.h.  */
6257int i;
6258_ACEOF
6259if ac_fn_c_try_compile "$LINENO"; then :
6260  xorg_cv_cc_flag_unused_command_line_argument=yes
6261else
6262  xorg_cv_cc_flag_unused_command_line_argument=no
6263fi
6264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265fi
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6267$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6268	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6269	CFLAGS="$xorg_testset_save_CFLAGS"
6270fi
6271
6272found="no"
6273
6274	if test $found = "no" ; then
6275		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6276			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6277		fi
6278
6279		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6280			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6281		fi
6282
6283		CFLAGS="$CFLAGS -Wshadow"
6284
6285		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6286$as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6287		cacheid=xorg_cv_cc_flag__Wshadow
6288		if eval \${$cacheid+:} false; then :
6289  $as_echo_n "(cached) " >&6
6290else
6291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292/* end confdefs.h.  */
6293int i;
6294int
6295main ()
6296{
6297
6298  ;
6299  return 0;
6300}
6301_ACEOF
6302if ac_fn_c_try_link "$LINENO"; then :
6303  eval $cacheid=yes
6304else
6305  eval $cacheid=no
6306fi
6307rm -f core conftest.err conftest.$ac_objext \
6308    conftest$ac_exeext conftest.$ac_ext
6309fi
6310
6311
6312		CFLAGS="$xorg_testset_save_CFLAGS"
6313
6314		eval supported=\$$cacheid
6315		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6316$as_echo "$supported" >&6; }
6317		if test "$supported" = "yes" ; then
6318			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6319			found="yes"
6320		fi
6321	fi
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337xorg_testset_save_CFLAGS="$CFLAGS"
6338
6339if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6340	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6341	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6342$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6343if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6344  $as_echo_n "(cached) " >&6
6345else
6346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347/* end confdefs.h.  */
6348int i;
6349_ACEOF
6350if ac_fn_c_try_compile "$LINENO"; then :
6351  xorg_cv_cc_flag_unknown_warning_option=yes
6352else
6353  xorg_cv_cc_flag_unknown_warning_option=no
6354fi
6355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6356fi
6357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6358$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6359	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6360	CFLAGS="$xorg_testset_save_CFLAGS"
6361fi
6362
6363if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6364	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6365		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6366	fi
6367	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6368	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6369$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6370if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6371  $as_echo_n "(cached) " >&6
6372else
6373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374/* end confdefs.h.  */
6375int i;
6376_ACEOF
6377if ac_fn_c_try_compile "$LINENO"; then :
6378  xorg_cv_cc_flag_unused_command_line_argument=yes
6379else
6380  xorg_cv_cc_flag_unused_command_line_argument=no
6381fi
6382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6383fi
6384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6385$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6386	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6387	CFLAGS="$xorg_testset_save_CFLAGS"
6388fi
6389
6390found="no"
6391
6392	if test $found = "no" ; then
6393		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6394			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6395		fi
6396
6397		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6398			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6399		fi
6400
6401		CFLAGS="$CFLAGS -Wcast-qual"
6402
6403		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6404$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6405		cacheid=xorg_cv_cc_flag__Wcast_qual
6406		if eval \${$cacheid+:} false; then :
6407  $as_echo_n "(cached) " >&6
6408else
6409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410/* end confdefs.h.  */
6411int i;
6412int
6413main ()
6414{
6415
6416  ;
6417  return 0;
6418}
6419_ACEOF
6420if ac_fn_c_try_link "$LINENO"; then :
6421  eval $cacheid=yes
6422else
6423  eval $cacheid=no
6424fi
6425rm -f core conftest.err conftest.$ac_objext \
6426    conftest$ac_exeext conftest.$ac_ext
6427fi
6428
6429
6430		CFLAGS="$xorg_testset_save_CFLAGS"
6431
6432		eval supported=\$$cacheid
6433		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6434$as_echo "$supported" >&6; }
6435		if test "$supported" = "yes" ; then
6436			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6437			found="yes"
6438		fi
6439	fi
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455xorg_testset_save_CFLAGS="$CFLAGS"
6456
6457if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6458	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6459	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6460$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6461if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6462  $as_echo_n "(cached) " >&6
6463else
6464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465/* end confdefs.h.  */
6466int i;
6467_ACEOF
6468if ac_fn_c_try_compile "$LINENO"; then :
6469  xorg_cv_cc_flag_unknown_warning_option=yes
6470else
6471  xorg_cv_cc_flag_unknown_warning_option=no
6472fi
6473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474fi
6475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6476$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6477	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6478	CFLAGS="$xorg_testset_save_CFLAGS"
6479fi
6480
6481if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6482	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6483		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6484	fi
6485	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6486	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6487$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6488if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6489  $as_echo_n "(cached) " >&6
6490else
6491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492/* end confdefs.h.  */
6493int i;
6494_ACEOF
6495if ac_fn_c_try_compile "$LINENO"; then :
6496  xorg_cv_cc_flag_unused_command_line_argument=yes
6497else
6498  xorg_cv_cc_flag_unused_command_line_argument=no
6499fi
6500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6501fi
6502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6503$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6504	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6505	CFLAGS="$xorg_testset_save_CFLAGS"
6506fi
6507
6508found="no"
6509
6510	if test $found = "no" ; then
6511		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6512			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6513		fi
6514
6515		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6516			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6517		fi
6518
6519		CFLAGS="$CFLAGS -Wmissing-noreturn"
6520
6521		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6522$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6523		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6524		if eval \${$cacheid+:} false; then :
6525  $as_echo_n "(cached) " >&6
6526else
6527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528/* end confdefs.h.  */
6529int i;
6530int
6531main ()
6532{
6533
6534  ;
6535  return 0;
6536}
6537_ACEOF
6538if ac_fn_c_try_link "$LINENO"; then :
6539  eval $cacheid=yes
6540else
6541  eval $cacheid=no
6542fi
6543rm -f core conftest.err conftest.$ac_objext \
6544    conftest$ac_exeext conftest.$ac_ext
6545fi
6546
6547
6548		CFLAGS="$xorg_testset_save_CFLAGS"
6549
6550		eval supported=\$$cacheid
6551		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6552$as_echo "$supported" >&6; }
6553		if test "$supported" = "yes" ; then
6554			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6555			found="yes"
6556		fi
6557	fi
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573xorg_testset_save_CFLAGS="$CFLAGS"
6574
6575if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6576	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6577	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6578$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6579if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6580  $as_echo_n "(cached) " >&6
6581else
6582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583/* end confdefs.h.  */
6584int i;
6585_ACEOF
6586if ac_fn_c_try_compile "$LINENO"; then :
6587  xorg_cv_cc_flag_unknown_warning_option=yes
6588else
6589  xorg_cv_cc_flag_unknown_warning_option=no
6590fi
6591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592fi
6593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6594$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6595	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6596	CFLAGS="$xorg_testset_save_CFLAGS"
6597fi
6598
6599if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6600	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6601		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6602	fi
6603	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6604	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6605$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6606if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6607  $as_echo_n "(cached) " >&6
6608else
6609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610/* end confdefs.h.  */
6611int i;
6612_ACEOF
6613if ac_fn_c_try_compile "$LINENO"; then :
6614  xorg_cv_cc_flag_unused_command_line_argument=yes
6615else
6616  xorg_cv_cc_flag_unused_command_line_argument=no
6617fi
6618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619fi
6620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6621$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6622	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6623	CFLAGS="$xorg_testset_save_CFLAGS"
6624fi
6625
6626found="no"
6627
6628	if test $found = "no" ; then
6629		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6630			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6631		fi
6632
6633		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6634			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6635		fi
6636
6637		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6638
6639		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6640$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6641		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6642		if eval \${$cacheid+:} false; then :
6643  $as_echo_n "(cached) " >&6
6644else
6645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646/* end confdefs.h.  */
6647int i;
6648int
6649main ()
6650{
6651
6652  ;
6653  return 0;
6654}
6655_ACEOF
6656if ac_fn_c_try_link "$LINENO"; then :
6657  eval $cacheid=yes
6658else
6659  eval $cacheid=no
6660fi
6661rm -f core conftest.err conftest.$ac_objext \
6662    conftest$ac_exeext conftest.$ac_ext
6663fi
6664
6665
6666		CFLAGS="$xorg_testset_save_CFLAGS"
6667
6668		eval supported=\$$cacheid
6669		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6670$as_echo "$supported" >&6; }
6671		if test "$supported" = "yes" ; then
6672			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6673			found="yes"
6674		fi
6675	fi
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691xorg_testset_save_CFLAGS="$CFLAGS"
6692
6693if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6694	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6695	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6696$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6697if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6698  $as_echo_n "(cached) " >&6
6699else
6700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701/* end confdefs.h.  */
6702int i;
6703_ACEOF
6704if ac_fn_c_try_compile "$LINENO"; then :
6705  xorg_cv_cc_flag_unknown_warning_option=yes
6706else
6707  xorg_cv_cc_flag_unknown_warning_option=no
6708fi
6709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710fi
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6712$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6713	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6714	CFLAGS="$xorg_testset_save_CFLAGS"
6715fi
6716
6717if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6718	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6719		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6720	fi
6721	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6722	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6723$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6724if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6725  $as_echo_n "(cached) " >&6
6726else
6727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728/* end confdefs.h.  */
6729int i;
6730_ACEOF
6731if ac_fn_c_try_compile "$LINENO"; then :
6732  xorg_cv_cc_flag_unused_command_line_argument=yes
6733else
6734  xorg_cv_cc_flag_unused_command_line_argument=no
6735fi
6736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6737fi
6738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6739$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6740	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6741	CFLAGS="$xorg_testset_save_CFLAGS"
6742fi
6743
6744found="no"
6745
6746	if test $found = "no" ; then
6747		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6748			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6749		fi
6750
6751		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6752			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6753		fi
6754
6755		CFLAGS="$CFLAGS -Wredundant-decls"
6756
6757		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6758$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6759		cacheid=xorg_cv_cc_flag__Wredundant_decls
6760		if eval \${$cacheid+:} false; then :
6761  $as_echo_n "(cached) " >&6
6762else
6763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764/* end confdefs.h.  */
6765int i;
6766int
6767main ()
6768{
6769
6770  ;
6771  return 0;
6772}
6773_ACEOF
6774if ac_fn_c_try_link "$LINENO"; then :
6775  eval $cacheid=yes
6776else
6777  eval $cacheid=no
6778fi
6779rm -f core conftest.err conftest.$ac_objext \
6780    conftest$ac_exeext conftest.$ac_ext
6781fi
6782
6783
6784		CFLAGS="$xorg_testset_save_CFLAGS"
6785
6786		eval supported=\$$cacheid
6787		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6788$as_echo "$supported" >&6; }
6789		if test "$supported" = "yes" ; then
6790			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6791			found="yes"
6792		fi
6793	fi
6794
6795
6796
6797# These are currently disabled because they are noisy.  They will be enabled
6798# in the future once the codebase is sufficiently modernized to silence
6799# them.  For now, I don't want them to drown out the other warnings.
6800# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6801# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6802# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6803
6804# Turn some warnings into errors, so we don't accidently get successful builds
6805# when there are problems that should be fixed.
6806
6807if test "x$SELECTIVE_WERROR" = "xyes" ; then
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821xorg_testset_save_CFLAGS="$CFLAGS"
6822
6823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6824	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6825	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6826$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6827if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6828  $as_echo_n "(cached) " >&6
6829else
6830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831/* end confdefs.h.  */
6832int i;
6833_ACEOF
6834if ac_fn_c_try_compile "$LINENO"; then :
6835  xorg_cv_cc_flag_unknown_warning_option=yes
6836else
6837  xorg_cv_cc_flag_unknown_warning_option=no
6838fi
6839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6840fi
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6842$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6843	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6844	CFLAGS="$xorg_testset_save_CFLAGS"
6845fi
6846
6847if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6848	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6849		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6850	fi
6851	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6852	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6853$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6854if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6855  $as_echo_n "(cached) " >&6
6856else
6857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858/* end confdefs.h.  */
6859int i;
6860_ACEOF
6861if ac_fn_c_try_compile "$LINENO"; then :
6862  xorg_cv_cc_flag_unused_command_line_argument=yes
6863else
6864  xorg_cv_cc_flag_unused_command_line_argument=no
6865fi
6866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867fi
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6869$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6870	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6871	CFLAGS="$xorg_testset_save_CFLAGS"
6872fi
6873
6874found="no"
6875
6876	if test $found = "no" ; then
6877		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6878			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6879		fi
6880
6881		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6882			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6883		fi
6884
6885		CFLAGS="$CFLAGS -Werror=implicit"
6886
6887		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6888$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6889		cacheid=xorg_cv_cc_flag__Werror_implicit
6890		if eval \${$cacheid+:} false; then :
6891  $as_echo_n "(cached) " >&6
6892else
6893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894/* end confdefs.h.  */
6895int i;
6896int
6897main ()
6898{
6899
6900  ;
6901  return 0;
6902}
6903_ACEOF
6904if ac_fn_c_try_link "$LINENO"; then :
6905  eval $cacheid=yes
6906else
6907  eval $cacheid=no
6908fi
6909rm -f core conftest.err conftest.$ac_objext \
6910    conftest$ac_exeext conftest.$ac_ext
6911fi
6912
6913
6914		CFLAGS="$xorg_testset_save_CFLAGS"
6915
6916		eval supported=\$$cacheid
6917		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6918$as_echo "$supported" >&6; }
6919		if test "$supported" = "yes" ; then
6920			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6921			found="yes"
6922		fi
6923	fi
6924
6925	if test $found = "no" ; then
6926		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6927			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6928		fi
6929
6930		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6931			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6932		fi
6933
6934		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6935
6936		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6937$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6938		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6939		if eval \${$cacheid+:} false; then :
6940  $as_echo_n "(cached) " >&6
6941else
6942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943/* end confdefs.h.  */
6944int i;
6945int
6946main ()
6947{
6948
6949  ;
6950  return 0;
6951}
6952_ACEOF
6953if ac_fn_c_try_link "$LINENO"; then :
6954  eval $cacheid=yes
6955else
6956  eval $cacheid=no
6957fi
6958rm -f core conftest.err conftest.$ac_objext \
6959    conftest$ac_exeext conftest.$ac_ext
6960fi
6961
6962
6963		CFLAGS="$xorg_testset_save_CFLAGS"
6964
6965		eval supported=\$$cacheid
6966		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6967$as_echo "$supported" >&6; }
6968		if test "$supported" = "yes" ; then
6969			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6970			found="yes"
6971		fi
6972	fi
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988xorg_testset_save_CFLAGS="$CFLAGS"
6989
6990if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6991	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6992	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6993$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6994if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6995  $as_echo_n "(cached) " >&6
6996else
6997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998/* end confdefs.h.  */
6999int i;
7000_ACEOF
7001if ac_fn_c_try_compile "$LINENO"; then :
7002  xorg_cv_cc_flag_unknown_warning_option=yes
7003else
7004  xorg_cv_cc_flag_unknown_warning_option=no
7005fi
7006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7007fi
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7009$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7010	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7011	CFLAGS="$xorg_testset_save_CFLAGS"
7012fi
7013
7014if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7015	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7016		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7017	fi
7018	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7019	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7020$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7021if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7022  $as_echo_n "(cached) " >&6
7023else
7024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025/* end confdefs.h.  */
7026int i;
7027_ACEOF
7028if ac_fn_c_try_compile "$LINENO"; then :
7029  xorg_cv_cc_flag_unused_command_line_argument=yes
7030else
7031  xorg_cv_cc_flag_unused_command_line_argument=no
7032fi
7033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034fi
7035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7036$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7037	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7038	CFLAGS="$xorg_testset_save_CFLAGS"
7039fi
7040
7041found="no"
7042
7043	if test $found = "no" ; then
7044		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7045			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7046		fi
7047
7048		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7049			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7050		fi
7051
7052		CFLAGS="$CFLAGS -Werror=nonnull"
7053
7054		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
7055$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
7056		cacheid=xorg_cv_cc_flag__Werror_nonnull
7057		if eval \${$cacheid+:} false; then :
7058  $as_echo_n "(cached) " >&6
7059else
7060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061/* end confdefs.h.  */
7062int i;
7063int
7064main ()
7065{
7066
7067  ;
7068  return 0;
7069}
7070_ACEOF
7071if ac_fn_c_try_link "$LINENO"; then :
7072  eval $cacheid=yes
7073else
7074  eval $cacheid=no
7075fi
7076rm -f core conftest.err conftest.$ac_objext \
7077    conftest$ac_exeext conftest.$ac_ext
7078fi
7079
7080
7081		CFLAGS="$xorg_testset_save_CFLAGS"
7082
7083		eval supported=\$$cacheid
7084		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7085$as_echo "$supported" >&6; }
7086		if test "$supported" = "yes" ; then
7087			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7088			found="yes"
7089		fi
7090	fi
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106xorg_testset_save_CFLAGS="$CFLAGS"
7107
7108if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7109	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7110	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7111$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7112if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7113  $as_echo_n "(cached) " >&6
7114else
7115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116/* end confdefs.h.  */
7117int i;
7118_ACEOF
7119if ac_fn_c_try_compile "$LINENO"; then :
7120  xorg_cv_cc_flag_unknown_warning_option=yes
7121else
7122  xorg_cv_cc_flag_unknown_warning_option=no
7123fi
7124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7125fi
7126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7127$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7128	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7129	CFLAGS="$xorg_testset_save_CFLAGS"
7130fi
7131
7132if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7133	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7134		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7135	fi
7136	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7137	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7138$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7139if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7140  $as_echo_n "(cached) " >&6
7141else
7142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7143/* end confdefs.h.  */
7144int i;
7145_ACEOF
7146if ac_fn_c_try_compile "$LINENO"; then :
7147  xorg_cv_cc_flag_unused_command_line_argument=yes
7148else
7149  xorg_cv_cc_flag_unused_command_line_argument=no
7150fi
7151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7152fi
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7154$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7155	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7156	CFLAGS="$xorg_testset_save_CFLAGS"
7157fi
7158
7159found="no"
7160
7161	if test $found = "no" ; then
7162		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7163			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7164		fi
7165
7166		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7167			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7168		fi
7169
7170		CFLAGS="$CFLAGS -Werror=init-self"
7171
7172		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
7173$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
7174		cacheid=xorg_cv_cc_flag__Werror_init_self
7175		if eval \${$cacheid+:} false; then :
7176  $as_echo_n "(cached) " >&6
7177else
7178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179/* end confdefs.h.  */
7180int i;
7181int
7182main ()
7183{
7184
7185  ;
7186  return 0;
7187}
7188_ACEOF
7189if ac_fn_c_try_link "$LINENO"; then :
7190  eval $cacheid=yes
7191else
7192  eval $cacheid=no
7193fi
7194rm -f core conftest.err conftest.$ac_objext \
7195    conftest$ac_exeext conftest.$ac_ext
7196fi
7197
7198
7199		CFLAGS="$xorg_testset_save_CFLAGS"
7200
7201		eval supported=\$$cacheid
7202		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7203$as_echo "$supported" >&6; }
7204		if test "$supported" = "yes" ; then
7205			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7206			found="yes"
7207		fi
7208	fi
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224xorg_testset_save_CFLAGS="$CFLAGS"
7225
7226if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7227	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7228	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7229$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7230if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7231  $as_echo_n "(cached) " >&6
7232else
7233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234/* end confdefs.h.  */
7235int i;
7236_ACEOF
7237if ac_fn_c_try_compile "$LINENO"; then :
7238  xorg_cv_cc_flag_unknown_warning_option=yes
7239else
7240  xorg_cv_cc_flag_unknown_warning_option=no
7241fi
7242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7243fi
7244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7245$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7246	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7247	CFLAGS="$xorg_testset_save_CFLAGS"
7248fi
7249
7250if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7251	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7252		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7253	fi
7254	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7255	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7256$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7257if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7258  $as_echo_n "(cached) " >&6
7259else
7260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261/* end confdefs.h.  */
7262int i;
7263_ACEOF
7264if ac_fn_c_try_compile "$LINENO"; then :
7265  xorg_cv_cc_flag_unused_command_line_argument=yes
7266else
7267  xorg_cv_cc_flag_unused_command_line_argument=no
7268fi
7269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7270fi
7271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7272$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7273	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7274	CFLAGS="$xorg_testset_save_CFLAGS"
7275fi
7276
7277found="no"
7278
7279	if test $found = "no" ; then
7280		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7281			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7282		fi
7283
7284		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7285			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7286		fi
7287
7288		CFLAGS="$CFLAGS -Werror=main"
7289
7290		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7291$as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7292		cacheid=xorg_cv_cc_flag__Werror_main
7293		if eval \${$cacheid+:} false; then :
7294  $as_echo_n "(cached) " >&6
7295else
7296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297/* end confdefs.h.  */
7298int i;
7299int
7300main ()
7301{
7302
7303  ;
7304  return 0;
7305}
7306_ACEOF
7307if ac_fn_c_try_link "$LINENO"; then :
7308  eval $cacheid=yes
7309else
7310  eval $cacheid=no
7311fi
7312rm -f core conftest.err conftest.$ac_objext \
7313    conftest$ac_exeext conftest.$ac_ext
7314fi
7315
7316
7317		CFLAGS="$xorg_testset_save_CFLAGS"
7318
7319		eval supported=\$$cacheid
7320		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7321$as_echo "$supported" >&6; }
7322		if test "$supported" = "yes" ; then
7323			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7324			found="yes"
7325		fi
7326	fi
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342xorg_testset_save_CFLAGS="$CFLAGS"
7343
7344if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7345	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7346	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7347$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7348if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7349  $as_echo_n "(cached) " >&6
7350else
7351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7352/* end confdefs.h.  */
7353int i;
7354_ACEOF
7355if ac_fn_c_try_compile "$LINENO"; then :
7356  xorg_cv_cc_flag_unknown_warning_option=yes
7357else
7358  xorg_cv_cc_flag_unknown_warning_option=no
7359fi
7360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7361fi
7362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7363$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7364	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7365	CFLAGS="$xorg_testset_save_CFLAGS"
7366fi
7367
7368if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7369	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7370		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7371	fi
7372	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7373	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7374$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7375if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7376  $as_echo_n "(cached) " >&6
7377else
7378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379/* end confdefs.h.  */
7380int i;
7381_ACEOF
7382if ac_fn_c_try_compile "$LINENO"; then :
7383  xorg_cv_cc_flag_unused_command_line_argument=yes
7384else
7385  xorg_cv_cc_flag_unused_command_line_argument=no
7386fi
7387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7388fi
7389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7390$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7391	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7392	CFLAGS="$xorg_testset_save_CFLAGS"
7393fi
7394
7395found="no"
7396
7397	if test $found = "no" ; then
7398		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7399			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7400		fi
7401
7402		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7403			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7404		fi
7405
7406		CFLAGS="$CFLAGS -Werror=missing-braces"
7407
7408		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7409$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7410		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7411		if eval \${$cacheid+:} false; then :
7412  $as_echo_n "(cached) " >&6
7413else
7414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415/* end confdefs.h.  */
7416int i;
7417int
7418main ()
7419{
7420
7421  ;
7422  return 0;
7423}
7424_ACEOF
7425if ac_fn_c_try_link "$LINENO"; then :
7426  eval $cacheid=yes
7427else
7428  eval $cacheid=no
7429fi
7430rm -f core conftest.err conftest.$ac_objext \
7431    conftest$ac_exeext conftest.$ac_ext
7432fi
7433
7434
7435		CFLAGS="$xorg_testset_save_CFLAGS"
7436
7437		eval supported=\$$cacheid
7438		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7439$as_echo "$supported" >&6; }
7440		if test "$supported" = "yes" ; then
7441			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7442			found="yes"
7443		fi
7444	fi
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460xorg_testset_save_CFLAGS="$CFLAGS"
7461
7462if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7463	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7464	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7465$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7466if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7467  $as_echo_n "(cached) " >&6
7468else
7469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470/* end confdefs.h.  */
7471int i;
7472_ACEOF
7473if ac_fn_c_try_compile "$LINENO"; then :
7474  xorg_cv_cc_flag_unknown_warning_option=yes
7475else
7476  xorg_cv_cc_flag_unknown_warning_option=no
7477fi
7478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7479fi
7480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7481$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7482	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7483	CFLAGS="$xorg_testset_save_CFLAGS"
7484fi
7485
7486if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7487	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7488		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7489	fi
7490	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7491	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7492$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7493if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7494  $as_echo_n "(cached) " >&6
7495else
7496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497/* end confdefs.h.  */
7498int i;
7499_ACEOF
7500if ac_fn_c_try_compile "$LINENO"; then :
7501  xorg_cv_cc_flag_unused_command_line_argument=yes
7502else
7503  xorg_cv_cc_flag_unused_command_line_argument=no
7504fi
7505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7506fi
7507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7508$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7509	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7510	CFLAGS="$xorg_testset_save_CFLAGS"
7511fi
7512
7513found="no"
7514
7515	if test $found = "no" ; then
7516		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7517			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7518		fi
7519
7520		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7521			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7522		fi
7523
7524		CFLAGS="$CFLAGS -Werror=sequence-point"
7525
7526		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7527$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7528		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7529		if eval \${$cacheid+:} false; then :
7530  $as_echo_n "(cached) " >&6
7531else
7532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533/* end confdefs.h.  */
7534int i;
7535int
7536main ()
7537{
7538
7539  ;
7540  return 0;
7541}
7542_ACEOF
7543if ac_fn_c_try_link "$LINENO"; then :
7544  eval $cacheid=yes
7545else
7546  eval $cacheid=no
7547fi
7548rm -f core conftest.err conftest.$ac_objext \
7549    conftest$ac_exeext conftest.$ac_ext
7550fi
7551
7552
7553		CFLAGS="$xorg_testset_save_CFLAGS"
7554
7555		eval supported=\$$cacheid
7556		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7557$as_echo "$supported" >&6; }
7558		if test "$supported" = "yes" ; then
7559			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7560			found="yes"
7561		fi
7562	fi
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578xorg_testset_save_CFLAGS="$CFLAGS"
7579
7580if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7581	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7582	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7583$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7584if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7585  $as_echo_n "(cached) " >&6
7586else
7587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7588/* end confdefs.h.  */
7589int i;
7590_ACEOF
7591if ac_fn_c_try_compile "$LINENO"; then :
7592  xorg_cv_cc_flag_unknown_warning_option=yes
7593else
7594  xorg_cv_cc_flag_unknown_warning_option=no
7595fi
7596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7597fi
7598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7599$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7600	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7601	CFLAGS="$xorg_testset_save_CFLAGS"
7602fi
7603
7604if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7605	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7606		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7607	fi
7608	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7609	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7610$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7611if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7612  $as_echo_n "(cached) " >&6
7613else
7614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615/* end confdefs.h.  */
7616int i;
7617_ACEOF
7618if ac_fn_c_try_compile "$LINENO"; then :
7619  xorg_cv_cc_flag_unused_command_line_argument=yes
7620else
7621  xorg_cv_cc_flag_unused_command_line_argument=no
7622fi
7623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7624fi
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7626$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7627	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7628	CFLAGS="$xorg_testset_save_CFLAGS"
7629fi
7630
7631found="no"
7632
7633	if test $found = "no" ; then
7634		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7635			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7636		fi
7637
7638		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7639			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7640		fi
7641
7642		CFLAGS="$CFLAGS -Werror=return-type"
7643
7644		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7645$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7646		cacheid=xorg_cv_cc_flag__Werror_return_type
7647		if eval \${$cacheid+:} false; then :
7648  $as_echo_n "(cached) " >&6
7649else
7650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651/* end confdefs.h.  */
7652int i;
7653int
7654main ()
7655{
7656
7657  ;
7658  return 0;
7659}
7660_ACEOF
7661if ac_fn_c_try_link "$LINENO"; then :
7662  eval $cacheid=yes
7663else
7664  eval $cacheid=no
7665fi
7666rm -f core conftest.err conftest.$ac_objext \
7667    conftest$ac_exeext conftest.$ac_ext
7668fi
7669
7670
7671		CFLAGS="$xorg_testset_save_CFLAGS"
7672
7673		eval supported=\$$cacheid
7674		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7675$as_echo "$supported" >&6; }
7676		if test "$supported" = "yes" ; then
7677			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7678			found="yes"
7679		fi
7680	fi
7681
7682	if test $found = "no" ; then
7683		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7684			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7685		fi
7686
7687		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7688			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7689		fi
7690
7691		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7692
7693		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7694$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7695		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7696		if eval \${$cacheid+:} false; then :
7697  $as_echo_n "(cached) " >&6
7698else
7699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700/* end confdefs.h.  */
7701int i;
7702int
7703main ()
7704{
7705
7706  ;
7707  return 0;
7708}
7709_ACEOF
7710if ac_fn_c_try_link "$LINENO"; then :
7711  eval $cacheid=yes
7712else
7713  eval $cacheid=no
7714fi
7715rm -f core conftest.err conftest.$ac_objext \
7716    conftest$ac_exeext conftest.$ac_ext
7717fi
7718
7719
7720		CFLAGS="$xorg_testset_save_CFLAGS"
7721
7722		eval supported=\$$cacheid
7723		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7724$as_echo "$supported" >&6; }
7725		if test "$supported" = "yes" ; then
7726			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7727			found="yes"
7728		fi
7729	fi
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745xorg_testset_save_CFLAGS="$CFLAGS"
7746
7747if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7748	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7749	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7750$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7751if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7752  $as_echo_n "(cached) " >&6
7753else
7754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755/* end confdefs.h.  */
7756int i;
7757_ACEOF
7758if ac_fn_c_try_compile "$LINENO"; then :
7759  xorg_cv_cc_flag_unknown_warning_option=yes
7760else
7761  xorg_cv_cc_flag_unknown_warning_option=no
7762fi
7763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7764fi
7765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7766$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7767	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7768	CFLAGS="$xorg_testset_save_CFLAGS"
7769fi
7770
7771if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7772	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7773		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7774	fi
7775	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7776	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7777$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7778if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7779  $as_echo_n "(cached) " >&6
7780else
7781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782/* end confdefs.h.  */
7783int i;
7784_ACEOF
7785if ac_fn_c_try_compile "$LINENO"; then :
7786  xorg_cv_cc_flag_unused_command_line_argument=yes
7787else
7788  xorg_cv_cc_flag_unused_command_line_argument=no
7789fi
7790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7791fi
7792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7793$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7794	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7795	CFLAGS="$xorg_testset_save_CFLAGS"
7796fi
7797
7798found="no"
7799
7800	if test $found = "no" ; then
7801		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7802			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7803		fi
7804
7805		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7806			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7807		fi
7808
7809		CFLAGS="$CFLAGS -Werror=trigraphs"
7810
7811		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7812$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7813		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7814		if eval \${$cacheid+:} false; then :
7815  $as_echo_n "(cached) " >&6
7816else
7817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818/* end confdefs.h.  */
7819int i;
7820int
7821main ()
7822{
7823
7824  ;
7825  return 0;
7826}
7827_ACEOF
7828if ac_fn_c_try_link "$LINENO"; then :
7829  eval $cacheid=yes
7830else
7831  eval $cacheid=no
7832fi
7833rm -f core conftest.err conftest.$ac_objext \
7834    conftest$ac_exeext conftest.$ac_ext
7835fi
7836
7837
7838		CFLAGS="$xorg_testset_save_CFLAGS"
7839
7840		eval supported=\$$cacheid
7841		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7842$as_echo "$supported" >&6; }
7843		if test "$supported" = "yes" ; then
7844			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7845			found="yes"
7846		fi
7847	fi
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863xorg_testset_save_CFLAGS="$CFLAGS"
7864
7865if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7866	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7867	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7868$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7869if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7870  $as_echo_n "(cached) " >&6
7871else
7872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873/* end confdefs.h.  */
7874int i;
7875_ACEOF
7876if ac_fn_c_try_compile "$LINENO"; then :
7877  xorg_cv_cc_flag_unknown_warning_option=yes
7878else
7879  xorg_cv_cc_flag_unknown_warning_option=no
7880fi
7881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7882fi
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7884$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7885	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7886	CFLAGS="$xorg_testset_save_CFLAGS"
7887fi
7888
7889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7890	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7891		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7892	fi
7893	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7894	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7895$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7896if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7897  $as_echo_n "(cached) " >&6
7898else
7899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900/* end confdefs.h.  */
7901int i;
7902_ACEOF
7903if ac_fn_c_try_compile "$LINENO"; then :
7904  xorg_cv_cc_flag_unused_command_line_argument=yes
7905else
7906  xorg_cv_cc_flag_unused_command_line_argument=no
7907fi
7908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7909fi
7910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7911$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7912	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7913	CFLAGS="$xorg_testset_save_CFLAGS"
7914fi
7915
7916found="no"
7917
7918	if test $found = "no" ; then
7919		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7920			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7921		fi
7922
7923		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7924			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7925		fi
7926
7927		CFLAGS="$CFLAGS -Werror=array-bounds"
7928
7929		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7930$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7931		cacheid=xorg_cv_cc_flag__Werror_array_bounds
7932		if eval \${$cacheid+:} false; then :
7933  $as_echo_n "(cached) " >&6
7934else
7935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936/* end confdefs.h.  */
7937int i;
7938int
7939main ()
7940{
7941
7942  ;
7943  return 0;
7944}
7945_ACEOF
7946if ac_fn_c_try_link "$LINENO"; then :
7947  eval $cacheid=yes
7948else
7949  eval $cacheid=no
7950fi
7951rm -f core conftest.err conftest.$ac_objext \
7952    conftest$ac_exeext conftest.$ac_ext
7953fi
7954
7955
7956		CFLAGS="$xorg_testset_save_CFLAGS"
7957
7958		eval supported=\$$cacheid
7959		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7960$as_echo "$supported" >&6; }
7961		if test "$supported" = "yes" ; then
7962			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7963			found="yes"
7964		fi
7965	fi
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981xorg_testset_save_CFLAGS="$CFLAGS"
7982
7983if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7984	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7985	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7986$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7987if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7988  $as_echo_n "(cached) " >&6
7989else
7990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991/* end confdefs.h.  */
7992int i;
7993_ACEOF
7994if ac_fn_c_try_compile "$LINENO"; then :
7995  xorg_cv_cc_flag_unknown_warning_option=yes
7996else
7997  xorg_cv_cc_flag_unknown_warning_option=no
7998fi
7999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8000fi
8001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8002$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8003	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8004	CFLAGS="$xorg_testset_save_CFLAGS"
8005fi
8006
8007if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8008	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8009		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8010	fi
8011	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8012	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8013$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8014if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8015  $as_echo_n "(cached) " >&6
8016else
8017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018/* end confdefs.h.  */
8019int i;
8020_ACEOF
8021if ac_fn_c_try_compile "$LINENO"; then :
8022  xorg_cv_cc_flag_unused_command_line_argument=yes
8023else
8024  xorg_cv_cc_flag_unused_command_line_argument=no
8025fi
8026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8027fi
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8029$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8030	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8031	CFLAGS="$xorg_testset_save_CFLAGS"
8032fi
8033
8034found="no"
8035
8036	if test $found = "no" ; then
8037		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8038			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8039		fi
8040
8041		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8042			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8043		fi
8044
8045		CFLAGS="$CFLAGS -Werror=write-strings"
8046
8047		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
8048$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
8049		cacheid=xorg_cv_cc_flag__Werror_write_strings
8050		if eval \${$cacheid+:} false; then :
8051  $as_echo_n "(cached) " >&6
8052else
8053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054/* end confdefs.h.  */
8055int i;
8056int
8057main ()
8058{
8059
8060  ;
8061  return 0;
8062}
8063_ACEOF
8064if ac_fn_c_try_link "$LINENO"; then :
8065  eval $cacheid=yes
8066else
8067  eval $cacheid=no
8068fi
8069rm -f core conftest.err conftest.$ac_objext \
8070    conftest$ac_exeext conftest.$ac_ext
8071fi
8072
8073
8074		CFLAGS="$xorg_testset_save_CFLAGS"
8075
8076		eval supported=\$$cacheid
8077		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8078$as_echo "$supported" >&6; }
8079		if test "$supported" = "yes" ; then
8080			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8081			found="yes"
8082		fi
8083	fi
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099xorg_testset_save_CFLAGS="$CFLAGS"
8100
8101if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8102	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8103	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8104$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8105if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8106  $as_echo_n "(cached) " >&6
8107else
8108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109/* end confdefs.h.  */
8110int i;
8111_ACEOF
8112if ac_fn_c_try_compile "$LINENO"; then :
8113  xorg_cv_cc_flag_unknown_warning_option=yes
8114else
8115  xorg_cv_cc_flag_unknown_warning_option=no
8116fi
8117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8118fi
8119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8120$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8121	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8122	CFLAGS="$xorg_testset_save_CFLAGS"
8123fi
8124
8125if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8126	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8127		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8128	fi
8129	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8130	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8131$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8132if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8133  $as_echo_n "(cached) " >&6
8134else
8135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136/* end confdefs.h.  */
8137int i;
8138_ACEOF
8139if ac_fn_c_try_compile "$LINENO"; then :
8140  xorg_cv_cc_flag_unused_command_line_argument=yes
8141else
8142  xorg_cv_cc_flag_unused_command_line_argument=no
8143fi
8144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8145fi
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8147$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8148	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8149	CFLAGS="$xorg_testset_save_CFLAGS"
8150fi
8151
8152found="no"
8153
8154	if test $found = "no" ; then
8155		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8156			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8157		fi
8158
8159		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8160			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8161		fi
8162
8163		CFLAGS="$CFLAGS -Werror=address"
8164
8165		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
8166$as_echo_n "checking if $CC supports-Werror=address... " >&6; }
8167		cacheid=xorg_cv_cc_flag__Werror_address
8168		if eval \${$cacheid+:} false; then :
8169  $as_echo_n "(cached) " >&6
8170else
8171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172/* end confdefs.h.  */
8173int i;
8174int
8175main ()
8176{
8177
8178  ;
8179  return 0;
8180}
8181_ACEOF
8182if ac_fn_c_try_link "$LINENO"; then :
8183  eval $cacheid=yes
8184else
8185  eval $cacheid=no
8186fi
8187rm -f core conftest.err conftest.$ac_objext \
8188    conftest$ac_exeext conftest.$ac_ext
8189fi
8190
8191
8192		CFLAGS="$xorg_testset_save_CFLAGS"
8193
8194		eval supported=\$$cacheid
8195		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8196$as_echo "$supported" >&6; }
8197		if test "$supported" = "yes" ; then
8198			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8199			found="yes"
8200		fi
8201	fi
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217xorg_testset_save_CFLAGS="$CFLAGS"
8218
8219if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8220	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8221	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8222$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8223if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8224  $as_echo_n "(cached) " >&6
8225else
8226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227/* end confdefs.h.  */
8228int i;
8229_ACEOF
8230if ac_fn_c_try_compile "$LINENO"; then :
8231  xorg_cv_cc_flag_unknown_warning_option=yes
8232else
8233  xorg_cv_cc_flag_unknown_warning_option=no
8234fi
8235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8236fi
8237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8238$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8239	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8240	CFLAGS="$xorg_testset_save_CFLAGS"
8241fi
8242
8243if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8244	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8245		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8246	fi
8247	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8248	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8249$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8250if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8251  $as_echo_n "(cached) " >&6
8252else
8253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8254/* end confdefs.h.  */
8255int i;
8256_ACEOF
8257if ac_fn_c_try_compile "$LINENO"; then :
8258  xorg_cv_cc_flag_unused_command_line_argument=yes
8259else
8260  xorg_cv_cc_flag_unused_command_line_argument=no
8261fi
8262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8263fi
8264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8265$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8266	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8267	CFLAGS="$xorg_testset_save_CFLAGS"
8268fi
8269
8270found="no"
8271
8272	if test $found = "no" ; then
8273		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8274			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8275		fi
8276
8277		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8278			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8279		fi
8280
8281		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8282
8283		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8284$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8285		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8286		if eval \${$cacheid+:} false; then :
8287  $as_echo_n "(cached) " >&6
8288else
8289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290/* end confdefs.h.  */
8291int i;
8292int
8293main ()
8294{
8295
8296  ;
8297  return 0;
8298}
8299_ACEOF
8300if ac_fn_c_try_link "$LINENO"; then :
8301  eval $cacheid=yes
8302else
8303  eval $cacheid=no
8304fi
8305rm -f core conftest.err conftest.$ac_objext \
8306    conftest$ac_exeext conftest.$ac_ext
8307fi
8308
8309
8310		CFLAGS="$xorg_testset_save_CFLAGS"
8311
8312		eval supported=\$$cacheid
8313		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8314$as_echo "$supported" >&6; }
8315		if test "$supported" = "yes" ; then
8316			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8317			found="yes"
8318		fi
8319	fi
8320
8321	if test $found = "no" ; then
8322		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8323			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8324		fi
8325
8326		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8327			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8328		fi
8329
8330		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8331
8332		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8333$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8334		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8335		if eval \${$cacheid+:} false; then :
8336  $as_echo_n "(cached) " >&6
8337else
8338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339/* end confdefs.h.  */
8340int i;
8341int
8342main ()
8343{
8344
8345  ;
8346  return 0;
8347}
8348_ACEOF
8349if ac_fn_c_try_link "$LINENO"; then :
8350  eval $cacheid=yes
8351else
8352  eval $cacheid=no
8353fi
8354rm -f core conftest.err conftest.$ac_objext \
8355    conftest$ac_exeext conftest.$ac_ext
8356fi
8357
8358
8359		CFLAGS="$xorg_testset_save_CFLAGS"
8360
8361		eval supported=\$$cacheid
8362		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8363$as_echo "$supported" >&6; }
8364		if test "$supported" = "yes" ; then
8365			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8366			found="yes"
8367		fi
8368	fi
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384xorg_testset_save_CFLAGS="$CFLAGS"
8385
8386if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8387	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8388	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8389$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8390if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8391  $as_echo_n "(cached) " >&6
8392else
8393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394/* end confdefs.h.  */
8395int i;
8396_ACEOF
8397if ac_fn_c_try_compile "$LINENO"; then :
8398  xorg_cv_cc_flag_unknown_warning_option=yes
8399else
8400  xorg_cv_cc_flag_unknown_warning_option=no
8401fi
8402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8403fi
8404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8405$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8406	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8407	CFLAGS="$xorg_testset_save_CFLAGS"
8408fi
8409
8410if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8411	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8412		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8413	fi
8414	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8415	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8416$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8417if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8418  $as_echo_n "(cached) " >&6
8419else
8420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421/* end confdefs.h.  */
8422int i;
8423_ACEOF
8424if ac_fn_c_try_compile "$LINENO"; then :
8425  xorg_cv_cc_flag_unused_command_line_argument=yes
8426else
8427  xorg_cv_cc_flag_unused_command_line_argument=no
8428fi
8429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430fi
8431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8432$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8433	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8434	CFLAGS="$xorg_testset_save_CFLAGS"
8435fi
8436
8437found="no"
8438
8439	if test $found = "no" ; then
8440		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8441			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8442		fi
8443
8444		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8445			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8446		fi
8447
8448		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8449
8450		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8451$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8452		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8453		if eval \${$cacheid+:} false; then :
8454  $as_echo_n "(cached) " >&6
8455else
8456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457/* end confdefs.h.  */
8458int i;
8459int
8460main ()
8461{
8462
8463  ;
8464  return 0;
8465}
8466_ACEOF
8467if ac_fn_c_try_link "$LINENO"; then :
8468  eval $cacheid=yes
8469else
8470  eval $cacheid=no
8471fi
8472rm -f core conftest.err conftest.$ac_objext \
8473    conftest$ac_exeext conftest.$ac_ext
8474fi
8475
8476
8477		CFLAGS="$xorg_testset_save_CFLAGS"
8478
8479		eval supported=\$$cacheid
8480		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8481$as_echo "$supported" >&6; }
8482		if test "$supported" = "yes" ; then
8483			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8484			found="yes"
8485		fi
8486	fi
8487
8488 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8489else
8490{ $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
8491$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;}
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505xorg_testset_save_CFLAGS="$CFLAGS"
8506
8507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8508	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8509	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8510$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8511if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8512  $as_echo_n "(cached) " >&6
8513else
8514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515/* end confdefs.h.  */
8516int i;
8517_ACEOF
8518if ac_fn_c_try_compile "$LINENO"; then :
8519  xorg_cv_cc_flag_unknown_warning_option=yes
8520else
8521  xorg_cv_cc_flag_unknown_warning_option=no
8522fi
8523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8524fi
8525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8526$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8527	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8528	CFLAGS="$xorg_testset_save_CFLAGS"
8529fi
8530
8531if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8532	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8533		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8534	fi
8535	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8536	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8537$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8538if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8539  $as_echo_n "(cached) " >&6
8540else
8541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542/* end confdefs.h.  */
8543int i;
8544_ACEOF
8545if ac_fn_c_try_compile "$LINENO"; then :
8546  xorg_cv_cc_flag_unused_command_line_argument=yes
8547else
8548  xorg_cv_cc_flag_unused_command_line_argument=no
8549fi
8550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8551fi
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8553$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8554	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8555	CFLAGS="$xorg_testset_save_CFLAGS"
8556fi
8557
8558found="no"
8559
8560	if test $found = "no" ; then
8561		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8562			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8563		fi
8564
8565		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8566			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8567		fi
8568
8569		CFLAGS="$CFLAGS -Wimplicit"
8570
8571		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8572$as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8573		cacheid=xorg_cv_cc_flag__Wimplicit
8574		if eval \${$cacheid+:} false; then :
8575  $as_echo_n "(cached) " >&6
8576else
8577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578/* end confdefs.h.  */
8579int i;
8580int
8581main ()
8582{
8583
8584  ;
8585  return 0;
8586}
8587_ACEOF
8588if ac_fn_c_try_link "$LINENO"; then :
8589  eval $cacheid=yes
8590else
8591  eval $cacheid=no
8592fi
8593rm -f core conftest.err conftest.$ac_objext \
8594    conftest$ac_exeext conftest.$ac_ext
8595fi
8596
8597
8598		CFLAGS="$xorg_testset_save_CFLAGS"
8599
8600		eval supported=\$$cacheid
8601		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8602$as_echo "$supported" >&6; }
8603		if test "$supported" = "yes" ; then
8604			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8605			found="yes"
8606		fi
8607	fi
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623xorg_testset_save_CFLAGS="$CFLAGS"
8624
8625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8626	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8627	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8628$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8629if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8630  $as_echo_n "(cached) " >&6
8631else
8632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633/* end confdefs.h.  */
8634int i;
8635_ACEOF
8636if ac_fn_c_try_compile "$LINENO"; then :
8637  xorg_cv_cc_flag_unknown_warning_option=yes
8638else
8639  xorg_cv_cc_flag_unknown_warning_option=no
8640fi
8641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8642fi
8643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8644$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8645	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8646	CFLAGS="$xorg_testset_save_CFLAGS"
8647fi
8648
8649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8650	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8651		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8652	fi
8653	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8654	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8655$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8656if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8657  $as_echo_n "(cached) " >&6
8658else
8659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8660/* end confdefs.h.  */
8661int i;
8662_ACEOF
8663if ac_fn_c_try_compile "$LINENO"; then :
8664  xorg_cv_cc_flag_unused_command_line_argument=yes
8665else
8666  xorg_cv_cc_flag_unused_command_line_argument=no
8667fi
8668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8669fi
8670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8671$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8672	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8673	CFLAGS="$xorg_testset_save_CFLAGS"
8674fi
8675
8676found="no"
8677
8678	if test $found = "no" ; then
8679		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8680			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8681		fi
8682
8683		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8684			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8685		fi
8686
8687		CFLAGS="$CFLAGS -Wnonnull"
8688
8689		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8690$as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8691		cacheid=xorg_cv_cc_flag__Wnonnull
8692		if eval \${$cacheid+:} false; then :
8693  $as_echo_n "(cached) " >&6
8694else
8695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696/* end confdefs.h.  */
8697int i;
8698int
8699main ()
8700{
8701
8702  ;
8703  return 0;
8704}
8705_ACEOF
8706if ac_fn_c_try_link "$LINENO"; then :
8707  eval $cacheid=yes
8708else
8709  eval $cacheid=no
8710fi
8711rm -f core conftest.err conftest.$ac_objext \
8712    conftest$ac_exeext conftest.$ac_ext
8713fi
8714
8715
8716		CFLAGS="$xorg_testset_save_CFLAGS"
8717
8718		eval supported=\$$cacheid
8719		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8720$as_echo "$supported" >&6; }
8721		if test "$supported" = "yes" ; then
8722			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8723			found="yes"
8724		fi
8725	fi
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741xorg_testset_save_CFLAGS="$CFLAGS"
8742
8743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8744	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8745	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8746$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8747if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8748  $as_echo_n "(cached) " >&6
8749else
8750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751/* end confdefs.h.  */
8752int i;
8753_ACEOF
8754if ac_fn_c_try_compile "$LINENO"; then :
8755  xorg_cv_cc_flag_unknown_warning_option=yes
8756else
8757  xorg_cv_cc_flag_unknown_warning_option=no
8758fi
8759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8760fi
8761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8762$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8763	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8764	CFLAGS="$xorg_testset_save_CFLAGS"
8765fi
8766
8767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8768	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8769		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8770	fi
8771	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8772	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8773$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8774if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8775  $as_echo_n "(cached) " >&6
8776else
8777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778/* end confdefs.h.  */
8779int i;
8780_ACEOF
8781if ac_fn_c_try_compile "$LINENO"; then :
8782  xorg_cv_cc_flag_unused_command_line_argument=yes
8783else
8784  xorg_cv_cc_flag_unused_command_line_argument=no
8785fi
8786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8787fi
8788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8789$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8790	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8791	CFLAGS="$xorg_testset_save_CFLAGS"
8792fi
8793
8794found="no"
8795
8796	if test $found = "no" ; then
8797		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8798			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8799		fi
8800
8801		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8802			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8803		fi
8804
8805		CFLAGS="$CFLAGS -Winit-self"
8806
8807		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8808$as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8809		cacheid=xorg_cv_cc_flag__Winit_self
8810		if eval \${$cacheid+:} false; then :
8811  $as_echo_n "(cached) " >&6
8812else
8813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814/* end confdefs.h.  */
8815int i;
8816int
8817main ()
8818{
8819
8820  ;
8821  return 0;
8822}
8823_ACEOF
8824if ac_fn_c_try_link "$LINENO"; then :
8825  eval $cacheid=yes
8826else
8827  eval $cacheid=no
8828fi
8829rm -f core conftest.err conftest.$ac_objext \
8830    conftest$ac_exeext conftest.$ac_ext
8831fi
8832
8833
8834		CFLAGS="$xorg_testset_save_CFLAGS"
8835
8836		eval supported=\$$cacheid
8837		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8838$as_echo "$supported" >&6; }
8839		if test "$supported" = "yes" ; then
8840			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8841			found="yes"
8842		fi
8843	fi
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859xorg_testset_save_CFLAGS="$CFLAGS"
8860
8861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8862	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8863	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8864$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8865if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8866  $as_echo_n "(cached) " >&6
8867else
8868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869/* end confdefs.h.  */
8870int i;
8871_ACEOF
8872if ac_fn_c_try_compile "$LINENO"; then :
8873  xorg_cv_cc_flag_unknown_warning_option=yes
8874else
8875  xorg_cv_cc_flag_unknown_warning_option=no
8876fi
8877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878fi
8879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8880$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8881	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8882	CFLAGS="$xorg_testset_save_CFLAGS"
8883fi
8884
8885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8886	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8887		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8888	fi
8889	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8890	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8891$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8892if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8893  $as_echo_n "(cached) " >&6
8894else
8895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896/* end confdefs.h.  */
8897int i;
8898_ACEOF
8899if ac_fn_c_try_compile "$LINENO"; then :
8900  xorg_cv_cc_flag_unused_command_line_argument=yes
8901else
8902  xorg_cv_cc_flag_unused_command_line_argument=no
8903fi
8904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905fi
8906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8907$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8908	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8909	CFLAGS="$xorg_testset_save_CFLAGS"
8910fi
8911
8912found="no"
8913
8914	if test $found = "no" ; then
8915		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8916			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8917		fi
8918
8919		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8920			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8921		fi
8922
8923		CFLAGS="$CFLAGS -Wmain"
8924
8925		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8926$as_echo_n "checking if $CC supports-Wmain... " >&6; }
8927		cacheid=xorg_cv_cc_flag__Wmain
8928		if eval \${$cacheid+:} false; then :
8929  $as_echo_n "(cached) " >&6
8930else
8931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932/* end confdefs.h.  */
8933int i;
8934int
8935main ()
8936{
8937
8938  ;
8939  return 0;
8940}
8941_ACEOF
8942if ac_fn_c_try_link "$LINENO"; then :
8943  eval $cacheid=yes
8944else
8945  eval $cacheid=no
8946fi
8947rm -f core conftest.err conftest.$ac_objext \
8948    conftest$ac_exeext conftest.$ac_ext
8949fi
8950
8951
8952		CFLAGS="$xorg_testset_save_CFLAGS"
8953
8954		eval supported=\$$cacheid
8955		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8956$as_echo "$supported" >&6; }
8957		if test "$supported" = "yes" ; then
8958			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8959			found="yes"
8960		fi
8961	fi
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977xorg_testset_save_CFLAGS="$CFLAGS"
8978
8979if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8980	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8981	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8982$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8983if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8984  $as_echo_n "(cached) " >&6
8985else
8986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987/* end confdefs.h.  */
8988int i;
8989_ACEOF
8990if ac_fn_c_try_compile "$LINENO"; then :
8991  xorg_cv_cc_flag_unknown_warning_option=yes
8992else
8993  xorg_cv_cc_flag_unknown_warning_option=no
8994fi
8995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996fi
8997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8998$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8999	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9000	CFLAGS="$xorg_testset_save_CFLAGS"
9001fi
9002
9003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9004	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9005		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9006	fi
9007	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9008	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9009$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9010if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9011  $as_echo_n "(cached) " >&6
9012else
9013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014/* end confdefs.h.  */
9015int i;
9016_ACEOF
9017if ac_fn_c_try_compile "$LINENO"; then :
9018  xorg_cv_cc_flag_unused_command_line_argument=yes
9019else
9020  xorg_cv_cc_flag_unused_command_line_argument=no
9021fi
9022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9023fi
9024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9025$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9026	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9027	CFLAGS="$xorg_testset_save_CFLAGS"
9028fi
9029
9030found="no"
9031
9032	if test $found = "no" ; then
9033		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9034			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9035		fi
9036
9037		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9038			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9039		fi
9040
9041		CFLAGS="$CFLAGS -Wmissing-braces"
9042
9043		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
9044$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
9045		cacheid=xorg_cv_cc_flag__Wmissing_braces
9046		if eval \${$cacheid+:} false; then :
9047  $as_echo_n "(cached) " >&6
9048else
9049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050/* end confdefs.h.  */
9051int i;
9052int
9053main ()
9054{
9055
9056  ;
9057  return 0;
9058}
9059_ACEOF
9060if ac_fn_c_try_link "$LINENO"; then :
9061  eval $cacheid=yes
9062else
9063  eval $cacheid=no
9064fi
9065rm -f core conftest.err conftest.$ac_objext \
9066    conftest$ac_exeext conftest.$ac_ext
9067fi
9068
9069
9070		CFLAGS="$xorg_testset_save_CFLAGS"
9071
9072		eval supported=\$$cacheid
9073		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9074$as_echo "$supported" >&6; }
9075		if test "$supported" = "yes" ; then
9076			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9077			found="yes"
9078		fi
9079	fi
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095xorg_testset_save_CFLAGS="$CFLAGS"
9096
9097if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9098	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9099	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9100$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9101if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9102  $as_echo_n "(cached) " >&6
9103else
9104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105/* end confdefs.h.  */
9106int i;
9107_ACEOF
9108if ac_fn_c_try_compile "$LINENO"; then :
9109  xorg_cv_cc_flag_unknown_warning_option=yes
9110else
9111  xorg_cv_cc_flag_unknown_warning_option=no
9112fi
9113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9114fi
9115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9116$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9117	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9118	CFLAGS="$xorg_testset_save_CFLAGS"
9119fi
9120
9121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9122	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9123		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9124	fi
9125	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9126	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9127$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9128if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9129  $as_echo_n "(cached) " >&6
9130else
9131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9132/* end confdefs.h.  */
9133int i;
9134_ACEOF
9135if ac_fn_c_try_compile "$LINENO"; then :
9136  xorg_cv_cc_flag_unused_command_line_argument=yes
9137else
9138  xorg_cv_cc_flag_unused_command_line_argument=no
9139fi
9140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9141fi
9142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9143$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9144	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9145	CFLAGS="$xorg_testset_save_CFLAGS"
9146fi
9147
9148found="no"
9149
9150	if test $found = "no" ; then
9151		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9152			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9153		fi
9154
9155		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9156			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9157		fi
9158
9159		CFLAGS="$CFLAGS -Wsequence-point"
9160
9161		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
9162$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
9163		cacheid=xorg_cv_cc_flag__Wsequence_point
9164		if eval \${$cacheid+:} false; then :
9165  $as_echo_n "(cached) " >&6
9166else
9167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168/* end confdefs.h.  */
9169int i;
9170int
9171main ()
9172{
9173
9174  ;
9175  return 0;
9176}
9177_ACEOF
9178if ac_fn_c_try_link "$LINENO"; then :
9179  eval $cacheid=yes
9180else
9181  eval $cacheid=no
9182fi
9183rm -f core conftest.err conftest.$ac_objext \
9184    conftest$ac_exeext conftest.$ac_ext
9185fi
9186
9187
9188		CFLAGS="$xorg_testset_save_CFLAGS"
9189
9190		eval supported=\$$cacheid
9191		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9192$as_echo "$supported" >&6; }
9193		if test "$supported" = "yes" ; then
9194			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9195			found="yes"
9196		fi
9197	fi
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213xorg_testset_save_CFLAGS="$CFLAGS"
9214
9215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9216	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9217	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9218$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9219if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9220  $as_echo_n "(cached) " >&6
9221else
9222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223/* end confdefs.h.  */
9224int i;
9225_ACEOF
9226if ac_fn_c_try_compile "$LINENO"; then :
9227  xorg_cv_cc_flag_unknown_warning_option=yes
9228else
9229  xorg_cv_cc_flag_unknown_warning_option=no
9230fi
9231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9232fi
9233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9234$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9235	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9236	CFLAGS="$xorg_testset_save_CFLAGS"
9237fi
9238
9239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9240	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9241		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9242	fi
9243	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9244	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9245$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9246if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9247  $as_echo_n "(cached) " >&6
9248else
9249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9250/* end confdefs.h.  */
9251int i;
9252_ACEOF
9253if ac_fn_c_try_compile "$LINENO"; then :
9254  xorg_cv_cc_flag_unused_command_line_argument=yes
9255else
9256  xorg_cv_cc_flag_unused_command_line_argument=no
9257fi
9258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9259fi
9260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9261$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9262	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9263	CFLAGS="$xorg_testset_save_CFLAGS"
9264fi
9265
9266found="no"
9267
9268	if test $found = "no" ; then
9269		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9270			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9271		fi
9272
9273		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9274			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9275		fi
9276
9277		CFLAGS="$CFLAGS -Wreturn-type"
9278
9279		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9280$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9281		cacheid=xorg_cv_cc_flag__Wreturn_type
9282		if eval \${$cacheid+:} false; then :
9283  $as_echo_n "(cached) " >&6
9284else
9285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286/* end confdefs.h.  */
9287int i;
9288int
9289main ()
9290{
9291
9292  ;
9293  return 0;
9294}
9295_ACEOF
9296if ac_fn_c_try_link "$LINENO"; then :
9297  eval $cacheid=yes
9298else
9299  eval $cacheid=no
9300fi
9301rm -f core conftest.err conftest.$ac_objext \
9302    conftest$ac_exeext conftest.$ac_ext
9303fi
9304
9305
9306		CFLAGS="$xorg_testset_save_CFLAGS"
9307
9308		eval supported=\$$cacheid
9309		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9310$as_echo "$supported" >&6; }
9311		if test "$supported" = "yes" ; then
9312			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9313			found="yes"
9314		fi
9315	fi
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331xorg_testset_save_CFLAGS="$CFLAGS"
9332
9333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9334	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9335	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9336$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9337if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9338  $as_echo_n "(cached) " >&6
9339else
9340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9341/* end confdefs.h.  */
9342int i;
9343_ACEOF
9344if ac_fn_c_try_compile "$LINENO"; then :
9345  xorg_cv_cc_flag_unknown_warning_option=yes
9346else
9347  xorg_cv_cc_flag_unknown_warning_option=no
9348fi
9349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9350fi
9351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9352$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9353	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9354	CFLAGS="$xorg_testset_save_CFLAGS"
9355fi
9356
9357if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9358	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9359		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9360	fi
9361	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9362	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9363$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9364if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9365  $as_echo_n "(cached) " >&6
9366else
9367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368/* end confdefs.h.  */
9369int i;
9370_ACEOF
9371if ac_fn_c_try_compile "$LINENO"; then :
9372  xorg_cv_cc_flag_unused_command_line_argument=yes
9373else
9374  xorg_cv_cc_flag_unused_command_line_argument=no
9375fi
9376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9377fi
9378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9379$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9380	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9381	CFLAGS="$xorg_testset_save_CFLAGS"
9382fi
9383
9384found="no"
9385
9386	if test $found = "no" ; then
9387		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9388			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9389		fi
9390
9391		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9392			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9393		fi
9394
9395		CFLAGS="$CFLAGS -Wtrigraphs"
9396
9397		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9398$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9399		cacheid=xorg_cv_cc_flag__Wtrigraphs
9400		if eval \${$cacheid+:} false; then :
9401  $as_echo_n "(cached) " >&6
9402else
9403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404/* end confdefs.h.  */
9405int i;
9406int
9407main ()
9408{
9409
9410  ;
9411  return 0;
9412}
9413_ACEOF
9414if ac_fn_c_try_link "$LINENO"; then :
9415  eval $cacheid=yes
9416else
9417  eval $cacheid=no
9418fi
9419rm -f core conftest.err conftest.$ac_objext \
9420    conftest$ac_exeext conftest.$ac_ext
9421fi
9422
9423
9424		CFLAGS="$xorg_testset_save_CFLAGS"
9425
9426		eval supported=\$$cacheid
9427		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9428$as_echo "$supported" >&6; }
9429		if test "$supported" = "yes" ; then
9430			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9431			found="yes"
9432		fi
9433	fi
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449xorg_testset_save_CFLAGS="$CFLAGS"
9450
9451if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9452	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9453	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9454$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9455if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9456  $as_echo_n "(cached) " >&6
9457else
9458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459/* end confdefs.h.  */
9460int i;
9461_ACEOF
9462if ac_fn_c_try_compile "$LINENO"; then :
9463  xorg_cv_cc_flag_unknown_warning_option=yes
9464else
9465  xorg_cv_cc_flag_unknown_warning_option=no
9466fi
9467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9468fi
9469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9470$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9471	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9472	CFLAGS="$xorg_testset_save_CFLAGS"
9473fi
9474
9475if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9476	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9477		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9478	fi
9479	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9480	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9481$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9482if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9483  $as_echo_n "(cached) " >&6
9484else
9485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9486/* end confdefs.h.  */
9487int i;
9488_ACEOF
9489if ac_fn_c_try_compile "$LINENO"; then :
9490  xorg_cv_cc_flag_unused_command_line_argument=yes
9491else
9492  xorg_cv_cc_flag_unused_command_line_argument=no
9493fi
9494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9495fi
9496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9497$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9498	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9499	CFLAGS="$xorg_testset_save_CFLAGS"
9500fi
9501
9502found="no"
9503
9504	if test $found = "no" ; then
9505		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9506			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9507		fi
9508
9509		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9510			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9511		fi
9512
9513		CFLAGS="$CFLAGS -Warray-bounds"
9514
9515		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9516$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9517		cacheid=xorg_cv_cc_flag__Warray_bounds
9518		if eval \${$cacheid+:} false; then :
9519  $as_echo_n "(cached) " >&6
9520else
9521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522/* end confdefs.h.  */
9523int i;
9524int
9525main ()
9526{
9527
9528  ;
9529  return 0;
9530}
9531_ACEOF
9532if ac_fn_c_try_link "$LINENO"; then :
9533  eval $cacheid=yes
9534else
9535  eval $cacheid=no
9536fi
9537rm -f core conftest.err conftest.$ac_objext \
9538    conftest$ac_exeext conftest.$ac_ext
9539fi
9540
9541
9542		CFLAGS="$xorg_testset_save_CFLAGS"
9543
9544		eval supported=\$$cacheid
9545		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9546$as_echo "$supported" >&6; }
9547		if test "$supported" = "yes" ; then
9548			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9549			found="yes"
9550		fi
9551	fi
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567xorg_testset_save_CFLAGS="$CFLAGS"
9568
9569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9570	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9571	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9572$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9573if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9574  $as_echo_n "(cached) " >&6
9575else
9576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577/* end confdefs.h.  */
9578int i;
9579_ACEOF
9580if ac_fn_c_try_compile "$LINENO"; then :
9581  xorg_cv_cc_flag_unknown_warning_option=yes
9582else
9583  xorg_cv_cc_flag_unknown_warning_option=no
9584fi
9585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9586fi
9587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9588$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9589	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9590	CFLAGS="$xorg_testset_save_CFLAGS"
9591fi
9592
9593if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9594	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9595		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9596	fi
9597	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9598	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9599$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9600if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9601  $as_echo_n "(cached) " >&6
9602else
9603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604/* end confdefs.h.  */
9605int i;
9606_ACEOF
9607if ac_fn_c_try_compile "$LINENO"; then :
9608  xorg_cv_cc_flag_unused_command_line_argument=yes
9609else
9610  xorg_cv_cc_flag_unused_command_line_argument=no
9611fi
9612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9613fi
9614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9615$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9616	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9617	CFLAGS="$xorg_testset_save_CFLAGS"
9618fi
9619
9620found="no"
9621
9622	if test $found = "no" ; then
9623		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9624			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9625		fi
9626
9627		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9628			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9629		fi
9630
9631		CFLAGS="$CFLAGS -Wwrite-strings"
9632
9633		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9634$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9635		cacheid=xorg_cv_cc_flag__Wwrite_strings
9636		if eval \${$cacheid+:} false; then :
9637  $as_echo_n "(cached) " >&6
9638else
9639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640/* end confdefs.h.  */
9641int i;
9642int
9643main ()
9644{
9645
9646  ;
9647  return 0;
9648}
9649_ACEOF
9650if ac_fn_c_try_link "$LINENO"; then :
9651  eval $cacheid=yes
9652else
9653  eval $cacheid=no
9654fi
9655rm -f core conftest.err conftest.$ac_objext \
9656    conftest$ac_exeext conftest.$ac_ext
9657fi
9658
9659
9660		CFLAGS="$xorg_testset_save_CFLAGS"
9661
9662		eval supported=\$$cacheid
9663		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9664$as_echo "$supported" >&6; }
9665		if test "$supported" = "yes" ; then
9666			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9667			found="yes"
9668		fi
9669	fi
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685xorg_testset_save_CFLAGS="$CFLAGS"
9686
9687if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9688	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9689	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9690$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9691if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9692  $as_echo_n "(cached) " >&6
9693else
9694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9695/* end confdefs.h.  */
9696int i;
9697_ACEOF
9698if ac_fn_c_try_compile "$LINENO"; then :
9699  xorg_cv_cc_flag_unknown_warning_option=yes
9700else
9701  xorg_cv_cc_flag_unknown_warning_option=no
9702fi
9703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9704fi
9705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9706$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9707	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9708	CFLAGS="$xorg_testset_save_CFLAGS"
9709fi
9710
9711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9712	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9713		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9714	fi
9715	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9716	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9717$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9718if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9719  $as_echo_n "(cached) " >&6
9720else
9721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722/* end confdefs.h.  */
9723int i;
9724_ACEOF
9725if ac_fn_c_try_compile "$LINENO"; then :
9726  xorg_cv_cc_flag_unused_command_line_argument=yes
9727else
9728  xorg_cv_cc_flag_unused_command_line_argument=no
9729fi
9730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9731fi
9732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9733$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9734	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9735	CFLAGS="$xorg_testset_save_CFLAGS"
9736fi
9737
9738found="no"
9739
9740	if test $found = "no" ; then
9741		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9742			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9743		fi
9744
9745		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9746			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9747		fi
9748
9749		CFLAGS="$CFLAGS -Waddress"
9750
9751		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9752$as_echo_n "checking if $CC supports-Waddress... " >&6; }
9753		cacheid=xorg_cv_cc_flag__Waddress
9754		if eval \${$cacheid+:} false; then :
9755  $as_echo_n "(cached) " >&6
9756else
9757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9758/* end confdefs.h.  */
9759int i;
9760int
9761main ()
9762{
9763
9764  ;
9765  return 0;
9766}
9767_ACEOF
9768if ac_fn_c_try_link "$LINENO"; then :
9769  eval $cacheid=yes
9770else
9771  eval $cacheid=no
9772fi
9773rm -f core conftest.err conftest.$ac_objext \
9774    conftest$ac_exeext conftest.$ac_ext
9775fi
9776
9777
9778		CFLAGS="$xorg_testset_save_CFLAGS"
9779
9780		eval supported=\$$cacheid
9781		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9782$as_echo "$supported" >&6; }
9783		if test "$supported" = "yes" ; then
9784			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9785			found="yes"
9786		fi
9787	fi
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803xorg_testset_save_CFLAGS="$CFLAGS"
9804
9805if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9806	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9807	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9808$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9809if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9810  $as_echo_n "(cached) " >&6
9811else
9812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813/* end confdefs.h.  */
9814int i;
9815_ACEOF
9816if ac_fn_c_try_compile "$LINENO"; then :
9817  xorg_cv_cc_flag_unknown_warning_option=yes
9818else
9819  xorg_cv_cc_flag_unknown_warning_option=no
9820fi
9821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9822fi
9823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9824$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9825	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9826	CFLAGS="$xorg_testset_save_CFLAGS"
9827fi
9828
9829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9830	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9831		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9832	fi
9833	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9834	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9835$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9836if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9837  $as_echo_n "(cached) " >&6
9838else
9839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840/* end confdefs.h.  */
9841int i;
9842_ACEOF
9843if ac_fn_c_try_compile "$LINENO"; then :
9844  xorg_cv_cc_flag_unused_command_line_argument=yes
9845else
9846  xorg_cv_cc_flag_unused_command_line_argument=no
9847fi
9848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9849fi
9850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9851$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9852	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9853	CFLAGS="$xorg_testset_save_CFLAGS"
9854fi
9855
9856found="no"
9857
9858	if test $found = "no" ; then
9859		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9860			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9861		fi
9862
9863		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9864			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9865		fi
9866
9867		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9868
9869		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9870$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9871		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9872		if eval \${$cacheid+:} false; then :
9873  $as_echo_n "(cached) " >&6
9874else
9875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9876/* end confdefs.h.  */
9877int i;
9878int
9879main ()
9880{
9881
9882  ;
9883  return 0;
9884}
9885_ACEOF
9886if ac_fn_c_try_link "$LINENO"; then :
9887  eval $cacheid=yes
9888else
9889  eval $cacheid=no
9890fi
9891rm -f core conftest.err conftest.$ac_objext \
9892    conftest$ac_exeext conftest.$ac_ext
9893fi
9894
9895
9896		CFLAGS="$xorg_testset_save_CFLAGS"
9897
9898		eval supported=\$$cacheid
9899		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9900$as_echo "$supported" >&6; }
9901		if test "$supported" = "yes" ; then
9902			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9903			found="yes"
9904		fi
9905	fi
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921xorg_testset_save_CFLAGS="$CFLAGS"
9922
9923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9924	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9925	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9926$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9927if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9928  $as_echo_n "(cached) " >&6
9929else
9930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931/* end confdefs.h.  */
9932int i;
9933_ACEOF
9934if ac_fn_c_try_compile "$LINENO"; then :
9935  xorg_cv_cc_flag_unknown_warning_option=yes
9936else
9937  xorg_cv_cc_flag_unknown_warning_option=no
9938fi
9939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9940fi
9941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9942$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9943	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9944	CFLAGS="$xorg_testset_save_CFLAGS"
9945fi
9946
9947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9948	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9949		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9950	fi
9951	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9952	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9953$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9954if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9955  $as_echo_n "(cached) " >&6
9956else
9957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9958/* end confdefs.h.  */
9959int i;
9960_ACEOF
9961if ac_fn_c_try_compile "$LINENO"; then :
9962  xorg_cv_cc_flag_unused_command_line_argument=yes
9963else
9964  xorg_cv_cc_flag_unused_command_line_argument=no
9965fi
9966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9967fi
9968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9969$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9970	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9971	CFLAGS="$xorg_testset_save_CFLAGS"
9972fi
9973
9974found="no"
9975
9976	if test $found = "no" ; then
9977		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9978			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9979		fi
9980
9981		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9982			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9983		fi
9984
9985		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9986
9987		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9988$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9989		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9990		if eval \${$cacheid+:} false; then :
9991  $as_echo_n "(cached) " >&6
9992else
9993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994/* end confdefs.h.  */
9995int i;
9996int
9997main ()
9998{
9999
10000  ;
10001  return 0;
10002}
10003_ACEOF
10004if ac_fn_c_try_link "$LINENO"; then :
10005  eval $cacheid=yes
10006else
10007  eval $cacheid=no
10008fi
10009rm -f core conftest.err conftest.$ac_objext \
10010    conftest$ac_exeext conftest.$ac_ext
10011fi
10012
10013
10014		CFLAGS="$xorg_testset_save_CFLAGS"
10015
10016		eval supported=\$$cacheid
10017		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10018$as_echo "$supported" >&6; }
10019		if test "$supported" = "yes" ; then
10020			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10021			found="yes"
10022		fi
10023	fi
10024
10025
10026fi
10027
10028
10029
10030
10031
10032
10033
10034		CWARNFLAGS="$BASE_CFLAGS"
10035		if  test "x$GCC" = xyes ; then
10036		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10037		fi
10038
10039
10040
10041
10042
10043
10044
10045
10046# Check whether --enable-strict-compilation was given.
10047if test "${enable_strict_compilation+set}" = set; then :
10048  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10049else
10050  STRICT_COMPILE=no
10051fi
10052
10053
10054
10055
10056
10057
10058STRICT_CFLAGS=""
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072xorg_testset_save_CFLAGS="$CFLAGS"
10073
10074if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10075	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10076	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10077$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10078if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10079  $as_echo_n "(cached) " >&6
10080else
10081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082/* end confdefs.h.  */
10083int i;
10084_ACEOF
10085if ac_fn_c_try_compile "$LINENO"; then :
10086  xorg_cv_cc_flag_unknown_warning_option=yes
10087else
10088  xorg_cv_cc_flag_unknown_warning_option=no
10089fi
10090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10091fi
10092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10093$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10094	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10095	CFLAGS="$xorg_testset_save_CFLAGS"
10096fi
10097
10098if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10099	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10100		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10101	fi
10102	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10103	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10104$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10105if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10106  $as_echo_n "(cached) " >&6
10107else
10108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109/* end confdefs.h.  */
10110int i;
10111_ACEOF
10112if ac_fn_c_try_compile "$LINENO"; then :
10113  xorg_cv_cc_flag_unused_command_line_argument=yes
10114else
10115  xorg_cv_cc_flag_unused_command_line_argument=no
10116fi
10117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10118fi
10119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10120$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10121	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10122	CFLAGS="$xorg_testset_save_CFLAGS"
10123fi
10124
10125found="no"
10126
10127	if test $found = "no" ; then
10128		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10129			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10130		fi
10131
10132		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10133			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10134		fi
10135
10136		CFLAGS="$CFLAGS -pedantic"
10137
10138		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
10139$as_echo_n "checking if $CC supports-pedantic... " >&6; }
10140		cacheid=xorg_cv_cc_flag__pedantic
10141		if eval \${$cacheid+:} false; then :
10142  $as_echo_n "(cached) " >&6
10143else
10144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10145/* end confdefs.h.  */
10146int i;
10147int
10148main ()
10149{
10150
10151  ;
10152  return 0;
10153}
10154_ACEOF
10155if ac_fn_c_try_link "$LINENO"; then :
10156  eval $cacheid=yes
10157else
10158  eval $cacheid=no
10159fi
10160rm -f core conftest.err conftest.$ac_objext \
10161    conftest$ac_exeext conftest.$ac_ext
10162fi
10163
10164
10165		CFLAGS="$xorg_testset_save_CFLAGS"
10166
10167		eval supported=\$$cacheid
10168		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10169$as_echo "$supported" >&6; }
10170		if test "$supported" = "yes" ; then
10171			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10172			found="yes"
10173		fi
10174	fi
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190xorg_testset_save_CFLAGS="$CFLAGS"
10191
10192if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10193	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10194	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10195$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10196if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10197  $as_echo_n "(cached) " >&6
10198else
10199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10200/* end confdefs.h.  */
10201int i;
10202_ACEOF
10203if ac_fn_c_try_compile "$LINENO"; then :
10204  xorg_cv_cc_flag_unknown_warning_option=yes
10205else
10206  xorg_cv_cc_flag_unknown_warning_option=no
10207fi
10208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10209fi
10210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10211$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10212	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10213	CFLAGS="$xorg_testset_save_CFLAGS"
10214fi
10215
10216if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10217	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10218		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10219	fi
10220	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10221	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10222$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10223if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10224  $as_echo_n "(cached) " >&6
10225else
10226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10227/* end confdefs.h.  */
10228int i;
10229_ACEOF
10230if ac_fn_c_try_compile "$LINENO"; then :
10231  xorg_cv_cc_flag_unused_command_line_argument=yes
10232else
10233  xorg_cv_cc_flag_unused_command_line_argument=no
10234fi
10235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10236fi
10237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10238$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10239	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10240	CFLAGS="$xorg_testset_save_CFLAGS"
10241fi
10242
10243found="no"
10244
10245	if test $found = "no" ; then
10246		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10247			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10248		fi
10249
10250		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10251			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10252		fi
10253
10254		CFLAGS="$CFLAGS -Werror"
10255
10256		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10257$as_echo_n "checking if $CC supports-Werror... " >&6; }
10258		cacheid=xorg_cv_cc_flag__Werror
10259		if eval \${$cacheid+:} false; then :
10260  $as_echo_n "(cached) " >&6
10261else
10262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10263/* end confdefs.h.  */
10264int i;
10265int
10266main ()
10267{
10268
10269  ;
10270  return 0;
10271}
10272_ACEOF
10273if ac_fn_c_try_link "$LINENO"; then :
10274  eval $cacheid=yes
10275else
10276  eval $cacheid=no
10277fi
10278rm -f core conftest.err conftest.$ac_objext \
10279    conftest$ac_exeext conftest.$ac_ext
10280fi
10281
10282
10283		CFLAGS="$xorg_testset_save_CFLAGS"
10284
10285		eval supported=\$$cacheid
10286		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10287$as_echo "$supported" >&6; }
10288		if test "$supported" = "yes" ; then
10289			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10290			found="yes"
10291		fi
10292	fi
10293
10294	if test $found = "no" ; then
10295		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10296			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10297		fi
10298
10299		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10300			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10301		fi
10302
10303		CFLAGS="$CFLAGS -errwarn"
10304
10305		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10306$as_echo_n "checking if $CC supports-errwarn... " >&6; }
10307		cacheid=xorg_cv_cc_flag__errwarn
10308		if eval \${$cacheid+:} false; then :
10309  $as_echo_n "(cached) " >&6
10310else
10311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312/* end confdefs.h.  */
10313int i;
10314int
10315main ()
10316{
10317
10318  ;
10319  return 0;
10320}
10321_ACEOF
10322if ac_fn_c_try_link "$LINENO"; then :
10323  eval $cacheid=yes
10324else
10325  eval $cacheid=no
10326fi
10327rm -f core conftest.err conftest.$ac_objext \
10328    conftest$ac_exeext conftest.$ac_ext
10329fi
10330
10331
10332		CFLAGS="$xorg_testset_save_CFLAGS"
10333
10334		eval supported=\$$cacheid
10335		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10336$as_echo "$supported" >&6; }
10337		if test "$supported" = "yes" ; then
10338			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10339			found="yes"
10340		fi
10341	fi
10342
10343
10344
10345# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10346# activate it with -Werror, so we add it here explicitly.
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360xorg_testset_save_CFLAGS="$CFLAGS"
10361
10362if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10363	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10364	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10365$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10366if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10367  $as_echo_n "(cached) " >&6
10368else
10369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10370/* end confdefs.h.  */
10371int i;
10372_ACEOF
10373if ac_fn_c_try_compile "$LINENO"; then :
10374  xorg_cv_cc_flag_unknown_warning_option=yes
10375else
10376  xorg_cv_cc_flag_unknown_warning_option=no
10377fi
10378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10379fi
10380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10381$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10382	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10383	CFLAGS="$xorg_testset_save_CFLAGS"
10384fi
10385
10386if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10387	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10388		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10389	fi
10390	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10391	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10392$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10393if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10394  $as_echo_n "(cached) " >&6
10395else
10396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10397/* end confdefs.h.  */
10398int i;
10399_ACEOF
10400if ac_fn_c_try_compile "$LINENO"; then :
10401  xorg_cv_cc_flag_unused_command_line_argument=yes
10402else
10403  xorg_cv_cc_flag_unused_command_line_argument=no
10404fi
10405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10406fi
10407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10408$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10409	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10410	CFLAGS="$xorg_testset_save_CFLAGS"
10411fi
10412
10413found="no"
10414
10415	if test $found = "no" ; then
10416		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10417			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10418		fi
10419
10420		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10421			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10422		fi
10423
10424		CFLAGS="$CFLAGS -Werror=attributes"
10425
10426		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10427$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10428		cacheid=xorg_cv_cc_flag__Werror_attributes
10429		if eval \${$cacheid+:} false; then :
10430  $as_echo_n "(cached) " >&6
10431else
10432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433/* end confdefs.h.  */
10434int i;
10435int
10436main ()
10437{
10438
10439  ;
10440  return 0;
10441}
10442_ACEOF
10443if ac_fn_c_try_link "$LINENO"; then :
10444  eval $cacheid=yes
10445else
10446  eval $cacheid=no
10447fi
10448rm -f core conftest.err conftest.$ac_objext \
10449    conftest$ac_exeext conftest.$ac_ext
10450fi
10451
10452
10453		CFLAGS="$xorg_testset_save_CFLAGS"
10454
10455		eval supported=\$$cacheid
10456		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10457$as_echo "$supported" >&6; }
10458		if test "$supported" = "yes" ; then
10459			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10460			found="yes"
10461		fi
10462	fi
10463
10464
10465
10466if test "x$STRICT_COMPILE" = "xyes"; then
10467    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10468    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10469fi
10470
10471
10472
10473
10474
10475
10476cat >>confdefs.h <<_ACEOF
10477#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10478_ACEOF
10479
10480	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10481	if test "x$PVM" = "x"; then
10482		PVM="0"
10483	fi
10484
10485cat >>confdefs.h <<_ACEOF
10486#define PACKAGE_VERSION_MINOR $PVM
10487_ACEOF
10488
10489	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10490	if test "x$PVP" = "x"; then
10491		PVP="0"
10492	fi
10493
10494cat >>confdefs.h <<_ACEOF
10495#define PACKAGE_VERSION_PATCHLEVEL $PVP
10496_ACEOF
10497
10498
10499
10500CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10501mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10502|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10503echo 'git directory not found: installing possibly empty changelog.' >&2)"
10504
10505
10506
10507
10508macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10509INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10510mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10511|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10512echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10513
10514
10515
10516
10517
10518
10519if test x$APP_MAN_SUFFIX = x    ; then
10520    APP_MAN_SUFFIX=1
10521fi
10522if test x$APP_MAN_DIR = x    ; then
10523    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10524fi
10525
10526if test x$LIB_MAN_SUFFIX = x    ; then
10527    LIB_MAN_SUFFIX=3
10528fi
10529if test x$LIB_MAN_DIR = x    ; then
10530    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10531fi
10532
10533if test x$FILE_MAN_SUFFIX = x    ; then
10534    case $host_os in
10535	solaris*)	FILE_MAN_SUFFIX=4  ;;
10536	*)		FILE_MAN_SUFFIX=5  ;;
10537    esac
10538fi
10539if test x$FILE_MAN_DIR = x    ; then
10540    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10541fi
10542
10543if test x$MISC_MAN_SUFFIX = x    ; then
10544    case $host_os in
10545	solaris*)	MISC_MAN_SUFFIX=5  ;;
10546	*)		MISC_MAN_SUFFIX=7  ;;
10547    esac
10548fi
10549if test x$MISC_MAN_DIR = x    ; then
10550    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10551fi
10552
10553if test x$DRIVER_MAN_SUFFIX = x    ; then
10554    case $host_os in
10555	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10556	*)		DRIVER_MAN_SUFFIX=4  ;;
10557    esac
10558fi
10559if test x$DRIVER_MAN_DIR = x    ; then
10560    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10561fi
10562
10563if test x$ADMIN_MAN_SUFFIX = x    ; then
10564    case $host_os in
10565	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10566	*)		ADMIN_MAN_SUFFIX=8  ;;
10567    esac
10568fi
10569if test x$ADMIN_MAN_DIR = x    ; then
10570    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10571fi
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587XORG_MAN_PAGE="X Version 11"
10588
10589MAN_SUBSTS="\
10590	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10591	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10592	-e 's|__xservername__|Xorg|g' \
10593	-e 's|__xconfigfile__|xorg.conf|g' \
10594	-e 's|__projectroot__|\$(prefix)|g' \
10595	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10596	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10597	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10598	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10599	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10600	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10601	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10602
10603
10604
10605# Check whether --enable-silent-rules was given.
10606if test "${enable_silent_rules+set}" = set; then :
10607  enableval=$enable_silent_rules;
10608fi
10609
10610case $enable_silent_rules in
10611yes) AM_DEFAULT_VERBOSITY=0;;
10612no)  AM_DEFAULT_VERBOSITY=1;;
10613*)   AM_DEFAULT_VERBOSITY=0;;
10614esac
10615am_make=${MAKE-make}
10616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10617$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10618if ${am_cv_make_support_nested_variables+:} false; then :
10619  $as_echo_n "(cached) " >&6
10620else
10621  if $as_echo 'TRUE=$(BAR$(V))
10622BAR0=false
10623BAR1=true
10624V=1
10625am__doit:
10626	@$(TRUE)
10627.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10628  am_cv_make_support_nested_variables=yes
10629else
10630  am_cv_make_support_nested_variables=no
10631fi
10632fi
10633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10634$as_echo "$am_cv_make_support_nested_variables" >&6; }
10635if test $am_cv_make_support_nested_variables = yes; then
10636    AM_V='$(V)'
10637  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10638else
10639  AM_V=$AM_DEFAULT_VERBOSITY
10640  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10641fi
10642AM_BACKSLASH='\'
10643
10644
10645
10646# Initialize libtool
10647# Check whether --enable-static was given.
10648if test "${enable_static+set}" = set; then :
10649  enableval=$enable_static; p=${PACKAGE-default}
10650    case $enableval in
10651    yes) enable_static=yes ;;
10652    no) enable_static=no ;;
10653    *)
10654     enable_static=no
10655      # Look at the argument we got.  We use all the common list separators.
10656      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10657      for pkg in $enableval; do
10658	IFS="$lt_save_ifs"
10659	if test "X$pkg" = "X$p"; then
10660	  enable_static=yes
10661	fi
10662      done
10663      IFS="$lt_save_ifs"
10664      ;;
10665    esac
10666else
10667  enable_static=no
10668fi
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678case `pwd` in
10679  *\ * | *\	*)
10680    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10681$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10682esac
10683
10684
10685
10686macro_version='2.4.2'
10687macro_revision='1.3337'
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701ltmain="$ac_aux_dir/ltmain.sh"
10702
10703# Backslashify metacharacters that are still active within
10704# double-quoted strings.
10705sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10706
10707# Same as above, but do not quote variable references.
10708double_quote_subst='s/\(["`\\]\)/\\\1/g'
10709
10710# Sed substitution to delay expansion of an escaped shell variable in a
10711# double_quote_subst'ed string.
10712delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10713
10714# Sed substitution to delay expansion of an escaped single quote.
10715delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10716
10717# Sed substitution to avoid accidental globbing in evaled expressions
10718no_glob_subst='s/\*/\\\*/g'
10719
10720ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10721ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10722ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10723
10724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10725$as_echo_n "checking how to print strings... " >&6; }
10726# Test print first, because it will be a builtin if present.
10727if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10728   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10729  ECHO='print -r --'
10730elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10731  ECHO='printf %s\n'
10732else
10733  # Use this function as a fallback that always works.
10734  func_fallback_echo ()
10735  {
10736    eval 'cat <<_LTECHO_EOF
10737$1
10738_LTECHO_EOF'
10739  }
10740  ECHO='func_fallback_echo'
10741fi
10742
10743# func_echo_all arg...
10744# Invoke $ECHO with all args, space-separated.
10745func_echo_all ()
10746{
10747    $ECHO ""
10748}
10749
10750case "$ECHO" in
10751  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10752$as_echo "printf" >&6; } ;;
10753  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10754$as_echo "print -r" >&6; } ;;
10755  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10756$as_echo "cat" >&6; } ;;
10757esac
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10773$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10774if ${ac_cv_path_SED+:} false; then :
10775  $as_echo_n "(cached) " >&6
10776else
10777            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10778     for ac_i in 1 2 3 4 5 6 7; do
10779       ac_script="$ac_script$as_nl$ac_script"
10780     done
10781     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10782     { ac_script=; unset ac_script;}
10783     if test -z "$SED"; then
10784  ac_path_SED_found=false
10785  # Loop through the user's path and test for each of PROGNAME-LIST
10786  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10787for as_dir in $PATH
10788do
10789  IFS=$as_save_IFS
10790  test -z "$as_dir" && as_dir=.
10791    for ac_prog in sed gsed; do
10792    for ac_exec_ext in '' $ac_executable_extensions; do
10793      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10794      as_fn_executable_p "$ac_path_SED" || continue
10795# Check for GNU ac_path_SED and select it if it is found.
10796  # Check for GNU $ac_path_SED
10797case `"$ac_path_SED" --version 2>&1` in
10798*GNU*)
10799  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10800*)
10801  ac_count=0
10802  $as_echo_n 0123456789 >"conftest.in"
10803  while :
10804  do
10805    cat "conftest.in" "conftest.in" >"conftest.tmp"
10806    mv "conftest.tmp" "conftest.in"
10807    cp "conftest.in" "conftest.nl"
10808    $as_echo '' >> "conftest.nl"
10809    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10810    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10811    as_fn_arith $ac_count + 1 && ac_count=$as_val
10812    if test $ac_count -gt ${ac_path_SED_max-0}; then
10813      # Best one so far, save it but keep looking for a better one
10814      ac_cv_path_SED="$ac_path_SED"
10815      ac_path_SED_max=$ac_count
10816    fi
10817    # 10*(2^10) chars as input seems more than enough
10818    test $ac_count -gt 10 && break
10819  done
10820  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10821esac
10822
10823      $ac_path_SED_found && break 3
10824    done
10825  done
10826  done
10827IFS=$as_save_IFS
10828  if test -z "$ac_cv_path_SED"; then
10829    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10830  fi
10831else
10832  ac_cv_path_SED=$SED
10833fi
10834
10835fi
10836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10837$as_echo "$ac_cv_path_SED" >&6; }
10838 SED="$ac_cv_path_SED"
10839  rm -f conftest.sed
10840
10841test -z "$SED" && SED=sed
10842Xsed="$SED -e 1s/^X//"
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10855$as_echo_n "checking for fgrep... " >&6; }
10856if ${ac_cv_path_FGREP+:} false; then :
10857  $as_echo_n "(cached) " >&6
10858else
10859  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10860   then ac_cv_path_FGREP="$GREP -F"
10861   else
10862     if test -z "$FGREP"; then
10863  ac_path_FGREP_found=false
10864  # Loop through the user's path and test for each of PROGNAME-LIST
10865  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10866for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10867do
10868  IFS=$as_save_IFS
10869  test -z "$as_dir" && as_dir=.
10870    for ac_prog in fgrep; do
10871    for ac_exec_ext in '' $ac_executable_extensions; do
10872      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10873      as_fn_executable_p "$ac_path_FGREP" || continue
10874# Check for GNU ac_path_FGREP and select it if it is found.
10875  # Check for GNU $ac_path_FGREP
10876case `"$ac_path_FGREP" --version 2>&1` in
10877*GNU*)
10878  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10879*)
10880  ac_count=0
10881  $as_echo_n 0123456789 >"conftest.in"
10882  while :
10883  do
10884    cat "conftest.in" "conftest.in" >"conftest.tmp"
10885    mv "conftest.tmp" "conftest.in"
10886    cp "conftest.in" "conftest.nl"
10887    $as_echo 'FGREP' >> "conftest.nl"
10888    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10889    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10890    as_fn_arith $ac_count + 1 && ac_count=$as_val
10891    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10892      # Best one so far, save it but keep looking for a better one
10893      ac_cv_path_FGREP="$ac_path_FGREP"
10894      ac_path_FGREP_max=$ac_count
10895    fi
10896    # 10*(2^10) chars as input seems more than enough
10897    test $ac_count -gt 10 && break
10898  done
10899  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10900esac
10901
10902      $ac_path_FGREP_found && break 3
10903    done
10904  done
10905  done
10906IFS=$as_save_IFS
10907  if test -z "$ac_cv_path_FGREP"; then
10908    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10909  fi
10910else
10911  ac_cv_path_FGREP=$FGREP
10912fi
10913
10914   fi
10915fi
10916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10917$as_echo "$ac_cv_path_FGREP" >&6; }
10918 FGREP="$ac_cv_path_FGREP"
10919
10920
10921test -z "$GREP" && GREP=grep
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941# Check whether --with-gnu-ld was given.
10942if test "${with_gnu_ld+set}" = set; then :
10943  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10944else
10945  with_gnu_ld=no
10946fi
10947
10948ac_prog=ld
10949if test "$GCC" = yes; then
10950  # Check if gcc -print-prog-name=ld gives a path.
10951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10952$as_echo_n "checking for ld used by $CC... " >&6; }
10953  case $host in
10954  *-*-mingw*)
10955    # gcc leaves a trailing carriage return which upsets mingw
10956    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10957  *)
10958    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10959  esac
10960  case $ac_prog in
10961    # Accept absolute paths.
10962    [\\/]* | ?:[\\/]*)
10963      re_direlt='/[^/][^/]*/\.\./'
10964      # Canonicalize the pathname of ld
10965      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10966      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10967	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10968      done
10969      test -z "$LD" && LD="$ac_prog"
10970      ;;
10971  "")
10972    # If it fails, then pretend we aren't using GCC.
10973    ac_prog=ld
10974    ;;
10975  *)
10976    # If it is relative, then search for the first ld in PATH.
10977    with_gnu_ld=unknown
10978    ;;
10979  esac
10980elif test "$with_gnu_ld" = yes; then
10981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10982$as_echo_n "checking for GNU ld... " >&6; }
10983else
10984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10985$as_echo_n "checking for non-GNU ld... " >&6; }
10986fi
10987if ${lt_cv_path_LD+:} false; then :
10988  $as_echo_n "(cached) " >&6
10989else
10990  if test -z "$LD"; then
10991  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10992  for ac_dir in $PATH; do
10993    IFS="$lt_save_ifs"
10994    test -z "$ac_dir" && ac_dir=.
10995    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10996      lt_cv_path_LD="$ac_dir/$ac_prog"
10997      # Check to see if the program is GNU ld.  I'd rather use --version,
10998      # but apparently some variants of GNU ld only accept -v.
10999      # Break only if it was the GNU/non-GNU ld that we prefer.
11000      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11001      *GNU* | *'with BFD'*)
11002	test "$with_gnu_ld" != no && break
11003	;;
11004      *)
11005	test "$with_gnu_ld" != yes && break
11006	;;
11007      esac
11008    fi
11009  done
11010  IFS="$lt_save_ifs"
11011else
11012  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11013fi
11014fi
11015
11016LD="$lt_cv_path_LD"
11017if test -n "$LD"; then
11018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11019$as_echo "$LD" >&6; }
11020else
11021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022$as_echo "no" >&6; }
11023fi
11024test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11026$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11027if ${lt_cv_prog_gnu_ld+:} false; then :
11028  $as_echo_n "(cached) " >&6
11029else
11030  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11031case `$LD -v 2>&1 </dev/null` in
11032*GNU* | *'with BFD'*)
11033  lt_cv_prog_gnu_ld=yes
11034  ;;
11035*)
11036  lt_cv_prog_gnu_ld=no
11037  ;;
11038esac
11039fi
11040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11041$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11042with_gnu_ld=$lt_cv_prog_gnu_ld
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11053$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11054if ${lt_cv_path_NM+:} false; then :
11055  $as_echo_n "(cached) " >&6
11056else
11057  if test -n "$NM"; then
11058  # Let the user override the test.
11059  lt_cv_path_NM="$NM"
11060else
11061  lt_nm_to_check="${ac_tool_prefix}nm"
11062  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11063    lt_nm_to_check="$lt_nm_to_check nm"
11064  fi
11065  for lt_tmp_nm in $lt_nm_to_check; do
11066    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11067    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11068      IFS="$lt_save_ifs"
11069      test -z "$ac_dir" && ac_dir=.
11070      tmp_nm="$ac_dir/$lt_tmp_nm"
11071      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11072	# Check to see if the nm accepts a BSD-compat flag.
11073	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
11074	#   nm: unknown option "B" ignored
11075	# Tru64's nm complains that /dev/null is an invalid object file
11076	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11077	*/dev/null* | *'Invalid file or object type'*)
11078	  lt_cv_path_NM="$tmp_nm -B"
11079	  break
11080	  ;;
11081	*)
11082	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11083	  */dev/null*)
11084	    lt_cv_path_NM="$tmp_nm -p"
11085	    break
11086	    ;;
11087	  *)
11088	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11089	    continue # so that we can try to find one that supports BSD flags
11090	    ;;
11091	  esac
11092	  ;;
11093	esac
11094      fi
11095    done
11096    IFS="$lt_save_ifs"
11097  done
11098  : ${lt_cv_path_NM=no}
11099fi
11100fi
11101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11102$as_echo "$lt_cv_path_NM" >&6; }
11103if test "$lt_cv_path_NM" != "no"; then
11104  NM="$lt_cv_path_NM"
11105else
11106  # Didn't find any BSD compatible name lister, look for dumpbin.
11107  if test -n "$DUMPBIN"; then :
11108    # Let the user override the test.
11109  else
11110    if test -n "$ac_tool_prefix"; then
11111  for ac_prog in dumpbin "link -dump"
11112  do
11113    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11114set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11116$as_echo_n "checking for $ac_word... " >&6; }
11117if ${ac_cv_prog_DUMPBIN+:} false; then :
11118  $as_echo_n "(cached) " >&6
11119else
11120  if test -n "$DUMPBIN"; then
11121  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11122else
11123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124for as_dir in $PATH
11125do
11126  IFS=$as_save_IFS
11127  test -z "$as_dir" && as_dir=.
11128    for ac_exec_ext in '' $ac_executable_extensions; do
11129  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11130    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11131    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11132    break 2
11133  fi
11134done
11135  done
11136IFS=$as_save_IFS
11137
11138fi
11139fi
11140DUMPBIN=$ac_cv_prog_DUMPBIN
11141if test -n "$DUMPBIN"; then
11142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11143$as_echo "$DUMPBIN" >&6; }
11144else
11145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146$as_echo "no" >&6; }
11147fi
11148
11149
11150    test -n "$DUMPBIN" && break
11151  done
11152fi
11153if test -z "$DUMPBIN"; then
11154  ac_ct_DUMPBIN=$DUMPBIN
11155  for ac_prog in dumpbin "link -dump"
11156do
11157  # Extract the first word of "$ac_prog", so it can be a program name with args.
11158set dummy $ac_prog; ac_word=$2
11159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11160$as_echo_n "checking for $ac_word... " >&6; }
11161if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11162  $as_echo_n "(cached) " >&6
11163else
11164  if test -n "$ac_ct_DUMPBIN"; then
11165  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11166else
11167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168for as_dir in $PATH
11169do
11170  IFS=$as_save_IFS
11171  test -z "$as_dir" && as_dir=.
11172    for ac_exec_ext in '' $ac_executable_extensions; do
11173  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11174    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11175    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11176    break 2
11177  fi
11178done
11179  done
11180IFS=$as_save_IFS
11181
11182fi
11183fi
11184ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11185if test -n "$ac_ct_DUMPBIN"; then
11186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11187$as_echo "$ac_ct_DUMPBIN" >&6; }
11188else
11189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11190$as_echo "no" >&6; }
11191fi
11192
11193
11194  test -n "$ac_ct_DUMPBIN" && break
11195done
11196
11197  if test "x$ac_ct_DUMPBIN" = x; then
11198    DUMPBIN=":"
11199  else
11200    case $cross_compiling:$ac_tool_warned in
11201yes:)
11202{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11203$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11204ac_tool_warned=yes ;;
11205esac
11206    DUMPBIN=$ac_ct_DUMPBIN
11207  fi
11208fi
11209
11210    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11211    *COFF*)
11212      DUMPBIN="$DUMPBIN -symbols"
11213      ;;
11214    *)
11215      DUMPBIN=:
11216      ;;
11217    esac
11218  fi
11219
11220  if test "$DUMPBIN" != ":"; then
11221    NM="$DUMPBIN"
11222  fi
11223fi
11224test -z "$NM" && NM=nm
11225
11226
11227
11228
11229
11230
11231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11232$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11233if ${lt_cv_nm_interface+:} false; then :
11234  $as_echo_n "(cached) " >&6
11235else
11236  lt_cv_nm_interface="BSD nm"
11237  echo "int some_variable = 0;" > conftest.$ac_ext
11238  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11239  (eval "$ac_compile" 2>conftest.err)
11240  cat conftest.err >&5
11241  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11242  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11243  cat conftest.err >&5
11244  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11245  cat conftest.out >&5
11246  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11247    lt_cv_nm_interface="MS dumpbin"
11248  fi
11249  rm -f conftest*
11250fi
11251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11252$as_echo "$lt_cv_nm_interface" >&6; }
11253
11254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11255$as_echo_n "checking whether ln -s works... " >&6; }
11256LN_S=$as_ln_s
11257if test "$LN_S" = "ln -s"; then
11258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11259$as_echo "yes" >&6; }
11260else
11261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11262$as_echo "no, using $LN_S" >&6; }
11263fi
11264
11265# find the maximum length of command line arguments
11266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11267$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11268if ${lt_cv_sys_max_cmd_len+:} false; then :
11269  $as_echo_n "(cached) " >&6
11270else
11271    i=0
11272  teststring="ABCD"
11273
11274  case $build_os in
11275  msdosdjgpp*)
11276    # On DJGPP, this test can blow up pretty badly due to problems in libc
11277    # (any single argument exceeding 2000 bytes causes a buffer overrun
11278    # during glob expansion).  Even if it were fixed, the result of this
11279    # check would be larger than it should be.
11280    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11281    ;;
11282
11283  gnu*)
11284    # Under GNU Hurd, this test is not required because there is
11285    # no limit to the length of command line arguments.
11286    # Libtool will interpret -1 as no limit whatsoever
11287    lt_cv_sys_max_cmd_len=-1;
11288    ;;
11289
11290  cygwin* | mingw* | cegcc*)
11291    # On Win9x/ME, this test blows up -- it succeeds, but takes
11292    # about 5 minutes as the teststring grows exponentially.
11293    # Worse, since 9x/ME are not pre-emptively multitasking,
11294    # you end up with a "frozen" computer, even though with patience
11295    # the test eventually succeeds (with a max line length of 256k).
11296    # Instead, let's just punt: use the minimum linelength reported by
11297    # all of the supported platforms: 8192 (on NT/2K/XP).
11298    lt_cv_sys_max_cmd_len=8192;
11299    ;;
11300
11301  mint*)
11302    # On MiNT this can take a long time and run out of memory.
11303    lt_cv_sys_max_cmd_len=8192;
11304    ;;
11305
11306  amigaos*)
11307    # On AmigaOS with pdksh, this test takes hours, literally.
11308    # So we just punt and use a minimum line length of 8192.
11309    lt_cv_sys_max_cmd_len=8192;
11310    ;;
11311
11312  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11313    # This has been around since 386BSD, at least.  Likely further.
11314    if test -x /sbin/sysctl; then
11315      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11316    elif test -x /usr/sbin/sysctl; then
11317      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11318    else
11319      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11320    fi
11321    # And add a safety zone
11322    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11323    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11324    ;;
11325
11326  interix*)
11327    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11328    lt_cv_sys_max_cmd_len=196608
11329    ;;
11330
11331  os2*)
11332    # The test takes a long time on OS/2.
11333    lt_cv_sys_max_cmd_len=8192
11334    ;;
11335
11336  osf*)
11337    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11338    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11339    # nice to cause kernel panics so lets avoid the loop below.
11340    # First set a reasonable default.
11341    lt_cv_sys_max_cmd_len=16384
11342    #
11343    if test -x /sbin/sysconfig; then
11344      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11345        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11346      esac
11347    fi
11348    ;;
11349  sco3.2v5*)
11350    lt_cv_sys_max_cmd_len=102400
11351    ;;
11352  sysv5* | sco5v6* | sysv4.2uw2*)
11353    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11354    if test -n "$kargmax"; then
11355      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11356    else
11357      lt_cv_sys_max_cmd_len=32768
11358    fi
11359    ;;
11360  *)
11361    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11362    if test -n "$lt_cv_sys_max_cmd_len"; then
11363      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11364      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11365    else
11366      # Make teststring a little bigger before we do anything with it.
11367      # a 1K string should be a reasonable start.
11368      for i in 1 2 3 4 5 6 7 8 ; do
11369        teststring=$teststring$teststring
11370      done
11371      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11372      # If test is not a shell built-in, we'll probably end up computing a
11373      # maximum length that is only half of the actual maximum length, but
11374      # we can't tell.
11375      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11376	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11377	      test $i != 17 # 1/2 MB should be enough
11378      do
11379        i=`expr $i + 1`
11380        teststring=$teststring$teststring
11381      done
11382      # Only check the string length outside the loop.
11383      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11384      teststring=
11385      # Add a significant safety factor because C++ compilers can tack on
11386      # massive amounts of additional arguments before passing them to the
11387      # linker.  It appears as though 1/2 is a usable value.
11388      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11389    fi
11390    ;;
11391  esac
11392
11393fi
11394
11395if test -n $lt_cv_sys_max_cmd_len ; then
11396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11397$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11398else
11399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11400$as_echo "none" >&6; }
11401fi
11402max_cmd_len=$lt_cv_sys_max_cmd_len
11403
11404
11405
11406
11407
11408
11409: ${CP="cp -f"}
11410: ${MV="mv -f"}
11411: ${RM="rm -f"}
11412
11413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11414$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11415# Try some XSI features
11416xsi_shell=no
11417( _lt_dummy="a/b/c"
11418  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11419      = c,a/b,b/c, \
11420    && eval 'test $(( 1 + 1 )) -eq 2 \
11421    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11422  && xsi_shell=yes
11423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11424$as_echo "$xsi_shell" >&6; }
11425
11426
11427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11428$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11429lt_shell_append=no
11430( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11431    >/dev/null 2>&1 \
11432  && lt_shell_append=yes
11433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11434$as_echo "$lt_shell_append" >&6; }
11435
11436
11437if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11438  lt_unset=unset
11439else
11440  lt_unset=false
11441fi
11442
11443
11444
11445
11446
11447# test EBCDIC or ASCII
11448case `echo X|tr X '\101'` in
11449 A) # ASCII based system
11450    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11451  lt_SP2NL='tr \040 \012'
11452  lt_NL2SP='tr \015\012 \040\040'
11453  ;;
11454 *) # EBCDIC based system
11455  lt_SP2NL='tr \100 \n'
11456  lt_NL2SP='tr \r\n \100\100'
11457  ;;
11458esac
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11469$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11470if ${lt_cv_to_host_file_cmd+:} false; then :
11471  $as_echo_n "(cached) " >&6
11472else
11473  case $host in
11474  *-*-mingw* )
11475    case $build in
11476      *-*-mingw* ) # actually msys
11477        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11478        ;;
11479      *-*-cygwin* )
11480        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11481        ;;
11482      * ) # otherwise, assume *nix
11483        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11484        ;;
11485    esac
11486    ;;
11487  *-*-cygwin* )
11488    case $build in
11489      *-*-mingw* ) # actually msys
11490        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11491        ;;
11492      *-*-cygwin* )
11493        lt_cv_to_host_file_cmd=func_convert_file_noop
11494        ;;
11495      * ) # otherwise, assume *nix
11496        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11497        ;;
11498    esac
11499    ;;
11500  * ) # unhandled hosts (and "normal" native builds)
11501    lt_cv_to_host_file_cmd=func_convert_file_noop
11502    ;;
11503esac
11504
11505fi
11506
11507to_host_file_cmd=$lt_cv_to_host_file_cmd
11508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11509$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11510
11511
11512
11513
11514
11515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11516$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11517if ${lt_cv_to_tool_file_cmd+:} false; then :
11518  $as_echo_n "(cached) " >&6
11519else
11520  #assume ordinary cross tools, or native build.
11521lt_cv_to_tool_file_cmd=func_convert_file_noop
11522case $host in
11523  *-*-mingw* )
11524    case $build in
11525      *-*-mingw* ) # actually msys
11526        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11527        ;;
11528    esac
11529    ;;
11530esac
11531
11532fi
11533
11534to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11536$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11537
11538
11539
11540
11541
11542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11543$as_echo_n "checking for $LD option to reload object files... " >&6; }
11544if ${lt_cv_ld_reload_flag+:} false; then :
11545  $as_echo_n "(cached) " >&6
11546else
11547  lt_cv_ld_reload_flag='-r'
11548fi
11549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11550$as_echo "$lt_cv_ld_reload_flag" >&6; }
11551reload_flag=$lt_cv_ld_reload_flag
11552case $reload_flag in
11553"" | " "*) ;;
11554*) reload_flag=" $reload_flag" ;;
11555esac
11556reload_cmds='$LD$reload_flag -o $output$reload_objs'
11557case $host_os in
11558  cygwin* | mingw* | pw32* | cegcc*)
11559    if test "$GCC" != yes; then
11560      reload_cmds=false
11561    fi
11562    ;;
11563  darwin*)
11564    if test "$GCC" = yes; then
11565      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11566    else
11567      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11568    fi
11569    ;;
11570esac
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580if test -n "$ac_tool_prefix"; then
11581  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11582set dummy ${ac_tool_prefix}objdump; ac_word=$2
11583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11584$as_echo_n "checking for $ac_word... " >&6; }
11585if ${ac_cv_prog_OBJDUMP+:} false; then :
11586  $as_echo_n "(cached) " >&6
11587else
11588  if test -n "$OBJDUMP"; then
11589  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11590else
11591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11592for as_dir in $PATH
11593do
11594  IFS=$as_save_IFS
11595  test -z "$as_dir" && as_dir=.
11596    for ac_exec_ext in '' $ac_executable_extensions; do
11597  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11598    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11599    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11600    break 2
11601  fi
11602done
11603  done
11604IFS=$as_save_IFS
11605
11606fi
11607fi
11608OBJDUMP=$ac_cv_prog_OBJDUMP
11609if test -n "$OBJDUMP"; then
11610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11611$as_echo "$OBJDUMP" >&6; }
11612else
11613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614$as_echo "no" >&6; }
11615fi
11616
11617
11618fi
11619if test -z "$ac_cv_prog_OBJDUMP"; then
11620  ac_ct_OBJDUMP=$OBJDUMP
11621  # Extract the first word of "objdump", so it can be a program name with args.
11622set dummy objdump; ac_word=$2
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624$as_echo_n "checking for $ac_word... " >&6; }
11625if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11626  $as_echo_n "(cached) " >&6
11627else
11628  if test -n "$ac_ct_OBJDUMP"; then
11629  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11630else
11631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632for as_dir in $PATH
11633do
11634  IFS=$as_save_IFS
11635  test -z "$as_dir" && as_dir=.
11636    for ac_exec_ext in '' $ac_executable_extensions; do
11637  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11638    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11639    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11640    break 2
11641  fi
11642done
11643  done
11644IFS=$as_save_IFS
11645
11646fi
11647fi
11648ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11649if test -n "$ac_ct_OBJDUMP"; then
11650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11651$as_echo "$ac_ct_OBJDUMP" >&6; }
11652else
11653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654$as_echo "no" >&6; }
11655fi
11656
11657  if test "x$ac_ct_OBJDUMP" = x; then
11658    OBJDUMP="false"
11659  else
11660    case $cross_compiling:$ac_tool_warned in
11661yes:)
11662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11664ac_tool_warned=yes ;;
11665esac
11666    OBJDUMP=$ac_ct_OBJDUMP
11667  fi
11668else
11669  OBJDUMP="$ac_cv_prog_OBJDUMP"
11670fi
11671
11672test -z "$OBJDUMP" && OBJDUMP=objdump
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11683$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11684if ${lt_cv_deplibs_check_method+:} false; then :
11685  $as_echo_n "(cached) " >&6
11686else
11687  lt_cv_file_magic_cmd='$MAGIC_CMD'
11688lt_cv_file_magic_test_file=
11689lt_cv_deplibs_check_method='unknown'
11690# Need to set the preceding variable on all platforms that support
11691# interlibrary dependencies.
11692# 'none' -- dependencies not supported.
11693# `unknown' -- same as none, but documents that we really don't know.
11694# 'pass_all' -- all dependencies passed with no checks.
11695# 'test_compile' -- check by making test program.
11696# 'file_magic [[regex]]' -- check by looking for files in library path
11697# which responds to the $file_magic_cmd with a given extended regex.
11698# If you have `file' or equivalent on your system and you're not sure
11699# whether `pass_all' will *always* work, you probably want this one.
11700
11701case $host_os in
11702aix[4-9]*)
11703  lt_cv_deplibs_check_method=pass_all
11704  ;;
11705
11706beos*)
11707  lt_cv_deplibs_check_method=pass_all
11708  ;;
11709
11710bsdi[45]*)
11711  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11712  lt_cv_file_magic_cmd='/usr/bin/file -L'
11713  lt_cv_file_magic_test_file=/shlib/libc.so
11714  ;;
11715
11716cygwin*)
11717  # func_win32_libid is a shell function defined in ltmain.sh
11718  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11719  lt_cv_file_magic_cmd='func_win32_libid'
11720  ;;
11721
11722mingw* | pw32*)
11723  # Base MSYS/MinGW do not provide the 'file' command needed by
11724  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11725  # unless we find 'file', for example because we are cross-compiling.
11726  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11727  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11728    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11729    lt_cv_file_magic_cmd='func_win32_libid'
11730  else
11731    # Keep this pattern in sync with the one in func_win32_libid.
11732    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11733    lt_cv_file_magic_cmd='$OBJDUMP -f'
11734  fi
11735  ;;
11736
11737cegcc*)
11738  # use the weaker test based on 'objdump'. See mingw*.
11739  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11740  lt_cv_file_magic_cmd='$OBJDUMP -f'
11741  ;;
11742
11743darwin* | rhapsody*)
11744  lt_cv_deplibs_check_method=pass_all
11745  ;;
11746
11747freebsd* | dragonfly*)
11748  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11749    case $host_cpu in
11750    i*86 )
11751      # Not sure whether the presence of OpenBSD here was a mistake.
11752      # Let's accept both of them until this is cleared up.
11753      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11754      lt_cv_file_magic_cmd=/usr/bin/file
11755      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11756      ;;
11757    esac
11758  else
11759    lt_cv_deplibs_check_method=pass_all
11760  fi
11761  ;;
11762
11763gnu*)
11764  lt_cv_deplibs_check_method=pass_all
11765  ;;
11766
11767haiku*)
11768  lt_cv_deplibs_check_method=pass_all
11769  ;;
11770
11771hpux10.20* | hpux11*)
11772  lt_cv_file_magic_cmd=/usr/bin/file
11773  case $host_cpu in
11774  ia64*)
11775    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11776    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11777    ;;
11778  hppa*64*)
11779    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]'
11780    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11781    ;;
11782  *)
11783    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11784    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11785    ;;
11786  esac
11787  ;;
11788
11789interix[3-9]*)
11790  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11791  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11792  ;;
11793
11794irix5* | irix6* | nonstopux*)
11795  case $LD in
11796  *-32|*"-32 ") libmagic=32-bit;;
11797  *-n32|*"-n32 ") libmagic=N32;;
11798  *-64|*"-64 ") libmagic=64-bit;;
11799  *) libmagic=never-match;;
11800  esac
11801  lt_cv_deplibs_check_method=pass_all
11802  ;;
11803
11804# This must be glibc/ELF.
11805linux* | k*bsd*-gnu | kopensolaris*-gnu)
11806  lt_cv_deplibs_check_method=pass_all
11807  ;;
11808
11809netbsd* | netbsdelf*-gnu)
11810  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11811    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11812  else
11813    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11814  fi
11815  ;;
11816
11817newos6*)
11818  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11819  lt_cv_file_magic_cmd=/usr/bin/file
11820  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11821  ;;
11822
11823*nto* | *qnx*)
11824  lt_cv_deplibs_check_method=pass_all
11825  ;;
11826
11827openbsd*)
11828  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11829    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11830  else
11831    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11832  fi
11833  ;;
11834
11835osf3* | osf4* | osf5*)
11836  lt_cv_deplibs_check_method=pass_all
11837  ;;
11838
11839rdos*)
11840  lt_cv_deplibs_check_method=pass_all
11841  ;;
11842
11843solaris*)
11844  lt_cv_deplibs_check_method=pass_all
11845  ;;
11846
11847sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11848  lt_cv_deplibs_check_method=pass_all
11849  ;;
11850
11851sysv4 | sysv4.3*)
11852  case $host_vendor in
11853  motorola)
11854    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]'
11855    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11856    ;;
11857  ncr)
11858    lt_cv_deplibs_check_method=pass_all
11859    ;;
11860  sequent)
11861    lt_cv_file_magic_cmd='/bin/file'
11862    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11863    ;;
11864  sni)
11865    lt_cv_file_magic_cmd='/bin/file'
11866    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11867    lt_cv_file_magic_test_file=/lib/libc.so
11868    ;;
11869  siemens)
11870    lt_cv_deplibs_check_method=pass_all
11871    ;;
11872  pc)
11873    lt_cv_deplibs_check_method=pass_all
11874    ;;
11875  esac
11876  ;;
11877
11878tpf*)
11879  lt_cv_deplibs_check_method=pass_all
11880  ;;
11881esac
11882
11883fi
11884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11885$as_echo "$lt_cv_deplibs_check_method" >&6; }
11886
11887file_magic_glob=
11888want_nocaseglob=no
11889if test "$build" = "$host"; then
11890  case $host_os in
11891  mingw* | pw32*)
11892    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11893      want_nocaseglob=yes
11894    else
11895      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11896    fi
11897    ;;
11898  esac
11899fi
11900
11901file_magic_cmd=$lt_cv_file_magic_cmd
11902deplibs_check_method=$lt_cv_deplibs_check_method
11903test -z "$deplibs_check_method" && deplibs_check_method=unknown
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926if test -n "$ac_tool_prefix"; then
11927  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11928set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930$as_echo_n "checking for $ac_word... " >&6; }
11931if ${ac_cv_prog_DLLTOOL+:} false; then :
11932  $as_echo_n "(cached) " >&6
11933else
11934  if test -n "$DLLTOOL"; then
11935  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11936else
11937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11938for as_dir in $PATH
11939do
11940  IFS=$as_save_IFS
11941  test -z "$as_dir" && as_dir=.
11942    for ac_exec_ext in '' $ac_executable_extensions; do
11943  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11944    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11946    break 2
11947  fi
11948done
11949  done
11950IFS=$as_save_IFS
11951
11952fi
11953fi
11954DLLTOOL=$ac_cv_prog_DLLTOOL
11955if test -n "$DLLTOOL"; then
11956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11957$as_echo "$DLLTOOL" >&6; }
11958else
11959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960$as_echo "no" >&6; }
11961fi
11962
11963
11964fi
11965if test -z "$ac_cv_prog_DLLTOOL"; then
11966  ac_ct_DLLTOOL=$DLLTOOL
11967  # Extract the first word of "dlltool", so it can be a program name with args.
11968set dummy dlltool; ac_word=$2
11969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11970$as_echo_n "checking for $ac_word... " >&6; }
11971if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11972  $as_echo_n "(cached) " >&6
11973else
11974  if test -n "$ac_ct_DLLTOOL"; then
11975  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11976else
11977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11978for as_dir in $PATH
11979do
11980  IFS=$as_save_IFS
11981  test -z "$as_dir" && as_dir=.
11982    for ac_exec_ext in '' $ac_executable_extensions; do
11983  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11984    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11986    break 2
11987  fi
11988done
11989  done
11990IFS=$as_save_IFS
11991
11992fi
11993fi
11994ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11995if test -n "$ac_ct_DLLTOOL"; then
11996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11997$as_echo "$ac_ct_DLLTOOL" >&6; }
11998else
11999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000$as_echo "no" >&6; }
12001fi
12002
12003  if test "x$ac_ct_DLLTOOL" = x; then
12004    DLLTOOL="false"
12005  else
12006    case $cross_compiling:$ac_tool_warned in
12007yes:)
12008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12010ac_tool_warned=yes ;;
12011esac
12012    DLLTOOL=$ac_ct_DLLTOOL
12013  fi
12014else
12015  DLLTOOL="$ac_cv_prog_DLLTOOL"
12016fi
12017
12018test -z "$DLLTOOL" && DLLTOOL=dlltool
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12030$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12031if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12032  $as_echo_n "(cached) " >&6
12033else
12034  lt_cv_sharedlib_from_linklib_cmd='unknown'
12035
12036case $host_os in
12037cygwin* | mingw* | pw32* | cegcc*)
12038  # two different shell functions defined in ltmain.sh
12039  # decide which to use based on capabilities of $DLLTOOL
12040  case `$DLLTOOL --help 2>&1` in
12041  *--identify-strict*)
12042    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12043    ;;
12044  *)
12045    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12046    ;;
12047  esac
12048  ;;
12049*)
12050  # fallback: assume linklib IS sharedlib
12051  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12052  ;;
12053esac
12054
12055fi
12056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12057$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12058sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12059test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12060
12061
12062
12063
12064
12065
12066
12067if test -n "$ac_tool_prefix"; then
12068  for ac_prog in ar
12069  do
12070    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12071set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12073$as_echo_n "checking for $ac_word... " >&6; }
12074if ${ac_cv_prog_AR+:} false; then :
12075  $as_echo_n "(cached) " >&6
12076else
12077  if test -n "$AR"; then
12078  ac_cv_prog_AR="$AR" # Let the user override the test.
12079else
12080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081for as_dir in $PATH
12082do
12083  IFS=$as_save_IFS
12084  test -z "$as_dir" && as_dir=.
12085    for ac_exec_ext in '' $ac_executable_extensions; do
12086  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12087    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12089    break 2
12090  fi
12091done
12092  done
12093IFS=$as_save_IFS
12094
12095fi
12096fi
12097AR=$ac_cv_prog_AR
12098if test -n "$AR"; then
12099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12100$as_echo "$AR" >&6; }
12101else
12102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103$as_echo "no" >&6; }
12104fi
12105
12106
12107    test -n "$AR" && break
12108  done
12109fi
12110if test -z "$AR"; then
12111  ac_ct_AR=$AR
12112  for ac_prog in ar
12113do
12114  # Extract the first word of "$ac_prog", so it can be a program name with args.
12115set dummy $ac_prog; ac_word=$2
12116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117$as_echo_n "checking for $ac_word... " >&6; }
12118if ${ac_cv_prog_ac_ct_AR+:} false; then :
12119  $as_echo_n "(cached) " >&6
12120else
12121  if test -n "$ac_ct_AR"; then
12122  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12123else
12124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125for as_dir in $PATH
12126do
12127  IFS=$as_save_IFS
12128  test -z "$as_dir" && as_dir=.
12129    for ac_exec_ext in '' $ac_executable_extensions; do
12130  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12131    ac_cv_prog_ac_ct_AR="$ac_prog"
12132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12133    break 2
12134  fi
12135done
12136  done
12137IFS=$as_save_IFS
12138
12139fi
12140fi
12141ac_ct_AR=$ac_cv_prog_ac_ct_AR
12142if test -n "$ac_ct_AR"; then
12143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12144$as_echo "$ac_ct_AR" >&6; }
12145else
12146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147$as_echo "no" >&6; }
12148fi
12149
12150
12151  test -n "$ac_ct_AR" && break
12152done
12153
12154  if test "x$ac_ct_AR" = x; then
12155    AR="false"
12156  else
12157    case $cross_compiling:$ac_tool_warned in
12158yes:)
12159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12161ac_tool_warned=yes ;;
12162esac
12163    AR=$ac_ct_AR
12164  fi
12165fi
12166
12167: ${AR=ar}
12168: ${AR_FLAGS=cru}
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12181$as_echo_n "checking for archiver @FILE support... " >&6; }
12182if ${lt_cv_ar_at_file+:} false; then :
12183  $as_echo_n "(cached) " >&6
12184else
12185  lt_cv_ar_at_file=no
12186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187/* end confdefs.h.  */
12188
12189int
12190main ()
12191{
12192
12193  ;
12194  return 0;
12195}
12196_ACEOF
12197if ac_fn_c_try_compile "$LINENO"; then :
12198  echo conftest.$ac_objext > conftest.lst
12199      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12200      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12201  (eval $lt_ar_try) 2>&5
12202  ac_status=$?
12203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12204  test $ac_status = 0; }
12205      if test "$ac_status" -eq 0; then
12206	# Ensure the archiver fails upon bogus file names.
12207	rm -f conftest.$ac_objext libconftest.a
12208	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12209  (eval $lt_ar_try) 2>&5
12210  ac_status=$?
12211  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12212  test $ac_status = 0; }
12213	if test "$ac_status" -ne 0; then
12214          lt_cv_ar_at_file=@
12215        fi
12216      fi
12217      rm -f conftest.* libconftest.a
12218
12219fi
12220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12221
12222fi
12223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12224$as_echo "$lt_cv_ar_at_file" >&6; }
12225
12226if test "x$lt_cv_ar_at_file" = xno; then
12227  archiver_list_spec=
12228else
12229  archiver_list_spec=$lt_cv_ar_at_file
12230fi
12231
12232
12233
12234
12235
12236
12237
12238if test -n "$ac_tool_prefix"; then
12239  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12240set dummy ${ac_tool_prefix}strip; ac_word=$2
12241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12242$as_echo_n "checking for $ac_word... " >&6; }
12243if ${ac_cv_prog_STRIP+:} false; then :
12244  $as_echo_n "(cached) " >&6
12245else
12246  if test -n "$STRIP"; then
12247  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12248else
12249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12250for as_dir in $PATH
12251do
12252  IFS=$as_save_IFS
12253  test -z "$as_dir" && as_dir=.
12254    for ac_exec_ext in '' $ac_executable_extensions; do
12255  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12256    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12257    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12258    break 2
12259  fi
12260done
12261  done
12262IFS=$as_save_IFS
12263
12264fi
12265fi
12266STRIP=$ac_cv_prog_STRIP
12267if test -n "$STRIP"; then
12268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12269$as_echo "$STRIP" >&6; }
12270else
12271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272$as_echo "no" >&6; }
12273fi
12274
12275
12276fi
12277if test -z "$ac_cv_prog_STRIP"; then
12278  ac_ct_STRIP=$STRIP
12279  # Extract the first word of "strip", so it can be a program name with args.
12280set dummy strip; ac_word=$2
12281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12282$as_echo_n "checking for $ac_word... " >&6; }
12283if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12284  $as_echo_n "(cached) " >&6
12285else
12286  if test -n "$ac_ct_STRIP"; then
12287  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12288else
12289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12290for as_dir in $PATH
12291do
12292  IFS=$as_save_IFS
12293  test -z "$as_dir" && as_dir=.
12294    for ac_exec_ext in '' $ac_executable_extensions; do
12295  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12296    ac_cv_prog_ac_ct_STRIP="strip"
12297    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12298    break 2
12299  fi
12300done
12301  done
12302IFS=$as_save_IFS
12303
12304fi
12305fi
12306ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12307if test -n "$ac_ct_STRIP"; then
12308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12309$as_echo "$ac_ct_STRIP" >&6; }
12310else
12311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12312$as_echo "no" >&6; }
12313fi
12314
12315  if test "x$ac_ct_STRIP" = x; then
12316    STRIP=":"
12317  else
12318    case $cross_compiling:$ac_tool_warned in
12319yes:)
12320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12322ac_tool_warned=yes ;;
12323esac
12324    STRIP=$ac_ct_STRIP
12325  fi
12326else
12327  STRIP="$ac_cv_prog_STRIP"
12328fi
12329
12330test -z "$STRIP" && STRIP=:
12331
12332
12333
12334
12335
12336
12337if test -n "$ac_tool_prefix"; then
12338  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12339set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12341$as_echo_n "checking for $ac_word... " >&6; }
12342if ${ac_cv_prog_RANLIB+:} false; then :
12343  $as_echo_n "(cached) " >&6
12344else
12345  if test -n "$RANLIB"; then
12346  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12347else
12348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12349for as_dir in $PATH
12350do
12351  IFS=$as_save_IFS
12352  test -z "$as_dir" && as_dir=.
12353    for ac_exec_ext in '' $ac_executable_extensions; do
12354  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12355    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12356    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12357    break 2
12358  fi
12359done
12360  done
12361IFS=$as_save_IFS
12362
12363fi
12364fi
12365RANLIB=$ac_cv_prog_RANLIB
12366if test -n "$RANLIB"; then
12367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12368$as_echo "$RANLIB" >&6; }
12369else
12370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12371$as_echo "no" >&6; }
12372fi
12373
12374
12375fi
12376if test -z "$ac_cv_prog_RANLIB"; then
12377  ac_ct_RANLIB=$RANLIB
12378  # Extract the first word of "ranlib", so it can be a program name with args.
12379set dummy ranlib; ac_word=$2
12380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12381$as_echo_n "checking for $ac_word... " >&6; }
12382if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12383  $as_echo_n "(cached) " >&6
12384else
12385  if test -n "$ac_ct_RANLIB"; then
12386  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12387else
12388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12389for as_dir in $PATH
12390do
12391  IFS=$as_save_IFS
12392  test -z "$as_dir" && as_dir=.
12393    for ac_exec_ext in '' $ac_executable_extensions; do
12394  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12395    ac_cv_prog_ac_ct_RANLIB="ranlib"
12396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12397    break 2
12398  fi
12399done
12400  done
12401IFS=$as_save_IFS
12402
12403fi
12404fi
12405ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12406if test -n "$ac_ct_RANLIB"; then
12407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12408$as_echo "$ac_ct_RANLIB" >&6; }
12409else
12410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411$as_echo "no" >&6; }
12412fi
12413
12414  if test "x$ac_ct_RANLIB" = x; then
12415    RANLIB=":"
12416  else
12417    case $cross_compiling:$ac_tool_warned in
12418yes:)
12419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12421ac_tool_warned=yes ;;
12422esac
12423    RANLIB=$ac_ct_RANLIB
12424  fi
12425else
12426  RANLIB="$ac_cv_prog_RANLIB"
12427fi
12428
12429test -z "$RANLIB" && RANLIB=:
12430
12431
12432
12433
12434
12435
12436# Determine commands to create old-style static archives.
12437old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12438old_postinstall_cmds='chmod 644 $oldlib'
12439old_postuninstall_cmds=
12440
12441if test -n "$RANLIB"; then
12442  case $host_os in
12443  openbsd*)
12444    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12445    ;;
12446  *)
12447    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12448    ;;
12449  esac
12450  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12451fi
12452
12453case $host_os in
12454  darwin*)
12455    lock_old_archive_extraction=yes ;;
12456  *)
12457    lock_old_archive_extraction=no ;;
12458esac
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498# If no C compiler was specified, use CC.
12499LTCC=${LTCC-"$CC"}
12500
12501# If no C compiler flags were specified, use CFLAGS.
12502LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12503
12504# Allow CC to be a program name with arguments.
12505compiler=$CC
12506
12507
12508# Check for command to grab the raw symbol name followed by C symbol from nm.
12509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12510$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12511if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12512  $as_echo_n "(cached) " >&6
12513else
12514
12515# These are sane defaults that work on at least a few old systems.
12516# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12517
12518# Character class describing NM global symbol codes.
12519symcode='[BCDEGRST]'
12520
12521# Regexp to match symbols that can be accessed directly from C.
12522sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12523
12524# Define system-specific variables.
12525case $host_os in
12526aix*)
12527  symcode='[BCDT]'
12528  ;;
12529cygwin* | mingw* | pw32* | cegcc*)
12530  symcode='[ABCDGISTW]'
12531  ;;
12532hpux*)
12533  if test "$host_cpu" = ia64; then
12534    symcode='[ABCDEGRST]'
12535  fi
12536  ;;
12537irix* | nonstopux*)
12538  symcode='[BCDEGRST]'
12539  ;;
12540osf*)
12541  symcode='[BCDEGQRST]'
12542  ;;
12543solaris*)
12544  symcode='[BDRT]'
12545  ;;
12546sco3.2v5*)
12547  symcode='[DT]'
12548  ;;
12549sysv4.2uw2*)
12550  symcode='[DT]'
12551  ;;
12552sysv5* | sco5v6* | unixware* | OpenUNIX*)
12553  symcode='[ABDT]'
12554  ;;
12555sysv4)
12556  symcode='[DFNSTU]'
12557  ;;
12558esac
12559
12560# If we're using GNU nm, then use its standard symbol codes.
12561case `$NM -V 2>&1` in
12562*GNU* | *'with BFD'*)
12563  symcode='[ABCDGIRSTW]' ;;
12564esac
12565
12566# Transform an extracted symbol line into a proper C declaration.
12567# Some systems (esp. on ia64) link data and code symbols differently,
12568# so use this general approach.
12569lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12570
12571# Transform an extracted symbol line into symbol name and symbol address
12572lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12573lt_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'"
12574
12575# Handle CRLF in mingw tool chain
12576opt_cr=
12577case $build_os in
12578mingw*)
12579  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12580  ;;
12581esac
12582
12583# Try without a prefix underscore, then with it.
12584for ac_symprfx in "" "_"; do
12585
12586  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12587  symxfrm="\\1 $ac_symprfx\\2 \\2"
12588
12589  # Write the raw and C identifiers.
12590  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12591    # Fake it for dumpbin and say T for any non-static function
12592    # and D for any global variable.
12593    # Also find C++ and __fastcall symbols from MSVC++,
12594    # which start with @ or ?.
12595    lt_cv_sys_global_symbol_pipe="$AWK '"\
12596"     {last_section=section; section=\$ 3};"\
12597"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12598"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12599"     \$ 0!~/External *\|/{next};"\
12600"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12601"     {if(hide[section]) next};"\
12602"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12603"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12604"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12605"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12606"     ' prfx=^$ac_symprfx"
12607  else
12608    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12609  fi
12610  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12611
12612  # Check to see that the pipe works correctly.
12613  pipe_works=no
12614
12615  rm -f conftest*
12616  cat > conftest.$ac_ext <<_LT_EOF
12617#ifdef __cplusplus
12618extern "C" {
12619#endif
12620char nm_test_var;
12621void nm_test_func(void);
12622void nm_test_func(void){}
12623#ifdef __cplusplus
12624}
12625#endif
12626int main(){nm_test_var='a';nm_test_func();return(0);}
12627_LT_EOF
12628
12629  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12630  (eval $ac_compile) 2>&5
12631  ac_status=$?
12632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12633  test $ac_status = 0; }; then
12634    # Now try to grab the symbols.
12635    nlist=conftest.nm
12636    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12637  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12638  ac_status=$?
12639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12640  test $ac_status = 0; } && test -s "$nlist"; then
12641      # Try sorting and uniquifying the output.
12642      if sort "$nlist" | uniq > "$nlist"T; then
12643	mv -f "$nlist"T "$nlist"
12644      else
12645	rm -f "$nlist"T
12646      fi
12647
12648      # Make sure that we snagged all the symbols we need.
12649      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12650	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12651	  cat <<_LT_EOF > conftest.$ac_ext
12652/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12653#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12654/* DATA imports from DLLs on WIN32 con't be const, because runtime
12655   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12656# define LT_DLSYM_CONST
12657#elif defined(__osf__)
12658/* This system does not cope well with relocations in const data.  */
12659# define LT_DLSYM_CONST
12660#else
12661# define LT_DLSYM_CONST const
12662#endif
12663
12664#ifdef __cplusplus
12665extern "C" {
12666#endif
12667
12668_LT_EOF
12669	  # Now generate the symbol file.
12670	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12671
12672	  cat <<_LT_EOF >> conftest.$ac_ext
12673
12674/* The mapping between symbol names and symbols.  */
12675LT_DLSYM_CONST struct {
12676  const char *name;
12677  void       *address;
12678}
12679lt__PROGRAM__LTX_preloaded_symbols[] =
12680{
12681  { "@PROGRAM@", (void *) 0 },
12682_LT_EOF
12683	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12684	  cat <<\_LT_EOF >> conftest.$ac_ext
12685  {0, (void *) 0}
12686};
12687
12688/* This works around a problem in FreeBSD linker */
12689#ifdef FREEBSD_WORKAROUND
12690static const void *lt_preloaded_setup() {
12691  return lt__PROGRAM__LTX_preloaded_symbols;
12692}
12693#endif
12694
12695#ifdef __cplusplus
12696}
12697#endif
12698_LT_EOF
12699	  # Now try linking the two files.
12700	  mv conftest.$ac_objext conftstm.$ac_objext
12701	  lt_globsym_save_LIBS=$LIBS
12702	  lt_globsym_save_CFLAGS=$CFLAGS
12703	  LIBS="conftstm.$ac_objext"
12704	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12705	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12706  (eval $ac_link) 2>&5
12707  ac_status=$?
12708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12709  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12710	    pipe_works=yes
12711	  fi
12712	  LIBS=$lt_globsym_save_LIBS
12713	  CFLAGS=$lt_globsym_save_CFLAGS
12714	else
12715	  echo "cannot find nm_test_func in $nlist" >&5
12716	fi
12717      else
12718	echo "cannot find nm_test_var in $nlist" >&5
12719      fi
12720    else
12721      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12722    fi
12723  else
12724    echo "$progname: failed program was:" >&5
12725    cat conftest.$ac_ext >&5
12726  fi
12727  rm -rf conftest* conftst*
12728
12729  # Do not use the global_symbol_pipe unless it works.
12730  if test "$pipe_works" = yes; then
12731    break
12732  else
12733    lt_cv_sys_global_symbol_pipe=
12734  fi
12735done
12736
12737fi
12738
12739if test -z "$lt_cv_sys_global_symbol_pipe"; then
12740  lt_cv_sys_global_symbol_to_cdecl=
12741fi
12742if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12744$as_echo "failed" >&6; }
12745else
12746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12747$as_echo "ok" >&6; }
12748fi
12749
12750# Response file support.
12751if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12752  nm_file_list_spec='@'
12753elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12754  nm_file_list_spec='@'
12755fi
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12784$as_echo_n "checking for sysroot... " >&6; }
12785
12786# Check whether --with-sysroot was given.
12787if test "${with_sysroot+set}" = set; then :
12788  withval=$with_sysroot;
12789else
12790  with_sysroot=no
12791fi
12792
12793
12794lt_sysroot=
12795case ${with_sysroot} in #(
12796 yes)
12797   if test "$GCC" = yes; then
12798     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12799   fi
12800   ;; #(
12801 /*)
12802   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12803   ;; #(
12804 no|'')
12805   ;; #(
12806 *)
12807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12808$as_echo "${with_sysroot}" >&6; }
12809   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12810   ;;
12811esac
12812
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12814$as_echo "${lt_sysroot:-no}" >&6; }
12815
12816
12817
12818
12819
12820# Check whether --enable-libtool-lock was given.
12821if test "${enable_libtool_lock+set}" = set; then :
12822  enableval=$enable_libtool_lock;
12823fi
12824
12825test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12826
12827# Some flags need to be propagated to the compiler or linker for good
12828# libtool support.
12829case $host in
12830ia64-*-hpux*)
12831  # Find out which ABI we are using.
12832  echo 'int i;' > conftest.$ac_ext
12833  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12834  (eval $ac_compile) 2>&5
12835  ac_status=$?
12836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12837  test $ac_status = 0; }; then
12838    case `/usr/bin/file conftest.$ac_objext` in
12839      *ELF-32*)
12840	HPUX_IA64_MODE="32"
12841	;;
12842      *ELF-64*)
12843	HPUX_IA64_MODE="64"
12844	;;
12845    esac
12846  fi
12847  rm -rf conftest*
12848  ;;
12849*-*-irix6*)
12850  # Find out which ABI we are using.
12851  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12852  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12853  (eval $ac_compile) 2>&5
12854  ac_status=$?
12855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12856  test $ac_status = 0; }; then
12857    if test "$lt_cv_prog_gnu_ld" = yes; then
12858      case `/usr/bin/file conftest.$ac_objext` in
12859	*32-bit*)
12860	  LD="${LD-ld} -melf32bsmip"
12861	  ;;
12862	*N32*)
12863	  LD="${LD-ld} -melf32bmipn32"
12864	  ;;
12865	*64-bit*)
12866	  LD="${LD-ld} -melf64bmip"
12867	;;
12868      esac
12869    else
12870      case `/usr/bin/file conftest.$ac_objext` in
12871	*32-bit*)
12872	  LD="${LD-ld} -32"
12873	  ;;
12874	*N32*)
12875	  LD="${LD-ld} -n32"
12876	  ;;
12877	*64-bit*)
12878	  LD="${LD-ld} -64"
12879	  ;;
12880      esac
12881    fi
12882  fi
12883  rm -rf conftest*
12884  ;;
12885
12886x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12887s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12888  # Find out which ABI we are using.
12889  echo 'int i;' > conftest.$ac_ext
12890  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12891  (eval $ac_compile) 2>&5
12892  ac_status=$?
12893  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12894  test $ac_status = 0; }; then
12895    case `/usr/bin/file conftest.o` in
12896      *32-bit*)
12897	case $host in
12898	  x86_64-*kfreebsd*-gnu)
12899	    LD="${LD-ld} -m elf_i386_fbsd"
12900	    ;;
12901	  x86_64-*linux*)
12902	    LD="${LD-ld} -m elf_i386"
12903	    ;;
12904	  ppc64-*linux*|powerpc64-*linux*)
12905	    LD="${LD-ld} -m elf32ppclinux"
12906	    ;;
12907	  s390x-*linux*)
12908	    LD="${LD-ld} -m elf_s390"
12909	    ;;
12910	  sparc64-*linux*)
12911	    LD="${LD-ld} -m elf32_sparc"
12912	    ;;
12913	esac
12914	;;
12915      *64-bit*)
12916	case $host in
12917	  x86_64-*kfreebsd*-gnu)
12918	    LD="${LD-ld} -m elf_x86_64_fbsd"
12919	    ;;
12920	  x86_64-*linux*)
12921	    LD="${LD-ld} -m elf_x86_64"
12922	    ;;
12923	  ppc*-*linux*|powerpc*-*linux*)
12924	    LD="${LD-ld} -m elf64ppc"
12925	    ;;
12926	  s390*-*linux*|s390*-*tpf*)
12927	    LD="${LD-ld} -m elf64_s390"
12928	    ;;
12929	  sparc*-*linux*)
12930	    LD="${LD-ld} -m elf64_sparc"
12931	    ;;
12932	esac
12933	;;
12934    esac
12935  fi
12936  rm -rf conftest*
12937  ;;
12938
12939*-*-sco3.2v5*)
12940  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12941  SAVE_CFLAGS="$CFLAGS"
12942  CFLAGS="$CFLAGS -belf"
12943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12944$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12945if ${lt_cv_cc_needs_belf+:} false; then :
12946  $as_echo_n "(cached) " >&6
12947else
12948  ac_ext=c
12949ac_cpp='$CPP $CPPFLAGS'
12950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12952ac_compiler_gnu=$ac_cv_c_compiler_gnu
12953
12954     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12955/* end confdefs.h.  */
12956
12957int
12958main ()
12959{
12960
12961  ;
12962  return 0;
12963}
12964_ACEOF
12965if ac_fn_c_try_link "$LINENO"; then :
12966  lt_cv_cc_needs_belf=yes
12967else
12968  lt_cv_cc_needs_belf=no
12969fi
12970rm -f core conftest.err conftest.$ac_objext \
12971    conftest$ac_exeext conftest.$ac_ext
12972     ac_ext=c
12973ac_cpp='$CPP $CPPFLAGS'
12974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12976ac_compiler_gnu=$ac_cv_c_compiler_gnu
12977
12978fi
12979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12980$as_echo "$lt_cv_cc_needs_belf" >&6; }
12981  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12982    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12983    CFLAGS="$SAVE_CFLAGS"
12984  fi
12985  ;;
12986*-*solaris*)
12987  # Find out which ABI we are using.
12988  echo 'int i;' > conftest.$ac_ext
12989  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12990  (eval $ac_compile) 2>&5
12991  ac_status=$?
12992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12993  test $ac_status = 0; }; then
12994    case `/usr/bin/file conftest.o` in
12995    *64-bit*)
12996      case $lt_cv_prog_gnu_ld in
12997      yes*)
12998        case $host in
12999        i?86-*-solaris*)
13000          LD="${LD-ld} -m elf_x86_64"
13001          ;;
13002        sparc*-*-solaris*)
13003          LD="${LD-ld} -m elf64_sparc"
13004          ;;
13005        esac
13006        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13007        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13008          LD="${LD-ld}_sol2"
13009        fi
13010        ;;
13011      *)
13012	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13013	  LD="${LD-ld} -64"
13014	fi
13015	;;
13016      esac
13017      ;;
13018    esac
13019  fi
13020  rm -rf conftest*
13021  ;;
13022esac
13023
13024need_locks="$enable_libtool_lock"
13025
13026if test -n "$ac_tool_prefix"; then
13027  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13028set dummy ${ac_tool_prefix}mt; ac_word=$2
13029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13030$as_echo_n "checking for $ac_word... " >&6; }
13031if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13032  $as_echo_n "(cached) " >&6
13033else
13034  if test -n "$MANIFEST_TOOL"; then
13035  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13036else
13037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13038for as_dir in $PATH
13039do
13040  IFS=$as_save_IFS
13041  test -z "$as_dir" && as_dir=.
13042    for ac_exec_ext in '' $ac_executable_extensions; do
13043  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13044    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13046    break 2
13047  fi
13048done
13049  done
13050IFS=$as_save_IFS
13051
13052fi
13053fi
13054MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13055if test -n "$MANIFEST_TOOL"; then
13056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13057$as_echo "$MANIFEST_TOOL" >&6; }
13058else
13059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13060$as_echo "no" >&6; }
13061fi
13062
13063
13064fi
13065if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13066  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13067  # Extract the first word of "mt", so it can be a program name with args.
13068set dummy mt; ac_word=$2
13069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13070$as_echo_n "checking for $ac_word... " >&6; }
13071if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13072  $as_echo_n "(cached) " >&6
13073else
13074  if test -n "$ac_ct_MANIFEST_TOOL"; then
13075  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13076else
13077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13078for as_dir in $PATH
13079do
13080  IFS=$as_save_IFS
13081  test -z "$as_dir" && as_dir=.
13082    for ac_exec_ext in '' $ac_executable_extensions; do
13083  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13084    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13086    break 2
13087  fi
13088done
13089  done
13090IFS=$as_save_IFS
13091
13092fi
13093fi
13094ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13095if test -n "$ac_ct_MANIFEST_TOOL"; then
13096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13097$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13098else
13099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13100$as_echo "no" >&6; }
13101fi
13102
13103  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13104    MANIFEST_TOOL=":"
13105  else
13106    case $cross_compiling:$ac_tool_warned in
13107yes:)
13108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13110ac_tool_warned=yes ;;
13111esac
13112    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13113  fi
13114else
13115  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13116fi
13117
13118test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13120$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13121if ${lt_cv_path_mainfest_tool+:} false; then :
13122  $as_echo_n "(cached) " >&6
13123else
13124  lt_cv_path_mainfest_tool=no
13125  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13126  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13127  cat conftest.err >&5
13128  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13129    lt_cv_path_mainfest_tool=yes
13130  fi
13131  rm -f conftest*
13132fi
13133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13134$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13135if test "x$lt_cv_path_mainfest_tool" != xyes; then
13136  MANIFEST_TOOL=:
13137fi
13138
13139
13140
13141
13142
13143
13144  case $host_os in
13145    rhapsody* | darwin*)
13146    if test -n "$ac_tool_prefix"; then
13147  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13148set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13150$as_echo_n "checking for $ac_word... " >&6; }
13151if ${ac_cv_prog_DSYMUTIL+:} false; then :
13152  $as_echo_n "(cached) " >&6
13153else
13154  if test -n "$DSYMUTIL"; then
13155  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13156else
13157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13158for as_dir in $PATH
13159do
13160  IFS=$as_save_IFS
13161  test -z "$as_dir" && as_dir=.
13162    for ac_exec_ext in '' $ac_executable_extensions; do
13163  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13164    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13166    break 2
13167  fi
13168done
13169  done
13170IFS=$as_save_IFS
13171
13172fi
13173fi
13174DSYMUTIL=$ac_cv_prog_DSYMUTIL
13175if test -n "$DSYMUTIL"; then
13176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13177$as_echo "$DSYMUTIL" >&6; }
13178else
13179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180$as_echo "no" >&6; }
13181fi
13182
13183
13184fi
13185if test -z "$ac_cv_prog_DSYMUTIL"; then
13186  ac_ct_DSYMUTIL=$DSYMUTIL
13187  # Extract the first word of "dsymutil", so it can be a program name with args.
13188set dummy dsymutil; ac_word=$2
13189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13190$as_echo_n "checking for $ac_word... " >&6; }
13191if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13192  $as_echo_n "(cached) " >&6
13193else
13194  if test -n "$ac_ct_DSYMUTIL"; then
13195  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13196else
13197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13198for as_dir in $PATH
13199do
13200  IFS=$as_save_IFS
13201  test -z "$as_dir" && as_dir=.
13202    for ac_exec_ext in '' $ac_executable_extensions; do
13203  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13204    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13206    break 2
13207  fi
13208done
13209  done
13210IFS=$as_save_IFS
13211
13212fi
13213fi
13214ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13215if test -n "$ac_ct_DSYMUTIL"; then
13216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13217$as_echo "$ac_ct_DSYMUTIL" >&6; }
13218else
13219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13220$as_echo "no" >&6; }
13221fi
13222
13223  if test "x$ac_ct_DSYMUTIL" = x; then
13224    DSYMUTIL=":"
13225  else
13226    case $cross_compiling:$ac_tool_warned in
13227yes:)
13228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13230ac_tool_warned=yes ;;
13231esac
13232    DSYMUTIL=$ac_ct_DSYMUTIL
13233  fi
13234else
13235  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13236fi
13237
13238    if test -n "$ac_tool_prefix"; then
13239  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13240set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13242$as_echo_n "checking for $ac_word... " >&6; }
13243if ${ac_cv_prog_NMEDIT+:} false; then :
13244  $as_echo_n "(cached) " >&6
13245else
13246  if test -n "$NMEDIT"; then
13247  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13248else
13249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13250for as_dir in $PATH
13251do
13252  IFS=$as_save_IFS
13253  test -z "$as_dir" && as_dir=.
13254    for ac_exec_ext in '' $ac_executable_extensions; do
13255  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13256    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13257    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13258    break 2
13259  fi
13260done
13261  done
13262IFS=$as_save_IFS
13263
13264fi
13265fi
13266NMEDIT=$ac_cv_prog_NMEDIT
13267if test -n "$NMEDIT"; then
13268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13269$as_echo "$NMEDIT" >&6; }
13270else
13271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13272$as_echo "no" >&6; }
13273fi
13274
13275
13276fi
13277if test -z "$ac_cv_prog_NMEDIT"; then
13278  ac_ct_NMEDIT=$NMEDIT
13279  # Extract the first word of "nmedit", so it can be a program name with args.
13280set dummy nmedit; ac_word=$2
13281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13282$as_echo_n "checking for $ac_word... " >&6; }
13283if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13284  $as_echo_n "(cached) " >&6
13285else
13286  if test -n "$ac_ct_NMEDIT"; then
13287  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13288else
13289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13290for as_dir in $PATH
13291do
13292  IFS=$as_save_IFS
13293  test -z "$as_dir" && as_dir=.
13294    for ac_exec_ext in '' $ac_executable_extensions; do
13295  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13296    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13297    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13298    break 2
13299  fi
13300done
13301  done
13302IFS=$as_save_IFS
13303
13304fi
13305fi
13306ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13307if test -n "$ac_ct_NMEDIT"; then
13308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13309$as_echo "$ac_ct_NMEDIT" >&6; }
13310else
13311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13312$as_echo "no" >&6; }
13313fi
13314
13315  if test "x$ac_ct_NMEDIT" = x; then
13316    NMEDIT=":"
13317  else
13318    case $cross_compiling:$ac_tool_warned in
13319yes:)
13320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13322ac_tool_warned=yes ;;
13323esac
13324    NMEDIT=$ac_ct_NMEDIT
13325  fi
13326else
13327  NMEDIT="$ac_cv_prog_NMEDIT"
13328fi
13329
13330    if test -n "$ac_tool_prefix"; then
13331  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13332set dummy ${ac_tool_prefix}lipo; ac_word=$2
13333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13334$as_echo_n "checking for $ac_word... " >&6; }
13335if ${ac_cv_prog_LIPO+:} false; then :
13336  $as_echo_n "(cached) " >&6
13337else
13338  if test -n "$LIPO"; then
13339  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13340else
13341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13342for as_dir in $PATH
13343do
13344  IFS=$as_save_IFS
13345  test -z "$as_dir" && as_dir=.
13346    for ac_exec_ext in '' $ac_executable_extensions; do
13347  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13348    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13349    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13350    break 2
13351  fi
13352done
13353  done
13354IFS=$as_save_IFS
13355
13356fi
13357fi
13358LIPO=$ac_cv_prog_LIPO
13359if test -n "$LIPO"; then
13360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13361$as_echo "$LIPO" >&6; }
13362else
13363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13364$as_echo "no" >&6; }
13365fi
13366
13367
13368fi
13369if test -z "$ac_cv_prog_LIPO"; then
13370  ac_ct_LIPO=$LIPO
13371  # Extract the first word of "lipo", so it can be a program name with args.
13372set dummy lipo; ac_word=$2
13373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13374$as_echo_n "checking for $ac_word... " >&6; }
13375if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13376  $as_echo_n "(cached) " >&6
13377else
13378  if test -n "$ac_ct_LIPO"; then
13379  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13380else
13381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13382for as_dir in $PATH
13383do
13384  IFS=$as_save_IFS
13385  test -z "$as_dir" && as_dir=.
13386    for ac_exec_ext in '' $ac_executable_extensions; do
13387  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13388    ac_cv_prog_ac_ct_LIPO="lipo"
13389    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13390    break 2
13391  fi
13392done
13393  done
13394IFS=$as_save_IFS
13395
13396fi
13397fi
13398ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13399if test -n "$ac_ct_LIPO"; then
13400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13401$as_echo "$ac_ct_LIPO" >&6; }
13402else
13403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13404$as_echo "no" >&6; }
13405fi
13406
13407  if test "x$ac_ct_LIPO" = x; then
13408    LIPO=":"
13409  else
13410    case $cross_compiling:$ac_tool_warned in
13411yes:)
13412{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13414ac_tool_warned=yes ;;
13415esac
13416    LIPO=$ac_ct_LIPO
13417  fi
13418else
13419  LIPO="$ac_cv_prog_LIPO"
13420fi
13421
13422    if test -n "$ac_tool_prefix"; then
13423  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13424set dummy ${ac_tool_prefix}otool; ac_word=$2
13425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13426$as_echo_n "checking for $ac_word... " >&6; }
13427if ${ac_cv_prog_OTOOL+:} false; then :
13428  $as_echo_n "(cached) " >&6
13429else
13430  if test -n "$OTOOL"; then
13431  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13432else
13433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13434for as_dir in $PATH
13435do
13436  IFS=$as_save_IFS
13437  test -z "$as_dir" && as_dir=.
13438    for ac_exec_ext in '' $ac_executable_extensions; do
13439  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13440    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13441    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13442    break 2
13443  fi
13444done
13445  done
13446IFS=$as_save_IFS
13447
13448fi
13449fi
13450OTOOL=$ac_cv_prog_OTOOL
13451if test -n "$OTOOL"; then
13452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13453$as_echo "$OTOOL" >&6; }
13454else
13455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13456$as_echo "no" >&6; }
13457fi
13458
13459
13460fi
13461if test -z "$ac_cv_prog_OTOOL"; then
13462  ac_ct_OTOOL=$OTOOL
13463  # Extract the first word of "otool", so it can be a program name with args.
13464set dummy otool; ac_word=$2
13465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13466$as_echo_n "checking for $ac_word... " >&6; }
13467if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13468  $as_echo_n "(cached) " >&6
13469else
13470  if test -n "$ac_ct_OTOOL"; then
13471  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13472else
13473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13474for as_dir in $PATH
13475do
13476  IFS=$as_save_IFS
13477  test -z "$as_dir" && as_dir=.
13478    for ac_exec_ext in '' $ac_executable_extensions; do
13479  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13480    ac_cv_prog_ac_ct_OTOOL="otool"
13481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13482    break 2
13483  fi
13484done
13485  done
13486IFS=$as_save_IFS
13487
13488fi
13489fi
13490ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13491if test -n "$ac_ct_OTOOL"; then
13492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13493$as_echo "$ac_ct_OTOOL" >&6; }
13494else
13495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13496$as_echo "no" >&6; }
13497fi
13498
13499  if test "x$ac_ct_OTOOL" = x; then
13500    OTOOL=":"
13501  else
13502    case $cross_compiling:$ac_tool_warned in
13503yes:)
13504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13506ac_tool_warned=yes ;;
13507esac
13508    OTOOL=$ac_ct_OTOOL
13509  fi
13510else
13511  OTOOL="$ac_cv_prog_OTOOL"
13512fi
13513
13514    if test -n "$ac_tool_prefix"; then
13515  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13516set dummy ${ac_tool_prefix}otool64; ac_word=$2
13517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13518$as_echo_n "checking for $ac_word... " >&6; }
13519if ${ac_cv_prog_OTOOL64+:} false; then :
13520  $as_echo_n "(cached) " >&6
13521else
13522  if test -n "$OTOOL64"; then
13523  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13524else
13525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526for as_dir in $PATH
13527do
13528  IFS=$as_save_IFS
13529  test -z "$as_dir" && as_dir=.
13530    for ac_exec_ext in '' $ac_executable_extensions; do
13531  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13532    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13533    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13534    break 2
13535  fi
13536done
13537  done
13538IFS=$as_save_IFS
13539
13540fi
13541fi
13542OTOOL64=$ac_cv_prog_OTOOL64
13543if test -n "$OTOOL64"; then
13544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13545$as_echo "$OTOOL64" >&6; }
13546else
13547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13548$as_echo "no" >&6; }
13549fi
13550
13551
13552fi
13553if test -z "$ac_cv_prog_OTOOL64"; then
13554  ac_ct_OTOOL64=$OTOOL64
13555  # Extract the first word of "otool64", so it can be a program name with args.
13556set dummy otool64; ac_word=$2
13557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13558$as_echo_n "checking for $ac_word... " >&6; }
13559if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13560  $as_echo_n "(cached) " >&6
13561else
13562  if test -n "$ac_ct_OTOOL64"; then
13563  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13564else
13565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566for as_dir in $PATH
13567do
13568  IFS=$as_save_IFS
13569  test -z "$as_dir" && as_dir=.
13570    for ac_exec_ext in '' $ac_executable_extensions; do
13571  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13572    ac_cv_prog_ac_ct_OTOOL64="otool64"
13573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13574    break 2
13575  fi
13576done
13577  done
13578IFS=$as_save_IFS
13579
13580fi
13581fi
13582ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13583if test -n "$ac_ct_OTOOL64"; then
13584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13585$as_echo "$ac_ct_OTOOL64" >&6; }
13586else
13587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13588$as_echo "no" >&6; }
13589fi
13590
13591  if test "x$ac_ct_OTOOL64" = x; then
13592    OTOOL64=":"
13593  else
13594    case $cross_compiling:$ac_tool_warned in
13595yes:)
13596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13598ac_tool_warned=yes ;;
13599esac
13600    OTOOL64=$ac_ct_OTOOL64
13601  fi
13602else
13603  OTOOL64="$ac_cv_prog_OTOOL64"
13604fi
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13633$as_echo_n "checking for -single_module linker flag... " >&6; }
13634if ${lt_cv_apple_cc_single_mod+:} false; then :
13635  $as_echo_n "(cached) " >&6
13636else
13637  lt_cv_apple_cc_single_mod=no
13638      if test -z "${LT_MULTI_MODULE}"; then
13639	# By default we will add the -single_module flag. You can override
13640	# by either setting the environment variable LT_MULTI_MODULE
13641	# non-empty at configure time, or by adding -multi_module to the
13642	# link flags.
13643	rm -rf libconftest.dylib*
13644	echo "int foo(void){return 1;}" > conftest.c
13645	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13646-dynamiclib -Wl,-single_module conftest.c" >&5
13647	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13648	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13649        _lt_result=$?
13650	# If there is a non-empty error log, and "single_module"
13651	# appears in it, assume the flag caused a linker warning
13652        if test -s conftest.err && $GREP single_module conftest.err; then
13653	  cat conftest.err >&5
13654	# Otherwise, if the output was created with a 0 exit code from
13655	# the compiler, it worked.
13656	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13657	  lt_cv_apple_cc_single_mod=yes
13658	else
13659	  cat conftest.err >&5
13660	fi
13661	rm -rf libconftest.dylib*
13662	rm -f conftest.*
13663      fi
13664fi
13665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13666$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13667
13668    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13669$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13670if ${lt_cv_ld_exported_symbols_list+:} false; then :
13671  $as_echo_n "(cached) " >&6
13672else
13673  lt_cv_ld_exported_symbols_list=no
13674      save_LDFLAGS=$LDFLAGS
13675      echo "_main" > conftest.sym
13676      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13677      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678/* end confdefs.h.  */
13679
13680int
13681main ()
13682{
13683
13684  ;
13685  return 0;
13686}
13687_ACEOF
13688if ac_fn_c_try_link "$LINENO"; then :
13689  lt_cv_ld_exported_symbols_list=yes
13690else
13691  lt_cv_ld_exported_symbols_list=no
13692fi
13693rm -f core conftest.err conftest.$ac_objext \
13694    conftest$ac_exeext conftest.$ac_ext
13695	LDFLAGS="$save_LDFLAGS"
13696
13697fi
13698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13699$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13700
13701    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13702$as_echo_n "checking for -force_load linker flag... " >&6; }
13703if ${lt_cv_ld_force_load+:} false; then :
13704  $as_echo_n "(cached) " >&6
13705else
13706  lt_cv_ld_force_load=no
13707      cat > conftest.c << _LT_EOF
13708int forced_loaded() { return 2;}
13709_LT_EOF
13710      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13711      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13712      echo "$AR cru libconftest.a conftest.o" >&5
13713      $AR cru libconftest.a conftest.o 2>&5
13714      echo "$RANLIB libconftest.a" >&5
13715      $RANLIB libconftest.a 2>&5
13716      cat > conftest.c << _LT_EOF
13717int main() { return 0;}
13718_LT_EOF
13719      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13720      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13721      _lt_result=$?
13722      if test -s conftest.err && $GREP force_load conftest.err; then
13723	cat conftest.err >&5
13724      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13725	lt_cv_ld_force_load=yes
13726      else
13727	cat conftest.err >&5
13728      fi
13729        rm -f conftest.err libconftest.a conftest conftest.c
13730        rm -rf conftest.dSYM
13731
13732fi
13733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13734$as_echo "$lt_cv_ld_force_load" >&6; }
13735    case $host_os in
13736    rhapsody* | darwin1.[012])
13737      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13738    darwin1.*)
13739      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13740    darwin*) # darwin 5.x on
13741      # if running on 10.5 or later, the deployment target defaults
13742      # to the OS version, if on x86, and 10.4, the deployment
13743      # target defaults to 10.4. Don't you love it?
13744      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13745	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13746	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13747	10.[012]*)
13748	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13749	10.*)
13750	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13751      esac
13752    ;;
13753  esac
13754    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13755      _lt_dar_single_mod='$single_module'
13756    fi
13757    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13758      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13759    else
13760      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13761    fi
13762    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13763      _lt_dsymutil='~$DSYMUTIL $lib || :'
13764    else
13765      _lt_dsymutil=
13766    fi
13767    ;;
13768  esac
13769
13770for ac_header in dlfcn.h
13771do :
13772  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13773"
13774if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13775  cat >>confdefs.h <<_ACEOF
13776#define HAVE_DLFCN_H 1
13777_ACEOF
13778
13779fi
13780
13781done
13782
13783
13784
13785
13786
13787# Set options
13788
13789
13790
13791        enable_dlopen=no
13792
13793
13794  enable_win32_dll=no
13795
13796
13797            # Check whether --enable-shared was given.
13798if test "${enable_shared+set}" = set; then :
13799  enableval=$enable_shared; p=${PACKAGE-default}
13800    case $enableval in
13801    yes) enable_shared=yes ;;
13802    no) enable_shared=no ;;
13803    *)
13804      enable_shared=no
13805      # Look at the argument we got.  We use all the common list separators.
13806      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13807      for pkg in $enableval; do
13808	IFS="$lt_save_ifs"
13809	if test "X$pkg" = "X$p"; then
13810	  enable_shared=yes
13811	fi
13812      done
13813      IFS="$lt_save_ifs"
13814      ;;
13815    esac
13816else
13817  enable_shared=yes
13818fi
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830# Check whether --with-pic was given.
13831if test "${with_pic+set}" = set; then :
13832  withval=$with_pic; lt_p=${PACKAGE-default}
13833    case $withval in
13834    yes|no) pic_mode=$withval ;;
13835    *)
13836      pic_mode=default
13837      # Look at the argument we got.  We use all the common list separators.
13838      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13839      for lt_pkg in $withval; do
13840	IFS="$lt_save_ifs"
13841	if test "X$lt_pkg" = "X$lt_p"; then
13842	  pic_mode=yes
13843	fi
13844      done
13845      IFS="$lt_save_ifs"
13846      ;;
13847    esac
13848else
13849  pic_mode=default
13850fi
13851
13852
13853test -z "$pic_mode" && pic_mode=default
13854
13855
13856
13857
13858
13859
13860
13861  # Check whether --enable-fast-install was given.
13862if test "${enable_fast_install+set}" = set; then :
13863  enableval=$enable_fast_install; p=${PACKAGE-default}
13864    case $enableval in
13865    yes) enable_fast_install=yes ;;
13866    no) enable_fast_install=no ;;
13867    *)
13868      enable_fast_install=no
13869      # Look at the argument we got.  We use all the common list separators.
13870      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13871      for pkg in $enableval; do
13872	IFS="$lt_save_ifs"
13873	if test "X$pkg" = "X$p"; then
13874	  enable_fast_install=yes
13875	fi
13876      done
13877      IFS="$lt_save_ifs"
13878      ;;
13879    esac
13880else
13881  enable_fast_install=yes
13882fi
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894# This can be used to rebuild libtool when needed
13895LIBTOOL_DEPS="$ltmain"
13896
13897# Always use our own libtool.
13898LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929test -z "$LN_S" && LN_S="ln -s"
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944if test -n "${ZSH_VERSION+set}" ; then
13945   setopt NO_GLOB_SUBST
13946fi
13947
13948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13949$as_echo_n "checking for objdir... " >&6; }
13950if ${lt_cv_objdir+:} false; then :
13951  $as_echo_n "(cached) " >&6
13952else
13953  rm -f .libs 2>/dev/null
13954mkdir .libs 2>/dev/null
13955if test -d .libs; then
13956  lt_cv_objdir=.libs
13957else
13958  # MS-DOS does not allow filenames that begin with a dot.
13959  lt_cv_objdir=_libs
13960fi
13961rmdir .libs 2>/dev/null
13962fi
13963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13964$as_echo "$lt_cv_objdir" >&6; }
13965objdir=$lt_cv_objdir
13966
13967
13968
13969
13970
13971cat >>confdefs.h <<_ACEOF
13972#define LT_OBJDIR "$lt_cv_objdir/"
13973_ACEOF
13974
13975
13976
13977
13978case $host_os in
13979aix3*)
13980  # AIX sometimes has problems with the GCC collect2 program.  For some
13981  # reason, if we set the COLLECT_NAMES environment variable, the problems
13982  # vanish in a puff of smoke.
13983  if test "X${COLLECT_NAMES+set}" != Xset; then
13984    COLLECT_NAMES=
13985    export COLLECT_NAMES
13986  fi
13987  ;;
13988esac
13989
13990# Global variables:
13991ofile=libtool
13992can_build_shared=yes
13993
13994# All known linkers require a `.a' archive for static linking (except MSVC,
13995# which needs '.lib').
13996libext=a
13997
13998with_gnu_ld="$lt_cv_prog_gnu_ld"
13999
14000old_CC="$CC"
14001old_CFLAGS="$CFLAGS"
14002
14003# Set sane defaults for various variables
14004test -z "$CC" && CC=cc
14005test -z "$LTCC" && LTCC=$CC
14006test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14007test -z "$LD" && LD=ld
14008test -z "$ac_objext" && ac_objext=o
14009
14010for cc_temp in $compiler""; do
14011  case $cc_temp in
14012    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14013    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14014    \-*) ;;
14015    *) break;;
14016  esac
14017done
14018cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14019
14020
14021# Only perform the check for file, if the check method requires it
14022test -z "$MAGIC_CMD" && MAGIC_CMD=file
14023case $deplibs_check_method in
14024file_magic*)
14025  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14026    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14027$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14028if ${lt_cv_path_MAGIC_CMD+:} false; then :
14029  $as_echo_n "(cached) " >&6
14030else
14031  case $MAGIC_CMD in
14032[\\/*] |  ?:[\\/]*)
14033  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14034  ;;
14035*)
14036  lt_save_MAGIC_CMD="$MAGIC_CMD"
14037  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14038  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14039  for ac_dir in $ac_dummy; do
14040    IFS="$lt_save_ifs"
14041    test -z "$ac_dir" && ac_dir=.
14042    if test -f $ac_dir/${ac_tool_prefix}file; then
14043      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14044      if test -n "$file_magic_test_file"; then
14045	case $deplibs_check_method in
14046	"file_magic "*)
14047	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14048	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14049	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14050	    $EGREP "$file_magic_regex" > /dev/null; then
14051	    :
14052	  else
14053	    cat <<_LT_EOF 1>&2
14054
14055*** Warning: the command libtool uses to detect shared libraries,
14056*** $file_magic_cmd, produces output that libtool cannot recognize.
14057*** The result is that libtool may fail to recognize shared libraries
14058*** as such.  This will affect the creation of libtool libraries that
14059*** depend on shared libraries, but programs linked with such libtool
14060*** libraries will work regardless of this problem.  Nevertheless, you
14061*** may want to report the problem to your system manager and/or to
14062*** bug-libtool@gnu.org
14063
14064_LT_EOF
14065	  fi ;;
14066	esac
14067      fi
14068      break
14069    fi
14070  done
14071  IFS="$lt_save_ifs"
14072  MAGIC_CMD="$lt_save_MAGIC_CMD"
14073  ;;
14074esac
14075fi
14076
14077MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14078if test -n "$MAGIC_CMD"; then
14079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14080$as_echo "$MAGIC_CMD" >&6; }
14081else
14082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14083$as_echo "no" >&6; }
14084fi
14085
14086
14087
14088
14089
14090if test -z "$lt_cv_path_MAGIC_CMD"; then
14091  if test -n "$ac_tool_prefix"; then
14092    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14093$as_echo_n "checking for file... " >&6; }
14094if ${lt_cv_path_MAGIC_CMD+:} false; then :
14095  $as_echo_n "(cached) " >&6
14096else
14097  case $MAGIC_CMD in
14098[\\/*] |  ?:[\\/]*)
14099  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14100  ;;
14101*)
14102  lt_save_MAGIC_CMD="$MAGIC_CMD"
14103  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14104  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14105  for ac_dir in $ac_dummy; do
14106    IFS="$lt_save_ifs"
14107    test -z "$ac_dir" && ac_dir=.
14108    if test -f $ac_dir/file; then
14109      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14110      if test -n "$file_magic_test_file"; then
14111	case $deplibs_check_method in
14112	"file_magic "*)
14113	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14114	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14115	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14116	    $EGREP "$file_magic_regex" > /dev/null; then
14117	    :
14118	  else
14119	    cat <<_LT_EOF 1>&2
14120
14121*** Warning: the command libtool uses to detect shared libraries,
14122*** $file_magic_cmd, produces output that libtool cannot recognize.
14123*** The result is that libtool may fail to recognize shared libraries
14124*** as such.  This will affect the creation of libtool libraries that
14125*** depend on shared libraries, but programs linked with such libtool
14126*** libraries will work regardless of this problem.  Nevertheless, you
14127*** may want to report the problem to your system manager and/or to
14128*** bug-libtool@gnu.org
14129
14130_LT_EOF
14131	  fi ;;
14132	esac
14133      fi
14134      break
14135    fi
14136  done
14137  IFS="$lt_save_ifs"
14138  MAGIC_CMD="$lt_save_MAGIC_CMD"
14139  ;;
14140esac
14141fi
14142
14143MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14144if test -n "$MAGIC_CMD"; then
14145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14146$as_echo "$MAGIC_CMD" >&6; }
14147else
14148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14149$as_echo "no" >&6; }
14150fi
14151
14152
14153  else
14154    MAGIC_CMD=:
14155  fi
14156fi
14157
14158  fi
14159  ;;
14160esac
14161
14162# Use C for the default configuration in the libtool script
14163
14164lt_save_CC="$CC"
14165ac_ext=c
14166ac_cpp='$CPP $CPPFLAGS'
14167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14169ac_compiler_gnu=$ac_cv_c_compiler_gnu
14170
14171
14172# Source file extension for C test sources.
14173ac_ext=c
14174
14175# Object file extension for compiled C test sources.
14176objext=o
14177objext=$objext
14178
14179# Code to be used in simple compile tests
14180lt_simple_compile_test_code="int some_variable = 0;"
14181
14182# Code to be used in simple link tests
14183lt_simple_link_test_code='int main(){return(0);}'
14184
14185
14186
14187
14188
14189
14190
14191# If no C compiler was specified, use CC.
14192LTCC=${LTCC-"$CC"}
14193
14194# If no C compiler flags were specified, use CFLAGS.
14195LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14196
14197# Allow CC to be a program name with arguments.
14198compiler=$CC
14199
14200# Save the default compiler, since it gets overwritten when the other
14201# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14202compiler_DEFAULT=$CC
14203
14204# save warnings/boilerplate of simple test code
14205ac_outfile=conftest.$ac_objext
14206echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14207eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14208_lt_compiler_boilerplate=`cat conftest.err`
14209$RM conftest*
14210
14211ac_outfile=conftest.$ac_objext
14212echo "$lt_simple_link_test_code" >conftest.$ac_ext
14213eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14214_lt_linker_boilerplate=`cat conftest.err`
14215$RM -r conftest*
14216
14217
14218if test -n "$compiler"; then
14219
14220lt_prog_compiler_no_builtin_flag=
14221
14222if test "$GCC" = yes; then
14223  case $cc_basename in
14224  nvcc*)
14225    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14226  *)
14227    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14228  esac
14229
14230  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14231$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14232if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14233  $as_echo_n "(cached) " >&6
14234else
14235  lt_cv_prog_compiler_rtti_exceptions=no
14236   ac_outfile=conftest.$ac_objext
14237   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14238   lt_compiler_flag="-fno-rtti -fno-exceptions"
14239   # Insert the option either (1) after the last *FLAGS variable, or
14240   # (2) before a word containing "conftest.", or (3) at the end.
14241   # Note that $ac_compile itself does not contain backslashes and begins
14242   # with a dollar sign (not a hyphen), so the echo should work correctly.
14243   # The option is referenced via a variable to avoid confusing sed.
14244   lt_compile=`echo "$ac_compile" | $SED \
14245   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14246   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14247   -e 's:$: $lt_compiler_flag:'`
14248   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14249   (eval "$lt_compile" 2>conftest.err)
14250   ac_status=$?
14251   cat conftest.err >&5
14252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253   if (exit $ac_status) && test -s "$ac_outfile"; then
14254     # The compiler can only warn and ignore the option if not recognized
14255     # So say no if there are warnings other than the usual output.
14256     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14257     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14258     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14259       lt_cv_prog_compiler_rtti_exceptions=yes
14260     fi
14261   fi
14262   $RM conftest*
14263
14264fi
14265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14266$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14267
14268if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14269    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14270else
14271    :
14272fi
14273
14274fi
14275
14276
14277
14278
14279
14280
14281  lt_prog_compiler_wl=
14282lt_prog_compiler_pic=
14283lt_prog_compiler_static=
14284
14285
14286  if test "$GCC" = yes; then
14287    lt_prog_compiler_wl='-Wl,'
14288    lt_prog_compiler_static='-static'
14289
14290    case $host_os in
14291      aix*)
14292      # All AIX code is PIC.
14293      if test "$host_cpu" = ia64; then
14294	# AIX 5 now supports IA64 processor
14295	lt_prog_compiler_static='-Bstatic'
14296      fi
14297      ;;
14298
14299    amigaos*)
14300      case $host_cpu in
14301      powerpc)
14302            # see comment about AmigaOS4 .so support
14303            lt_prog_compiler_pic='-fPIC'
14304        ;;
14305      m68k)
14306            # FIXME: we need at least 68020 code to build shared libraries, but
14307            # adding the `-m68020' flag to GCC prevents building anything better,
14308            # like `-m68040'.
14309            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14310        ;;
14311      esac
14312      ;;
14313
14314    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14315      # PIC is the default for these OSes.
14316      ;;
14317
14318    mingw* | cygwin* | pw32* | os2* | cegcc*)
14319      # This hack is so that the source file can tell whether it is being
14320      # built for inclusion in a dll (and should export symbols for example).
14321      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14322      # (--disable-auto-import) libraries
14323      lt_prog_compiler_pic='-DDLL_EXPORT'
14324      ;;
14325
14326    darwin* | rhapsody*)
14327      # PIC is the default on this platform
14328      # Common symbols not allowed in MH_DYLIB files
14329      lt_prog_compiler_pic='-fno-common'
14330      ;;
14331
14332    haiku*)
14333      # PIC is the default for Haiku.
14334      # The "-static" flag exists, but is broken.
14335      lt_prog_compiler_static=
14336      ;;
14337
14338    hpux*)
14339      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14340      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14341      # sets the default TLS model and affects inlining.
14342      case $host_cpu in
14343      hppa*64*)
14344	# +Z the default
14345	;;
14346      *)
14347	lt_prog_compiler_pic='-fPIC'
14348	;;
14349      esac
14350      ;;
14351
14352    interix[3-9]*)
14353      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14354      # Instead, we relocate shared libraries at runtime.
14355      ;;
14356
14357    msdosdjgpp*)
14358      # Just because we use GCC doesn't mean we suddenly get shared libraries
14359      # on systems that don't support them.
14360      lt_prog_compiler_can_build_shared=no
14361      enable_shared=no
14362      ;;
14363
14364    *nto* | *qnx*)
14365      # QNX uses GNU C++, but need to define -shared option too, otherwise
14366      # it will coredump.
14367      lt_prog_compiler_pic='-fPIC -shared'
14368      ;;
14369
14370    sysv4*MP*)
14371      if test -d /usr/nec; then
14372	lt_prog_compiler_pic=-Kconform_pic
14373      fi
14374      ;;
14375
14376    *)
14377      lt_prog_compiler_pic='-fPIC'
14378      ;;
14379    esac
14380
14381    case $cc_basename in
14382    nvcc*) # Cuda Compiler Driver 2.2
14383      lt_prog_compiler_wl='-Xlinker '
14384      if test -n "$lt_prog_compiler_pic"; then
14385        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14386      fi
14387      ;;
14388    esac
14389  else
14390    # PORTME Check for flag to pass linker flags through the system compiler.
14391    case $host_os in
14392    aix*)
14393      lt_prog_compiler_wl='-Wl,'
14394      if test "$host_cpu" = ia64; then
14395	# AIX 5 now supports IA64 processor
14396	lt_prog_compiler_static='-Bstatic'
14397      else
14398	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14399      fi
14400      ;;
14401
14402    mingw* | cygwin* | pw32* | os2* | cegcc*)
14403      # This hack is so that the source file can tell whether it is being
14404      # built for inclusion in a dll (and should export symbols for example).
14405      lt_prog_compiler_pic='-DDLL_EXPORT'
14406      ;;
14407
14408    hpux9* | hpux10* | hpux11*)
14409      lt_prog_compiler_wl='-Wl,'
14410      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14411      # not for PA HP-UX.
14412      case $host_cpu in
14413      hppa*64*|ia64*)
14414	# +Z the default
14415	;;
14416      *)
14417	lt_prog_compiler_pic='+Z'
14418	;;
14419      esac
14420      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14421      lt_prog_compiler_static='${wl}-a ${wl}archive'
14422      ;;
14423
14424    irix5* | irix6* | nonstopux*)
14425      lt_prog_compiler_wl='-Wl,'
14426      # PIC (with -KPIC) is the default.
14427      lt_prog_compiler_static='-non_shared'
14428      ;;
14429
14430    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14431      case $cc_basename in
14432      # old Intel for x86_64 which still supported -KPIC.
14433      ecc*)
14434	lt_prog_compiler_wl='-Wl,'
14435	lt_prog_compiler_pic='-KPIC'
14436	lt_prog_compiler_static='-static'
14437        ;;
14438      # icc used to be incompatible with GCC.
14439      # ICC 10 doesn't accept -KPIC any more.
14440      icc* | ifort*)
14441	lt_prog_compiler_wl='-Wl,'
14442	lt_prog_compiler_pic='-fPIC'
14443	lt_prog_compiler_static='-static'
14444        ;;
14445      # Lahey Fortran 8.1.
14446      lf95*)
14447	lt_prog_compiler_wl='-Wl,'
14448	lt_prog_compiler_pic='--shared'
14449	lt_prog_compiler_static='--static'
14450	;;
14451      nagfor*)
14452	# NAG Fortran compiler
14453	lt_prog_compiler_wl='-Wl,-Wl,,'
14454	lt_prog_compiler_pic='-PIC'
14455	lt_prog_compiler_static='-Bstatic'
14456	;;
14457      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14458        # Portland Group compilers (*not* the Pentium gcc compiler,
14459	# which looks to be a dead project)
14460	lt_prog_compiler_wl='-Wl,'
14461	lt_prog_compiler_pic='-fpic'
14462	lt_prog_compiler_static='-Bstatic'
14463        ;;
14464      ccc*)
14465        lt_prog_compiler_wl='-Wl,'
14466        # All Alpha code is PIC.
14467        lt_prog_compiler_static='-non_shared'
14468        ;;
14469      xl* | bgxl* | bgf* | mpixl*)
14470	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14471	lt_prog_compiler_wl='-Wl,'
14472	lt_prog_compiler_pic='-qpic'
14473	lt_prog_compiler_static='-qstaticlink'
14474	;;
14475      *)
14476	case `$CC -V 2>&1 | sed 5q` in
14477	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14478	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14479	  lt_prog_compiler_pic='-KPIC'
14480	  lt_prog_compiler_static='-Bstatic'
14481	  lt_prog_compiler_wl=''
14482	  ;;
14483	*Sun\ F* | *Sun*Fortran*)
14484	  lt_prog_compiler_pic='-KPIC'
14485	  lt_prog_compiler_static='-Bstatic'
14486	  lt_prog_compiler_wl='-Qoption ld '
14487	  ;;
14488	*Sun\ C*)
14489	  # Sun C 5.9
14490	  lt_prog_compiler_pic='-KPIC'
14491	  lt_prog_compiler_static='-Bstatic'
14492	  lt_prog_compiler_wl='-Wl,'
14493	  ;;
14494        *Intel*\ [CF]*Compiler*)
14495	  lt_prog_compiler_wl='-Wl,'
14496	  lt_prog_compiler_pic='-fPIC'
14497	  lt_prog_compiler_static='-static'
14498	  ;;
14499	*Portland\ Group*)
14500	  lt_prog_compiler_wl='-Wl,'
14501	  lt_prog_compiler_pic='-fpic'
14502	  lt_prog_compiler_static='-Bstatic'
14503	  ;;
14504	esac
14505	;;
14506      esac
14507      ;;
14508
14509    newsos6)
14510      lt_prog_compiler_pic='-KPIC'
14511      lt_prog_compiler_static='-Bstatic'
14512      ;;
14513
14514    *nto* | *qnx*)
14515      # QNX uses GNU C++, but need to define -shared option too, otherwise
14516      # it will coredump.
14517      lt_prog_compiler_pic='-fPIC -shared'
14518      ;;
14519
14520    osf3* | osf4* | osf5*)
14521      lt_prog_compiler_wl='-Wl,'
14522      # All OSF/1 code is PIC.
14523      lt_prog_compiler_static='-non_shared'
14524      ;;
14525
14526    rdos*)
14527      lt_prog_compiler_static='-non_shared'
14528      ;;
14529
14530    solaris*)
14531      lt_prog_compiler_pic='-KPIC'
14532      lt_prog_compiler_static='-Bstatic'
14533      case $cc_basename in
14534      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14535	lt_prog_compiler_wl='-Qoption ld ';;
14536      *)
14537	lt_prog_compiler_wl='-Wl,';;
14538      esac
14539      ;;
14540
14541    sunos4*)
14542      lt_prog_compiler_wl='-Qoption ld '
14543      lt_prog_compiler_pic='-PIC'
14544      lt_prog_compiler_static='-Bstatic'
14545      ;;
14546
14547    sysv4 | sysv4.2uw2* | sysv4.3*)
14548      lt_prog_compiler_wl='-Wl,'
14549      lt_prog_compiler_pic='-KPIC'
14550      lt_prog_compiler_static='-Bstatic'
14551      ;;
14552
14553    sysv4*MP*)
14554      if test -d /usr/nec ;then
14555	lt_prog_compiler_pic='-Kconform_pic'
14556	lt_prog_compiler_static='-Bstatic'
14557      fi
14558      ;;
14559
14560    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14561      lt_prog_compiler_wl='-Wl,'
14562      lt_prog_compiler_pic='-KPIC'
14563      lt_prog_compiler_static='-Bstatic'
14564      ;;
14565
14566    unicos*)
14567      lt_prog_compiler_wl='-Wl,'
14568      lt_prog_compiler_can_build_shared=no
14569      ;;
14570
14571    uts4*)
14572      lt_prog_compiler_pic='-pic'
14573      lt_prog_compiler_static='-Bstatic'
14574      ;;
14575
14576    *)
14577      lt_prog_compiler_can_build_shared=no
14578      ;;
14579    esac
14580  fi
14581
14582case $host_os in
14583  # For platforms which do not support PIC, -DPIC is meaningless:
14584  *djgpp*)
14585    lt_prog_compiler_pic=
14586    ;;
14587  *)
14588    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14589    ;;
14590esac
14591
14592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14593$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14594if ${lt_cv_prog_compiler_pic+:} false; then :
14595  $as_echo_n "(cached) " >&6
14596else
14597  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14598fi
14599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14600$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14601lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14602
14603#
14604# Check to make sure the PIC flag actually works.
14605#
14606if test -n "$lt_prog_compiler_pic"; then
14607  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14608$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14609if ${lt_cv_prog_compiler_pic_works+:} false; then :
14610  $as_echo_n "(cached) " >&6
14611else
14612  lt_cv_prog_compiler_pic_works=no
14613   ac_outfile=conftest.$ac_objext
14614   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14615   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14616   # Insert the option either (1) after the last *FLAGS variable, or
14617   # (2) before a word containing "conftest.", or (3) at the end.
14618   # Note that $ac_compile itself does not contain backslashes and begins
14619   # with a dollar sign (not a hyphen), so the echo should work correctly.
14620   # The option is referenced via a variable to avoid confusing sed.
14621   lt_compile=`echo "$ac_compile" | $SED \
14622   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14623   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14624   -e 's:$: $lt_compiler_flag:'`
14625   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14626   (eval "$lt_compile" 2>conftest.err)
14627   ac_status=$?
14628   cat conftest.err >&5
14629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630   if (exit $ac_status) && test -s "$ac_outfile"; then
14631     # The compiler can only warn and ignore the option if not recognized
14632     # So say no if there are warnings other than the usual output.
14633     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14634     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14635     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14636       lt_cv_prog_compiler_pic_works=yes
14637     fi
14638   fi
14639   $RM conftest*
14640
14641fi
14642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14643$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14644
14645if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14646    case $lt_prog_compiler_pic in
14647     "" | " "*) ;;
14648     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14649     esac
14650else
14651    lt_prog_compiler_pic=
14652     lt_prog_compiler_can_build_shared=no
14653fi
14654
14655fi
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667#
14668# Check to make sure the static flag actually works.
14669#
14670wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14672$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14673if ${lt_cv_prog_compiler_static_works+:} false; then :
14674  $as_echo_n "(cached) " >&6
14675else
14676  lt_cv_prog_compiler_static_works=no
14677   save_LDFLAGS="$LDFLAGS"
14678   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14679   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14680   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14681     # The linker can only warn and ignore the option if not recognized
14682     # So say no if there are warnings
14683     if test -s conftest.err; then
14684       # Append any errors to the config.log.
14685       cat conftest.err 1>&5
14686       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14687       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14688       if diff conftest.exp conftest.er2 >/dev/null; then
14689         lt_cv_prog_compiler_static_works=yes
14690       fi
14691     else
14692       lt_cv_prog_compiler_static_works=yes
14693     fi
14694   fi
14695   $RM -r conftest*
14696   LDFLAGS="$save_LDFLAGS"
14697
14698fi
14699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14700$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14701
14702if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14703    :
14704else
14705    lt_prog_compiler_static=
14706fi
14707
14708
14709
14710
14711
14712
14713
14714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14715$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14716if ${lt_cv_prog_compiler_c_o+:} false; then :
14717  $as_echo_n "(cached) " >&6
14718else
14719  lt_cv_prog_compiler_c_o=no
14720   $RM -r conftest 2>/dev/null
14721   mkdir conftest
14722   cd conftest
14723   mkdir out
14724   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14725
14726   lt_compiler_flag="-o out/conftest2.$ac_objext"
14727   # Insert the option either (1) after the last *FLAGS variable, or
14728   # (2) before a word containing "conftest.", or (3) at the end.
14729   # Note that $ac_compile itself does not contain backslashes and begins
14730   # with a dollar sign (not a hyphen), so the echo should work correctly.
14731   lt_compile=`echo "$ac_compile" | $SED \
14732   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14733   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14734   -e 's:$: $lt_compiler_flag:'`
14735   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14736   (eval "$lt_compile" 2>out/conftest.err)
14737   ac_status=$?
14738   cat out/conftest.err >&5
14739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14741   then
14742     # The compiler can only warn and ignore the option if not recognized
14743     # So say no if there are warnings
14744     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14745     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14746     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14747       lt_cv_prog_compiler_c_o=yes
14748     fi
14749   fi
14750   chmod u+w . 2>&5
14751   $RM conftest*
14752   # SGI C++ compiler will create directory out/ii_files/ for
14753   # template instantiation
14754   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14755   $RM out/* && rmdir out
14756   cd ..
14757   $RM -r conftest
14758   $RM conftest*
14759
14760fi
14761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14762$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14763
14764
14765
14766
14767
14768
14769  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14770$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14771if ${lt_cv_prog_compiler_c_o+:} false; then :
14772  $as_echo_n "(cached) " >&6
14773else
14774  lt_cv_prog_compiler_c_o=no
14775   $RM -r conftest 2>/dev/null
14776   mkdir conftest
14777   cd conftest
14778   mkdir out
14779   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14780
14781   lt_compiler_flag="-o out/conftest2.$ac_objext"
14782   # Insert the option either (1) after the last *FLAGS variable, or
14783   # (2) before a word containing "conftest.", or (3) at the end.
14784   # Note that $ac_compile itself does not contain backslashes and begins
14785   # with a dollar sign (not a hyphen), so the echo should work correctly.
14786   lt_compile=`echo "$ac_compile" | $SED \
14787   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14788   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14789   -e 's:$: $lt_compiler_flag:'`
14790   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14791   (eval "$lt_compile" 2>out/conftest.err)
14792   ac_status=$?
14793   cat out/conftest.err >&5
14794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14796   then
14797     # The compiler can only warn and ignore the option if not recognized
14798     # So say no if there are warnings
14799     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14800     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14801     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14802       lt_cv_prog_compiler_c_o=yes
14803     fi
14804   fi
14805   chmod u+w . 2>&5
14806   $RM conftest*
14807   # SGI C++ compiler will create directory out/ii_files/ for
14808   # template instantiation
14809   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14810   $RM out/* && rmdir out
14811   cd ..
14812   $RM -r conftest
14813   $RM conftest*
14814
14815fi
14816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14817$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14818
14819
14820
14821
14822hard_links="nottested"
14823if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14824  # do not overwrite the value of need_locks provided by the user
14825  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14826$as_echo_n "checking if we can lock with hard links... " >&6; }
14827  hard_links=yes
14828  $RM conftest*
14829  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14830  touch conftest.a
14831  ln conftest.a conftest.b 2>&5 || hard_links=no
14832  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14834$as_echo "$hard_links" >&6; }
14835  if test "$hard_links" = no; then
14836    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14837$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14838    need_locks=warn
14839  fi
14840else
14841  need_locks=no
14842fi
14843
14844
14845
14846
14847
14848
14849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14850$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14851
14852  runpath_var=
14853  allow_undefined_flag=
14854  always_export_symbols=no
14855  archive_cmds=
14856  archive_expsym_cmds=
14857  compiler_needs_object=no
14858  enable_shared_with_static_runtimes=no
14859  export_dynamic_flag_spec=
14860  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14861  hardcode_automatic=no
14862  hardcode_direct=no
14863  hardcode_direct_absolute=no
14864  hardcode_libdir_flag_spec=
14865  hardcode_libdir_separator=
14866  hardcode_minus_L=no
14867  hardcode_shlibpath_var=unsupported
14868  inherit_rpath=no
14869  link_all_deplibs=unknown
14870  module_cmds=
14871  module_expsym_cmds=
14872  old_archive_from_new_cmds=
14873  old_archive_from_expsyms_cmds=
14874  thread_safe_flag_spec=
14875  whole_archive_flag_spec=
14876  # include_expsyms should be a list of space-separated symbols to be *always*
14877  # included in the symbol list
14878  include_expsyms=
14879  # exclude_expsyms can be an extended regexp of symbols to exclude
14880  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14881  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14882  # as well as any symbol that contains `d'.
14883  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14884  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14885  # platforms (ab)use it in PIC code, but their linkers get confused if
14886  # the symbol is explicitly referenced.  Since portable code cannot
14887  # rely on this symbol name, it's probably fine to never include it in
14888  # preloaded symbol tables.
14889  # Exclude shared library initialization/finalization symbols.
14890  extract_expsyms_cmds=
14891
14892  case $host_os in
14893  cygwin* | mingw* | pw32* | cegcc*)
14894    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14895    # When not using gcc, we currently assume that we are using
14896    # Microsoft Visual C++.
14897    if test "$GCC" != yes; then
14898      with_gnu_ld=no
14899    fi
14900    ;;
14901  interix*)
14902    # we just hope/assume this is gcc and not c89 (= MSVC++)
14903    with_gnu_ld=yes
14904    ;;
14905  openbsd*)
14906    with_gnu_ld=no
14907    ;;
14908  linux* | k*bsd*-gnu | gnu*)
14909    link_all_deplibs=no
14910    ;;
14911  esac
14912
14913  ld_shlibs=yes
14914
14915  # On some targets, GNU ld is compatible enough with the native linker
14916  # that we're better off using the native interface for both.
14917  lt_use_gnu_ld_interface=no
14918  if test "$with_gnu_ld" = yes; then
14919    case $host_os in
14920      aix*)
14921	# The AIX port of GNU ld has always aspired to compatibility
14922	# with the native linker.  However, as the warning in the GNU ld
14923	# block says, versions before 2.19.5* couldn't really create working
14924	# shared libraries, regardless of the interface used.
14925	case `$LD -v 2>&1` in
14926	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14927	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14928	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14929	  *)
14930	    lt_use_gnu_ld_interface=yes
14931	    ;;
14932	esac
14933	;;
14934      *)
14935	lt_use_gnu_ld_interface=yes
14936	;;
14937    esac
14938  fi
14939
14940  if test "$lt_use_gnu_ld_interface" = yes; then
14941    # If archive_cmds runs LD, not CC, wlarc should be empty
14942    wlarc='${wl}'
14943
14944    # Set some defaults for GNU ld with shared library support. These
14945    # are reset later if shared libraries are not supported. Putting them
14946    # here allows them to be overridden if necessary.
14947    runpath_var=LD_RUN_PATH
14948    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14949    export_dynamic_flag_spec='${wl}--export-dynamic'
14950    # ancient GNU ld didn't support --whole-archive et. al.
14951    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14952      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14953    else
14954      whole_archive_flag_spec=
14955    fi
14956    supports_anon_versioning=no
14957    case `$LD -v 2>&1` in
14958      *GNU\ gold*) supports_anon_versioning=yes ;;
14959      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14960      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14961      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14962      *\ 2.11.*) ;; # other 2.11 versions
14963      *) supports_anon_versioning=yes ;;
14964    esac
14965
14966    # See if GNU ld supports shared libraries.
14967    case $host_os in
14968    aix[3-9]*)
14969      # On AIX/PPC, the GNU linker is very broken
14970      if test "$host_cpu" != ia64; then
14971	ld_shlibs=no
14972	cat <<_LT_EOF 1>&2
14973
14974*** Warning: the GNU linker, at least up to release 2.19, is reported
14975*** to be unable to reliably create shared libraries on AIX.
14976*** Therefore, libtool is disabling shared libraries support.  If you
14977*** really care for shared libraries, you may want to install binutils
14978*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14979*** You will then need to restart the configuration process.
14980
14981_LT_EOF
14982      fi
14983      ;;
14984
14985    amigaos*)
14986      case $host_cpu in
14987      powerpc)
14988            # see comment about AmigaOS4 .so support
14989            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14990            archive_expsym_cmds=''
14991        ;;
14992      m68k)
14993            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)'
14994            hardcode_libdir_flag_spec='-L$libdir'
14995            hardcode_minus_L=yes
14996        ;;
14997      esac
14998      ;;
14999
15000    beos*)
15001      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15002	allow_undefined_flag=unsupported
15003	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15004	# support --undefined.  This deserves some investigation.  FIXME
15005	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15006      else
15007	ld_shlibs=no
15008      fi
15009      ;;
15010
15011    cygwin* | mingw* | pw32* | cegcc*)
15012      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15013      # as there is no search path for DLLs.
15014      hardcode_libdir_flag_spec='-L$libdir'
15015      export_dynamic_flag_spec='${wl}--export-all-symbols'
15016      allow_undefined_flag=unsupported
15017      always_export_symbols=no
15018      enable_shared_with_static_runtimes=yes
15019      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'
15020      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15021
15022      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15023        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15024	# If the export-symbols file already is a .def file (1st line
15025	# is EXPORTS), use it as is; otherwise, prepend...
15026	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15027	  cp $export_symbols $output_objdir/$soname.def;
15028	else
15029	  echo EXPORTS > $output_objdir/$soname.def;
15030	  cat $export_symbols >> $output_objdir/$soname.def;
15031	fi~
15032	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15033      else
15034	ld_shlibs=no
15035      fi
15036      ;;
15037
15038    haiku*)
15039      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15040      link_all_deplibs=yes
15041      ;;
15042
15043    interix[3-9]*)
15044      hardcode_direct=no
15045      hardcode_shlibpath_var=no
15046      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15047      export_dynamic_flag_spec='${wl}-E'
15048      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15049      # Instead, shared libraries are loaded at an image base (0x10000000 by
15050      # default) and relocated if they conflict, which is a slow very memory
15051      # consuming and fragmenting process.  To avoid this, we pick a random,
15052      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15053      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15054      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15055      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'
15056      ;;
15057
15058    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15059      tmp_diet=no
15060      if test "$host_os" = linux-dietlibc; then
15061	case $cc_basename in
15062	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15063	esac
15064      fi
15065      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15066	 && test "$tmp_diet" = no
15067      then
15068	tmp_addflag=' $pic_flag'
15069	tmp_sharedflag='-shared'
15070	case $cc_basename,$host_cpu in
15071        pgcc*)				# Portland Group C compiler
15072	  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'
15073	  tmp_addflag=' $pic_flag'
15074	  ;;
15075	pgf77* | pgf90* | pgf95* | pgfortran*)
15076					# Portland Group f77 and f90 compilers
15077	  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'
15078	  tmp_addflag=' $pic_flag -Mnomain' ;;
15079	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15080	  tmp_addflag=' -i_dynamic' ;;
15081	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15082	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15083	ifc* | ifort*)			# Intel Fortran compiler
15084	  tmp_addflag=' -nofor_main' ;;
15085	lf95*)				# Lahey Fortran 8.1
15086	  whole_archive_flag_spec=
15087	  tmp_sharedflag='--shared' ;;
15088	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15089	  tmp_sharedflag='-qmkshrobj'
15090	  tmp_addflag= ;;
15091	nvcc*)	# Cuda Compiler Driver 2.2
15092	  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'
15093	  compiler_needs_object=yes
15094	  ;;
15095	esac
15096	case `$CC -V 2>&1 | sed 5q` in
15097	*Sun\ C*)			# Sun C 5.9
15098	  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'
15099	  compiler_needs_object=yes
15100	  tmp_sharedflag='-G' ;;
15101	*Sun\ F*)			# Sun Fortran 8.3
15102	  tmp_sharedflag='-G' ;;
15103	esac
15104	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15105
15106        if test "x$supports_anon_versioning" = xyes; then
15107          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15108	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15109	    echo "local: *; };" >> $output_objdir/$libname.ver~
15110	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15111        fi
15112
15113	case $cc_basename in
15114	xlf* | bgf* | bgxlf* | mpixlf*)
15115	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15116	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15117	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15118	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15119	  if test "x$supports_anon_versioning" = xyes; then
15120	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15121	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15122	      echo "local: *; };" >> $output_objdir/$libname.ver~
15123	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15124	  fi
15125	  ;;
15126	esac
15127      else
15128        ld_shlibs=no
15129      fi
15130      ;;
15131
15132    netbsd* | netbsdelf*-gnu)
15133      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15134	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15135	wlarc=
15136      else
15137	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15138	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15139      fi
15140      ;;
15141
15142    solaris*)
15143      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15144	ld_shlibs=no
15145	cat <<_LT_EOF 1>&2
15146
15147*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15148*** create shared libraries on Solaris systems.  Therefore, libtool
15149*** is disabling shared libraries support.  We urge you to upgrade GNU
15150*** binutils to release 2.9.1 or newer.  Another option is to modify
15151*** your PATH or compiler configuration so that the native linker is
15152*** used, and then restart.
15153
15154_LT_EOF
15155      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15156	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15157	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15158      else
15159	ld_shlibs=no
15160      fi
15161      ;;
15162
15163    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15164      case `$LD -v 2>&1` in
15165        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15166	ld_shlibs=no
15167	cat <<_LT_EOF 1>&2
15168
15169*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15170*** reliably create shared libraries on SCO systems.  Therefore, libtool
15171*** is disabling shared libraries support.  We urge you to upgrade GNU
15172*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15173*** your PATH or compiler configuration so that the native linker is
15174*** used, and then restart.
15175
15176_LT_EOF
15177	;;
15178	*)
15179	  # For security reasons, it is highly recommended that you always
15180	  # use absolute paths for naming shared libraries, and exclude the
15181	  # DT_RUNPATH tag from executables and libraries.  But doing so
15182	  # requires that you compile everything twice, which is a pain.
15183	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15184	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15185	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15186	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15187	  else
15188	    ld_shlibs=no
15189	  fi
15190	;;
15191      esac
15192      ;;
15193
15194    sunos4*)
15195      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15196      wlarc=
15197      hardcode_direct=yes
15198      hardcode_shlibpath_var=no
15199      ;;
15200
15201    *)
15202      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15203	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15204	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15205      else
15206	ld_shlibs=no
15207      fi
15208      ;;
15209    esac
15210
15211    if test "$ld_shlibs" = no; then
15212      runpath_var=
15213      hardcode_libdir_flag_spec=
15214      export_dynamic_flag_spec=
15215      whole_archive_flag_spec=
15216    fi
15217  else
15218    # PORTME fill in a description of your system's linker (not GNU ld)
15219    case $host_os in
15220    aix3*)
15221      allow_undefined_flag=unsupported
15222      always_export_symbols=yes
15223      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'
15224      # Note: this linker hardcodes the directories in LIBPATH if there
15225      # are no directories specified by -L.
15226      hardcode_minus_L=yes
15227      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15228	# Neither direct hardcoding nor static linking is supported with a
15229	# broken collect2.
15230	hardcode_direct=unsupported
15231      fi
15232      ;;
15233
15234    aix[4-9]*)
15235      if test "$host_cpu" = ia64; then
15236	# On IA64, the linker does run time linking by default, so we don't
15237	# have to do anything special.
15238	aix_use_runtimelinking=no
15239	exp_sym_flag='-Bexport'
15240	no_entry_flag=""
15241      else
15242	# If we're using GNU nm, then we don't want the "-C" option.
15243	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15244	# Also, AIX nm treats weak defined symbols like other global
15245	# defined symbols, whereas GNU nm marks them as "W".
15246	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15247	  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'
15248	else
15249	  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'
15250	fi
15251	aix_use_runtimelinking=no
15252
15253	# Test if we are trying to use run time linking or normal
15254	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15255	# need to do runtime linking.
15256	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15257	  for ld_flag in $LDFLAGS; do
15258	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15259	    aix_use_runtimelinking=yes
15260	    break
15261	  fi
15262	  done
15263	  ;;
15264	esac
15265
15266	exp_sym_flag='-bexport'
15267	no_entry_flag='-bnoentry'
15268      fi
15269
15270      # When large executables or shared objects are built, AIX ld can
15271      # have problems creating the table of contents.  If linking a library
15272      # or program results in "error TOC overflow" add -mminimal-toc to
15273      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15274      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15275
15276      archive_cmds=''
15277      hardcode_direct=yes
15278      hardcode_direct_absolute=yes
15279      hardcode_libdir_separator=':'
15280      link_all_deplibs=yes
15281      file_list_spec='${wl}-f,'
15282
15283      if test "$GCC" = yes; then
15284	case $host_os in aix4.[012]|aix4.[012].*)
15285	# We only want to do this on AIX 4.2 and lower, the check
15286	# below for broken collect2 doesn't work under 4.3+
15287	  collect2name=`${CC} -print-prog-name=collect2`
15288	  if test -f "$collect2name" &&
15289	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15290	  then
15291	  # We have reworked collect2
15292	  :
15293	  else
15294	  # We have old collect2
15295	  hardcode_direct=unsupported
15296	  # It fails to find uninstalled libraries when the uninstalled
15297	  # path is not listed in the libpath.  Setting hardcode_minus_L
15298	  # to unsupported forces relinking
15299	  hardcode_minus_L=yes
15300	  hardcode_libdir_flag_spec='-L$libdir'
15301	  hardcode_libdir_separator=
15302	  fi
15303	  ;;
15304	esac
15305	shared_flag='-shared'
15306	if test "$aix_use_runtimelinking" = yes; then
15307	  shared_flag="$shared_flag "'${wl}-G'
15308	fi
15309	link_all_deplibs=no
15310      else
15311	# not using gcc
15312	if test "$host_cpu" = ia64; then
15313	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15314	# chokes on -Wl,-G. The following line is correct:
15315	  shared_flag='-G'
15316	else
15317	  if test "$aix_use_runtimelinking" = yes; then
15318	    shared_flag='${wl}-G'
15319	  else
15320	    shared_flag='${wl}-bM:SRE'
15321	  fi
15322	fi
15323      fi
15324
15325      export_dynamic_flag_spec='${wl}-bexpall'
15326      # It seems that -bexpall does not export symbols beginning with
15327      # underscore (_), so it is better to generate a list of symbols to export.
15328      always_export_symbols=yes
15329      if test "$aix_use_runtimelinking" = yes; then
15330	# Warning - without using the other runtime loading flags (-brtl),
15331	# -berok will link without error, but may produce a broken library.
15332	allow_undefined_flag='-berok'
15333        # Determine the default libpath from the value encoded in an
15334        # empty executable.
15335        if test "${lt_cv_aix_libpath+set}" = set; then
15336  aix_libpath=$lt_cv_aix_libpath
15337else
15338  if ${lt_cv_aix_libpath_+:} false; then :
15339  $as_echo_n "(cached) " >&6
15340else
15341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15342/* end confdefs.h.  */
15343
15344int
15345main ()
15346{
15347
15348  ;
15349  return 0;
15350}
15351_ACEOF
15352if ac_fn_c_try_link "$LINENO"; then :
15353
15354  lt_aix_libpath_sed='
15355      /Import File Strings/,/^$/ {
15356	  /^0/ {
15357	      s/^0  *\([^ ]*\) *$/\1/
15358	      p
15359	  }
15360      }'
15361  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15362  # Check for a 64-bit object if we didn't find anything.
15363  if test -z "$lt_cv_aix_libpath_"; then
15364    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15365  fi
15366fi
15367rm -f core conftest.err conftest.$ac_objext \
15368    conftest$ac_exeext conftest.$ac_ext
15369  if test -z "$lt_cv_aix_libpath_"; then
15370    lt_cv_aix_libpath_="/usr/lib:/lib"
15371  fi
15372
15373fi
15374
15375  aix_libpath=$lt_cv_aix_libpath_
15376fi
15377
15378        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15379        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"
15380      else
15381	if test "$host_cpu" = ia64; then
15382	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15383	  allow_undefined_flag="-z nodefs"
15384	  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"
15385	else
15386	 # Determine the default libpath from the value encoded in an
15387	 # empty executable.
15388	 if test "${lt_cv_aix_libpath+set}" = set; then
15389  aix_libpath=$lt_cv_aix_libpath
15390else
15391  if ${lt_cv_aix_libpath_+:} false; then :
15392  $as_echo_n "(cached) " >&6
15393else
15394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15395/* end confdefs.h.  */
15396
15397int
15398main ()
15399{
15400
15401  ;
15402  return 0;
15403}
15404_ACEOF
15405if ac_fn_c_try_link "$LINENO"; then :
15406
15407  lt_aix_libpath_sed='
15408      /Import File Strings/,/^$/ {
15409	  /^0/ {
15410	      s/^0  *\([^ ]*\) *$/\1/
15411	      p
15412	  }
15413      }'
15414  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15415  # Check for a 64-bit object if we didn't find anything.
15416  if test -z "$lt_cv_aix_libpath_"; then
15417    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15418  fi
15419fi
15420rm -f core conftest.err conftest.$ac_objext \
15421    conftest$ac_exeext conftest.$ac_ext
15422  if test -z "$lt_cv_aix_libpath_"; then
15423    lt_cv_aix_libpath_="/usr/lib:/lib"
15424  fi
15425
15426fi
15427
15428  aix_libpath=$lt_cv_aix_libpath_
15429fi
15430
15431	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15432	  # Warning - without using the other run time loading flags,
15433	  # -berok will link without error, but may produce a broken library.
15434	  no_undefined_flag=' ${wl}-bernotok'
15435	  allow_undefined_flag=' ${wl}-berok'
15436	  if test "$with_gnu_ld" = yes; then
15437	    # We only use this code for GNU lds that support --whole-archive.
15438	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15439	  else
15440	    # Exported symbols can be pulled into shared objects from archives
15441	    whole_archive_flag_spec='$convenience'
15442	  fi
15443	  archive_cmds_need_lc=yes
15444	  # This is similar to how AIX traditionally builds its shared libraries.
15445	  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'
15446	fi
15447      fi
15448      ;;
15449
15450    amigaos*)
15451      case $host_cpu in
15452      powerpc)
15453            # see comment about AmigaOS4 .so support
15454            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15455            archive_expsym_cmds=''
15456        ;;
15457      m68k)
15458            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)'
15459            hardcode_libdir_flag_spec='-L$libdir'
15460            hardcode_minus_L=yes
15461        ;;
15462      esac
15463      ;;
15464
15465    bsdi[45]*)
15466      export_dynamic_flag_spec=-rdynamic
15467      ;;
15468
15469    cygwin* | mingw* | pw32* | cegcc*)
15470      # When not using gcc, we currently assume that we are using
15471      # Microsoft Visual C++.
15472      # hardcode_libdir_flag_spec is actually meaningless, as there is
15473      # no search path for DLLs.
15474      case $cc_basename in
15475      cl*)
15476	# Native MSVC
15477	hardcode_libdir_flag_spec=' '
15478	allow_undefined_flag=unsupported
15479	always_export_symbols=yes
15480	file_list_spec='@'
15481	# Tell ltmain to make .lib files, not .a files.
15482	libext=lib
15483	# Tell ltmain to make .dll files, not .so files.
15484	shrext_cmds=".dll"
15485	# FIXME: Setting linknames here is a bad hack.
15486	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15487	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15488	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15489	  else
15490	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15491	  fi~
15492	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15493	  linknames='
15494	# The linker will not automatically build a static lib if we build a DLL.
15495	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15496	enable_shared_with_static_runtimes=yes
15497	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15498	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15499	# Don't use ranlib
15500	old_postinstall_cmds='chmod 644 $oldlib'
15501	postlink_cmds='lt_outputfile="@OUTPUT@"~
15502	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15503	  case $lt_outputfile in
15504	    *.exe|*.EXE) ;;
15505	    *)
15506	      lt_outputfile="$lt_outputfile.exe"
15507	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15508	      ;;
15509	  esac~
15510	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15511	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15512	    $RM "$lt_outputfile.manifest";
15513	  fi'
15514	;;
15515      *)
15516	# Assume MSVC wrapper
15517	hardcode_libdir_flag_spec=' '
15518	allow_undefined_flag=unsupported
15519	# Tell ltmain to make .lib files, not .a files.
15520	libext=lib
15521	# Tell ltmain to make .dll files, not .so files.
15522	shrext_cmds=".dll"
15523	# FIXME: Setting linknames here is a bad hack.
15524	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15525	# The linker will automatically build a .lib file if we build a DLL.
15526	old_archive_from_new_cmds='true'
15527	# FIXME: Should let the user specify the lib program.
15528	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15529	enable_shared_with_static_runtimes=yes
15530	;;
15531      esac
15532      ;;
15533
15534    darwin* | rhapsody*)
15535
15536
15537  archive_cmds_need_lc=no
15538  hardcode_direct=no
15539  hardcode_automatic=yes
15540  hardcode_shlibpath_var=unsupported
15541  if test "$lt_cv_ld_force_load" = "yes"; then
15542    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\"`'
15543
15544  else
15545    whole_archive_flag_spec=''
15546  fi
15547  link_all_deplibs=yes
15548  allow_undefined_flag="$_lt_dar_allow_undefined"
15549  case $cc_basename in
15550     ifort*) _lt_dar_can_shared=yes ;;
15551     *) _lt_dar_can_shared=$GCC ;;
15552  esac
15553  if test "$_lt_dar_can_shared" = "yes"; then
15554    output_verbose_link_cmd=func_echo_all
15555    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15556    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15557    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}"
15558    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}"
15559
15560  else
15561  ld_shlibs=no
15562  fi
15563
15564      ;;
15565
15566    dgux*)
15567      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15568      hardcode_libdir_flag_spec='-L$libdir'
15569      hardcode_shlibpath_var=no
15570      ;;
15571
15572    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15573    # support.  Future versions do this automatically, but an explicit c++rt0.o
15574    # does not break anything, and helps significantly (at the cost of a little
15575    # extra space).
15576    freebsd2.2*)
15577      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15578      hardcode_libdir_flag_spec='-R$libdir'
15579      hardcode_direct=yes
15580      hardcode_shlibpath_var=no
15581      ;;
15582
15583    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15584    freebsd2.*)
15585      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15586      hardcode_direct=yes
15587      hardcode_minus_L=yes
15588      hardcode_shlibpath_var=no
15589      ;;
15590
15591    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15592    freebsd* | dragonfly*)
15593      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15594      hardcode_libdir_flag_spec='-R$libdir'
15595      hardcode_direct=yes
15596      hardcode_shlibpath_var=no
15597      ;;
15598
15599    hpux9*)
15600      if test "$GCC" = yes; then
15601	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'
15602      else
15603	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'
15604      fi
15605      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15606      hardcode_libdir_separator=:
15607      hardcode_direct=yes
15608
15609      # hardcode_minus_L: Not really in the search PATH,
15610      # but as the default location of the library.
15611      hardcode_minus_L=yes
15612      export_dynamic_flag_spec='${wl}-E'
15613      ;;
15614
15615    hpux10*)
15616      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15617	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15618      else
15619	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15620      fi
15621      if test "$with_gnu_ld" = no; then
15622	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15623	hardcode_libdir_separator=:
15624	hardcode_direct=yes
15625	hardcode_direct_absolute=yes
15626	export_dynamic_flag_spec='${wl}-E'
15627	# hardcode_minus_L: Not really in the search PATH,
15628	# but as the default location of the library.
15629	hardcode_minus_L=yes
15630      fi
15631      ;;
15632
15633    hpux11*)
15634      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15635	case $host_cpu in
15636	hppa*64*)
15637	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15638	  ;;
15639	ia64*)
15640	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15641	  ;;
15642	*)
15643	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15644	  ;;
15645	esac
15646      else
15647	case $host_cpu in
15648	hppa*64*)
15649	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15650	  ;;
15651	ia64*)
15652	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15653	  ;;
15654	*)
15655
15656	  # Older versions of the 11.00 compiler do not understand -b yet
15657	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15658	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15659$as_echo_n "checking if $CC understands -b... " >&6; }
15660if ${lt_cv_prog_compiler__b+:} false; then :
15661  $as_echo_n "(cached) " >&6
15662else
15663  lt_cv_prog_compiler__b=no
15664   save_LDFLAGS="$LDFLAGS"
15665   LDFLAGS="$LDFLAGS -b"
15666   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15667   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15668     # The linker can only warn and ignore the option if not recognized
15669     # So say no if there are warnings
15670     if test -s conftest.err; then
15671       # Append any errors to the config.log.
15672       cat conftest.err 1>&5
15673       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15674       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15675       if diff conftest.exp conftest.er2 >/dev/null; then
15676         lt_cv_prog_compiler__b=yes
15677       fi
15678     else
15679       lt_cv_prog_compiler__b=yes
15680     fi
15681   fi
15682   $RM -r conftest*
15683   LDFLAGS="$save_LDFLAGS"
15684
15685fi
15686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15687$as_echo "$lt_cv_prog_compiler__b" >&6; }
15688
15689if test x"$lt_cv_prog_compiler__b" = xyes; then
15690    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15691else
15692    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15693fi
15694
15695	  ;;
15696	esac
15697      fi
15698      if test "$with_gnu_ld" = no; then
15699	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15700	hardcode_libdir_separator=:
15701
15702	case $host_cpu in
15703	hppa*64*|ia64*)
15704	  hardcode_direct=no
15705	  hardcode_shlibpath_var=no
15706	  ;;
15707	*)
15708	  hardcode_direct=yes
15709	  hardcode_direct_absolute=yes
15710	  export_dynamic_flag_spec='${wl}-E'
15711
15712	  # hardcode_minus_L: Not really in the search PATH,
15713	  # but as the default location of the library.
15714	  hardcode_minus_L=yes
15715	  ;;
15716	esac
15717      fi
15718      ;;
15719
15720    irix5* | irix6* | nonstopux*)
15721      if test "$GCC" = yes; then
15722	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'
15723	# Try to use the -exported_symbol ld option, if it does not
15724	# work, assume that -exports_file does not work either and
15725	# implicitly export all symbols.
15726	# This should be the same for all languages, so no per-tag cache variable.
15727	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15728$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15729if ${lt_cv_irix_exported_symbol+:} false; then :
15730  $as_echo_n "(cached) " >&6
15731else
15732  save_LDFLAGS="$LDFLAGS"
15733	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15734	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15735/* end confdefs.h.  */
15736int foo (void) { return 0; }
15737_ACEOF
15738if ac_fn_c_try_link "$LINENO"; then :
15739  lt_cv_irix_exported_symbol=yes
15740else
15741  lt_cv_irix_exported_symbol=no
15742fi
15743rm -f core conftest.err conftest.$ac_objext \
15744    conftest$ac_exeext conftest.$ac_ext
15745           LDFLAGS="$save_LDFLAGS"
15746fi
15747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15748$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15749	if test "$lt_cv_irix_exported_symbol" = yes; then
15750          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'
15751	fi
15752      else
15753	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'
15754	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'
15755      fi
15756      archive_cmds_need_lc='no'
15757      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15758      hardcode_libdir_separator=:
15759      inherit_rpath=yes
15760      link_all_deplibs=yes
15761      ;;
15762
15763    netbsd* | netbsdelf*-gnu)
15764      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15765	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15766      else
15767	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15768      fi
15769      hardcode_libdir_flag_spec='-R$libdir'
15770      hardcode_direct=yes
15771      hardcode_shlibpath_var=no
15772      ;;
15773
15774    newsos6)
15775      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15776      hardcode_direct=yes
15777      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15778      hardcode_libdir_separator=:
15779      hardcode_shlibpath_var=no
15780      ;;
15781
15782    *nto* | *qnx*)
15783      ;;
15784
15785    openbsd*)
15786      if test -f /usr/libexec/ld.so; then
15787	hardcode_direct=yes
15788	hardcode_shlibpath_var=no
15789	hardcode_direct_absolute=yes
15790	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15791	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15792	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15793	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15794	  export_dynamic_flag_spec='${wl}-E'
15795	else
15796	  case $host_os in
15797	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15798	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15799	     hardcode_libdir_flag_spec='-R$libdir'
15800	     ;;
15801	   *)
15802	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15803	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15804	     ;;
15805	  esac
15806	fi
15807      else
15808	ld_shlibs=no
15809      fi
15810      ;;
15811
15812    os2*)
15813      hardcode_libdir_flag_spec='-L$libdir'
15814      hardcode_minus_L=yes
15815      allow_undefined_flag=unsupported
15816      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'
15817      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15818      ;;
15819
15820    osf3*)
15821      if test "$GCC" = yes; then
15822	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15823	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'
15824      else
15825	allow_undefined_flag=' -expect_unresolved \*'
15826	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'
15827      fi
15828      archive_cmds_need_lc='no'
15829      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15830      hardcode_libdir_separator=:
15831      ;;
15832
15833    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15834      if test "$GCC" = yes; then
15835	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15836	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'
15837	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15838      else
15839	allow_undefined_flag=' -expect_unresolved \*'
15840	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'
15841	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~
15842	$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'
15843
15844	# Both c and cxx compiler support -rpath directly
15845	hardcode_libdir_flag_spec='-rpath $libdir'
15846      fi
15847      archive_cmds_need_lc='no'
15848      hardcode_libdir_separator=:
15849      ;;
15850
15851    solaris*)
15852      no_undefined_flag=' -z defs'
15853      if test "$GCC" = yes; then
15854	wlarc='${wl}'
15855	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15856	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15857	  $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'
15858      else
15859	case `$CC -V 2>&1` in
15860	*"Compilers 5.0"*)
15861	  wlarc=''
15862	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15863	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15864	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15865	  ;;
15866	*)
15867	  wlarc='${wl}'
15868	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15869	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15870	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15871	  ;;
15872	esac
15873      fi
15874      hardcode_libdir_flag_spec='-R$libdir'
15875      hardcode_shlibpath_var=no
15876      case $host_os in
15877      solaris2.[0-5] | solaris2.[0-5].*) ;;
15878      *)
15879	# The compiler driver will combine and reorder linker options,
15880	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15881	# but is careful enough not to reorder.
15882	# Supported since Solaris 2.6 (maybe 2.5.1?)
15883	if test "$GCC" = yes; then
15884	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15885	else
15886	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15887	fi
15888	;;
15889      esac
15890      link_all_deplibs=yes
15891      ;;
15892
15893    sunos4*)
15894      if test "x$host_vendor" = xsequent; then
15895	# Use $CC to link under sequent, because it throws in some extra .o
15896	# files that make .init and .fini sections work.
15897	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15898      else
15899	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15900      fi
15901      hardcode_libdir_flag_spec='-L$libdir'
15902      hardcode_direct=yes
15903      hardcode_minus_L=yes
15904      hardcode_shlibpath_var=no
15905      ;;
15906
15907    sysv4)
15908      case $host_vendor in
15909	sni)
15910	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15911	  hardcode_direct=yes # is this really true???
15912	;;
15913	siemens)
15914	  ## LD is ld it makes a PLAMLIB
15915	  ## CC just makes a GrossModule.
15916	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15917	  reload_cmds='$CC -r -o $output$reload_objs'
15918	  hardcode_direct=no
15919        ;;
15920	motorola)
15921	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15922	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15923	;;
15924      esac
15925      runpath_var='LD_RUN_PATH'
15926      hardcode_shlibpath_var=no
15927      ;;
15928
15929    sysv4.3*)
15930      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15931      hardcode_shlibpath_var=no
15932      export_dynamic_flag_spec='-Bexport'
15933      ;;
15934
15935    sysv4*MP*)
15936      if test -d /usr/nec; then
15937	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15938	hardcode_shlibpath_var=no
15939	runpath_var=LD_RUN_PATH
15940	hardcode_runpath_var=yes
15941	ld_shlibs=yes
15942      fi
15943      ;;
15944
15945    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15946      no_undefined_flag='${wl}-z,text'
15947      archive_cmds_need_lc=no
15948      hardcode_shlibpath_var=no
15949      runpath_var='LD_RUN_PATH'
15950
15951      if test "$GCC" = yes; then
15952	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15953	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15954      else
15955	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15956	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15957      fi
15958      ;;
15959
15960    sysv5* | sco3.2v5* | sco5v6*)
15961      # Note: We can NOT use -z defs as we might desire, because we do not
15962      # link with -lc, and that would cause any symbols used from libc to
15963      # always be unresolved, which means just about no library would
15964      # ever link correctly.  If we're not using GNU ld we use -z text
15965      # though, which does catch some bad symbols but isn't as heavy-handed
15966      # as -z defs.
15967      no_undefined_flag='${wl}-z,text'
15968      allow_undefined_flag='${wl}-z,nodefs'
15969      archive_cmds_need_lc=no
15970      hardcode_shlibpath_var=no
15971      hardcode_libdir_flag_spec='${wl}-R,$libdir'
15972      hardcode_libdir_separator=':'
15973      link_all_deplibs=yes
15974      export_dynamic_flag_spec='${wl}-Bexport'
15975      runpath_var='LD_RUN_PATH'
15976
15977      if test "$GCC" = yes; then
15978	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15979	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15980      else
15981	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15982	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15983      fi
15984      ;;
15985
15986    uts4*)
15987      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15988      hardcode_libdir_flag_spec='-L$libdir'
15989      hardcode_shlibpath_var=no
15990      ;;
15991
15992    *)
15993      ld_shlibs=no
15994      ;;
15995    esac
15996
15997    if test x$host_vendor = xsni; then
15998      case $host in
15999      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16000	export_dynamic_flag_spec='${wl}-Blargedynsym'
16001	;;
16002      esac
16003    fi
16004  fi
16005
16006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16007$as_echo "$ld_shlibs" >&6; }
16008test "$ld_shlibs" = no && can_build_shared=no
16009
16010with_gnu_ld=$with_gnu_ld
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026#
16027# Do we need to explicitly link libc?
16028#
16029case "x$archive_cmds_need_lc" in
16030x|xyes)
16031  # Assume -lc should be added
16032  archive_cmds_need_lc=yes
16033
16034  if test "$enable_shared" = yes && test "$GCC" = yes; then
16035    case $archive_cmds in
16036    *'~'*)
16037      # FIXME: we may have to deal with multi-command sequences.
16038      ;;
16039    '$CC '*)
16040      # Test whether the compiler implicitly links with -lc since on some
16041      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16042      # to ld, don't add -lc before -lgcc.
16043      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16044$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16045if ${lt_cv_archive_cmds_need_lc+:} false; then :
16046  $as_echo_n "(cached) " >&6
16047else
16048  $RM conftest*
16049	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16050
16051	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16052  (eval $ac_compile) 2>&5
16053  ac_status=$?
16054  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16055  test $ac_status = 0; } 2>conftest.err; then
16056	  soname=conftest
16057	  lib=conftest
16058	  libobjs=conftest.$ac_objext
16059	  deplibs=
16060	  wl=$lt_prog_compiler_wl
16061	  pic_flag=$lt_prog_compiler_pic
16062	  compiler_flags=-v
16063	  linker_flags=-v
16064	  verstring=
16065	  output_objdir=.
16066	  libname=conftest
16067	  lt_save_allow_undefined_flag=$allow_undefined_flag
16068	  allow_undefined_flag=
16069	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16070  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16071  ac_status=$?
16072  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16073  test $ac_status = 0; }
16074	  then
16075	    lt_cv_archive_cmds_need_lc=no
16076	  else
16077	    lt_cv_archive_cmds_need_lc=yes
16078	  fi
16079	  allow_undefined_flag=$lt_save_allow_undefined_flag
16080	else
16081	  cat conftest.err 1>&5
16082	fi
16083	$RM conftest*
16084
16085fi
16086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16087$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16088      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16089      ;;
16090    esac
16091  fi
16092  ;;
16093esac
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16247$as_echo_n "checking dynamic linker characteristics... " >&6; }
16248
16249if test "$GCC" = yes; then
16250  case $host_os in
16251    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16252    *) lt_awk_arg="/^libraries:/" ;;
16253  esac
16254  case $host_os in
16255    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16256    *) lt_sed_strip_eq="s,=/,/,g" ;;
16257  esac
16258  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16259  case $lt_search_path_spec in
16260  *\;*)
16261    # if the path contains ";" then we assume it to be the separator
16262    # otherwise default to the standard path separator (i.e. ":") - it is
16263    # assumed that no part of a normal pathname contains ";" but that should
16264    # okay in the real world where ";" in dirpaths is itself problematic.
16265    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16266    ;;
16267  *)
16268    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16269    ;;
16270  esac
16271  # Ok, now we have the path, separated by spaces, we can step through it
16272  # and add multilib dir if necessary.
16273  lt_tmp_lt_search_path_spec=
16274  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16275  for lt_sys_path in $lt_search_path_spec; do
16276    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16277      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16278    else
16279      test -d "$lt_sys_path" && \
16280	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16281    fi
16282  done
16283  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16284BEGIN {RS=" "; FS="/|\n";} {
16285  lt_foo="";
16286  lt_count=0;
16287  for (lt_i = NF; lt_i > 0; lt_i--) {
16288    if ($lt_i != "" && $lt_i != ".") {
16289      if ($lt_i == "..") {
16290        lt_count++;
16291      } else {
16292        if (lt_count == 0) {
16293          lt_foo="/" $lt_i lt_foo;
16294        } else {
16295          lt_count--;
16296        }
16297      }
16298    }
16299  }
16300  if (lt_foo != "") { lt_freq[lt_foo]++; }
16301  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16302}'`
16303  # AWK program above erroneously prepends '/' to C:/dos/paths
16304  # for these hosts.
16305  case $host_os in
16306    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16307      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16308  esac
16309  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16310else
16311  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16312fi
16313library_names_spec=
16314libname_spec='lib$name'
16315soname_spec=
16316shrext_cmds=".so"
16317postinstall_cmds=
16318postuninstall_cmds=
16319finish_cmds=
16320finish_eval=
16321shlibpath_var=
16322shlibpath_overrides_runpath=unknown
16323version_type=none
16324dynamic_linker="$host_os ld.so"
16325sys_lib_dlsearch_path_spec="/lib /usr/lib"
16326need_lib_prefix=unknown
16327hardcode_into_libs=no
16328
16329# when you set need_version to no, make sure it does not cause -set_version
16330# flags to be left without arguments
16331need_version=unknown
16332
16333case $host_os in
16334aix3*)
16335  version_type=linux # correct to gnu/linux during the next big refactor
16336  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16337  shlibpath_var=LIBPATH
16338
16339  # AIX 3 has no versioning support, so we append a major version to the name.
16340  soname_spec='${libname}${release}${shared_ext}$major'
16341  ;;
16342
16343aix[4-9]*)
16344  version_type=linux # correct to gnu/linux during the next big refactor
16345  need_lib_prefix=no
16346  need_version=no
16347  hardcode_into_libs=yes
16348  if test "$host_cpu" = ia64; then
16349    # AIX 5 supports IA64
16350    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16351    shlibpath_var=LD_LIBRARY_PATH
16352  else
16353    # With GCC up to 2.95.x, collect2 would create an import file
16354    # for dependence libraries.  The import file would start with
16355    # the line `#! .'.  This would cause the generated library to
16356    # depend on `.', always an invalid library.  This was fixed in
16357    # development snapshots of GCC prior to 3.0.
16358    case $host_os in
16359      aix4 | aix4.[01] | aix4.[01].*)
16360      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16361	   echo ' yes '
16362	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16363	:
16364      else
16365	can_build_shared=no
16366      fi
16367      ;;
16368    esac
16369    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16370    # soname into executable. Probably we can add versioning support to
16371    # collect2, so additional links can be useful in future.
16372    if test "$aix_use_runtimelinking" = yes; then
16373      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16374      # instead of lib<name>.a to let people know that these are not
16375      # typical AIX shared libraries.
16376      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16377    else
16378      # We preserve .a as extension for shared libraries through AIX4.2
16379      # and later when we are not doing run time linking.
16380      library_names_spec='${libname}${release}.a $libname.a'
16381      soname_spec='${libname}${release}${shared_ext}$major'
16382    fi
16383    shlibpath_var=LIBPATH
16384  fi
16385  ;;
16386
16387amigaos*)
16388  case $host_cpu in
16389  powerpc)
16390    # Since July 2007 AmigaOS4 officially supports .so libraries.
16391    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16392    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16393    ;;
16394  m68k)
16395    library_names_spec='$libname.ixlibrary $libname.a'
16396    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16397    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'
16398    ;;
16399  esac
16400  ;;
16401
16402beos*)
16403  library_names_spec='${libname}${shared_ext}'
16404  dynamic_linker="$host_os ld.so"
16405  shlibpath_var=LIBRARY_PATH
16406  ;;
16407
16408bsdi[45]*)
16409  version_type=linux # correct to gnu/linux during the next big refactor
16410  need_version=no
16411  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16412  soname_spec='${libname}${release}${shared_ext}$major'
16413  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16414  shlibpath_var=LD_LIBRARY_PATH
16415  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16416  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16417  # the default ld.so.conf also contains /usr/contrib/lib and
16418  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16419  # libtool to hard-code these into programs
16420  ;;
16421
16422cygwin* | mingw* | pw32* | cegcc*)
16423  version_type=windows
16424  shrext_cmds=".dll"
16425  need_version=no
16426  need_lib_prefix=no
16427
16428  case $GCC,$cc_basename in
16429  yes,*)
16430    # gcc
16431    library_names_spec='$libname.dll.a'
16432    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16433    postinstall_cmds='base_file=`basename \${file}`~
16434      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16435      dldir=$destdir/`dirname \$dlpath`~
16436      test -d \$dldir || mkdir -p \$dldir~
16437      $install_prog $dir/$dlname \$dldir/$dlname~
16438      chmod a+x \$dldir/$dlname~
16439      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16440        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16441      fi'
16442    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16443      dlpath=$dir/\$dldll~
16444       $RM \$dlpath'
16445    shlibpath_overrides_runpath=yes
16446
16447    case $host_os in
16448    cygwin*)
16449      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16450      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16451
16452      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16453      ;;
16454    mingw* | cegcc*)
16455      # MinGW DLLs use traditional 'lib' prefix
16456      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16457      ;;
16458    pw32*)
16459      # pw32 DLLs use 'pw' prefix rather than 'lib'
16460      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16461      ;;
16462    esac
16463    dynamic_linker='Win32 ld.exe'
16464    ;;
16465
16466  *,cl*)
16467    # Native MSVC
16468    libname_spec='$name'
16469    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16470    library_names_spec='${libname}.dll.lib'
16471
16472    case $build_os in
16473    mingw*)
16474      sys_lib_search_path_spec=
16475      lt_save_ifs=$IFS
16476      IFS=';'
16477      for lt_path in $LIB
16478      do
16479        IFS=$lt_save_ifs
16480        # Let DOS variable expansion print the short 8.3 style file name.
16481        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16482        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16483      done
16484      IFS=$lt_save_ifs
16485      # Convert to MSYS style.
16486      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16487      ;;
16488    cygwin*)
16489      # Convert to unix form, then to dos form, then back to unix form
16490      # but this time dos style (no spaces!) so that the unix form looks
16491      # like /cygdrive/c/PROGRA~1:/cygdr...
16492      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16493      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16494      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16495      ;;
16496    *)
16497      sys_lib_search_path_spec="$LIB"
16498      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16499        # It is most probably a Windows format PATH.
16500        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16501      else
16502        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16503      fi
16504      # FIXME: find the short name or the path components, as spaces are
16505      # common. (e.g. "Program Files" -> "PROGRA~1")
16506      ;;
16507    esac
16508
16509    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16510    postinstall_cmds='base_file=`basename \${file}`~
16511      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16512      dldir=$destdir/`dirname \$dlpath`~
16513      test -d \$dldir || mkdir -p \$dldir~
16514      $install_prog $dir/$dlname \$dldir/$dlname'
16515    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16516      dlpath=$dir/\$dldll~
16517       $RM \$dlpath'
16518    shlibpath_overrides_runpath=yes
16519    dynamic_linker='Win32 link.exe'
16520    ;;
16521
16522  *)
16523    # Assume MSVC wrapper
16524    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16525    dynamic_linker='Win32 ld.exe'
16526    ;;
16527  esac
16528  # FIXME: first we should search . and the directory the executable is in
16529  shlibpath_var=PATH
16530  ;;
16531
16532darwin* | rhapsody*)
16533  dynamic_linker="$host_os dyld"
16534  version_type=darwin
16535  need_lib_prefix=no
16536  need_version=no
16537  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16538  soname_spec='${libname}${release}${major}$shared_ext'
16539  shlibpath_overrides_runpath=yes
16540  shlibpath_var=DYLD_LIBRARY_PATH
16541  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16542
16543  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16544  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16545  ;;
16546
16547dgux*)
16548  version_type=linux # correct to gnu/linux during the next big refactor
16549  need_lib_prefix=no
16550  need_version=no
16551  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16552  soname_spec='${libname}${release}${shared_ext}$major'
16553  shlibpath_var=LD_LIBRARY_PATH
16554  ;;
16555
16556freebsd* | dragonfly*)
16557  # DragonFly does not have aout.  When/if they implement a new
16558  # versioning mechanism, adjust this.
16559  if test -x /usr/bin/objformat; then
16560    objformat=`/usr/bin/objformat`
16561  else
16562    case $host_os in
16563    freebsd[23].*) objformat=aout ;;
16564    *) objformat=elf ;;
16565    esac
16566  fi
16567  version_type=freebsd-$objformat
16568  case $version_type in
16569    freebsd-elf*)
16570      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16571      need_version=no
16572      need_lib_prefix=no
16573      ;;
16574    freebsd-*)
16575      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16576      need_version=yes
16577      ;;
16578  esac
16579  shlibpath_var=LD_LIBRARY_PATH
16580  case $host_os in
16581  freebsd2.*)
16582    shlibpath_overrides_runpath=yes
16583    ;;
16584  freebsd3.[01]* | freebsdelf3.[01]*)
16585    shlibpath_overrides_runpath=yes
16586    hardcode_into_libs=yes
16587    ;;
16588  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16589  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16590    shlibpath_overrides_runpath=no
16591    hardcode_into_libs=yes
16592    ;;
16593  *) # from 4.6 on, and DragonFly
16594    shlibpath_overrides_runpath=yes
16595    hardcode_into_libs=yes
16596    ;;
16597  esac
16598  ;;
16599
16600gnu*)
16601  version_type=linux # correct to gnu/linux during the next big refactor
16602  need_lib_prefix=no
16603  need_version=no
16604  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16605  soname_spec='${libname}${release}${shared_ext}$major'
16606  shlibpath_var=LD_LIBRARY_PATH
16607  shlibpath_overrides_runpath=no
16608  hardcode_into_libs=yes
16609  ;;
16610
16611haiku*)
16612  version_type=linux # correct to gnu/linux during the next big refactor
16613  need_lib_prefix=no
16614  need_version=no
16615  dynamic_linker="$host_os runtime_loader"
16616  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16617  soname_spec='${libname}${release}${shared_ext}$major'
16618  shlibpath_var=LIBRARY_PATH
16619  shlibpath_overrides_runpath=yes
16620  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16621  hardcode_into_libs=yes
16622  ;;
16623
16624hpux9* | hpux10* | hpux11*)
16625  # Give a soname corresponding to the major version so that dld.sl refuses to
16626  # link against other versions.
16627  version_type=sunos
16628  need_lib_prefix=no
16629  need_version=no
16630  case $host_cpu in
16631  ia64*)
16632    shrext_cmds='.so'
16633    hardcode_into_libs=yes
16634    dynamic_linker="$host_os dld.so"
16635    shlibpath_var=LD_LIBRARY_PATH
16636    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16637    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16638    soname_spec='${libname}${release}${shared_ext}$major'
16639    if test "X$HPUX_IA64_MODE" = X32; then
16640      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16641    else
16642      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16643    fi
16644    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16645    ;;
16646  hppa*64*)
16647    shrext_cmds='.sl'
16648    hardcode_into_libs=yes
16649    dynamic_linker="$host_os dld.sl"
16650    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16651    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16652    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16653    soname_spec='${libname}${release}${shared_ext}$major'
16654    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16655    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16656    ;;
16657  *)
16658    shrext_cmds='.sl'
16659    dynamic_linker="$host_os dld.sl"
16660    shlibpath_var=SHLIB_PATH
16661    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16662    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16663    soname_spec='${libname}${release}${shared_ext}$major'
16664    ;;
16665  esac
16666  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16667  postinstall_cmds='chmod 555 $lib'
16668  # or fails outright, so override atomically:
16669  install_override_mode=555
16670  ;;
16671
16672interix[3-9]*)
16673  version_type=linux # correct to gnu/linux during the next big refactor
16674  need_lib_prefix=no
16675  need_version=no
16676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16677  soname_spec='${libname}${release}${shared_ext}$major'
16678  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16679  shlibpath_var=LD_LIBRARY_PATH
16680  shlibpath_overrides_runpath=no
16681  hardcode_into_libs=yes
16682  ;;
16683
16684irix5* | irix6* | nonstopux*)
16685  case $host_os in
16686    nonstopux*) version_type=nonstopux ;;
16687    *)
16688	if test "$lt_cv_prog_gnu_ld" = yes; then
16689		version_type=linux # correct to gnu/linux during the next big refactor
16690	else
16691		version_type=irix
16692	fi ;;
16693  esac
16694  need_lib_prefix=no
16695  need_version=no
16696  soname_spec='${libname}${release}${shared_ext}$major'
16697  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16698  case $host_os in
16699  irix5* | nonstopux*)
16700    libsuff= shlibsuff=
16701    ;;
16702  *)
16703    case $LD in # libtool.m4 will add one of these switches to LD
16704    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16705      libsuff= shlibsuff= libmagic=32-bit;;
16706    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16707      libsuff=32 shlibsuff=N32 libmagic=N32;;
16708    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16709      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16710    *) libsuff= shlibsuff= libmagic=never-match;;
16711    esac
16712    ;;
16713  esac
16714  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16715  shlibpath_overrides_runpath=no
16716  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16717  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16718  hardcode_into_libs=yes
16719  ;;
16720
16721# No shared lib support for Linux oldld, aout, or coff.
16722linux*oldld* | linux*aout* | linux*coff*)
16723  dynamic_linker=no
16724  ;;
16725
16726# This must be glibc/ELF.
16727linux* | k*bsd*-gnu | kopensolaris*-gnu)
16728  version_type=linux # correct to gnu/linux during the next big refactor
16729  need_lib_prefix=no
16730  need_version=no
16731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16732  soname_spec='${libname}${release}${shared_ext}$major'
16733  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16734  shlibpath_var=LD_LIBRARY_PATH
16735  shlibpath_overrides_runpath=no
16736
16737  # Some binutils ld are patched to set DT_RUNPATH
16738  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16739  $as_echo_n "(cached) " >&6
16740else
16741  lt_cv_shlibpath_overrides_runpath=no
16742    save_LDFLAGS=$LDFLAGS
16743    save_libdir=$libdir
16744    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16745	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16746    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16747/* end confdefs.h.  */
16748
16749int
16750main ()
16751{
16752
16753  ;
16754  return 0;
16755}
16756_ACEOF
16757if ac_fn_c_try_link "$LINENO"; then :
16758  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16759  lt_cv_shlibpath_overrides_runpath=yes
16760fi
16761fi
16762rm -f core conftest.err conftest.$ac_objext \
16763    conftest$ac_exeext conftest.$ac_ext
16764    LDFLAGS=$save_LDFLAGS
16765    libdir=$save_libdir
16766
16767fi
16768
16769  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16770
16771  # This implies no fast_install, which is unacceptable.
16772  # Some rework will be needed to allow for fast_install
16773  # before this can be enabled.
16774  hardcode_into_libs=yes
16775
16776  # Append ld.so.conf contents to the search path
16777  if test -f /etc/ld.so.conf; then
16778    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' ' '`
16779    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16780  fi
16781
16782  # We used to test for /lib/ld.so.1 and disable shared libraries on
16783  # powerpc, because MkLinux only supported shared libraries with the
16784  # GNU dynamic linker.  Since this was broken with cross compilers,
16785  # most powerpc-linux boxes support dynamic linking these days and
16786  # people can always --disable-shared, the test was removed, and we
16787  # assume the GNU/Linux dynamic linker is in use.
16788  dynamic_linker='GNU/Linux ld.so'
16789  ;;
16790
16791netbsdelf*-gnu)
16792  version_type=linux
16793  need_lib_prefix=no
16794  need_version=no
16795  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16796  soname_spec='${libname}${release}${shared_ext}$major'
16797  shlibpath_var=LD_LIBRARY_PATH
16798  shlibpath_overrides_runpath=no
16799  hardcode_into_libs=yes
16800  dynamic_linker='NetBSD ld.elf_so'
16801  ;;
16802
16803netbsd*)
16804  version_type=sunos
16805  need_lib_prefix=no
16806  need_version=no
16807  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16808    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16809    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16810    dynamic_linker='NetBSD (a.out) ld.so'
16811  else
16812    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16813    soname_spec='${libname}${release}${shared_ext}$major'
16814    dynamic_linker='NetBSD ld.elf_so'
16815  fi
16816  shlibpath_var=LD_LIBRARY_PATH
16817  shlibpath_overrides_runpath=yes
16818  hardcode_into_libs=yes
16819  ;;
16820
16821newsos6)
16822  version_type=linux # correct to gnu/linux during the next big refactor
16823  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16824  shlibpath_var=LD_LIBRARY_PATH
16825  shlibpath_overrides_runpath=yes
16826  ;;
16827
16828*nto* | *qnx*)
16829  version_type=qnx
16830  need_lib_prefix=no
16831  need_version=no
16832  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16833  soname_spec='${libname}${release}${shared_ext}$major'
16834  shlibpath_var=LD_LIBRARY_PATH
16835  shlibpath_overrides_runpath=no
16836  hardcode_into_libs=yes
16837  dynamic_linker='ldqnx.so'
16838  ;;
16839
16840openbsd*)
16841  version_type=sunos
16842  sys_lib_dlsearch_path_spec="/usr/lib"
16843  need_lib_prefix=no
16844  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16845  case $host_os in
16846    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16847    *)				need_version=no  ;;
16848  esac
16849  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16850  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16851  shlibpath_var=LD_LIBRARY_PATH
16852  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16853    case $host_os in
16854      openbsd2.[89] | openbsd2.[89].*)
16855	shlibpath_overrides_runpath=no
16856	;;
16857      *)
16858	shlibpath_overrides_runpath=yes
16859	;;
16860      esac
16861  else
16862    shlibpath_overrides_runpath=yes
16863  fi
16864  ;;
16865
16866os2*)
16867  libname_spec='$name'
16868  shrext_cmds=".dll"
16869  need_lib_prefix=no
16870  library_names_spec='$libname${shared_ext} $libname.a'
16871  dynamic_linker='OS/2 ld.exe'
16872  shlibpath_var=LIBPATH
16873  ;;
16874
16875osf3* | osf4* | osf5*)
16876  version_type=osf
16877  need_lib_prefix=no
16878  need_version=no
16879  soname_spec='${libname}${release}${shared_ext}$major'
16880  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16881  shlibpath_var=LD_LIBRARY_PATH
16882  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16883  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16884  ;;
16885
16886rdos*)
16887  dynamic_linker=no
16888  ;;
16889
16890solaris*)
16891  version_type=linux # correct to gnu/linux during the next big refactor
16892  need_lib_prefix=no
16893  need_version=no
16894  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16895  soname_spec='${libname}${release}${shared_ext}$major'
16896  shlibpath_var=LD_LIBRARY_PATH
16897  shlibpath_overrides_runpath=yes
16898  hardcode_into_libs=yes
16899  # ldd complains unless libraries are executable
16900  postinstall_cmds='chmod +x $lib'
16901  ;;
16902
16903sunos4*)
16904  version_type=sunos
16905  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16906  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16907  shlibpath_var=LD_LIBRARY_PATH
16908  shlibpath_overrides_runpath=yes
16909  if test "$with_gnu_ld" = yes; then
16910    need_lib_prefix=no
16911  fi
16912  need_version=yes
16913  ;;
16914
16915sysv4 | sysv4.3*)
16916  version_type=linux # correct to gnu/linux during the next big refactor
16917  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16918  soname_spec='${libname}${release}${shared_ext}$major'
16919  shlibpath_var=LD_LIBRARY_PATH
16920  case $host_vendor in
16921    sni)
16922      shlibpath_overrides_runpath=no
16923      need_lib_prefix=no
16924      runpath_var=LD_RUN_PATH
16925      ;;
16926    siemens)
16927      need_lib_prefix=no
16928      ;;
16929    motorola)
16930      need_lib_prefix=no
16931      need_version=no
16932      shlibpath_overrides_runpath=no
16933      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16934      ;;
16935  esac
16936  ;;
16937
16938sysv4*MP*)
16939  if test -d /usr/nec ;then
16940    version_type=linux # correct to gnu/linux during the next big refactor
16941    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16942    soname_spec='$libname${shared_ext}.$major'
16943    shlibpath_var=LD_LIBRARY_PATH
16944  fi
16945  ;;
16946
16947sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16948  version_type=freebsd-elf
16949  need_lib_prefix=no
16950  need_version=no
16951  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16952  soname_spec='${libname}${release}${shared_ext}$major'
16953  shlibpath_var=LD_LIBRARY_PATH
16954  shlibpath_overrides_runpath=yes
16955  hardcode_into_libs=yes
16956  if test "$with_gnu_ld" = yes; then
16957    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16958  else
16959    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16960    case $host_os in
16961      sco3.2v5*)
16962        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16963	;;
16964    esac
16965  fi
16966  sys_lib_dlsearch_path_spec='/usr/lib'
16967  ;;
16968
16969tpf*)
16970  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16971  version_type=linux # correct to gnu/linux during the next big refactor
16972  need_lib_prefix=no
16973  need_version=no
16974  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16975  shlibpath_var=LD_LIBRARY_PATH
16976  shlibpath_overrides_runpath=no
16977  hardcode_into_libs=yes
16978  ;;
16979
16980uts4*)
16981  version_type=linux # correct to gnu/linux during the next big refactor
16982  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16983  soname_spec='${libname}${release}${shared_ext}$major'
16984  shlibpath_var=LD_LIBRARY_PATH
16985  ;;
16986
16987*)
16988  dynamic_linker=no
16989  ;;
16990esac
16991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16992$as_echo "$dynamic_linker" >&6; }
16993test "$dynamic_linker" = no && can_build_shared=no
16994
16995variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16996if test "$GCC" = yes; then
16997  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16998fi
16999
17000if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17001  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17002fi
17003if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17004  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17005fi
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17099$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17100hardcode_action=
17101if test -n "$hardcode_libdir_flag_spec" ||
17102   test -n "$runpath_var" ||
17103   test "X$hardcode_automatic" = "Xyes" ; then
17104
17105  # We can hardcode non-existent directories.
17106  if test "$hardcode_direct" != no &&
17107     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17108     # have to relink, otherwise we might link with an installed library
17109     # when we should be linking with a yet-to-be-installed one
17110     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17111     test "$hardcode_minus_L" != no; then
17112    # Linking always hardcodes the temporary library directory.
17113    hardcode_action=relink
17114  else
17115    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17116    hardcode_action=immediate
17117  fi
17118else
17119  # We cannot hardcode anything, or else we can only hardcode existing
17120  # directories.
17121  hardcode_action=unsupported
17122fi
17123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17124$as_echo "$hardcode_action" >&6; }
17125
17126if test "$hardcode_action" = relink ||
17127   test "$inherit_rpath" = yes; then
17128  # Fast installation is not supported
17129  enable_fast_install=no
17130elif test "$shlibpath_overrides_runpath" = yes ||
17131     test "$enable_shared" = no; then
17132  # Fast installation is not necessary
17133  enable_fast_install=needless
17134fi
17135
17136
17137
17138
17139
17140
17141  if test "x$enable_dlopen" != xyes; then
17142  enable_dlopen=unknown
17143  enable_dlopen_self=unknown
17144  enable_dlopen_self_static=unknown
17145else
17146  lt_cv_dlopen=no
17147  lt_cv_dlopen_libs=
17148
17149  case $host_os in
17150  beos*)
17151    lt_cv_dlopen="load_add_on"
17152    lt_cv_dlopen_libs=
17153    lt_cv_dlopen_self=yes
17154    ;;
17155
17156  mingw* | pw32* | cegcc*)
17157    lt_cv_dlopen="LoadLibrary"
17158    lt_cv_dlopen_libs=
17159    ;;
17160
17161  cygwin*)
17162    lt_cv_dlopen="dlopen"
17163    lt_cv_dlopen_libs=
17164    ;;
17165
17166  darwin*)
17167  # if libdl is installed we need to link against it
17168    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17169$as_echo_n "checking for dlopen in -ldl... " >&6; }
17170if ${ac_cv_lib_dl_dlopen+:} false; then :
17171  $as_echo_n "(cached) " >&6
17172else
17173  ac_check_lib_save_LIBS=$LIBS
17174LIBS="-ldl  $LIBS"
17175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17176/* end confdefs.h.  */
17177
17178/* Override any GCC internal prototype to avoid an error.
17179   Use char because int might match the return type of a GCC
17180   builtin and then its argument prototype would still apply.  */
17181#ifdef __cplusplus
17182extern "C"
17183#endif
17184char dlopen ();
17185int
17186main ()
17187{
17188return dlopen ();
17189  ;
17190  return 0;
17191}
17192_ACEOF
17193if ac_fn_c_try_link "$LINENO"; then :
17194  ac_cv_lib_dl_dlopen=yes
17195else
17196  ac_cv_lib_dl_dlopen=no
17197fi
17198rm -f core conftest.err conftest.$ac_objext \
17199    conftest$ac_exeext conftest.$ac_ext
17200LIBS=$ac_check_lib_save_LIBS
17201fi
17202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17203$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17204if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17205  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17206else
17207
17208    lt_cv_dlopen="dyld"
17209    lt_cv_dlopen_libs=
17210    lt_cv_dlopen_self=yes
17211
17212fi
17213
17214    ;;
17215
17216  *)
17217    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17218if test "x$ac_cv_func_shl_load" = xyes; then :
17219  lt_cv_dlopen="shl_load"
17220else
17221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17222$as_echo_n "checking for shl_load in -ldld... " >&6; }
17223if ${ac_cv_lib_dld_shl_load+:} false; then :
17224  $as_echo_n "(cached) " >&6
17225else
17226  ac_check_lib_save_LIBS=$LIBS
17227LIBS="-ldld  $LIBS"
17228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17229/* end confdefs.h.  */
17230
17231/* Override any GCC internal prototype to avoid an error.
17232   Use char because int might match the return type of a GCC
17233   builtin and then its argument prototype would still apply.  */
17234#ifdef __cplusplus
17235extern "C"
17236#endif
17237char shl_load ();
17238int
17239main ()
17240{
17241return shl_load ();
17242  ;
17243  return 0;
17244}
17245_ACEOF
17246if ac_fn_c_try_link "$LINENO"; then :
17247  ac_cv_lib_dld_shl_load=yes
17248else
17249  ac_cv_lib_dld_shl_load=no
17250fi
17251rm -f core conftest.err conftest.$ac_objext \
17252    conftest$ac_exeext conftest.$ac_ext
17253LIBS=$ac_check_lib_save_LIBS
17254fi
17255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17256$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17257if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17258  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17259else
17260  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17261if test "x$ac_cv_func_dlopen" = xyes; then :
17262  lt_cv_dlopen="dlopen"
17263else
17264  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17265$as_echo_n "checking for dlopen in -ldl... " >&6; }
17266if ${ac_cv_lib_dl_dlopen+:} false; then :
17267  $as_echo_n "(cached) " >&6
17268else
17269  ac_check_lib_save_LIBS=$LIBS
17270LIBS="-ldl  $LIBS"
17271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17272/* end confdefs.h.  */
17273
17274/* Override any GCC internal prototype to avoid an error.
17275   Use char because int might match the return type of a GCC
17276   builtin and then its argument prototype would still apply.  */
17277#ifdef __cplusplus
17278extern "C"
17279#endif
17280char dlopen ();
17281int
17282main ()
17283{
17284return dlopen ();
17285  ;
17286  return 0;
17287}
17288_ACEOF
17289if ac_fn_c_try_link "$LINENO"; then :
17290  ac_cv_lib_dl_dlopen=yes
17291else
17292  ac_cv_lib_dl_dlopen=no
17293fi
17294rm -f core conftest.err conftest.$ac_objext \
17295    conftest$ac_exeext conftest.$ac_ext
17296LIBS=$ac_check_lib_save_LIBS
17297fi
17298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17299$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17300if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17301  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17302else
17303  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17304$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17305if ${ac_cv_lib_svld_dlopen+:} false; then :
17306  $as_echo_n "(cached) " >&6
17307else
17308  ac_check_lib_save_LIBS=$LIBS
17309LIBS="-lsvld  $LIBS"
17310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17311/* end confdefs.h.  */
17312
17313/* Override any GCC internal prototype to avoid an error.
17314   Use char because int might match the return type of a GCC
17315   builtin and then its argument prototype would still apply.  */
17316#ifdef __cplusplus
17317extern "C"
17318#endif
17319char dlopen ();
17320int
17321main ()
17322{
17323return dlopen ();
17324  ;
17325  return 0;
17326}
17327_ACEOF
17328if ac_fn_c_try_link "$LINENO"; then :
17329  ac_cv_lib_svld_dlopen=yes
17330else
17331  ac_cv_lib_svld_dlopen=no
17332fi
17333rm -f core conftest.err conftest.$ac_objext \
17334    conftest$ac_exeext conftest.$ac_ext
17335LIBS=$ac_check_lib_save_LIBS
17336fi
17337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17338$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17339if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17340  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17341else
17342  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17343$as_echo_n "checking for dld_link in -ldld... " >&6; }
17344if ${ac_cv_lib_dld_dld_link+:} false; then :
17345  $as_echo_n "(cached) " >&6
17346else
17347  ac_check_lib_save_LIBS=$LIBS
17348LIBS="-ldld  $LIBS"
17349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17350/* end confdefs.h.  */
17351
17352/* Override any GCC internal prototype to avoid an error.
17353   Use char because int might match the return type of a GCC
17354   builtin and then its argument prototype would still apply.  */
17355#ifdef __cplusplus
17356extern "C"
17357#endif
17358char dld_link ();
17359int
17360main ()
17361{
17362return dld_link ();
17363  ;
17364  return 0;
17365}
17366_ACEOF
17367if ac_fn_c_try_link "$LINENO"; then :
17368  ac_cv_lib_dld_dld_link=yes
17369else
17370  ac_cv_lib_dld_dld_link=no
17371fi
17372rm -f core conftest.err conftest.$ac_objext \
17373    conftest$ac_exeext conftest.$ac_ext
17374LIBS=$ac_check_lib_save_LIBS
17375fi
17376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17377$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17378if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17379  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17380fi
17381
17382
17383fi
17384
17385
17386fi
17387
17388
17389fi
17390
17391
17392fi
17393
17394
17395fi
17396
17397    ;;
17398  esac
17399
17400  if test "x$lt_cv_dlopen" != xno; then
17401    enable_dlopen=yes
17402  else
17403    enable_dlopen=no
17404  fi
17405
17406  case $lt_cv_dlopen in
17407  dlopen)
17408    save_CPPFLAGS="$CPPFLAGS"
17409    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17410
17411    save_LDFLAGS="$LDFLAGS"
17412    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17413
17414    save_LIBS="$LIBS"
17415    LIBS="$lt_cv_dlopen_libs $LIBS"
17416
17417    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17418$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17419if ${lt_cv_dlopen_self+:} false; then :
17420  $as_echo_n "(cached) " >&6
17421else
17422  	  if test "$cross_compiling" = yes; then :
17423  lt_cv_dlopen_self=cross
17424else
17425  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17426  lt_status=$lt_dlunknown
17427  cat > conftest.$ac_ext <<_LT_EOF
17428#line $LINENO "configure"
17429#include "confdefs.h"
17430
17431#if HAVE_DLFCN_H
17432#include <dlfcn.h>
17433#endif
17434
17435#include <stdio.h>
17436
17437#ifdef RTLD_GLOBAL
17438#  define LT_DLGLOBAL		RTLD_GLOBAL
17439#else
17440#  ifdef DL_GLOBAL
17441#    define LT_DLGLOBAL		DL_GLOBAL
17442#  else
17443#    define LT_DLGLOBAL		0
17444#  endif
17445#endif
17446
17447/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17448   find out it does not work in some platform. */
17449#ifndef LT_DLLAZY_OR_NOW
17450#  ifdef RTLD_LAZY
17451#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17452#  else
17453#    ifdef DL_LAZY
17454#      define LT_DLLAZY_OR_NOW		DL_LAZY
17455#    else
17456#      ifdef RTLD_NOW
17457#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17458#      else
17459#        ifdef DL_NOW
17460#          define LT_DLLAZY_OR_NOW	DL_NOW
17461#        else
17462#          define LT_DLLAZY_OR_NOW	0
17463#        endif
17464#      endif
17465#    endif
17466#  endif
17467#endif
17468
17469/* When -fvisbility=hidden is used, assume the code has been annotated
17470   correspondingly for the symbols needed.  */
17471#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17472int fnord () __attribute__((visibility("default")));
17473#endif
17474
17475int fnord () { return 42; }
17476int main ()
17477{
17478  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17479  int status = $lt_dlunknown;
17480
17481  if (self)
17482    {
17483      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17484      else
17485        {
17486	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17487          else puts (dlerror ());
17488	}
17489      /* dlclose (self); */
17490    }
17491  else
17492    puts (dlerror ());
17493
17494  return status;
17495}
17496_LT_EOF
17497  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17498  (eval $ac_link) 2>&5
17499  ac_status=$?
17500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17501  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17502    (./conftest; exit; ) >&5 2>/dev/null
17503    lt_status=$?
17504    case x$lt_status in
17505      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17506      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17507      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17508    esac
17509  else :
17510    # compilation failed
17511    lt_cv_dlopen_self=no
17512  fi
17513fi
17514rm -fr conftest*
17515
17516
17517fi
17518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17519$as_echo "$lt_cv_dlopen_self" >&6; }
17520
17521    if test "x$lt_cv_dlopen_self" = xyes; then
17522      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17523      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17524$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17525if ${lt_cv_dlopen_self_static+:} false; then :
17526  $as_echo_n "(cached) " >&6
17527else
17528  	  if test "$cross_compiling" = yes; then :
17529  lt_cv_dlopen_self_static=cross
17530else
17531  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17532  lt_status=$lt_dlunknown
17533  cat > conftest.$ac_ext <<_LT_EOF
17534#line $LINENO "configure"
17535#include "confdefs.h"
17536
17537#if HAVE_DLFCN_H
17538#include <dlfcn.h>
17539#endif
17540
17541#include <stdio.h>
17542
17543#ifdef RTLD_GLOBAL
17544#  define LT_DLGLOBAL		RTLD_GLOBAL
17545#else
17546#  ifdef DL_GLOBAL
17547#    define LT_DLGLOBAL		DL_GLOBAL
17548#  else
17549#    define LT_DLGLOBAL		0
17550#  endif
17551#endif
17552
17553/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17554   find out it does not work in some platform. */
17555#ifndef LT_DLLAZY_OR_NOW
17556#  ifdef RTLD_LAZY
17557#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17558#  else
17559#    ifdef DL_LAZY
17560#      define LT_DLLAZY_OR_NOW		DL_LAZY
17561#    else
17562#      ifdef RTLD_NOW
17563#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17564#      else
17565#        ifdef DL_NOW
17566#          define LT_DLLAZY_OR_NOW	DL_NOW
17567#        else
17568#          define LT_DLLAZY_OR_NOW	0
17569#        endif
17570#      endif
17571#    endif
17572#  endif
17573#endif
17574
17575/* When -fvisbility=hidden is used, assume the code has been annotated
17576   correspondingly for the symbols needed.  */
17577#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17578int fnord () __attribute__((visibility("default")));
17579#endif
17580
17581int fnord () { return 42; }
17582int main ()
17583{
17584  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17585  int status = $lt_dlunknown;
17586
17587  if (self)
17588    {
17589      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17590      else
17591        {
17592	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17593          else puts (dlerror ());
17594	}
17595      /* dlclose (self); */
17596    }
17597  else
17598    puts (dlerror ());
17599
17600  return status;
17601}
17602_LT_EOF
17603  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17604  (eval $ac_link) 2>&5
17605  ac_status=$?
17606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17607  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17608    (./conftest; exit; ) >&5 2>/dev/null
17609    lt_status=$?
17610    case x$lt_status in
17611      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17612      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17613      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17614    esac
17615  else :
17616    # compilation failed
17617    lt_cv_dlopen_self_static=no
17618  fi
17619fi
17620rm -fr conftest*
17621
17622
17623fi
17624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17625$as_echo "$lt_cv_dlopen_self_static" >&6; }
17626    fi
17627
17628    CPPFLAGS="$save_CPPFLAGS"
17629    LDFLAGS="$save_LDFLAGS"
17630    LIBS="$save_LIBS"
17631    ;;
17632  esac
17633
17634  case $lt_cv_dlopen_self in
17635  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17636  *) enable_dlopen_self=unknown ;;
17637  esac
17638
17639  case $lt_cv_dlopen_self_static in
17640  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17641  *) enable_dlopen_self_static=unknown ;;
17642  esac
17643fi
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661striplib=
17662old_striplib=
17663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17664$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17665if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17666  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17667  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17669$as_echo "yes" >&6; }
17670else
17671# FIXME - insert some real tests, host_os isn't really good enough
17672  case $host_os in
17673  darwin*)
17674    if test -n "$STRIP" ; then
17675      striplib="$STRIP -x"
17676      old_striplib="$STRIP -S"
17677      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17678$as_echo "yes" >&6; }
17679    else
17680      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17681$as_echo "no" >&6; }
17682    fi
17683    ;;
17684  *)
17685    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17686$as_echo "no" >&6; }
17687    ;;
17688  esac
17689fi
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702  # Report which library types will actually be built
17703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17704$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17706$as_echo "$can_build_shared" >&6; }
17707
17708  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17709$as_echo_n "checking whether to build shared libraries... " >&6; }
17710  test "$can_build_shared" = "no" && enable_shared=no
17711
17712  # On AIX, shared libraries and static libraries use the same namespace, and
17713  # are all built from PIC.
17714  case $host_os in
17715  aix3*)
17716    test "$enable_shared" = yes && enable_static=no
17717    if test -n "$RANLIB"; then
17718      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17719      postinstall_cmds='$RANLIB $lib'
17720    fi
17721    ;;
17722
17723  aix[4-9]*)
17724    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17725      test "$enable_shared" = yes && enable_static=no
17726    fi
17727    ;;
17728  esac
17729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17730$as_echo "$enable_shared" >&6; }
17731
17732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17733$as_echo_n "checking whether to build static libraries... " >&6; }
17734  # Make sure either enable_shared or enable_static is yes.
17735  test "$enable_shared" = yes || enable_static=yes
17736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17737$as_echo "$enable_static" >&6; }
17738
17739
17740
17741
17742fi
17743ac_ext=c
17744ac_cpp='$CPP $CPPFLAGS'
17745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17747ac_compiler_gnu=$ac_cv_c_compiler_gnu
17748
17749CC="$lt_save_CC"
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765        ac_config_commands="$ac_config_commands libtool"
17766
17767
17768
17769
17770# Only expand once:
17771
17772
17773
17774
17775
17776# Define a configure option for an alternate module directory
17777
17778# Check whether --with-xorg-module-dir was given.
17779if test "${with_xorg_module_dir+set}" = set; then :
17780  withval=$with_xorg_module_dir; moduledir="$withval"
17781else
17782  moduledir="$libdir/xorg/modules"
17783fi
17784
17785
17786# Store the list of server defined optional extensions in REQUIRED_MODULES
17787
17788
17789	SAVE_CFLAGS="$CFLAGS"
17790	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17791	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17792/* end confdefs.h.  */
17793
17794#include "xorg-server.h"
17795#if !defined RANDR
17796#error RANDR not defined
17797#endif
17798
17799int
17800main ()
17801{
17802
17803  ;
17804  return 0;
17805}
17806_ACEOF
17807if ac_fn_c_try_compile "$LINENO"; then :
17808  _EXT_CHECK=yes
17809else
17810  _EXT_CHECK=no
17811fi
17812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17813	CFLAGS="$SAVE_CFLAGS"
17814	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17815$as_echo_n "checking if RANDR is defined... " >&6; }
17816	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17817$as_echo "$_EXT_CHECK" >&6; }
17818	if test "$_EXT_CHECK" != no; then
17819		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17820	fi
17821
17822
17823
17824	SAVE_CFLAGS="$CFLAGS"
17825	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17826	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17827/* end confdefs.h.  */
17828
17829#include "xorg-server.h"
17830#if !defined RENDER
17831#error RENDER not defined
17832#endif
17833
17834int
17835main ()
17836{
17837
17838  ;
17839  return 0;
17840}
17841_ACEOF
17842if ac_fn_c_try_compile "$LINENO"; then :
17843  _EXT_CHECK=yes
17844else
17845  _EXT_CHECK=no
17846fi
17847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17848	CFLAGS="$SAVE_CFLAGS"
17849	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17850$as_echo_n "checking if RENDER is defined... " >&6; }
17851	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17852$as_echo "$_EXT_CHECK" >&6; }
17853	if test "$_EXT_CHECK" != no; then
17854		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17855	fi
17856
17857
17858
17859	SAVE_CFLAGS="$CFLAGS"
17860	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17861	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17862/* end confdefs.h.  */
17863
17864#include "xorg-server.h"
17865#if !defined XV
17866#error XV not defined
17867#endif
17868
17869int
17870main ()
17871{
17872
17873  ;
17874  return 0;
17875}
17876_ACEOF
17877if ac_fn_c_try_compile "$LINENO"; then :
17878  _EXT_CHECK=yes
17879else
17880  _EXT_CHECK=no
17881fi
17882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17883	CFLAGS="$SAVE_CFLAGS"
17884	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
17885$as_echo_n "checking if XV is defined... " >&6; }
17886	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17887$as_echo "$_EXT_CHECK" >&6; }
17888	if test "$_EXT_CHECK" != no; then
17889		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
17890	fi
17891
17892
17893
17894	SAVE_CFLAGS="$CFLAGS"
17895	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17896	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17897/* end confdefs.h.  */
17898
17899#include "xorg-server.h"
17900#if !defined DPMSExtension
17901#error DPMSExtension not defined
17902#endif
17903
17904int
17905main ()
17906{
17907
17908  ;
17909  return 0;
17910}
17911_ACEOF
17912if ac_fn_c_try_compile "$LINENO"; then :
17913  _EXT_CHECK=yes
17914else
17915  _EXT_CHECK=no
17916fi
17917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17918	CFLAGS="$SAVE_CFLAGS"
17919	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17920$as_echo_n "checking if DPMSExtension is defined... " >&6; }
17921	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17922$as_echo "$_EXT_CHECK" >&6; }
17923	if test "$_EXT_CHECK" != no; then
17924		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17925	fi
17926
17927
17928# Obtain compiler/linker options for the driver dependencies
17929
17930pkg_failed=no
17931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17932$as_echo_n "checking for XORG... " >&6; }
17933
17934if test -n "$XORG_CFLAGS"; then
17935    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17936 elif test -n "$PKG_CONFIG"; then
17937    if test -n "$PKG_CONFIG" && \
17938    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17939  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES") 2>&5
17940  ac_status=$?
17941  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17942  test $ac_status = 0; }; then
17943  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17944		      test "x$?" != "x0" && pkg_failed=yes
17945else
17946  pkg_failed=yes
17947fi
17948 else
17949    pkg_failed=untried
17950fi
17951if test -n "$XORG_LIBS"; then
17952    pkg_cv_XORG_LIBS="$XORG_LIBS"
17953 elif test -n "$PKG_CONFIG"; then
17954    if test -n "$PKG_CONFIG" && \
17955    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17956  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES") 2>&5
17957  ac_status=$?
17958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17959  test $ac_status = 0; }; then
17960  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17961		      test "x$?" != "x0" && pkg_failed=yes
17962else
17963  pkg_failed=yes
17964fi
17965 else
17966    pkg_failed=untried
17967fi
17968
17969
17970
17971if test $pkg_failed = yes; then
17972   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17973$as_echo "no" >&6; }
17974
17975if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17976        _pkg_short_errors_supported=yes
17977else
17978        _pkg_short_errors_supported=no
17979fi
17980        if test $_pkg_short_errors_supported = yes; then
17981	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17982        else
17983	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17984        fi
17985	# Put the nasty error message in config.log where it belongs
17986	echo "$XORG_PKG_ERRORS" >&5
17987
17988	as_fn_error $? "Package requirements (xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES) were not met:
17989
17990$XORG_PKG_ERRORS
17991
17992Consider adjusting the PKG_CONFIG_PATH environment variable if you
17993installed software in a non-standard prefix.
17994
17995Alternatively, you may set the environment variables XORG_CFLAGS
17996and XORG_LIBS to avoid the need to call pkg-config.
17997See the pkg-config man page for more details." "$LINENO" 5
17998elif test $pkg_failed = untried; then
17999     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18000$as_echo "no" >&6; }
18001	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18002$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18003as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18004is in your PATH or set the PKG_CONFIG environment variable to the full
18005path to pkg-config.
18006
18007Alternatively, you may set the environment variables XORG_CFLAGS
18008and XORG_LIBS to avoid the need to call pkg-config.
18009See the pkg-config man page for more details.
18010
18011To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18012See \`config.log' for more details" "$LINENO" 5; }
18013else
18014	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18015	XORG_LIBS=$pkg_cv_XORG_LIBS
18016        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18017$as_echo "yes" >&6; }
18018
18019fi
18020
18021# Checks for libraries.
18022SAVE_CPPFLAGS="$CPPFLAGS"
18023CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18024ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18025"
18026if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18027  XSERVER_LIBPCIACCESS=yes
18028else
18029  XSERVER_LIBPCIACCESS=no
18030fi
18031
18032ac_fn_c_check_header_mongrel "$LINENO" "xf1bpp.h" "ac_cv_header_xf1bpp_h" "$ac_includes_default"
18033if test "x$ac_cv_header_xf1bpp_h" = xyes; then :
18034
18035$as_echo "#define HAVE_XF1BPP 1" >>confdefs.h
18036
18037fi
18038
18039
18040ac_fn_c_check_header_mongrel "$LINENO" "xf4bpp.h" "ac_cv_header_xf4bpp_h" "$ac_includes_default"
18041if test "x$ac_cv_header_xf4bpp_h" = xyes; then :
18042
18043$as_echo "#define HAVE_XF4BPP 1" >>confdefs.h
18044
18045fi
18046
18047
18048CPPFLAGS="$SAVE_CPPFLAGS"
18049
18050# Check whether --enable-xaa was given.
18051if test "${enable_xaa+set}" = set; then :
18052  enableval=$enable_xaa; XAA="$enableval"
18053else
18054  XAA=auto
18055fi
18056
18057if test "x$XAA" != xno; then
18058        save_CFLAGS=$CFLAGS
18059        save_CPPFLAGS=$CPPFLAGS
18060        CFLAGS=$XORG_CFLAGS
18061        CPPFLAGS="$XORG_CFLAGS"
18062        for ac_header in xaa.h
18063do :
18064  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18065if test "x$ac_cv_header_xaa_h" = xyes; then :
18066  cat >>confdefs.h <<_ACEOF
18067#define HAVE_XAA_H 1
18068_ACEOF
18069 XAA=yes
18070else
18071  XAA=no
18072fi
18073
18074done
18075
18076        CFLAGS=$save_CFLAGS
18077        CPPFLAGS=$save_CPPFLAGS
18078fi
18079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18080$as_echo_n "checking whether to include XAA support... " >&6; }
18081 if test "x$XAA" = xyes; then
18082  XAA_TRUE=
18083  XAA_FALSE='#'
18084else
18085  XAA_TRUE='#'
18086  XAA_FALSE=
18087fi
18088
18089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18090$as_echo "$XAA" >&6; }
18091
18092if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18093
18094pkg_failed=no
18095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18096$as_echo_n "checking for PCIACCESS... " >&6; }
18097
18098if test -n "$PCIACCESS_CFLAGS"; then
18099    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18100 elif test -n "$PKG_CONFIG"; then
18101    if test -n "$PKG_CONFIG" && \
18102    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18103  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18104  ac_status=$?
18105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18106  test $ac_status = 0; }; then
18107  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18108		      test "x$?" != "x0" && pkg_failed=yes
18109else
18110  pkg_failed=yes
18111fi
18112 else
18113    pkg_failed=untried
18114fi
18115if test -n "$PCIACCESS_LIBS"; then
18116    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
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 \"pciaccess >= 0.8.0\""; } >&5
18120  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 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_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18125		      test "x$?" != "x0" && pkg_failed=yes
18126else
18127  pkg_failed=yes
18128fi
18129 else
18130    pkg_failed=untried
18131fi
18132
18133
18134
18135if test $pkg_failed = yes; then
18136   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18137$as_echo "no" >&6; }
18138
18139if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18140        _pkg_short_errors_supported=yes
18141else
18142        _pkg_short_errors_supported=no
18143fi
18144        if test $_pkg_short_errors_supported = yes; then
18145	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18146        else
18147	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18148        fi
18149	# Put the nasty error message in config.log where it belongs
18150	echo "$PCIACCESS_PKG_ERRORS" >&5
18151
18152	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18153
18154$PCIACCESS_PKG_ERRORS
18155
18156Consider adjusting the PKG_CONFIG_PATH environment variable if you
18157installed software in a non-standard prefix.
18158
18159Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18160and PCIACCESS_LIBS to avoid the need to call pkg-config.
18161See the pkg-config man page for more details." "$LINENO" 5
18162elif test $pkg_failed = untried; then
18163     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18164$as_echo "no" >&6; }
18165	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18167as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18168is in your PATH or set the PKG_CONFIG environment variable to the full
18169path to pkg-config.
18170
18171Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18172and PCIACCESS_LIBS to avoid the need to call pkg-config.
18173See the pkg-config man page for more details.
18174
18175To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18176See \`config.log' for more details" "$LINENO" 5; }
18177else
18178	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18179	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18180        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18181$as_echo "yes" >&6; }
18182
18183fi
18184    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18185fi
18186 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18187  XSERVER_LIBPCIACCESS_TRUE=
18188  XSERVER_LIBPCIACCESS_FALSE='#'
18189else
18190  XSERVER_LIBPCIACCESS_TRUE='#'
18191  XSERVER_LIBPCIACCESS_FALSE=
18192fi
18193
18194
18195
18196
18197
18198DRIVER_NAME=cirrus
18199
18200
18201ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18202
18203cat >confcache <<\_ACEOF
18204# This file is a shell script that caches the results of configure
18205# tests run on this system so they can be shared between configure
18206# scripts and configure runs, see configure's option --config-cache.
18207# It is not useful on other systems.  If it contains results you don't
18208# want to keep, you may remove or edit it.
18209#
18210# config.status only pays attention to the cache file if you give it
18211# the --recheck option to rerun configure.
18212#
18213# `ac_cv_env_foo' variables (set or unset) will be overridden when
18214# loading this file, other *unset* `ac_cv_foo' will be assigned the
18215# following values.
18216
18217_ACEOF
18218
18219# The following way of writing the cache mishandles newlines in values,
18220# but we know of no workaround that is simple, portable, and efficient.
18221# So, we kill variables containing newlines.
18222# Ultrix sh set writes to stderr and can't be redirected directly,
18223# and sets the high bit in the cache file unless we assign to the vars.
18224(
18225  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18226    eval ac_val=\$$ac_var
18227    case $ac_val in #(
18228    *${as_nl}*)
18229      case $ac_var in #(
18230      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18231$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18232      esac
18233      case $ac_var in #(
18234      _ | IFS | as_nl) ;; #(
18235      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18236      *) { eval $ac_var=; unset $ac_var;} ;;
18237      esac ;;
18238    esac
18239  done
18240
18241  (set) 2>&1 |
18242    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18243    *${as_nl}ac_space=\ *)
18244      # `set' does not quote correctly, so add quotes: double-quote
18245      # substitution turns \\\\ into \\, and sed turns \\ into \.
18246      sed -n \
18247	"s/'/'\\\\''/g;
18248	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18249      ;; #(
18250    *)
18251      # `set' quotes correctly as required by POSIX, so do not add quotes.
18252      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18253      ;;
18254    esac |
18255    sort
18256) |
18257  sed '
18258     /^ac_cv_env_/b end
18259     t clear
18260     :clear
18261     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18262     t end
18263     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18264     :end' >>confcache
18265if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18266  if test -w "$cache_file"; then
18267    if test "x$cache_file" != "x/dev/null"; then
18268      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18269$as_echo "$as_me: updating cache $cache_file" >&6;}
18270      if test ! -f "$cache_file" || test -h "$cache_file"; then
18271	cat confcache >"$cache_file"
18272      else
18273        case $cache_file in #(
18274        */* | ?:*)
18275	  mv -f confcache "$cache_file"$$ &&
18276	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18277        *)
18278	  mv -f confcache "$cache_file" ;;
18279	esac
18280      fi
18281    fi
18282  else
18283    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18284$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18285  fi
18286fi
18287rm -f confcache
18288
18289test "x$prefix" = xNONE && prefix=$ac_default_prefix
18290# Let make expand exec_prefix.
18291test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18292
18293DEFS=-DHAVE_CONFIG_H
18294
18295ac_libobjs=
18296ac_ltlibobjs=
18297U=
18298for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18299  # 1. Remove the extension, and $U if already installed.
18300  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18301  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18302  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18303  #    will be set to the directory where LIBOBJS objects are built.
18304  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18305  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18306done
18307LIBOBJS=$ac_libobjs
18308
18309LTLIBOBJS=$ac_ltlibobjs
18310
18311
18312 if test -n "$EXEEXT"; then
18313  am__EXEEXT_TRUE=
18314  am__EXEEXT_FALSE='#'
18315else
18316  am__EXEEXT_TRUE='#'
18317  am__EXEEXT_FALSE=
18318fi
18319
18320if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18321  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18322Usually this means the macro was only invoked conditionally." "$LINENO" 5
18323fi
18324if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18325  as_fn_error $? "conditional \"AMDEP\" was never defined.
18326Usually this means the macro was only invoked conditionally." "$LINENO" 5
18327fi
18328if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18329  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18330Usually this means the macro was only invoked conditionally." "$LINENO" 5
18331fi
18332if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
18333  as_fn_error $? "conditional \"XAA\" was never defined.
18334Usually this means the macro was only invoked conditionally." "$LINENO" 5
18335fi
18336if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18337  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18338Usually this means the macro was only invoked conditionally." "$LINENO" 5
18339fi
18340
18341: "${CONFIG_STATUS=./config.status}"
18342ac_write_fail=0
18343ac_clean_files_save=$ac_clean_files
18344ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18345{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18346$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18347as_write_fail=0
18348cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18349#! $SHELL
18350# Generated by $as_me.
18351# Run this file to recreate the current configuration.
18352# Compiler output produced by configure, useful for debugging
18353# configure, is in config.log if it exists.
18354
18355debug=false
18356ac_cs_recheck=false
18357ac_cs_silent=false
18358
18359SHELL=\${CONFIG_SHELL-$SHELL}
18360export SHELL
18361_ASEOF
18362cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18363## -------------------- ##
18364## M4sh Initialization. ##
18365## -------------------- ##
18366
18367# Be more Bourne compatible
18368DUALCASE=1; export DUALCASE # for MKS sh
18369if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18370  emulate sh
18371  NULLCMD=:
18372  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18373  # is contrary to our usage.  Disable this feature.
18374  alias -g '${1+"$@"}'='"$@"'
18375  setopt NO_GLOB_SUBST
18376else
18377  case `(set -o) 2>/dev/null` in #(
18378  *posix*) :
18379    set -o posix ;; #(
18380  *) :
18381     ;;
18382esac
18383fi
18384
18385
18386as_nl='
18387'
18388export as_nl
18389# Printing a long string crashes Solaris 7 /usr/bin/printf.
18390as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18391as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18392as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18393# Prefer a ksh shell builtin over an external printf program on Solaris,
18394# but without wasting forks for bash or zsh.
18395if test -z "$BASH_VERSION$ZSH_VERSION" \
18396    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18397  as_echo='print -r --'
18398  as_echo_n='print -rn --'
18399elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18400  as_echo='printf %s\n'
18401  as_echo_n='printf %s'
18402else
18403  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18404    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18405    as_echo_n='/usr/ucb/echo -n'
18406  else
18407    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18408    as_echo_n_body='eval
18409      arg=$1;
18410      case $arg in #(
18411      *"$as_nl"*)
18412	expr "X$arg" : "X\\(.*\\)$as_nl";
18413	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18414      esac;
18415      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18416    '
18417    export as_echo_n_body
18418    as_echo_n='sh -c $as_echo_n_body as_echo'
18419  fi
18420  export as_echo_body
18421  as_echo='sh -c $as_echo_body as_echo'
18422fi
18423
18424# The user is always right.
18425if test "${PATH_SEPARATOR+set}" != set; then
18426  PATH_SEPARATOR=:
18427  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18428    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18429      PATH_SEPARATOR=';'
18430  }
18431fi
18432
18433
18434# IFS
18435# We need space, tab and new line, in precisely that order.  Quoting is
18436# there to prevent editors from complaining about space-tab.
18437# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18438# splitting by setting IFS to empty value.)
18439IFS=" ""	$as_nl"
18440
18441# Find who we are.  Look in the path if we contain no directory separator.
18442as_myself=
18443case $0 in #((
18444  *[\\/]* ) as_myself=$0 ;;
18445  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18446for as_dir in $PATH
18447do
18448  IFS=$as_save_IFS
18449  test -z "$as_dir" && as_dir=.
18450    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18451  done
18452IFS=$as_save_IFS
18453
18454     ;;
18455esac
18456# We did not find ourselves, most probably we were run as `sh COMMAND'
18457# in which case we are not to be found in the path.
18458if test "x$as_myself" = x; then
18459  as_myself=$0
18460fi
18461if test ! -f "$as_myself"; then
18462  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18463  exit 1
18464fi
18465
18466# Unset variables that we do not need and which cause bugs (e.g. in
18467# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18468# suppresses any "Segmentation fault" message there.  '((' could
18469# trigger a bug in pdksh 5.2.14.
18470for as_var in BASH_ENV ENV MAIL MAILPATH
18471do eval test x\${$as_var+set} = xset \
18472  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18473done
18474PS1='$ '
18475PS2='> '
18476PS4='+ '
18477
18478# NLS nuisances.
18479LC_ALL=C
18480export LC_ALL
18481LANGUAGE=C
18482export LANGUAGE
18483
18484# CDPATH.
18485(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18486
18487
18488# as_fn_error STATUS ERROR [LINENO LOG_FD]
18489# ----------------------------------------
18490# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18491# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18492# script with STATUS, using 1 if that was 0.
18493as_fn_error ()
18494{
18495  as_status=$1; test $as_status -eq 0 && as_status=1
18496  if test "$4"; then
18497    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18498    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18499  fi
18500  $as_echo "$as_me: error: $2" >&2
18501  as_fn_exit $as_status
18502} # as_fn_error
18503
18504
18505# as_fn_set_status STATUS
18506# -----------------------
18507# Set $? to STATUS, without forking.
18508as_fn_set_status ()
18509{
18510  return $1
18511} # as_fn_set_status
18512
18513# as_fn_exit STATUS
18514# -----------------
18515# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18516as_fn_exit ()
18517{
18518  set +e
18519  as_fn_set_status $1
18520  exit $1
18521} # as_fn_exit
18522
18523# as_fn_unset VAR
18524# ---------------
18525# Portably unset VAR.
18526as_fn_unset ()
18527{
18528  { eval $1=; unset $1;}
18529}
18530as_unset=as_fn_unset
18531# as_fn_append VAR VALUE
18532# ----------------------
18533# Append the text in VALUE to the end of the definition contained in VAR. Take
18534# advantage of any shell optimizations that allow amortized linear growth over
18535# repeated appends, instead of the typical quadratic growth present in naive
18536# implementations.
18537if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18538  eval 'as_fn_append ()
18539  {
18540    eval $1+=\$2
18541  }'
18542else
18543  as_fn_append ()
18544  {
18545    eval $1=\$$1\$2
18546  }
18547fi # as_fn_append
18548
18549# as_fn_arith ARG...
18550# ------------------
18551# Perform arithmetic evaluation on the ARGs, and store the result in the
18552# global $as_val. Take advantage of shells that can avoid forks. The arguments
18553# must be portable across $(()) and expr.
18554if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18555  eval 'as_fn_arith ()
18556  {
18557    as_val=$(( $* ))
18558  }'
18559else
18560  as_fn_arith ()
18561  {
18562    as_val=`expr "$@" || test $? -eq 1`
18563  }
18564fi # as_fn_arith
18565
18566
18567if expr a : '\(a\)' >/dev/null 2>&1 &&
18568   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18569  as_expr=expr
18570else
18571  as_expr=false
18572fi
18573
18574if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18575  as_basename=basename
18576else
18577  as_basename=false
18578fi
18579
18580if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18581  as_dirname=dirname
18582else
18583  as_dirname=false
18584fi
18585
18586as_me=`$as_basename -- "$0" ||
18587$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18588	 X"$0" : 'X\(//\)$' \| \
18589	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18590$as_echo X/"$0" |
18591    sed '/^.*\/\([^/][^/]*\)\/*$/{
18592	    s//\1/
18593	    q
18594	  }
18595	  /^X\/\(\/\/\)$/{
18596	    s//\1/
18597	    q
18598	  }
18599	  /^X\/\(\/\).*/{
18600	    s//\1/
18601	    q
18602	  }
18603	  s/.*/./; q'`
18604
18605# Avoid depending upon Character Ranges.
18606as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18607as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18608as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18609as_cr_digits='0123456789'
18610as_cr_alnum=$as_cr_Letters$as_cr_digits
18611
18612ECHO_C= ECHO_N= ECHO_T=
18613case `echo -n x` in #(((((
18614-n*)
18615  case `echo 'xy\c'` in
18616  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18617  xy)  ECHO_C='\c';;
18618  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18619       ECHO_T='	';;
18620  esac;;
18621*)
18622  ECHO_N='-n';;
18623esac
18624
18625rm -f conf$$ conf$$.exe conf$$.file
18626if test -d conf$$.dir; then
18627  rm -f conf$$.dir/conf$$.file
18628else
18629  rm -f conf$$.dir
18630  mkdir conf$$.dir 2>/dev/null
18631fi
18632if (echo >conf$$.file) 2>/dev/null; then
18633  if ln -s conf$$.file conf$$ 2>/dev/null; then
18634    as_ln_s='ln -s'
18635    # ... but there are two gotchas:
18636    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18637    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18638    # In both cases, we have to default to `cp -pR'.
18639    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18640      as_ln_s='cp -pR'
18641  elif ln conf$$.file conf$$ 2>/dev/null; then
18642    as_ln_s=ln
18643  else
18644    as_ln_s='cp -pR'
18645  fi
18646else
18647  as_ln_s='cp -pR'
18648fi
18649rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18650rmdir conf$$.dir 2>/dev/null
18651
18652
18653# as_fn_mkdir_p
18654# -------------
18655# Create "$as_dir" as a directory, including parents if necessary.
18656as_fn_mkdir_p ()
18657{
18658
18659  case $as_dir in #(
18660  -*) as_dir=./$as_dir;;
18661  esac
18662  test -d "$as_dir" || eval $as_mkdir_p || {
18663    as_dirs=
18664    while :; do
18665      case $as_dir in #(
18666      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18667      *) as_qdir=$as_dir;;
18668      esac
18669      as_dirs="'$as_qdir' $as_dirs"
18670      as_dir=`$as_dirname -- "$as_dir" ||
18671$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18672	 X"$as_dir" : 'X\(//\)[^/]' \| \
18673	 X"$as_dir" : 'X\(//\)$' \| \
18674	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18675$as_echo X"$as_dir" |
18676    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18677	    s//\1/
18678	    q
18679	  }
18680	  /^X\(\/\/\)[^/].*/{
18681	    s//\1/
18682	    q
18683	  }
18684	  /^X\(\/\/\)$/{
18685	    s//\1/
18686	    q
18687	  }
18688	  /^X\(\/\).*/{
18689	    s//\1/
18690	    q
18691	  }
18692	  s/.*/./; q'`
18693      test -d "$as_dir" && break
18694    done
18695    test -z "$as_dirs" || eval "mkdir $as_dirs"
18696  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18697
18698
18699} # as_fn_mkdir_p
18700if mkdir -p . 2>/dev/null; then
18701  as_mkdir_p='mkdir -p "$as_dir"'
18702else
18703  test -d ./-p && rmdir ./-p
18704  as_mkdir_p=false
18705fi
18706
18707
18708# as_fn_executable_p FILE
18709# -----------------------
18710# Test if FILE is an executable regular file.
18711as_fn_executable_p ()
18712{
18713  test -f "$1" && test -x "$1"
18714} # as_fn_executable_p
18715as_test_x='test -x'
18716as_executable_p=as_fn_executable_p
18717
18718# Sed expression to map a string onto a valid CPP name.
18719as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18720
18721# Sed expression to map a string onto a valid variable name.
18722as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18723
18724
18725exec 6>&1
18726## ----------------------------------- ##
18727## Main body of $CONFIG_STATUS script. ##
18728## ----------------------------------- ##
18729_ASEOF
18730test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18731
18732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18733# Save the log message, to keep $0 and so on meaningful, and to
18734# report actual input values of CONFIG_FILES etc. instead of their
18735# values after options handling.
18736ac_log="
18737This file was extended by xf86-video-cirrus $as_me 1.5.2, which was
18738generated by GNU Autoconf 2.69.  Invocation command line was
18739
18740  CONFIG_FILES    = $CONFIG_FILES
18741  CONFIG_HEADERS  = $CONFIG_HEADERS
18742  CONFIG_LINKS    = $CONFIG_LINKS
18743  CONFIG_COMMANDS = $CONFIG_COMMANDS
18744  $ $0 $@
18745
18746on `(hostname || uname -n) 2>/dev/null | sed 1q`
18747"
18748
18749_ACEOF
18750
18751case $ac_config_files in *"
18752"*) set x $ac_config_files; shift; ac_config_files=$*;;
18753esac
18754
18755case $ac_config_headers in *"
18756"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18757esac
18758
18759
18760cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18761# Files that config.status was made for.
18762config_files="$ac_config_files"
18763config_headers="$ac_config_headers"
18764config_commands="$ac_config_commands"
18765
18766_ACEOF
18767
18768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18769ac_cs_usage="\
18770\`$as_me' instantiates files and other configuration actions
18771from templates according to the current configuration.  Unless the files
18772and actions are specified as TAGs, all are instantiated by default.
18773
18774Usage: $0 [OPTION]... [TAG]...
18775
18776  -h, --help       print this help, then exit
18777  -V, --version    print version number and configuration settings, then exit
18778      --config     print configuration, then exit
18779  -q, --quiet, --silent
18780                   do not print progress messages
18781  -d, --debug      don't remove temporary files
18782      --recheck    update $as_me by reconfiguring in the same conditions
18783      --file=FILE[:TEMPLATE]
18784                   instantiate the configuration file FILE
18785      --header=FILE[:TEMPLATE]
18786                   instantiate the configuration header FILE
18787
18788Configuration files:
18789$config_files
18790
18791Configuration headers:
18792$config_headers
18793
18794Configuration commands:
18795$config_commands
18796
18797Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18798
18799_ACEOF
18800cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18801ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18802ac_cs_version="\\
18803xf86-video-cirrus config.status 1.5.2
18804configured by $0, generated by GNU Autoconf 2.69,
18805  with options \\"\$ac_cs_config\\"
18806
18807Copyright (C) 2012 Free Software Foundation, Inc.
18808This config.status script is free software; the Free Software Foundation
18809gives unlimited permission to copy, distribute and modify it."
18810
18811ac_pwd='$ac_pwd'
18812srcdir='$srcdir'
18813INSTALL='$INSTALL'
18814MKDIR_P='$MKDIR_P'
18815AWK='$AWK'
18816test -n "\$AWK" || AWK=awk
18817_ACEOF
18818
18819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18820# The default lists apply if the user does not specify any file.
18821ac_need_defaults=:
18822while test $# != 0
18823do
18824  case $1 in
18825  --*=?*)
18826    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18827    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18828    ac_shift=:
18829    ;;
18830  --*=)
18831    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18832    ac_optarg=
18833    ac_shift=:
18834    ;;
18835  *)
18836    ac_option=$1
18837    ac_optarg=$2
18838    ac_shift=shift
18839    ;;
18840  esac
18841
18842  case $ac_option in
18843  # Handling of the options.
18844  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18845    ac_cs_recheck=: ;;
18846  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18847    $as_echo "$ac_cs_version"; exit ;;
18848  --config | --confi | --conf | --con | --co | --c )
18849    $as_echo "$ac_cs_config"; exit ;;
18850  --debug | --debu | --deb | --de | --d | -d )
18851    debug=: ;;
18852  --file | --fil | --fi | --f )
18853    $ac_shift
18854    case $ac_optarg in
18855    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18856    '') as_fn_error $? "missing file argument" ;;
18857    esac
18858    as_fn_append CONFIG_FILES " '$ac_optarg'"
18859    ac_need_defaults=false;;
18860  --header | --heade | --head | --hea )
18861    $ac_shift
18862    case $ac_optarg in
18863    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18864    esac
18865    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18866    ac_need_defaults=false;;
18867  --he | --h)
18868    # Conflict between --help and --header
18869    as_fn_error $? "ambiguous option: \`$1'
18870Try \`$0 --help' for more information.";;
18871  --help | --hel | -h )
18872    $as_echo "$ac_cs_usage"; exit ;;
18873  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18874  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18875    ac_cs_silent=: ;;
18876
18877  # This is an error.
18878  -*) as_fn_error $? "unrecognized option: \`$1'
18879Try \`$0 --help' for more information." ;;
18880
18881  *) as_fn_append ac_config_targets " $1"
18882     ac_need_defaults=false ;;
18883
18884  esac
18885  shift
18886done
18887
18888ac_configure_extra_args=
18889
18890if $ac_cs_silent; then
18891  exec 6>/dev/null
18892  ac_configure_extra_args="$ac_configure_extra_args --silent"
18893fi
18894
18895_ACEOF
18896cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18897if \$ac_cs_recheck; then
18898  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18899  shift
18900  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18901  CONFIG_SHELL='$SHELL'
18902  export CONFIG_SHELL
18903  exec "\$@"
18904fi
18905
18906_ACEOF
18907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18908exec 5>>config.log
18909{
18910  echo
18911  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18912## Running $as_me. ##
18913_ASBOX
18914  $as_echo "$ac_log"
18915} >&5
18916
18917_ACEOF
18918cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18919#
18920# INIT-COMMANDS
18921#
18922AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18923
18924
18925# The HP-UX ksh and POSIX shell print the target directory to stdout
18926# if CDPATH is set.
18927(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18928
18929sed_quote_subst='$sed_quote_subst'
18930double_quote_subst='$double_quote_subst'
18931delay_variable_subst='$delay_variable_subst'
18932enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18933macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18934macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18935enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18936pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18937enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18938SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18939ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18940PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18941host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18942host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18943host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18944build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18945build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18946build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18947SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18948Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18949GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18950EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18951FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18952LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18953NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18954LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18955max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18956ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18957exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18958lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18959lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18960lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18961lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18962lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18963reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18964reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18965OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18966deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18967file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18968file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18969want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18970DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18971sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18972AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18973AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18974archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18975STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18976RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18977old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18978old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18979old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18980lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18981CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18982CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18983compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18984GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18985lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18986lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18987lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18988lt_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"`'
18989nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18990lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18991objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18992MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18993lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18994lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18995lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18996lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18997lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18998need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18999MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19000DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19001NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19002LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19003OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19004OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19005libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19006shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19007extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19008archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19009enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19010export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19011whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19012compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19013old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19014old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19015archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19016archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19017module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19018module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19019with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19020allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19021no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19022hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19023hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19024hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19025hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19026hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19027hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19028hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19029inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19030link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19031always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19032export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19033exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19034include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19035prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19036postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19037file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19038variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19039need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19040need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19041version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19042runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19043shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19044shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19045libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19046library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19047soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19048install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19049postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19050postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19051finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19052finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19053hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19054sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19055sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19056hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19057enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19058enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19059enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19060old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19061striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19062
19063LTCC='$LTCC'
19064LTCFLAGS='$LTCFLAGS'
19065compiler='$compiler_DEFAULT'
19066
19067# A function that is used when there is no print builtin or printf.
19068func_fallback_echo ()
19069{
19070  eval 'cat <<_LTECHO_EOF
19071\$1
19072_LTECHO_EOF'
19073}
19074
19075# Quote evaled strings.
19076for var in SHELL \
19077ECHO \
19078PATH_SEPARATOR \
19079SED \
19080GREP \
19081EGREP \
19082FGREP \
19083LD \
19084NM \
19085LN_S \
19086lt_SP2NL \
19087lt_NL2SP \
19088reload_flag \
19089OBJDUMP \
19090deplibs_check_method \
19091file_magic_cmd \
19092file_magic_glob \
19093want_nocaseglob \
19094DLLTOOL \
19095sharedlib_from_linklib_cmd \
19096AR \
19097AR_FLAGS \
19098archiver_list_spec \
19099STRIP \
19100RANLIB \
19101CC \
19102CFLAGS \
19103compiler \
19104lt_cv_sys_global_symbol_pipe \
19105lt_cv_sys_global_symbol_to_cdecl \
19106lt_cv_sys_global_symbol_to_c_name_address \
19107lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19108nm_file_list_spec \
19109lt_prog_compiler_no_builtin_flag \
19110lt_prog_compiler_pic \
19111lt_prog_compiler_wl \
19112lt_prog_compiler_static \
19113lt_cv_prog_compiler_c_o \
19114need_locks \
19115MANIFEST_TOOL \
19116DSYMUTIL \
19117NMEDIT \
19118LIPO \
19119OTOOL \
19120OTOOL64 \
19121shrext_cmds \
19122export_dynamic_flag_spec \
19123whole_archive_flag_spec \
19124compiler_needs_object \
19125with_gnu_ld \
19126allow_undefined_flag \
19127no_undefined_flag \
19128hardcode_libdir_flag_spec \
19129hardcode_libdir_separator \
19130exclude_expsyms \
19131include_expsyms \
19132file_list_spec \
19133variables_saved_for_relink \
19134libname_spec \
19135library_names_spec \
19136soname_spec \
19137install_override_mode \
19138finish_eval \
19139old_striplib \
19140striplib; do
19141    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19142    *[\\\\\\\`\\"\\\$]*)
19143      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19144      ;;
19145    *)
19146      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19147      ;;
19148    esac
19149done
19150
19151# Double-quote double-evaled strings.
19152for var in reload_cmds \
19153old_postinstall_cmds \
19154old_postuninstall_cmds \
19155old_archive_cmds \
19156extract_expsyms_cmds \
19157old_archive_from_new_cmds \
19158old_archive_from_expsyms_cmds \
19159archive_cmds \
19160archive_expsym_cmds \
19161module_cmds \
19162module_expsym_cmds \
19163export_symbols_cmds \
19164prelink_cmds \
19165postlink_cmds \
19166postinstall_cmds \
19167postuninstall_cmds \
19168finish_cmds \
19169sys_lib_search_path_spec \
19170sys_lib_dlsearch_path_spec; do
19171    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19172    *[\\\\\\\`\\"\\\$]*)
19173      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19174      ;;
19175    *)
19176      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19177      ;;
19178    esac
19179done
19180
19181ac_aux_dir='$ac_aux_dir'
19182xsi_shell='$xsi_shell'
19183lt_shell_append='$lt_shell_append'
19184
19185# See if we are running on zsh, and set the options which allow our
19186# commands through without removal of \ escapes INIT.
19187if test -n "\${ZSH_VERSION+set}" ; then
19188   setopt NO_GLOB_SUBST
19189fi
19190
19191
19192    PACKAGE='$PACKAGE'
19193    VERSION='$VERSION'
19194    TIMESTAMP='$TIMESTAMP'
19195    RM='$RM'
19196    ofile='$ofile'
19197
19198
19199
19200
19201_ACEOF
19202
19203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19204
19205# Handling of arguments.
19206for ac_config_target in $ac_config_targets
19207do
19208  case $ac_config_target in
19209    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19210    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19211    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19212    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19213    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19214    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19215
19216  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19217  esac
19218done
19219
19220
19221# If the user did not use the arguments to specify the items to instantiate,
19222# then the envvar interface is used.  Set only those that are not.
19223# We use the long form for the default assignment because of an extremely
19224# bizarre bug on SunOS 4.1.3.
19225if $ac_need_defaults; then
19226  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19227  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19228  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19229fi
19230
19231# Have a temporary directory for convenience.  Make it in the build tree
19232# simply because there is no reason against having it here, and in addition,
19233# creating and moving files from /tmp can sometimes cause problems.
19234# Hook for its removal unless debugging.
19235# Note that there is a small window in which the directory will not be cleaned:
19236# after its creation but before its name has been assigned to `$tmp'.
19237$debug ||
19238{
19239  tmp= ac_tmp=
19240  trap 'exit_status=$?
19241  : "${ac_tmp:=$tmp}"
19242  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19243' 0
19244  trap 'as_fn_exit 1' 1 2 13 15
19245}
19246# Create a (secure) tmp directory for tmp files.
19247
19248{
19249  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19250  test -d "$tmp"
19251}  ||
19252{
19253  tmp=./conf$$-$RANDOM
19254  (umask 077 && mkdir "$tmp")
19255} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19256ac_tmp=$tmp
19257
19258# Set up the scripts for CONFIG_FILES section.
19259# No need to generate them if there are no CONFIG_FILES.
19260# This happens for instance with `./config.status config.h'.
19261if test -n "$CONFIG_FILES"; then
19262
19263
19264ac_cr=`echo X | tr X '\015'`
19265# On cygwin, bash can eat \r inside `` if the user requested igncr.
19266# But we know of no other shell where ac_cr would be empty at this
19267# point, so we can use a bashism as a fallback.
19268if test "x$ac_cr" = x; then
19269  eval ac_cr=\$\'\\r\'
19270fi
19271ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19272if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19273  ac_cs_awk_cr='\\r'
19274else
19275  ac_cs_awk_cr=$ac_cr
19276fi
19277
19278echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19279_ACEOF
19280
19281
19282{
19283  echo "cat >conf$$subs.awk <<_ACEOF" &&
19284  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19285  echo "_ACEOF"
19286} >conf$$subs.sh ||
19287  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19288ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19289ac_delim='%!_!# '
19290for ac_last_try in false false false false false :; do
19291  . ./conf$$subs.sh ||
19292    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19293
19294  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19295  if test $ac_delim_n = $ac_delim_num; then
19296    break
19297  elif $ac_last_try; then
19298    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19299  else
19300    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19301  fi
19302done
19303rm -f conf$$subs.sh
19304
19305cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19306cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19307_ACEOF
19308sed -n '
19309h
19310s/^/S["/; s/!.*/"]=/
19311p
19312g
19313s/^[^!]*!//
19314:repl
19315t repl
19316s/'"$ac_delim"'$//
19317t delim
19318:nl
19319h
19320s/\(.\{148\}\)..*/\1/
19321t more1
19322s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19323p
19324n
19325b repl
19326:more1
19327s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19328p
19329g
19330s/.\{148\}//
19331t nl
19332:delim
19333h
19334s/\(.\{148\}\)..*/\1/
19335t more2
19336s/["\\]/\\&/g; s/^/"/; s/$/"/
19337p
19338b
19339:more2
19340s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19341p
19342g
19343s/.\{148\}//
19344t delim
19345' <conf$$subs.awk | sed '
19346/^[^""]/{
19347  N
19348  s/\n//
19349}
19350' >>$CONFIG_STATUS || ac_write_fail=1
19351rm -f conf$$subs.awk
19352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19353_ACAWK
19354cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19355  for (key in S) S_is_set[key] = 1
19356  FS = ""
19357
19358}
19359{
19360  line = $ 0
19361  nfields = split(line, field, "@")
19362  substed = 0
19363  len = length(field[1])
19364  for (i = 2; i < nfields; i++) {
19365    key = field[i]
19366    keylen = length(key)
19367    if (S_is_set[key]) {
19368      value = S[key]
19369      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19370      len += length(value) + length(field[++i])
19371      substed = 1
19372    } else
19373      len += 1 + keylen
19374  }
19375
19376  print line
19377}
19378
19379_ACAWK
19380_ACEOF
19381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19382if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19383  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19384else
19385  cat
19386fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19387  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19388_ACEOF
19389
19390# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19391# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19392# trailing colons and then remove the whole line if VPATH becomes empty
19393# (actually we leave an empty line to preserve line numbers).
19394if test "x$srcdir" = x.; then
19395  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19396h
19397s///
19398s/^/:/
19399s/[	 ]*$/:/
19400s/:\$(srcdir):/:/g
19401s/:\${srcdir}:/:/g
19402s/:@srcdir@:/:/g
19403s/^:*//
19404s/:*$//
19405x
19406s/\(=[	 ]*\).*/\1/
19407G
19408s/\n//
19409s/^[^=]*=[	 ]*$//
19410}'
19411fi
19412
19413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19414fi # test -n "$CONFIG_FILES"
19415
19416# Set up the scripts for CONFIG_HEADERS section.
19417# No need to generate them if there are no CONFIG_HEADERS.
19418# This happens for instance with `./config.status Makefile'.
19419if test -n "$CONFIG_HEADERS"; then
19420cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19421BEGIN {
19422_ACEOF
19423
19424# Transform confdefs.h into an awk script `defines.awk', embedded as
19425# here-document in config.status, that substitutes the proper values into
19426# config.h.in to produce config.h.
19427
19428# Create a delimiter string that does not exist in confdefs.h, to ease
19429# handling of long lines.
19430ac_delim='%!_!# '
19431for ac_last_try in false false :; do
19432  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19433  if test -z "$ac_tt"; then
19434    break
19435  elif $ac_last_try; then
19436    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19437  else
19438    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19439  fi
19440done
19441
19442# For the awk script, D is an array of macro values keyed by name,
19443# likewise P contains macro parameters if any.  Preserve backslash
19444# newline sequences.
19445
19446ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19447sed -n '
19448s/.\{148\}/&'"$ac_delim"'/g
19449t rset
19450:rset
19451s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19452t def
19453d
19454:def
19455s/\\$//
19456t bsnl
19457s/["\\]/\\&/g
19458s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19459D["\1"]=" \3"/p
19460s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19461d
19462:bsnl
19463s/["\\]/\\&/g
19464s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19465D["\1"]=" \3\\\\\\n"\\/p
19466t cont
19467s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19468t cont
19469d
19470:cont
19471n
19472s/.\{148\}/&'"$ac_delim"'/g
19473t clear
19474:clear
19475s/\\$//
19476t bsnlc
19477s/["\\]/\\&/g; s/^/"/; s/$/"/p
19478d
19479:bsnlc
19480s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19481b cont
19482' <confdefs.h | sed '
19483s/'"$ac_delim"'/"\\\
19484"/g' >>$CONFIG_STATUS || ac_write_fail=1
19485
19486cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19487  for (key in D) D_is_set[key] = 1
19488  FS = ""
19489}
19490/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19491  line = \$ 0
19492  split(line, arg, " ")
19493  if (arg[1] == "#") {
19494    defundef = arg[2]
19495    mac1 = arg[3]
19496  } else {
19497    defundef = substr(arg[1], 2)
19498    mac1 = arg[2]
19499  }
19500  split(mac1, mac2, "(") #)
19501  macro = mac2[1]
19502  prefix = substr(line, 1, index(line, defundef) - 1)
19503  if (D_is_set[macro]) {
19504    # Preserve the white space surrounding the "#".
19505    print prefix "define", macro P[macro] D[macro]
19506    next
19507  } else {
19508    # Replace #undef with comments.  This is necessary, for example,
19509    # in the case of _POSIX_SOURCE, which is predefined and required
19510    # on some systems where configure will not decide to define it.
19511    if (defundef == "undef") {
19512      print "/*", prefix defundef, macro, "*/"
19513      next
19514    }
19515  }
19516}
19517{ print }
19518_ACAWK
19519_ACEOF
19520cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19521  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19522fi # test -n "$CONFIG_HEADERS"
19523
19524
19525eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19526shift
19527for ac_tag
19528do
19529  case $ac_tag in
19530  :[FHLC]) ac_mode=$ac_tag; continue;;
19531  esac
19532  case $ac_mode$ac_tag in
19533  :[FHL]*:*);;
19534  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19535  :[FH]-) ac_tag=-:-;;
19536  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19537  esac
19538  ac_save_IFS=$IFS
19539  IFS=:
19540  set x $ac_tag
19541  IFS=$ac_save_IFS
19542  shift
19543  ac_file=$1
19544  shift
19545
19546  case $ac_mode in
19547  :L) ac_source=$1;;
19548  :[FH])
19549    ac_file_inputs=
19550    for ac_f
19551    do
19552      case $ac_f in
19553      -) ac_f="$ac_tmp/stdin";;
19554      *) # Look for the file first in the build tree, then in the source tree
19555	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19556	 # because $ac_f cannot contain `:'.
19557	 test -f "$ac_f" ||
19558	   case $ac_f in
19559	   [\\/$]*) false;;
19560	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19561	   esac ||
19562	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19563      esac
19564      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19565      as_fn_append ac_file_inputs " '$ac_f'"
19566    done
19567
19568    # Let's still pretend it is `configure' which instantiates (i.e., don't
19569    # use $as_me), people would be surprised to read:
19570    #    /* config.h.  Generated by config.status.  */
19571    configure_input='Generated from '`
19572	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19573	`' by configure.'
19574    if test x"$ac_file" != x-; then
19575      configure_input="$ac_file.  $configure_input"
19576      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19577$as_echo "$as_me: creating $ac_file" >&6;}
19578    fi
19579    # Neutralize special characters interpreted by sed in replacement strings.
19580    case $configure_input in #(
19581    *\&* | *\|* | *\\* )
19582       ac_sed_conf_input=`$as_echo "$configure_input" |
19583       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19584    *) ac_sed_conf_input=$configure_input;;
19585    esac
19586
19587    case $ac_tag in
19588    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19589      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19590    esac
19591    ;;
19592  esac
19593
19594  ac_dir=`$as_dirname -- "$ac_file" ||
19595$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19596	 X"$ac_file" : 'X\(//\)[^/]' \| \
19597	 X"$ac_file" : 'X\(//\)$' \| \
19598	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19599$as_echo X"$ac_file" |
19600    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19601	    s//\1/
19602	    q
19603	  }
19604	  /^X\(\/\/\)[^/].*/{
19605	    s//\1/
19606	    q
19607	  }
19608	  /^X\(\/\/\)$/{
19609	    s//\1/
19610	    q
19611	  }
19612	  /^X\(\/\).*/{
19613	    s//\1/
19614	    q
19615	  }
19616	  s/.*/./; q'`
19617  as_dir="$ac_dir"; as_fn_mkdir_p
19618  ac_builddir=.
19619
19620case "$ac_dir" in
19621.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19622*)
19623  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19624  # A ".." for each directory in $ac_dir_suffix.
19625  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19626  case $ac_top_builddir_sub in
19627  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19628  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19629  esac ;;
19630esac
19631ac_abs_top_builddir=$ac_pwd
19632ac_abs_builddir=$ac_pwd$ac_dir_suffix
19633# for backward compatibility:
19634ac_top_builddir=$ac_top_build_prefix
19635
19636case $srcdir in
19637  .)  # We are building in place.
19638    ac_srcdir=.
19639    ac_top_srcdir=$ac_top_builddir_sub
19640    ac_abs_top_srcdir=$ac_pwd ;;
19641  [\\/]* | ?:[\\/]* )  # Absolute name.
19642    ac_srcdir=$srcdir$ac_dir_suffix;
19643    ac_top_srcdir=$srcdir
19644    ac_abs_top_srcdir=$srcdir ;;
19645  *) # Relative name.
19646    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19647    ac_top_srcdir=$ac_top_build_prefix$srcdir
19648    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19649esac
19650ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19651
19652
19653  case $ac_mode in
19654  :F)
19655  #
19656  # CONFIG_FILE
19657  #
19658
19659  case $INSTALL in
19660  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19661  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19662  esac
19663  ac_MKDIR_P=$MKDIR_P
19664  case $MKDIR_P in
19665  [\\/$]* | ?:[\\/]* ) ;;
19666  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19667  esac
19668_ACEOF
19669
19670cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19671# If the template does not know about datarootdir, expand it.
19672# FIXME: This hack should be removed a few years after 2.60.
19673ac_datarootdir_hack=; ac_datarootdir_seen=
19674ac_sed_dataroot='
19675/datarootdir/ {
19676  p
19677  q
19678}
19679/@datadir@/p
19680/@docdir@/p
19681/@infodir@/p
19682/@localedir@/p
19683/@mandir@/p'
19684case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19685*datarootdir*) ac_datarootdir_seen=yes;;
19686*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19687  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19688$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19689_ACEOF
19690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19691  ac_datarootdir_hack='
19692  s&@datadir@&$datadir&g
19693  s&@docdir@&$docdir&g
19694  s&@infodir@&$infodir&g
19695  s&@localedir@&$localedir&g
19696  s&@mandir@&$mandir&g
19697  s&\\\${datarootdir}&$datarootdir&g' ;;
19698esac
19699_ACEOF
19700
19701# Neutralize VPATH when `$srcdir' = `.'.
19702# Shell code in configure.ac might set extrasub.
19703# FIXME: do we really want to maintain this feature?
19704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19705ac_sed_extra="$ac_vpsub
19706$extrasub
19707_ACEOF
19708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19709:t
19710/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19711s|@configure_input@|$ac_sed_conf_input|;t t
19712s&@top_builddir@&$ac_top_builddir_sub&;t t
19713s&@top_build_prefix@&$ac_top_build_prefix&;t t
19714s&@srcdir@&$ac_srcdir&;t t
19715s&@abs_srcdir@&$ac_abs_srcdir&;t t
19716s&@top_srcdir@&$ac_top_srcdir&;t t
19717s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19718s&@builddir@&$ac_builddir&;t t
19719s&@abs_builddir@&$ac_abs_builddir&;t t
19720s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19721s&@INSTALL@&$ac_INSTALL&;t t
19722s&@MKDIR_P@&$ac_MKDIR_P&;t t
19723$ac_datarootdir_hack
19724"
19725eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19726  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19727
19728test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19729  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19730  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19731      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19732  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19733which seems to be undefined.  Please make sure it is defined" >&5
19734$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19735which seems to be undefined.  Please make sure it is defined" >&2;}
19736
19737  rm -f "$ac_tmp/stdin"
19738  case $ac_file in
19739  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19740  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19741  esac \
19742  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19743 ;;
19744  :H)
19745  #
19746  # CONFIG_HEADER
19747  #
19748  if test x"$ac_file" != x-; then
19749    {
19750      $as_echo "/* $configure_input  */" \
19751      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19752    } >"$ac_tmp/config.h" \
19753      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19754    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19755      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19756$as_echo "$as_me: $ac_file is unchanged" >&6;}
19757    else
19758      rm -f "$ac_file"
19759      mv "$ac_tmp/config.h" "$ac_file" \
19760	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19761    fi
19762  else
19763    $as_echo "/* $configure_input  */" \
19764      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19765      || as_fn_error $? "could not create -" "$LINENO" 5
19766  fi
19767# Compute "$ac_file"'s index in $config_headers.
19768_am_arg="$ac_file"
19769_am_stamp_count=1
19770for _am_header in $config_headers :; do
19771  case $_am_header in
19772    $_am_arg | $_am_arg:* )
19773      break ;;
19774    * )
19775      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19776  esac
19777done
19778echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19779$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19780	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19781	 X"$_am_arg" : 'X\(//\)$' \| \
19782	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19783$as_echo X"$_am_arg" |
19784    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19785	    s//\1/
19786	    q
19787	  }
19788	  /^X\(\/\/\)[^/].*/{
19789	    s//\1/
19790	    q
19791	  }
19792	  /^X\(\/\/\)$/{
19793	    s//\1/
19794	    q
19795	  }
19796	  /^X\(\/\).*/{
19797	    s//\1/
19798	    q
19799	  }
19800	  s/.*/./; q'`/stamp-h$_am_stamp_count
19801 ;;
19802
19803  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19804$as_echo "$as_me: executing $ac_file commands" >&6;}
19805 ;;
19806  esac
19807
19808
19809  case $ac_file$ac_mode in
19810    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19811  # Autoconf 2.62 quotes --file arguments for eval, but not when files
19812  # are listed without --file.  Let's play safe and only enable the eval
19813  # if we detect the quoting.
19814  case $CONFIG_FILES in
19815  *\'*) eval set x "$CONFIG_FILES" ;;
19816  *)   set x $CONFIG_FILES ;;
19817  esac
19818  shift
19819  for mf
19820  do
19821    # Strip MF so we end up with the name of the file.
19822    mf=`echo "$mf" | sed -e 's/:.*$//'`
19823    # Check whether this is an Automake generated Makefile or not.
19824    # We used to match only the files named `Makefile.in', but
19825    # some people rename them; so instead we look at the file content.
19826    # Grep'ing the first line is not enough: some people post-process
19827    # each Makefile.in and add a new line on top of each file to say so.
19828    # Grep'ing the whole file is not good either: AIX grep has a line
19829    # limit of 2048, but all sed's we know have understand at least 4000.
19830    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19831      dirpart=`$as_dirname -- "$mf" ||
19832$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19833	 X"$mf" : 'X\(//\)[^/]' \| \
19834	 X"$mf" : 'X\(//\)$' \| \
19835	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19836$as_echo X"$mf" |
19837    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19838	    s//\1/
19839	    q
19840	  }
19841	  /^X\(\/\/\)[^/].*/{
19842	    s//\1/
19843	    q
19844	  }
19845	  /^X\(\/\/\)$/{
19846	    s//\1/
19847	    q
19848	  }
19849	  /^X\(\/\).*/{
19850	    s//\1/
19851	    q
19852	  }
19853	  s/.*/./; q'`
19854    else
19855      continue
19856    fi
19857    # Extract the definition of DEPDIR, am__include, and am__quote
19858    # from the Makefile without running `make'.
19859    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19860    test -z "$DEPDIR" && continue
19861    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19862    test -z "am__include" && continue
19863    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19864    # When using ansi2knr, U may be empty or an underscore; expand it
19865    U=`sed -n 's/^U = //p' < "$mf"`
19866    # Find all dependency output files, they are included files with
19867    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19868    # simplest approach to changing $(DEPDIR) to its actual value in the
19869    # expansion.
19870    for file in `sed -n "
19871      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19872	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19873      # Make sure the directory exists.
19874      test -f "$dirpart/$file" && continue
19875      fdir=`$as_dirname -- "$file" ||
19876$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19877	 X"$file" : 'X\(//\)[^/]' \| \
19878	 X"$file" : 'X\(//\)$' \| \
19879	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19880$as_echo X"$file" |
19881    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19882	    s//\1/
19883	    q
19884	  }
19885	  /^X\(\/\/\)[^/].*/{
19886	    s//\1/
19887	    q
19888	  }
19889	  /^X\(\/\/\)$/{
19890	    s//\1/
19891	    q
19892	  }
19893	  /^X\(\/\).*/{
19894	    s//\1/
19895	    q
19896	  }
19897	  s/.*/./; q'`
19898      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19899      # echo "creating $dirpart/$file"
19900      echo '# dummy' > "$dirpart/$file"
19901    done
19902  done
19903}
19904 ;;
19905    "libtool":C)
19906
19907    # See if we are running on zsh, and set the options which allow our
19908    # commands through without removal of \ escapes.
19909    if test -n "${ZSH_VERSION+set}" ; then
19910      setopt NO_GLOB_SUBST
19911    fi
19912
19913    cfgfile="${ofile}T"
19914    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19915    $RM "$cfgfile"
19916
19917    cat <<_LT_EOF >> "$cfgfile"
19918#! $SHELL
19919
19920# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19921# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19922# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19923# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19924#
19925#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19926#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19927#                 Foundation, Inc.
19928#   Written by Gordon Matzigkeit, 1996
19929#
19930#   This file is part of GNU Libtool.
19931#
19932# GNU Libtool is free software; you can redistribute it and/or
19933# modify it under the terms of the GNU General Public License as
19934# published by the Free Software Foundation; either version 2 of
19935# the License, or (at your option) any later version.
19936#
19937# As a special exception to the GNU General Public License,
19938# if you distribute this file as part of a program or library that
19939# is built using GNU Libtool, you may include this file under the
19940# same distribution terms that you use for the rest of that program.
19941#
19942# GNU Libtool is distributed in the hope that it will be useful,
19943# but WITHOUT ANY WARRANTY; without even the implied warranty of
19944# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19945# GNU General Public License for more details.
19946#
19947# You should have received a copy of the GNU General Public License
19948# along with GNU Libtool; see the file COPYING.  If not, a copy
19949# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19950# obtained by writing to the Free Software Foundation, Inc.,
19951# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19952
19953
19954# The names of the tagged configurations supported by this script.
19955available_tags=""
19956
19957# ### BEGIN LIBTOOL CONFIG
19958
19959# Whether or not to build static libraries.
19960build_old_libs=$enable_static
19961
19962# Which release of libtool.m4 was used?
19963macro_version=$macro_version
19964macro_revision=$macro_revision
19965
19966# Whether or not to build shared libraries.
19967build_libtool_libs=$enable_shared
19968
19969# What type of objects to build.
19970pic_mode=$pic_mode
19971
19972# Whether or not to optimize for fast installation.
19973fast_install=$enable_fast_install
19974
19975# Shell to use when invoking shell scripts.
19976SHELL=$lt_SHELL
19977
19978# An echo program that protects backslashes.
19979ECHO=$lt_ECHO
19980
19981# The PATH separator for the build system.
19982PATH_SEPARATOR=$lt_PATH_SEPARATOR
19983
19984# The host system.
19985host_alias=$host_alias
19986host=$host
19987host_os=$host_os
19988
19989# The build system.
19990build_alias=$build_alias
19991build=$build
19992build_os=$build_os
19993
19994# A sed program that does not truncate output.
19995SED=$lt_SED
19996
19997# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19998Xsed="\$SED -e 1s/^X//"
19999
20000# A grep program that handles long lines.
20001GREP=$lt_GREP
20002
20003# An ERE matcher.
20004EGREP=$lt_EGREP
20005
20006# A literal string matcher.
20007FGREP=$lt_FGREP
20008
20009# A BSD- or MS-compatible name lister.
20010NM=$lt_NM
20011
20012# Whether we need soft or hard links.
20013LN_S=$lt_LN_S
20014
20015# What is the maximum length of a command?
20016max_cmd_len=$max_cmd_len
20017
20018# Object file suffix (normally "o").
20019objext=$ac_objext
20020
20021# Executable file suffix (normally "").
20022exeext=$exeext
20023
20024# whether the shell understands "unset".
20025lt_unset=$lt_unset
20026
20027# turn spaces into newlines.
20028SP2NL=$lt_lt_SP2NL
20029
20030# turn newlines into spaces.
20031NL2SP=$lt_lt_NL2SP
20032
20033# convert \$build file names to \$host format.
20034to_host_file_cmd=$lt_cv_to_host_file_cmd
20035
20036# convert \$build files to toolchain format.
20037to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20038
20039# An object symbol dumper.
20040OBJDUMP=$lt_OBJDUMP
20041
20042# Method to check whether dependent libraries are shared objects.
20043deplibs_check_method=$lt_deplibs_check_method
20044
20045# Command to use when deplibs_check_method = "file_magic".
20046file_magic_cmd=$lt_file_magic_cmd
20047
20048# How to find potential files when deplibs_check_method = "file_magic".
20049file_magic_glob=$lt_file_magic_glob
20050
20051# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20052want_nocaseglob=$lt_want_nocaseglob
20053
20054# DLL creation program.
20055DLLTOOL=$lt_DLLTOOL
20056
20057# Command to associate shared and link libraries.
20058sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20059
20060# The archiver.
20061AR=$lt_AR
20062
20063# Flags to create an archive.
20064AR_FLAGS=$lt_AR_FLAGS
20065
20066# How to feed a file listing to the archiver.
20067archiver_list_spec=$lt_archiver_list_spec
20068
20069# A symbol stripping program.
20070STRIP=$lt_STRIP
20071
20072# Commands used to install an old-style archive.
20073RANLIB=$lt_RANLIB
20074old_postinstall_cmds=$lt_old_postinstall_cmds
20075old_postuninstall_cmds=$lt_old_postuninstall_cmds
20076
20077# Whether to use a lock for old archive extraction.
20078lock_old_archive_extraction=$lock_old_archive_extraction
20079
20080# A C compiler.
20081LTCC=$lt_CC
20082
20083# LTCC compiler flags.
20084LTCFLAGS=$lt_CFLAGS
20085
20086# Take the output of nm and produce a listing of raw symbols and C names.
20087global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20088
20089# Transform the output of nm in a proper C declaration.
20090global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20091
20092# Transform the output of nm in a C name address pair.
20093global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20094
20095# Transform the output of nm in a C name address pair when lib prefix is needed.
20096global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20097
20098# Specify filename containing input files for \$NM.
20099nm_file_list_spec=$lt_nm_file_list_spec
20100
20101# The root where to search for dependent libraries,and in which our libraries should be installed.
20102lt_sysroot=$lt_sysroot
20103
20104# The name of the directory that contains temporary libtool files.
20105objdir=$objdir
20106
20107# Used to examine libraries when file_magic_cmd begins with "file".
20108MAGIC_CMD=$MAGIC_CMD
20109
20110# Must we lock files when doing compilation?
20111need_locks=$lt_need_locks
20112
20113# Manifest tool.
20114MANIFEST_TOOL=$lt_MANIFEST_TOOL
20115
20116# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20117DSYMUTIL=$lt_DSYMUTIL
20118
20119# Tool to change global to local symbols on Mac OS X.
20120NMEDIT=$lt_NMEDIT
20121
20122# Tool to manipulate fat objects and archives on Mac OS X.
20123LIPO=$lt_LIPO
20124
20125# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20126OTOOL=$lt_OTOOL
20127
20128# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20129OTOOL64=$lt_OTOOL64
20130
20131# Old archive suffix (normally "a").
20132libext=$libext
20133
20134# Shared library suffix (normally ".so").
20135shrext_cmds=$lt_shrext_cmds
20136
20137# The commands to extract the exported symbol list from a shared archive.
20138extract_expsyms_cmds=$lt_extract_expsyms_cmds
20139
20140# Variables whose values should be saved in libtool wrapper scripts and
20141# restored at link time.
20142variables_saved_for_relink=$lt_variables_saved_for_relink
20143
20144# Do we need the "lib" prefix for modules?
20145need_lib_prefix=$need_lib_prefix
20146
20147# Do we need a version for libraries?
20148need_version=$need_version
20149
20150# Library versioning type.
20151version_type=$version_type
20152
20153# Shared library runtime path variable.
20154runpath_var=$runpath_var
20155
20156# Shared library path variable.
20157shlibpath_var=$shlibpath_var
20158
20159# Is shlibpath searched before the hard-coded library search path?
20160shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20161
20162# Format of library name prefix.
20163libname_spec=$lt_libname_spec
20164
20165# List of archive names.  First name is the real one, the rest are links.
20166# The last name is the one that the linker finds with -lNAME
20167library_names_spec=$lt_library_names_spec
20168
20169# The coded name of the library, if different from the real name.
20170soname_spec=$lt_soname_spec
20171
20172# Permission mode override for installation of shared libraries.
20173install_override_mode=$lt_install_override_mode
20174
20175# Command to use after installation of a shared archive.
20176postinstall_cmds=$lt_postinstall_cmds
20177
20178# Command to use after uninstallation of a shared archive.
20179postuninstall_cmds=$lt_postuninstall_cmds
20180
20181# Commands used to finish a libtool library installation in a directory.
20182finish_cmds=$lt_finish_cmds
20183
20184# As "finish_cmds", except a single script fragment to be evaled but
20185# not shown.
20186finish_eval=$lt_finish_eval
20187
20188# Whether we should hardcode library paths into libraries.
20189hardcode_into_libs=$hardcode_into_libs
20190
20191# Compile-time system search path for libraries.
20192sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20193
20194# Run-time system search path for libraries.
20195sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20196
20197# Whether dlopen is supported.
20198dlopen_support=$enable_dlopen
20199
20200# Whether dlopen of programs is supported.
20201dlopen_self=$enable_dlopen_self
20202
20203# Whether dlopen of statically linked programs is supported.
20204dlopen_self_static=$enable_dlopen_self_static
20205
20206# Commands to strip libraries.
20207old_striplib=$lt_old_striplib
20208striplib=$lt_striplib
20209
20210
20211# The linker used to build libraries.
20212LD=$lt_LD
20213
20214# How to create reloadable object files.
20215reload_flag=$lt_reload_flag
20216reload_cmds=$lt_reload_cmds
20217
20218# Commands used to build an old-style archive.
20219old_archive_cmds=$lt_old_archive_cmds
20220
20221# A language specific compiler.
20222CC=$lt_compiler
20223
20224# Is the compiler the GNU compiler?
20225with_gcc=$GCC
20226
20227# Compiler flag to turn off builtin functions.
20228no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20229
20230# Additional compiler flags for building library objects.
20231pic_flag=$lt_lt_prog_compiler_pic
20232
20233# How to pass a linker flag through the compiler.
20234wl=$lt_lt_prog_compiler_wl
20235
20236# Compiler flag to prevent dynamic linking.
20237link_static_flag=$lt_lt_prog_compiler_static
20238
20239# Does compiler simultaneously support -c and -o options?
20240compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20241
20242# Whether or not to add -lc for building shared libraries.
20243build_libtool_need_lc=$archive_cmds_need_lc
20244
20245# Whether or not to disallow shared libs when runtime libs are static.
20246allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20247
20248# Compiler flag to allow reflexive dlopens.
20249export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20250
20251# Compiler flag to generate shared objects directly from archives.
20252whole_archive_flag_spec=$lt_whole_archive_flag_spec
20253
20254# Whether the compiler copes with passing no objects directly.
20255compiler_needs_object=$lt_compiler_needs_object
20256
20257# Create an old-style archive from a shared archive.
20258old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20259
20260# Create a temporary old-style archive to link instead of a shared archive.
20261old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20262
20263# Commands used to build a shared archive.
20264archive_cmds=$lt_archive_cmds
20265archive_expsym_cmds=$lt_archive_expsym_cmds
20266
20267# Commands used to build a loadable module if different from building
20268# a shared archive.
20269module_cmds=$lt_module_cmds
20270module_expsym_cmds=$lt_module_expsym_cmds
20271
20272# Whether we are building with GNU ld or not.
20273with_gnu_ld=$lt_with_gnu_ld
20274
20275# Flag that allows shared libraries with undefined symbols to be built.
20276allow_undefined_flag=$lt_allow_undefined_flag
20277
20278# Flag that enforces no undefined symbols.
20279no_undefined_flag=$lt_no_undefined_flag
20280
20281# Flag to hardcode \$libdir into a binary during linking.
20282# This must work even if \$libdir does not exist
20283hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20284
20285# Whether we need a single "-rpath" flag with a separated argument.
20286hardcode_libdir_separator=$lt_hardcode_libdir_separator
20287
20288# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20289# DIR into the resulting binary.
20290hardcode_direct=$hardcode_direct
20291
20292# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20293# DIR into the resulting binary and the resulting library dependency is
20294# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20295# library is relocated.
20296hardcode_direct_absolute=$hardcode_direct_absolute
20297
20298# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20299# into the resulting binary.
20300hardcode_minus_L=$hardcode_minus_L
20301
20302# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20303# into the resulting binary.
20304hardcode_shlibpath_var=$hardcode_shlibpath_var
20305
20306# Set to "yes" if building a shared library automatically hardcodes DIR
20307# into the library and all subsequent libraries and executables linked
20308# against it.
20309hardcode_automatic=$hardcode_automatic
20310
20311# Set to yes if linker adds runtime paths of dependent libraries
20312# to runtime path list.
20313inherit_rpath=$inherit_rpath
20314
20315# Whether libtool must link a program against all its dependency libraries.
20316link_all_deplibs=$link_all_deplibs
20317
20318# Set to "yes" if exported symbols are required.
20319always_export_symbols=$always_export_symbols
20320
20321# The commands to list exported symbols.
20322export_symbols_cmds=$lt_export_symbols_cmds
20323
20324# Symbols that should not be listed in the preloaded symbols.
20325exclude_expsyms=$lt_exclude_expsyms
20326
20327# Symbols that must always be exported.
20328include_expsyms=$lt_include_expsyms
20329
20330# Commands necessary for linking programs (against libraries) with templates.
20331prelink_cmds=$lt_prelink_cmds
20332
20333# Commands necessary for finishing linking programs.
20334postlink_cmds=$lt_postlink_cmds
20335
20336# Specify filename containing input files.
20337file_list_spec=$lt_file_list_spec
20338
20339# How to hardcode a shared library path into an executable.
20340hardcode_action=$hardcode_action
20341
20342# ### END LIBTOOL CONFIG
20343
20344_LT_EOF
20345
20346  case $host_os in
20347  aix3*)
20348    cat <<\_LT_EOF >> "$cfgfile"
20349# AIX sometimes has problems with the GCC collect2 program.  For some
20350# reason, if we set the COLLECT_NAMES environment variable, the problems
20351# vanish in a puff of smoke.
20352if test "X${COLLECT_NAMES+set}" != Xset; then
20353  COLLECT_NAMES=
20354  export COLLECT_NAMES
20355fi
20356_LT_EOF
20357    ;;
20358  esac
20359
20360
20361ltmain="$ac_aux_dir/ltmain.sh"
20362
20363
20364  # We use sed instead of cat because bash on DJGPP gets confused if
20365  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20366  # text mode, it properly converts lines to CR/LF.  This bash problem
20367  # is reportedly fixed, but why not run on old versions too?
20368  sed '$q' "$ltmain" >> "$cfgfile" \
20369     || (rm -f "$cfgfile"; exit 1)
20370
20371  if test x"$xsi_shell" = xyes; then
20372  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20373func_dirname ()\
20374{\
20375\    case ${1} in\
20376\      */*) func_dirname_result="${1%/*}${2}" ;;\
20377\      *  ) func_dirname_result="${3}" ;;\
20378\    esac\
20379} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20380  && mv -f "$cfgfile.tmp" "$cfgfile" \
20381    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20382test 0 -eq $? || _lt_function_replace_fail=:
20383
20384
20385  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20386func_basename ()\
20387{\
20388\    func_basename_result="${1##*/}"\
20389} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20390  && mv -f "$cfgfile.tmp" "$cfgfile" \
20391    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20392test 0 -eq $? || _lt_function_replace_fail=:
20393
20394
20395  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20396func_dirname_and_basename ()\
20397{\
20398\    case ${1} in\
20399\      */*) func_dirname_result="${1%/*}${2}" ;;\
20400\      *  ) func_dirname_result="${3}" ;;\
20401\    esac\
20402\    func_basename_result="${1##*/}"\
20403} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20404  && mv -f "$cfgfile.tmp" "$cfgfile" \
20405    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20406test 0 -eq $? || _lt_function_replace_fail=:
20407
20408
20409  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20410func_stripname ()\
20411{\
20412\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20413\    # positional parameters, so assign one to ordinary parameter first.\
20414\    func_stripname_result=${3}\
20415\    func_stripname_result=${func_stripname_result#"${1}"}\
20416\    func_stripname_result=${func_stripname_result%"${2}"}\
20417} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20418  && mv -f "$cfgfile.tmp" "$cfgfile" \
20419    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20420test 0 -eq $? || _lt_function_replace_fail=:
20421
20422
20423  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20424func_split_long_opt ()\
20425{\
20426\    func_split_long_opt_name=${1%%=*}\
20427\    func_split_long_opt_arg=${1#*=}\
20428} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20429  && mv -f "$cfgfile.tmp" "$cfgfile" \
20430    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20431test 0 -eq $? || _lt_function_replace_fail=:
20432
20433
20434  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20435func_split_short_opt ()\
20436{\
20437\    func_split_short_opt_arg=${1#??}\
20438\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20439} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20440  && mv -f "$cfgfile.tmp" "$cfgfile" \
20441    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20442test 0 -eq $? || _lt_function_replace_fail=:
20443
20444
20445  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20446func_lo2o ()\
20447{\
20448\    case ${1} in\
20449\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20450\      *)    func_lo2o_result=${1} ;;\
20451\    esac\
20452} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20453  && mv -f "$cfgfile.tmp" "$cfgfile" \
20454    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20455test 0 -eq $? || _lt_function_replace_fail=:
20456
20457
20458  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20459func_xform ()\
20460{\
20461    func_xform_result=${1%.*}.lo\
20462} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20463  && mv -f "$cfgfile.tmp" "$cfgfile" \
20464    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20465test 0 -eq $? || _lt_function_replace_fail=:
20466
20467
20468  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20469func_arith ()\
20470{\
20471    func_arith_result=$(( $* ))\
20472} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20473  && mv -f "$cfgfile.tmp" "$cfgfile" \
20474    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20475test 0 -eq $? || _lt_function_replace_fail=:
20476
20477
20478  sed -e '/^func_len ()$/,/^} # func_len /c\
20479func_len ()\
20480{\
20481    func_len_result=${#1}\
20482} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20483  && mv -f "$cfgfile.tmp" "$cfgfile" \
20484    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20485test 0 -eq $? || _lt_function_replace_fail=:
20486
20487fi
20488
20489if test x"$lt_shell_append" = xyes; then
20490  sed -e '/^func_append ()$/,/^} # func_append /c\
20491func_append ()\
20492{\
20493    eval "${1}+=\\${2}"\
20494} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20495  && mv -f "$cfgfile.tmp" "$cfgfile" \
20496    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20497test 0 -eq $? || _lt_function_replace_fail=:
20498
20499
20500  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20501func_append_quoted ()\
20502{\
20503\    func_quote_for_eval "${2}"\
20504\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20505} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20506  && mv -f "$cfgfile.tmp" "$cfgfile" \
20507    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20508test 0 -eq $? || _lt_function_replace_fail=:
20509
20510
20511  # Save a `func_append' function call where possible by direct use of '+='
20512  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20513    && mv -f "$cfgfile.tmp" "$cfgfile" \
20514      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20515  test 0 -eq $? || _lt_function_replace_fail=:
20516else
20517  # Save a `func_append' function call even when '+=' is not available
20518  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20519    && mv -f "$cfgfile.tmp" "$cfgfile" \
20520      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20521  test 0 -eq $? || _lt_function_replace_fail=:
20522fi
20523
20524if test x"$_lt_function_replace_fail" = x":"; then
20525  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20526$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20527fi
20528
20529
20530   mv -f "$cfgfile" "$ofile" ||
20531    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20532  chmod +x "$ofile"
20533
20534 ;;
20535
20536  esac
20537done # for ac_tag
20538
20539
20540as_fn_exit 0
20541_ACEOF
20542ac_clean_files=$ac_clean_files_save
20543
20544test $ac_write_fail = 0 ||
20545  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20546
20547
20548# configure is writing to config.log, and then calls config.status.
20549# config.status does its own redirection, appending to config.log.
20550# Unfortunately, on DOS this fails, as config.log is still kept open
20551# by configure, so config.status won't be able to write to it; its
20552# output is simply discarded.  So we exec the FD to /dev/null,
20553# effectively closing config.log, so it can be properly (re)opened and
20554# appended to by config.status.  When coming back to configure, we
20555# need to make the FD available again.
20556if test "$no_create" != yes; then
20557  ac_cs_success=:
20558  ac_config_status_args=
20559  test "$silent" = yes &&
20560    ac_config_status_args="$ac_config_status_args --quiet"
20561  exec 5>/dev/null
20562  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20563  exec 5>>config.log
20564  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20565  # would make configure fail if this is the last instruction.
20566  $ac_cs_success || as_fn_exit 1
20567fi
20568if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20569  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20570$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20571fi
20572
20573