configure revision c2e4ac43
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-video-nouveau 1.0.13.
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-nouveau'
593PACKAGE_TARNAME='xf86-video-nouveau'
594PACKAGE_VERSION='1.0.13'
595PACKAGE_STRING='xf86-video-nouveau 1.0.13'
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
642LIBUDEV_FALSE
643LIBUDEV_TRUE
644LIBUDEV_LIBS
645LIBUDEV_CFLAGS
646PCIACCESS_LIBS
647PCIACCESS_CFLAGS
648HAVE_XEXTPROTO_71_FALSE
649HAVE_XEXTPROTO_71_TRUE
650XEXT_LIBS
651XEXT_CFLAGS
652XORG_LIBS
653XORG_CFLAGS
654LIBDRM_NOUVEAU_LIBS
655LIBDRM_NOUVEAU_CFLAGS
656LIBDRM_LIBS
657LIBDRM_CFLAGS
658LT_SYS_LIBRARY_PATH
659OTOOL64
660OTOOL
661LIPO
662NMEDIT
663DSYMUTIL
664MANIFEST_TOOL
665RANLIB
666ac_ct_AR
667AR
668DLLTOOL
669OBJDUMP
670LN_S
671NM
672ac_ct_DUMPBIN
673DUMPBIN
674LD
675FGREP
676LIBTOOL
677MAN_SUBSTS
678XORG_MAN_PAGE
679ADMIN_MAN_DIR
680DRIVER_MAN_DIR
681MISC_MAN_DIR
682FILE_MAN_DIR
683LIB_MAN_DIR
684APP_MAN_DIR
685ADMIN_MAN_SUFFIX
686DRIVER_MAN_SUFFIX
687MISC_MAN_SUFFIX
688FILE_MAN_SUFFIX
689LIB_MAN_SUFFIX
690APP_MAN_SUFFIX
691SED
692host_os
693host_vendor
694host_cpu
695host
696build_os
697build_vendor
698build_cpu
699build
700INSTALL_CMD
701PKG_CONFIG_LIBDIR
702PKG_CONFIG_PATH
703PKG_CONFIG
704CHANGELOG_CMD
705STRICT_CFLAGS
706CWARNFLAGS
707BASE_CFLAGS
708EGREP
709GREP
710CPP
711am__fastdepCC_FALSE
712am__fastdepCC_TRUE
713CCDEPMODE
714am__nodep
715AMDEPBACKSLASH
716AMDEP_FALSE
717AMDEP_TRUE
718am__quote
719am__include
720DEPDIR
721OBJEXT
722EXEEXT
723ac_ct_CC
724CPPFLAGS
725LDFLAGS
726CFLAGS
727CC
728AM_BACKSLASH
729AM_DEFAULT_VERBOSITY
730AM_DEFAULT_V
731AM_V
732am__untar
733am__tar
734AMTAR
735am__leading_dot
736SET_MAKE
737AWK
738mkdir_p
739MKDIR_P
740INSTALL_STRIP_PROGRAM
741STRIP
742install_sh
743MAKEINFO
744AUTOHEADER
745AUTOMAKE
746AUTOCONF
747ACLOCAL
748VERSION
749PACKAGE
750CYGPATH_W
751am__isrc
752INSTALL_DATA
753INSTALL_SCRIPT
754INSTALL_PROGRAM
755target_alias
756host_alias
757build_alias
758LIBS
759ECHO_T
760ECHO_N
761ECHO_C
762DEFS
763mandir
764localedir
765libdir
766psdir
767pdfdir
768dvidir
769htmldir
770infodir
771docdir
772oldincludedir
773includedir
774runstatedir
775localstatedir
776sharedstatedir
777sysconfdir
778datadir
779datarootdir
780libexecdir
781sbindir
782bindir
783program_transform_name
784prefix
785exec_prefix
786PACKAGE_URL
787PACKAGE_BUGREPORT
788PACKAGE_STRING
789PACKAGE_VERSION
790PACKAGE_TARNAME
791PACKAGE_NAME
792PATH_SEPARATOR
793SHELL'
794ac_subst_files=''
795ac_user_opts='
796enable_option_checking
797enable_silent_rules
798enable_dependency_tracking
799enable_selective_werror
800enable_strict_compilation
801enable_static
802enable_shared
803with_pic
804enable_fast_install
805with_aix_soname
806with_gnu_ld
807with_sysroot
808enable_libtool_lock
809with_xorg_module_dir
810'
811      ac_precious_vars='build_alias
812host_alias
813target_alias
814CC
815CFLAGS
816LDFLAGS
817LIBS
818CPPFLAGS
819CPP
820PKG_CONFIG
821PKG_CONFIG_PATH
822PKG_CONFIG_LIBDIR
823LT_SYS_LIBRARY_PATH
824LIBDRM_CFLAGS
825LIBDRM_LIBS
826LIBDRM_NOUVEAU_CFLAGS
827LIBDRM_NOUVEAU_LIBS
828XORG_CFLAGS
829XORG_LIBS
830XEXT_CFLAGS
831XEXT_LIBS
832PCIACCESS_CFLAGS
833PCIACCESS_LIBS
834LIBUDEV_CFLAGS
835LIBUDEV_LIBS'
836
837
838# Initialize some variables set by options.
839ac_init_help=
840ac_init_version=false
841ac_unrecognized_opts=
842ac_unrecognized_sep=
843# The variables have the same names as the options, with
844# dashes changed to underlines.
845cache_file=/dev/null
846exec_prefix=NONE
847no_create=
848no_recursion=
849prefix=NONE
850program_prefix=NONE
851program_suffix=NONE
852program_transform_name=s,x,x,
853silent=
854site=
855srcdir=
856verbose=
857x_includes=NONE
858x_libraries=NONE
859
860# Installation directory options.
861# These are left unexpanded so users can "make install exec_prefix=/foo"
862# and all the variables that are supposed to be based on exec_prefix
863# by default will actually change.
864# Use braces instead of parens because sh, perl, etc. also accept them.
865# (The list follows the same order as the GNU Coding Standards.)
866bindir='${exec_prefix}/bin'
867sbindir='${exec_prefix}/sbin'
868libexecdir='${exec_prefix}/libexec'
869datarootdir='${prefix}/share'
870datadir='${datarootdir}'
871sysconfdir='${prefix}/etc'
872sharedstatedir='${prefix}/com'
873localstatedir='${prefix}/var'
874runstatedir='${localstatedir}/run'
875includedir='${prefix}/include'
876oldincludedir='/usr/include'
877docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878infodir='${datarootdir}/info'
879htmldir='${docdir}'
880dvidir='${docdir}'
881pdfdir='${docdir}'
882psdir='${docdir}'
883libdir='${exec_prefix}/lib'
884localedir='${datarootdir}/locale'
885mandir='${datarootdir}/man'
886
887ac_prev=
888ac_dashdash=
889for ac_option
890do
891  # If the previous option needs an argument, assign it.
892  if test -n "$ac_prev"; then
893    eval $ac_prev=\$ac_option
894    ac_prev=
895    continue
896  fi
897
898  case $ac_option in
899  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900  *=)   ac_optarg= ;;
901  *)    ac_optarg=yes ;;
902  esac
903
904  # Accept the important Cygnus configure options, so we can diagnose typos.
905
906  case $ac_dashdash$ac_option in
907  --)
908    ac_dashdash=yes ;;
909
910  -bindir | --bindir | --bindi | --bind | --bin | --bi)
911    ac_prev=bindir ;;
912  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913    bindir=$ac_optarg ;;
914
915  -build | --build | --buil | --bui | --bu)
916    ac_prev=build_alias ;;
917  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918    build_alias=$ac_optarg ;;
919
920  -cache-file | --cache-file | --cache-fil | --cache-fi \
921  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922    ac_prev=cache_file ;;
923  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925    cache_file=$ac_optarg ;;
926
927  --config-cache | -C)
928    cache_file=config.cache ;;
929
930  -datadir | --datadir | --datadi | --datad)
931    ac_prev=datadir ;;
932  -datadir=* | --datadir=* | --datadi=* | --datad=*)
933    datadir=$ac_optarg ;;
934
935  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936  | --dataroo | --dataro | --datar)
937    ac_prev=datarootdir ;;
938  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940    datarootdir=$ac_optarg ;;
941
942  -disable-* | --disable-*)
943    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944    # Reject names that are not valid shell variable names.
945    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946      as_fn_error $? "invalid feature name: $ac_useropt"
947    ac_useropt_orig=$ac_useropt
948    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949    case $ac_user_opts in
950      *"
951"enable_$ac_useropt"
952"*) ;;
953      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954	 ac_unrecognized_sep=', ';;
955    esac
956    eval enable_$ac_useropt=no ;;
957
958  -docdir | --docdir | --docdi | --doc | --do)
959    ac_prev=docdir ;;
960  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961    docdir=$ac_optarg ;;
962
963  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964    ac_prev=dvidir ;;
965  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966    dvidir=$ac_optarg ;;
967
968  -enable-* | --enable-*)
969    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970    # Reject names that are not valid shell variable names.
971    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972      as_fn_error $? "invalid feature name: $ac_useropt"
973    ac_useropt_orig=$ac_useropt
974    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975    case $ac_user_opts in
976      *"
977"enable_$ac_useropt"
978"*) ;;
979      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980	 ac_unrecognized_sep=', ';;
981    esac
982    eval enable_$ac_useropt=\$ac_optarg ;;
983
984  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986  | --exec | --exe | --ex)
987    ac_prev=exec_prefix ;;
988  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990  | --exec=* | --exe=* | --ex=*)
991    exec_prefix=$ac_optarg ;;
992
993  -gas | --gas | --ga | --g)
994    # Obsolete; use --with-gas.
995    with_gas=yes ;;
996
997  -help | --help | --hel | --he | -h)
998    ac_init_help=long ;;
999  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000    ac_init_help=recursive ;;
1001  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002    ac_init_help=short ;;
1003
1004  -host | --host | --hos | --ho)
1005    ac_prev=host_alias ;;
1006  -host=* | --host=* | --hos=* | --ho=*)
1007    host_alias=$ac_optarg ;;
1008
1009  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010    ac_prev=htmldir ;;
1011  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012  | --ht=*)
1013    htmldir=$ac_optarg ;;
1014
1015  -includedir | --includedir | --includedi | --included | --include \
1016  | --includ | --inclu | --incl | --inc)
1017    ac_prev=includedir ;;
1018  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019  | --includ=* | --inclu=* | --incl=* | --inc=*)
1020    includedir=$ac_optarg ;;
1021
1022  -infodir | --infodir | --infodi | --infod | --info | --inf)
1023    ac_prev=infodir ;;
1024  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025    infodir=$ac_optarg ;;
1026
1027  -libdir | --libdir | --libdi | --libd)
1028    ac_prev=libdir ;;
1029  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030    libdir=$ac_optarg ;;
1031
1032  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033  | --libexe | --libex | --libe)
1034    ac_prev=libexecdir ;;
1035  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036  | --libexe=* | --libex=* | --libe=*)
1037    libexecdir=$ac_optarg ;;
1038
1039  -localedir | --localedir | --localedi | --localed | --locale)
1040    ac_prev=localedir ;;
1041  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042    localedir=$ac_optarg ;;
1043
1044  -localstatedir | --localstatedir | --localstatedi | --localstated \
1045  | --localstate | --localstat | --localsta | --localst | --locals)
1046    ac_prev=localstatedir ;;
1047  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049    localstatedir=$ac_optarg ;;
1050
1051  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052    ac_prev=mandir ;;
1053  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054    mandir=$ac_optarg ;;
1055
1056  -nfp | --nfp | --nf)
1057    # Obsolete; use --without-fp.
1058    with_fp=no ;;
1059
1060  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061  | --no-cr | --no-c | -n)
1062    no_create=yes ;;
1063
1064  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066    no_recursion=yes ;;
1067
1068  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070  | --oldin | --oldi | --old | --ol | --o)
1071    ac_prev=oldincludedir ;;
1072  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075    oldincludedir=$ac_optarg ;;
1076
1077  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078    ac_prev=prefix ;;
1079  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080    prefix=$ac_optarg ;;
1081
1082  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083  | --program-pre | --program-pr | --program-p)
1084    ac_prev=program_prefix ;;
1085  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087    program_prefix=$ac_optarg ;;
1088
1089  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090  | --program-suf | --program-su | --program-s)
1091    ac_prev=program_suffix ;;
1092  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094    program_suffix=$ac_optarg ;;
1095
1096  -program-transform-name | --program-transform-name \
1097  | --program-transform-nam | --program-transform-na \
1098  | --program-transform-n | --program-transform- \
1099  | --program-transform | --program-transfor \
1100  | --program-transfo | --program-transf \
1101  | --program-trans | --program-tran \
1102  | --progr-tra | --program-tr | --program-t)
1103    ac_prev=program_transform_name ;;
1104  -program-transform-name=* | --program-transform-name=* \
1105  | --program-transform-nam=* | --program-transform-na=* \
1106  | --program-transform-n=* | --program-transform-=* \
1107  | --program-transform=* | --program-transfor=* \
1108  | --program-transfo=* | --program-transf=* \
1109  | --program-trans=* | --program-tran=* \
1110  | --progr-tra=* | --program-tr=* | --program-t=*)
1111    program_transform_name=$ac_optarg ;;
1112
1113  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114    ac_prev=pdfdir ;;
1115  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116    pdfdir=$ac_optarg ;;
1117
1118  -psdir | --psdir | --psdi | --psd | --ps)
1119    ac_prev=psdir ;;
1120  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121    psdir=$ac_optarg ;;
1122
1123  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124  | -silent | --silent | --silen | --sile | --sil)
1125    silent=yes ;;
1126
1127  -runstatedir | --runstatedir | --runstatedi | --runstated \
1128  | --runstate | --runstat | --runsta | --runst | --runs \
1129  | --run | --ru | --r)
1130    ac_prev=runstatedir ;;
1131  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1132  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1133  | --run=* | --ru=* | --r=*)
1134    runstatedir=$ac_optarg ;;
1135
1136  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137    ac_prev=sbindir ;;
1138  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139  | --sbi=* | --sb=*)
1140    sbindir=$ac_optarg ;;
1141
1142  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144  | --sharedst | --shareds | --shared | --share | --shar \
1145  | --sha | --sh)
1146    ac_prev=sharedstatedir ;;
1147  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150  | --sha=* | --sh=*)
1151    sharedstatedir=$ac_optarg ;;
1152
1153  -site | --site | --sit)
1154    ac_prev=site ;;
1155  -site=* | --site=* | --sit=*)
1156    site=$ac_optarg ;;
1157
1158  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159    ac_prev=srcdir ;;
1160  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1161    srcdir=$ac_optarg ;;
1162
1163  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164  | --syscon | --sysco | --sysc | --sys | --sy)
1165    ac_prev=sysconfdir ;;
1166  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1168    sysconfdir=$ac_optarg ;;
1169
1170  -target | --target | --targe | --targ | --tar | --ta | --t)
1171    ac_prev=target_alias ;;
1172  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1173    target_alias=$ac_optarg ;;
1174
1175  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176    verbose=yes ;;
1177
1178  -version | --version | --versio | --versi | --vers | -V)
1179    ac_init_version=: ;;
1180
1181  -with-* | --with-*)
1182    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1183    # Reject names that are not valid shell variable names.
1184    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185      as_fn_error $? "invalid package name: $ac_useropt"
1186    ac_useropt_orig=$ac_useropt
1187    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188    case $ac_user_opts in
1189      *"
1190"with_$ac_useropt"
1191"*) ;;
1192      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193	 ac_unrecognized_sep=', ';;
1194    esac
1195    eval with_$ac_useropt=\$ac_optarg ;;
1196
1197  -without-* | --without-*)
1198    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199    # Reject names that are not valid shell variable names.
1200    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201      as_fn_error $? "invalid package name: $ac_useropt"
1202    ac_useropt_orig=$ac_useropt
1203    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204    case $ac_user_opts in
1205      *"
1206"with_$ac_useropt"
1207"*) ;;
1208      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209	 ac_unrecognized_sep=', ';;
1210    esac
1211    eval with_$ac_useropt=no ;;
1212
1213  --x)
1214    # Obsolete; use --with-x.
1215    with_x=yes ;;
1216
1217  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218  | --x-incl | --x-inc | --x-in | --x-i)
1219    ac_prev=x_includes ;;
1220  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222    x_includes=$ac_optarg ;;
1223
1224  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226    ac_prev=x_libraries ;;
1227  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229    x_libraries=$ac_optarg ;;
1230
1231  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1232Try \`$0 --help' for more information"
1233    ;;
1234
1235  *=*)
1236    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237    # Reject names that are not valid shell variable names.
1238    case $ac_envvar in #(
1239      '' | [0-9]* | *[!_$as_cr_alnum]* )
1240      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1241    esac
1242    eval $ac_envvar=\$ac_optarg
1243    export $ac_envvar ;;
1244
1245  *)
1246    # FIXME: should be removed in autoconf 3.0.
1247    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1248    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1250    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1251    ;;
1252
1253  esac
1254done
1255
1256if test -n "$ac_prev"; then
1257  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258  as_fn_error $? "missing argument to $ac_option"
1259fi
1260
1261if test -n "$ac_unrecognized_opts"; then
1262  case $enable_option_checking in
1263    no) ;;
1264    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1265    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1266  esac
1267fi
1268
1269# Check all directory arguments for consistency.
1270for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271		datadir sysconfdir sharedstatedir localstatedir includedir \
1272		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273		libdir localedir mandir runstatedir
1274do
1275  eval ac_val=\$$ac_var
1276  # Remove trailing slashes.
1277  case $ac_val in
1278    */ )
1279      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280      eval $ac_var=\$ac_val;;
1281  esac
1282  # Be sure to have absolute directory names.
1283  case $ac_val in
1284    [\\/$]* | ?:[\\/]* )  continue;;
1285    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286  esac
1287  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1288done
1289
1290# There might be people who depend on the old broken behavior: `$host'
1291# used to hold the argument of --host etc.
1292# FIXME: To remove some day.
1293build=$build_alias
1294host=$host_alias
1295target=$target_alias
1296
1297# FIXME: To remove some day.
1298if test "x$host_alias" != x; then
1299  if test "x$build_alias" = x; then
1300    cross_compiling=maybe
1301  elif test "x$build_alias" != "x$host_alias"; then
1302    cross_compiling=yes
1303  fi
1304fi
1305
1306ac_tool_prefix=
1307test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309test "$silent" = yes && exec 6>/dev/null
1310
1311
1312ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313ac_ls_di=`ls -di .` &&
1314ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315  as_fn_error $? "working directory cannot be determined"
1316test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317  as_fn_error $? "pwd does not report name of working directory"
1318
1319
1320# Find the source files, if location was not specified.
1321if test -z "$srcdir"; then
1322  ac_srcdir_defaulted=yes
1323  # Try the directory containing this script, then the parent directory.
1324  ac_confdir=`$as_dirname -- "$as_myself" ||
1325$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326	 X"$as_myself" : 'X\(//\)[^/]' \| \
1327	 X"$as_myself" : 'X\(//\)$' \| \
1328	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329$as_echo X"$as_myself" |
1330    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331	    s//\1/
1332	    q
1333	  }
1334	  /^X\(\/\/\)[^/].*/{
1335	    s//\1/
1336	    q
1337	  }
1338	  /^X\(\/\/\)$/{
1339	    s//\1/
1340	    q
1341	  }
1342	  /^X\(\/\).*/{
1343	    s//\1/
1344	    q
1345	  }
1346	  s/.*/./; q'`
1347  srcdir=$ac_confdir
1348  if test ! -r "$srcdir/$ac_unique_file"; then
1349    srcdir=..
1350  fi
1351else
1352  ac_srcdir_defaulted=no
1353fi
1354if test ! -r "$srcdir/$ac_unique_file"; then
1355  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1357fi
1358ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359ac_abs_confdir=`(
1360	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1361	pwd)`
1362# When building in place, set srcdir=.
1363if test "$ac_abs_confdir" = "$ac_pwd"; then
1364  srcdir=.
1365fi
1366# Remove unnecessary trailing slashes from srcdir.
1367# Double slashes in file names in object file debugging info
1368# mess up M-x gdb in Emacs.
1369case $srcdir in
1370*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371esac
1372for ac_var in $ac_precious_vars; do
1373  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374  eval ac_env_${ac_var}_value=\$${ac_var}
1375  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377done
1378
1379#
1380# Report the --help message.
1381#
1382if test "$ac_init_help" = "long"; then
1383  # Omit some internal or obsolete options to make the list less imposing.
1384  # This message is too long to be a string in the A/UX 3.1 sh.
1385  cat <<_ACEOF
1386\`configure' configures xf86-video-nouveau 1.0.13 to adapt to many kinds of systems.
1387
1388Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391VAR=VALUE.  See below for descriptions of some of the useful variables.
1392
1393Defaults for the options are specified in brackets.
1394
1395Configuration:
1396  -h, --help              display this help and exit
1397      --help=short        display options specific to this package
1398      --help=recursive    display the short help of all the included packages
1399  -V, --version           display version information and exit
1400  -q, --quiet, --silent   do not print \`checking ...' messages
1401      --cache-file=FILE   cache test results in FILE [disabled]
1402  -C, --config-cache      alias for \`--cache-file=config.cache'
1403  -n, --no-create         do not create output files
1404      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1405
1406Installation directories:
1407  --prefix=PREFIX         install architecture-independent files in PREFIX
1408                          [$ac_default_prefix]
1409  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1410                          [PREFIX]
1411
1412By default, \`make install' will install all the files in
1413\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1414an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415for instance \`--prefix=\$HOME'.
1416
1417For better control, use the options below.
1418
1419Fine tuning of the installation directories:
1420  --bindir=DIR            user executables [EPREFIX/bin]
1421  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1422  --libexecdir=DIR        program executables [EPREFIX/libexec]
1423  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1424  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1425  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1426  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1427  --libdir=DIR            object code libraries [EPREFIX/lib]
1428  --includedir=DIR        C header files [PREFIX/include]
1429  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1430  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1431  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1432  --infodir=DIR           info documentation [DATAROOTDIR/info]
1433  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1434  --mandir=DIR            man documentation [DATAROOTDIR/man]
1435  --docdir=DIR            documentation root
1436                          [DATAROOTDIR/doc/xf86-video-nouveau]
1437  --htmldir=DIR           html documentation [DOCDIR]
1438  --dvidir=DIR            dvi documentation [DOCDIR]
1439  --pdfdir=DIR            pdf documentation [DOCDIR]
1440  --psdir=DIR             ps documentation [DOCDIR]
1441_ACEOF
1442
1443  cat <<\_ACEOF
1444
1445Program names:
1446  --program-prefix=PREFIX            prepend PREFIX to installed program names
1447  --program-suffix=SUFFIX            append SUFFIX to installed program names
1448  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1449
1450System types:
1451  --build=BUILD     configure for building on BUILD [guessed]
1452  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1453_ACEOF
1454fi
1455
1456if test -n "$ac_init_help"; then
1457  case $ac_init_help in
1458     short | recursive ) echo "Configuration of xf86-video-nouveau 1.0.13:";;
1459   esac
1460  cat <<\_ACEOF
1461
1462Optional Features:
1463  --disable-option-checking  ignore unrecognized --enable/--with options
1464  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1465  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1466  --enable-silent-rules   less verbose build output (undo: "make V=1")
1467  --disable-silent-rules  verbose build output (undo: "make V=0")
1468  --enable-dependency-tracking
1469                          do not reject slow dependency extractors
1470  --disable-dependency-tracking
1471                          speeds up one-time build
1472  --disable-selective-werror
1473                          Turn off selective compiler errors. (default:
1474                          enabled)
1475  --enable-strict-compilation
1476                          Enable all warnings from compiler and make them
1477                          errors (default: disabled)
1478  --enable-static[=PKGS]  build static libraries [default=no]
1479  --enable-shared[=PKGS]  build shared libraries [default=yes]
1480  --enable-fast-install[=PKGS]
1481                          optimize for fast installation [default=yes]
1482  --disable-libtool-lock  avoid locking (might break parallel builds)
1483
1484Optional Packages:
1485  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1486  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1487  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1488                          both]
1489  --with-aix-soname=aix|svr4|both
1490                          shared library versioning (aka "SONAME") variant to
1491                          provide on AIX, [default=aix].
1492  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1493  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1494                          compiler's sysroot if not specified).
1495  --with-xorg-module-dir=DIR
1496                          Default xorg module directory
1497                          [[default=$libdir/xorg/modules]]
1498
1499Some influential environment variables:
1500  CC          C compiler command
1501  CFLAGS      C compiler flags
1502  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1503              nonstandard directory <lib dir>
1504  LIBS        libraries to pass to the linker, e.g. -l<library>
1505  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1506              you have headers in a nonstandard directory <include dir>
1507  CPP         C preprocessor
1508  PKG_CONFIG  path to pkg-config utility
1509  PKG_CONFIG_PATH
1510              directories to add to pkg-config's search path
1511  PKG_CONFIG_LIBDIR
1512              path overriding pkg-config's built-in search path
1513  LT_SYS_LIBRARY_PATH
1514              User-defined run-time library search path.
1515  LIBDRM_CFLAGS
1516              C compiler flags for LIBDRM, overriding pkg-config
1517  LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
1518  LIBDRM_NOUVEAU_CFLAGS
1519              C compiler flags for LIBDRM_NOUVEAU, overriding pkg-config
1520  LIBDRM_NOUVEAU_LIBS
1521              linker flags for LIBDRM_NOUVEAU, overriding pkg-config
1522  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1523  XORG_LIBS   linker flags for XORG, overriding pkg-config
1524  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1525  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1526  PCIACCESS_CFLAGS
1527              C compiler flags for PCIACCESS, overriding pkg-config
1528  PCIACCESS_LIBS
1529              linker flags for PCIACCESS, overriding pkg-config
1530  LIBUDEV_CFLAGS
1531              C compiler flags for LIBUDEV, overriding pkg-config
1532  LIBUDEV_LIBS
1533              linker flags for LIBUDEV, overriding pkg-config
1534
1535Use these variables to override the choices made by `configure' or to help
1536it to find libraries and programs with nonstandard names/locations.
1537
1538Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1539_ACEOF
1540ac_status=$?
1541fi
1542
1543if test "$ac_init_help" = "recursive"; then
1544  # If there are subdirs, report their specific --help.
1545  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546    test -d "$ac_dir" ||
1547      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1548      continue
1549    ac_builddir=.
1550
1551case "$ac_dir" in
1552.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553*)
1554  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1555  # A ".." for each directory in $ac_dir_suffix.
1556  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1557  case $ac_top_builddir_sub in
1558  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560  esac ;;
1561esac
1562ac_abs_top_builddir=$ac_pwd
1563ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564# for backward compatibility:
1565ac_top_builddir=$ac_top_build_prefix
1566
1567case $srcdir in
1568  .)  # We are building in place.
1569    ac_srcdir=.
1570    ac_top_srcdir=$ac_top_builddir_sub
1571    ac_abs_top_srcdir=$ac_pwd ;;
1572  [\\/]* | ?:[\\/]* )  # Absolute name.
1573    ac_srcdir=$srcdir$ac_dir_suffix;
1574    ac_top_srcdir=$srcdir
1575    ac_abs_top_srcdir=$srcdir ;;
1576  *) # Relative name.
1577    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578    ac_top_srcdir=$ac_top_build_prefix$srcdir
1579    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580esac
1581ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582
1583    cd "$ac_dir" || { ac_status=$?; continue; }
1584    # Check for guested configure.
1585    if test -f "$ac_srcdir/configure.gnu"; then
1586      echo &&
1587      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588    elif test -f "$ac_srcdir/configure"; then
1589      echo &&
1590      $SHELL "$ac_srcdir/configure" --help=recursive
1591    else
1592      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593    fi || ac_status=$?
1594    cd "$ac_pwd" || { ac_status=$?; break; }
1595  done
1596fi
1597
1598test -n "$ac_init_help" && exit $ac_status
1599if $ac_init_version; then
1600  cat <<\_ACEOF
1601xf86-video-nouveau configure 1.0.13
1602generated by GNU Autoconf 2.69
1603
1604Copyright (C) 2012 Free Software Foundation, Inc.
1605This configure script is free software; the Free Software Foundation
1606gives unlimited permission to copy, distribute and modify it.
1607_ACEOF
1608  exit
1609fi
1610
1611## ------------------------ ##
1612## Autoconf initialization. ##
1613## ------------------------ ##
1614
1615# ac_fn_c_try_compile LINENO
1616# --------------------------
1617# Try to compile conftest.$ac_ext, and return whether this succeeded.
1618ac_fn_c_try_compile ()
1619{
1620  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621  rm -f conftest.$ac_objext
1622  if { { ac_try="$ac_compile"
1623case "(($ac_try" in
1624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625  *) ac_try_echo=$ac_try;;
1626esac
1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628$as_echo "$ac_try_echo"; } >&5
1629  (eval "$ac_compile") 2>conftest.err
1630  ac_status=$?
1631  if test -s conftest.err; then
1632    grep -v '^ *+' conftest.err >conftest.er1
1633    cat conftest.er1 >&5
1634    mv -f conftest.er1 conftest.err
1635  fi
1636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637  test $ac_status = 0; } && {
1638	 test -z "$ac_c_werror_flag" ||
1639	 test ! -s conftest.err
1640       } && test -s conftest.$ac_objext; then :
1641  ac_retval=0
1642else
1643  $as_echo "$as_me: failed program was:" >&5
1644sed 's/^/| /' conftest.$ac_ext >&5
1645
1646	ac_retval=1
1647fi
1648  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649  as_fn_set_status $ac_retval
1650
1651} # ac_fn_c_try_compile
1652
1653# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1654# ---------------------------------------------
1655# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1656# accordingly.
1657ac_fn_c_check_decl ()
1658{
1659  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660  as_decl_name=`echo $2|sed 's/ *(.*//'`
1661  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1662  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1663$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1664if eval \${$3+:} false; then :
1665  $as_echo_n "(cached) " >&6
1666else
1667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668/* end confdefs.h.  */
1669$4
1670int
1671main ()
1672{
1673#ifndef $as_decl_name
1674#ifdef __cplusplus
1675  (void) $as_decl_use;
1676#else
1677  (void) $as_decl_name;
1678#endif
1679#endif
1680
1681  ;
1682  return 0;
1683}
1684_ACEOF
1685if ac_fn_c_try_compile "$LINENO"; then :
1686  eval "$3=yes"
1687else
1688  eval "$3=no"
1689fi
1690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1691fi
1692eval ac_res=\$$3
1693	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694$as_echo "$ac_res" >&6; }
1695  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696
1697} # ac_fn_c_check_decl
1698
1699# ac_fn_c_try_cpp LINENO
1700# ----------------------
1701# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1702ac_fn_c_try_cpp ()
1703{
1704  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705  if { { ac_try="$ac_cpp conftest.$ac_ext"
1706case "(($ac_try" in
1707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708  *) ac_try_echo=$ac_try;;
1709esac
1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711$as_echo "$ac_try_echo"; } >&5
1712  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1713  ac_status=$?
1714  if test -s conftest.err; then
1715    grep -v '^ *+' conftest.err >conftest.er1
1716    cat conftest.er1 >&5
1717    mv -f conftest.er1 conftest.err
1718  fi
1719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720  test $ac_status = 0; } > conftest.i && {
1721	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1722	 test ! -s conftest.err
1723       }; then :
1724  ac_retval=0
1725else
1726  $as_echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
1728
1729    ac_retval=1
1730fi
1731  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732  as_fn_set_status $ac_retval
1733
1734} # ac_fn_c_try_cpp
1735
1736# ac_fn_c_try_run LINENO
1737# ----------------------
1738# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1739# that executables *can* be run.
1740ac_fn_c_try_run ()
1741{
1742  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743  if { { ac_try="$ac_link"
1744case "(($ac_try" in
1745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746  *) ac_try_echo=$ac_try;;
1747esac
1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749$as_echo "$ac_try_echo"; } >&5
1750  (eval "$ac_link") 2>&5
1751  ac_status=$?
1752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1754  { { case "(($ac_try" in
1755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756  *) ac_try_echo=$ac_try;;
1757esac
1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759$as_echo "$ac_try_echo"; } >&5
1760  (eval "$ac_try") 2>&5
1761  ac_status=$?
1762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763  test $ac_status = 0; }; }; then :
1764  ac_retval=0
1765else
1766  $as_echo "$as_me: program exited with status $ac_status" >&5
1767       $as_echo "$as_me: failed program was:" >&5
1768sed 's/^/| /' conftest.$ac_ext >&5
1769
1770       ac_retval=$ac_status
1771fi
1772  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1773  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774  as_fn_set_status $ac_retval
1775
1776} # ac_fn_c_try_run
1777
1778# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1779# -------------------------------------------------------
1780# Tests whether HEADER exists and can be compiled using the include files in
1781# INCLUDES, setting the cache variable VAR accordingly.
1782ac_fn_c_check_header_compile ()
1783{
1784  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786$as_echo_n "checking for $2... " >&6; }
1787if eval \${$3+:} false; then :
1788  $as_echo_n "(cached) " >&6
1789else
1790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791/* end confdefs.h.  */
1792$4
1793#include <$2>
1794_ACEOF
1795if ac_fn_c_try_compile "$LINENO"; then :
1796  eval "$3=yes"
1797else
1798  eval "$3=no"
1799fi
1800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801fi
1802eval ac_res=\$$3
1803	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804$as_echo "$ac_res" >&6; }
1805  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806
1807} # ac_fn_c_check_header_compile
1808
1809# ac_fn_c_try_link LINENO
1810# -----------------------
1811# Try to link conftest.$ac_ext, and return whether this succeeded.
1812ac_fn_c_try_link ()
1813{
1814  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815  rm -f conftest.$ac_objext conftest$ac_exeext
1816  if { { ac_try="$ac_link"
1817case "(($ac_try" in
1818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819  *) ac_try_echo=$ac_try;;
1820esac
1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822$as_echo "$ac_try_echo"; } >&5
1823  (eval "$ac_link") 2>conftest.err
1824  ac_status=$?
1825  if test -s conftest.err; then
1826    grep -v '^ *+' conftest.err >conftest.er1
1827    cat conftest.er1 >&5
1828    mv -f conftest.er1 conftest.err
1829  fi
1830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831  test $ac_status = 0; } && {
1832	 test -z "$ac_c_werror_flag" ||
1833	 test ! -s conftest.err
1834       } && test -s conftest$ac_exeext && {
1835	 test "$cross_compiling" = yes ||
1836	 test -x conftest$ac_exeext
1837       }; then :
1838  ac_retval=0
1839else
1840  $as_echo "$as_me: failed program was:" >&5
1841sed 's/^/| /' conftest.$ac_ext >&5
1842
1843	ac_retval=1
1844fi
1845  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1846  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1847  # interfere with the next link command; also delete a directory that is
1848  # left behind by Apple's compiler.  We do this before executing the actions.
1849  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1850  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851  as_fn_set_status $ac_retval
1852
1853} # ac_fn_c_try_link
1854
1855# ac_fn_c_check_func LINENO FUNC VAR
1856# ----------------------------------
1857# Tests whether FUNC exists, setting the cache variable VAR accordingly
1858ac_fn_c_check_func ()
1859{
1860  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862$as_echo_n "checking for $2... " >&6; }
1863if eval \${$3+:} false; then :
1864  $as_echo_n "(cached) " >&6
1865else
1866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867/* end confdefs.h.  */
1868/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1869   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1870#define $2 innocuous_$2
1871
1872/* System header to define __stub macros and hopefully few prototypes,
1873    which can conflict with char $2 (); below.
1874    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1875    <limits.h> exists even on freestanding compilers.  */
1876
1877#ifdef __STDC__
1878# include <limits.h>
1879#else
1880# include <assert.h>
1881#endif
1882
1883#undef $2
1884
1885/* Override any GCC internal prototype to avoid an error.
1886   Use char because int might match the return type of a GCC
1887   builtin and then its argument prototype would still apply.  */
1888#ifdef __cplusplus
1889extern "C"
1890#endif
1891char $2 ();
1892/* The GNU C library defines this for functions which it implements
1893    to always fail with ENOSYS.  Some functions are actually named
1894    something starting with __ and the normal name is an alias.  */
1895#if defined __stub_$2 || defined __stub___$2
1896choke me
1897#endif
1898
1899int
1900main ()
1901{
1902return $2 ();
1903  ;
1904  return 0;
1905}
1906_ACEOF
1907if ac_fn_c_try_link "$LINENO"; then :
1908  eval "$3=yes"
1909else
1910  eval "$3=no"
1911fi
1912rm -f core conftest.err conftest.$ac_objext \
1913    conftest$ac_exeext conftest.$ac_ext
1914fi
1915eval ac_res=\$$3
1916	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917$as_echo "$ac_res" >&6; }
1918  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919
1920} # ac_fn_c_check_func
1921cat >config.log <<_ACEOF
1922This file contains any messages produced by compilers while
1923running configure, to aid debugging if configure makes a mistake.
1924
1925It was created by xf86-video-nouveau $as_me 1.0.13, which was
1926generated by GNU Autoconf 2.69.  Invocation command line was
1927
1928  $ $0 $@
1929
1930_ACEOF
1931exec 5>>config.log
1932{
1933cat <<_ASUNAME
1934## --------- ##
1935## Platform. ##
1936## --------- ##
1937
1938hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1939uname -m = `(uname -m) 2>/dev/null || echo unknown`
1940uname -r = `(uname -r) 2>/dev/null || echo unknown`
1941uname -s = `(uname -s) 2>/dev/null || echo unknown`
1942uname -v = `(uname -v) 2>/dev/null || echo unknown`
1943
1944/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1945/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1946
1947/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1948/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1949/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1950/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1951/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1952/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1953/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1954
1955_ASUNAME
1956
1957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958for as_dir in $PATH
1959do
1960  IFS=$as_save_IFS
1961  test -z "$as_dir" && as_dir=.
1962    $as_echo "PATH: $as_dir"
1963  done
1964IFS=$as_save_IFS
1965
1966} >&5
1967
1968cat >&5 <<_ACEOF
1969
1970
1971## ----------- ##
1972## Core tests. ##
1973## ----------- ##
1974
1975_ACEOF
1976
1977
1978# Keep a trace of the command line.
1979# Strip out --no-create and --no-recursion so they do not pile up.
1980# Strip out --silent because we don't want to record it for future runs.
1981# Also quote any args containing shell meta-characters.
1982# Make two passes to allow for proper duplicate-argument suppression.
1983ac_configure_args=
1984ac_configure_args0=
1985ac_configure_args1=
1986ac_must_keep_next=false
1987for ac_pass in 1 2
1988do
1989  for ac_arg
1990  do
1991    case $ac_arg in
1992    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1993    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1994    | -silent | --silent | --silen | --sile | --sil)
1995      continue ;;
1996    *\'*)
1997      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1998    esac
1999    case $ac_pass in
2000    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2001    2)
2002      as_fn_append ac_configure_args1 " '$ac_arg'"
2003      if test $ac_must_keep_next = true; then
2004	ac_must_keep_next=false # Got value, back to normal.
2005      else
2006	case $ac_arg in
2007	  *=* | --config-cache | -C | -disable-* | --disable-* \
2008	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2009	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2010	  | -with-* | --with-* | -without-* | --without-* | --x)
2011	    case "$ac_configure_args0 " in
2012	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2013	    esac
2014	    ;;
2015	  -* ) ac_must_keep_next=true ;;
2016	esac
2017      fi
2018      as_fn_append ac_configure_args " '$ac_arg'"
2019      ;;
2020    esac
2021  done
2022done
2023{ ac_configure_args0=; unset ac_configure_args0;}
2024{ ac_configure_args1=; unset ac_configure_args1;}
2025
2026# When interrupted or exit'd, cleanup temporary files, and complete
2027# config.log.  We remove comments because anyway the quotes in there
2028# would cause problems or look ugly.
2029# WARNING: Use '\'' to represent an apostrophe within the trap.
2030# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2031trap 'exit_status=$?
2032  # Save into config.log some information that might help in debugging.
2033  {
2034    echo
2035
2036    $as_echo "## ---------------- ##
2037## Cache variables. ##
2038## ---------------- ##"
2039    echo
2040    # The following way of writing the cache mishandles newlines in values,
2041(
2042  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2043    eval ac_val=\$$ac_var
2044    case $ac_val in #(
2045    *${as_nl}*)
2046      case $ac_var in #(
2047      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2048$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2049      esac
2050      case $ac_var in #(
2051      _ | IFS | as_nl) ;; #(
2052      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2053      *) { eval $ac_var=; unset $ac_var;} ;;
2054      esac ;;
2055    esac
2056  done
2057  (set) 2>&1 |
2058    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2059    *${as_nl}ac_space=\ *)
2060      sed -n \
2061	"s/'\''/'\''\\\\'\'''\''/g;
2062	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2063      ;; #(
2064    *)
2065      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2066      ;;
2067    esac |
2068    sort
2069)
2070    echo
2071
2072    $as_echo "## ----------------- ##
2073## Output variables. ##
2074## ----------------- ##"
2075    echo
2076    for ac_var in $ac_subst_vars
2077    do
2078      eval ac_val=\$$ac_var
2079      case $ac_val in
2080      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2081      esac
2082      $as_echo "$ac_var='\''$ac_val'\''"
2083    done | sort
2084    echo
2085
2086    if test -n "$ac_subst_files"; then
2087      $as_echo "## ------------------- ##
2088## File substitutions. ##
2089## ------------------- ##"
2090      echo
2091      for ac_var in $ac_subst_files
2092      do
2093	eval ac_val=\$$ac_var
2094	case $ac_val in
2095	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2096	esac
2097	$as_echo "$ac_var='\''$ac_val'\''"
2098      done | sort
2099      echo
2100    fi
2101
2102    if test -s confdefs.h; then
2103      $as_echo "## ----------- ##
2104## confdefs.h. ##
2105## ----------- ##"
2106      echo
2107      cat confdefs.h
2108      echo
2109    fi
2110    test "$ac_signal" != 0 &&
2111      $as_echo "$as_me: caught signal $ac_signal"
2112    $as_echo "$as_me: exit $exit_status"
2113  } >&5
2114  rm -f core *.core core.conftest.* &&
2115    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2116    exit $exit_status
2117' 0
2118for ac_signal in 1 2 13 15; do
2119  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2120done
2121ac_signal=0
2122
2123# confdefs.h avoids OS command line length limits that DEFS can exceed.
2124rm -f -r conftest* confdefs.h
2125
2126$as_echo "/* confdefs.h */" > confdefs.h
2127
2128# Predefined preprocessor variables.
2129
2130cat >>confdefs.h <<_ACEOF
2131#define PACKAGE_NAME "$PACKAGE_NAME"
2132_ACEOF
2133
2134cat >>confdefs.h <<_ACEOF
2135#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2136_ACEOF
2137
2138cat >>confdefs.h <<_ACEOF
2139#define PACKAGE_VERSION "$PACKAGE_VERSION"
2140_ACEOF
2141
2142cat >>confdefs.h <<_ACEOF
2143#define PACKAGE_STRING "$PACKAGE_STRING"
2144_ACEOF
2145
2146cat >>confdefs.h <<_ACEOF
2147#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2148_ACEOF
2149
2150cat >>confdefs.h <<_ACEOF
2151#define PACKAGE_URL "$PACKAGE_URL"
2152_ACEOF
2153
2154
2155# Let the site file select an alternate cache file if it wants to.
2156# Prefer an explicitly selected file to automatically selected ones.
2157ac_site_file1=NONE
2158ac_site_file2=NONE
2159if test -n "$CONFIG_SITE"; then
2160  # We do not want a PATH search for config.site.
2161  case $CONFIG_SITE in #((
2162    -*)  ac_site_file1=./$CONFIG_SITE;;
2163    */*) ac_site_file1=$CONFIG_SITE;;
2164    *)   ac_site_file1=./$CONFIG_SITE;;
2165  esac
2166elif test "x$prefix" != xNONE; then
2167  ac_site_file1=$prefix/share/config.site
2168  ac_site_file2=$prefix/etc/config.site
2169else
2170  ac_site_file1=$ac_default_prefix/share/config.site
2171  ac_site_file2=$ac_default_prefix/etc/config.site
2172fi
2173for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2174do
2175  test "x$ac_site_file" = xNONE && continue
2176  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2177    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2178$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2179    sed 's/^/| /' "$ac_site_file" >&5
2180    . "$ac_site_file" \
2181      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2183as_fn_error $? "failed to load site script $ac_site_file
2184See \`config.log' for more details" "$LINENO" 5; }
2185  fi
2186done
2187
2188if test -r "$cache_file"; then
2189  # Some versions of bash will fail to source /dev/null (special files
2190  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2191  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2192    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2193$as_echo "$as_me: loading cache $cache_file" >&6;}
2194    case $cache_file in
2195      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2196      *)                      . "./$cache_file";;
2197    esac
2198  fi
2199else
2200  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2201$as_echo "$as_me: creating cache $cache_file" >&6;}
2202  >$cache_file
2203fi
2204
2205# Check that the precious variables saved in the cache have kept the same
2206# value.
2207ac_cache_corrupted=false
2208for ac_var in $ac_precious_vars; do
2209  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2210  eval ac_new_set=\$ac_env_${ac_var}_set
2211  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2212  eval ac_new_val=\$ac_env_${ac_var}_value
2213  case $ac_old_set,$ac_new_set in
2214    set,)
2215      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2216$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2217      ac_cache_corrupted=: ;;
2218    ,set)
2219      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2220$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2221      ac_cache_corrupted=: ;;
2222    ,);;
2223    *)
2224      if test "x$ac_old_val" != "x$ac_new_val"; then
2225	# differences in whitespace do not lead to failure.
2226	ac_old_val_w=`echo x $ac_old_val`
2227	ac_new_val_w=`echo x $ac_new_val`
2228	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2229	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2230$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2231	  ac_cache_corrupted=:
2232	else
2233	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2234$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2235	  eval $ac_var=\$ac_old_val
2236	fi
2237	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2238$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2239	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2240$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2241      fi;;
2242  esac
2243  # Pass precious variables to config.status.
2244  if test "$ac_new_set" = set; then
2245    case $ac_new_val in
2246    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2247    *) ac_arg=$ac_var=$ac_new_val ;;
2248    esac
2249    case " $ac_configure_args " in
2250      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2251      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2252    esac
2253  fi
2254done
2255if $ac_cache_corrupted; then
2256  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2258  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2259$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2260  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2261fi
2262## -------------------- ##
2263## Main body of script. ##
2264## -------------------- ##
2265
2266ac_ext=c
2267ac_cpp='$CPP $CPPFLAGS'
2268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2270ac_compiler_gnu=$ac_cv_c_compiler_gnu
2271
2272
2273
2274
2275cat >>confdefs.h <<_ACEOF
2276#define NV_MAJOR_VERSION $(echo $PACKAGE_VERSION | sed -e 's/^\([0-9]*\)\.[0-9]*\.[0-9]*/\1/')
2277_ACEOF
2278
2279
2280cat >>confdefs.h <<_ACEOF
2281#define NV_MINOR_VERSION $(echo $PACKAGE_VERSION | sed -e 's/^[0-9]*\.\([0-9]*\)\.[0-9]*/\1/')
2282_ACEOF
2283
2284
2285cat >>confdefs.h <<_ACEOF
2286#define NV_PATCHLEVEL $(echo $PACKAGE_VERSION | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)/\1/')
2287_ACEOF
2288
2289
2290cat >>confdefs.h <<_ACEOF
2291#define NV_DRIVER_DATE $(echo -n \";git log |head -3|tail -1|tr -d '\n';echo -n \")
2292_ACEOF
2293
2294
2295
2296ac_config_headers="$ac_config_headers config.h"
2297
2298ac_aux_dir=
2299for ac_dir in . "$srcdir"/.; do
2300  if test -f "$ac_dir/install-sh"; then
2301    ac_aux_dir=$ac_dir
2302    ac_install_sh="$ac_aux_dir/install-sh -c"
2303    break
2304  elif test -f "$ac_dir/install.sh"; then
2305    ac_aux_dir=$ac_dir
2306    ac_install_sh="$ac_aux_dir/install.sh -c"
2307    break
2308  elif test -f "$ac_dir/shtool"; then
2309    ac_aux_dir=$ac_dir
2310    ac_install_sh="$ac_aux_dir/shtool install -c"
2311    break
2312  fi
2313done
2314if test -z "$ac_aux_dir"; then
2315  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2316fi
2317
2318# These three variables are undocumented and unsupported,
2319# and are intended to be withdrawn in a future Autoconf release.
2320# They can cause serious problems if a builder's source tree is in a directory
2321# whose full name contains unusual characters.
2322ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2323ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2324ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2325
2326
2327
2328am__api_version='1.15'
2329
2330# Find a good install program.  We prefer a C program (faster),
2331# so one script is as good as another.  But avoid the broken or
2332# incompatible versions:
2333# SysV /etc/install, /usr/sbin/install
2334# SunOS /usr/etc/install
2335# IRIX /sbin/install
2336# AIX /bin/install
2337# AmigaOS /C/install, which installs bootblocks on floppy discs
2338# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2339# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2340# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2341# OS/2's system install, which has a completely different semantic
2342# ./install, which can be erroneously created by make from ./install.sh.
2343# Reject install programs that cannot install multiple files.
2344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2345$as_echo_n "checking for a BSD-compatible install... " >&6; }
2346if test -z "$INSTALL"; then
2347if ${ac_cv_path_install+:} false; then :
2348  $as_echo_n "(cached) " >&6
2349else
2350  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351for as_dir in $PATH
2352do
2353  IFS=$as_save_IFS
2354  test -z "$as_dir" && as_dir=.
2355    # Account for people who put trailing slashes in PATH elements.
2356case $as_dir/ in #((
2357  ./ | .// | /[cC]/* | \
2358  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2359  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2360  /usr/ucb/* ) ;;
2361  *)
2362    # OSF1 and SCO ODT 3.0 have their own names for install.
2363    # Don't use installbsd from OSF since it installs stuff as root
2364    # by default.
2365    for ac_prog in ginstall scoinst install; do
2366      for ac_exec_ext in '' $ac_executable_extensions; do
2367	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2368	  if test $ac_prog = install &&
2369	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2370	    # AIX install.  It has an incompatible calling convention.
2371	    :
2372	  elif test $ac_prog = install &&
2373	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2374	    # program-specific install script used by HP pwplus--don't use.
2375	    :
2376	  else
2377	    rm -rf conftest.one conftest.two conftest.dir
2378	    echo one > conftest.one
2379	    echo two > conftest.two
2380	    mkdir conftest.dir
2381	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2382	      test -s conftest.one && test -s conftest.two &&
2383	      test -s conftest.dir/conftest.one &&
2384	      test -s conftest.dir/conftest.two
2385	    then
2386	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2387	      break 3
2388	    fi
2389	  fi
2390	fi
2391      done
2392    done
2393    ;;
2394esac
2395
2396  done
2397IFS=$as_save_IFS
2398
2399rm -rf conftest.one conftest.two conftest.dir
2400
2401fi
2402  if test "${ac_cv_path_install+set}" = set; then
2403    INSTALL=$ac_cv_path_install
2404  else
2405    # As a last resort, use the slow shell script.  Don't cache a
2406    # value for INSTALL within a source directory, because that will
2407    # break other packages using the cache if that directory is
2408    # removed, or if the value is a relative name.
2409    INSTALL=$ac_install_sh
2410  fi
2411fi
2412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2413$as_echo "$INSTALL" >&6; }
2414
2415# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2416# It thinks the first close brace ends the variable substitution.
2417test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2418
2419test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2420
2421test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2422
2423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2424$as_echo_n "checking whether build environment is sane... " >&6; }
2425# Reject unsafe characters in $srcdir or the absolute working directory
2426# name.  Accept space and tab only in the latter.
2427am_lf='
2428'
2429case `pwd` in
2430  *[\\\"\#\$\&\'\`$am_lf]*)
2431    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2432esac
2433case $srcdir in
2434  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2435    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2436esac
2437
2438# Do 'set' in a subshell so we don't clobber the current shell's
2439# arguments.  Must try -L first in case configure is actually a
2440# symlink; some systems play weird games with the mod time of symlinks
2441# (eg FreeBSD returns the mod time of the symlink's containing
2442# directory).
2443if (
2444   am_has_slept=no
2445   for am_try in 1 2; do
2446     echo "timestamp, slept: $am_has_slept" > conftest.file
2447     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2448     if test "$*" = "X"; then
2449	# -L didn't work.
2450	set X `ls -t "$srcdir/configure" conftest.file`
2451     fi
2452     if test "$*" != "X $srcdir/configure conftest.file" \
2453	&& test "$*" != "X conftest.file $srcdir/configure"; then
2454
2455	# If neither matched, then we have a broken ls.  This can happen
2456	# if, for instance, CONFIG_SHELL is bash and it inherits a
2457	# broken ls alias from the environment.  This has actually
2458	# happened.  Such a system could not be considered "sane".
2459	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2460  alias in your environment" "$LINENO" 5
2461     fi
2462     if test "$2" = conftest.file || test $am_try -eq 2; then
2463       break
2464     fi
2465     # Just in case.
2466     sleep 1
2467     am_has_slept=yes
2468   done
2469   test "$2" = conftest.file
2470   )
2471then
2472   # Ok.
2473   :
2474else
2475   as_fn_error $? "newly created file is older than distributed files!
2476Check your system clock" "$LINENO" 5
2477fi
2478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2479$as_echo "yes" >&6; }
2480# If we didn't sleep, we still need to ensure time stamps of config.status and
2481# generated files are strictly newer.
2482am_sleep_pid=
2483if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2484  ( sleep 1 ) &
2485  am_sleep_pid=$!
2486fi
2487
2488rm -f conftest.file
2489
2490test "$program_prefix" != NONE &&
2491  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2492# Use a double $ so make ignores it.
2493test "$program_suffix" != NONE &&
2494  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2495# Double any \ or $.
2496# By default was `s,x,x', remove it if useless.
2497ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2498program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2499
2500# Expand $ac_aux_dir to an absolute path.
2501am_aux_dir=`cd "$ac_aux_dir" && pwd`
2502
2503if test x"${MISSING+set}" != xset; then
2504  case $am_aux_dir in
2505  *\ * | *\	*)
2506    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2507  *)
2508    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2509  esac
2510fi
2511# Use eval to expand $SHELL
2512if eval "$MISSING --is-lightweight"; then
2513  am_missing_run="$MISSING "
2514else
2515  am_missing_run=
2516  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2517$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2518fi
2519
2520if test x"${install_sh+set}" != xset; then
2521  case $am_aux_dir in
2522  *\ * | *\	*)
2523    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2524  *)
2525    install_sh="\${SHELL} $am_aux_dir/install-sh"
2526  esac
2527fi
2528
2529# Installed binaries are usually stripped using 'strip' when the user
2530# run "make install-strip".  However 'strip' might not be the right
2531# tool to use in cross-compilation environments, therefore Automake
2532# will honor the 'STRIP' environment variable to overrule this program.
2533if test "$cross_compiling" != no; then
2534  if test -n "$ac_tool_prefix"; then
2535  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2536set dummy ${ac_tool_prefix}strip; ac_word=$2
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2538$as_echo_n "checking for $ac_word... " >&6; }
2539if ${ac_cv_prog_STRIP+:} false; then :
2540  $as_echo_n "(cached) " >&6
2541else
2542  if test -n "$STRIP"; then
2543  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2544else
2545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546for as_dir in $PATH
2547do
2548  IFS=$as_save_IFS
2549  test -z "$as_dir" && as_dir=.
2550    for ac_exec_ext in '' $ac_executable_extensions; do
2551  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2552    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2554    break 2
2555  fi
2556done
2557  done
2558IFS=$as_save_IFS
2559
2560fi
2561fi
2562STRIP=$ac_cv_prog_STRIP
2563if test -n "$STRIP"; then
2564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2565$as_echo "$STRIP" >&6; }
2566else
2567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2568$as_echo "no" >&6; }
2569fi
2570
2571
2572fi
2573if test -z "$ac_cv_prog_STRIP"; then
2574  ac_ct_STRIP=$STRIP
2575  # Extract the first word of "strip", so it can be a program name with args.
2576set dummy strip; ac_word=$2
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2578$as_echo_n "checking for $ac_word... " >&6; }
2579if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2580  $as_echo_n "(cached) " >&6
2581else
2582  if test -n "$ac_ct_STRIP"; then
2583  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2584else
2585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586for as_dir in $PATH
2587do
2588  IFS=$as_save_IFS
2589  test -z "$as_dir" && as_dir=.
2590    for ac_exec_ext in '' $ac_executable_extensions; do
2591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2592    ac_cv_prog_ac_ct_STRIP="strip"
2593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2594    break 2
2595  fi
2596done
2597  done
2598IFS=$as_save_IFS
2599
2600fi
2601fi
2602ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2603if test -n "$ac_ct_STRIP"; then
2604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2605$as_echo "$ac_ct_STRIP" >&6; }
2606else
2607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2608$as_echo "no" >&6; }
2609fi
2610
2611  if test "x$ac_ct_STRIP" = x; then
2612    STRIP=":"
2613  else
2614    case $cross_compiling:$ac_tool_warned in
2615yes:)
2616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2618ac_tool_warned=yes ;;
2619esac
2620    STRIP=$ac_ct_STRIP
2621  fi
2622else
2623  STRIP="$ac_cv_prog_STRIP"
2624fi
2625
2626fi
2627INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2628
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2630$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2631if test -z "$MKDIR_P"; then
2632  if ${ac_cv_path_mkdir+:} false; then :
2633  $as_echo_n "(cached) " >&6
2634else
2635  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2637do
2638  IFS=$as_save_IFS
2639  test -z "$as_dir" && as_dir=.
2640    for ac_prog in mkdir gmkdir; do
2641	 for ac_exec_ext in '' $ac_executable_extensions; do
2642	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2643	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2644	     'mkdir (GNU coreutils) '* | \
2645	     'mkdir (coreutils) '* | \
2646	     'mkdir (fileutils) '4.1*)
2647	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2648	       break 3;;
2649	   esac
2650	 done
2651       done
2652  done
2653IFS=$as_save_IFS
2654
2655fi
2656
2657  test -d ./--version && rmdir ./--version
2658  if test "${ac_cv_path_mkdir+set}" = set; then
2659    MKDIR_P="$ac_cv_path_mkdir -p"
2660  else
2661    # As a last resort, use the slow shell script.  Don't cache a
2662    # value for MKDIR_P within a source directory, because that will
2663    # break other packages using the cache if that directory is
2664    # removed, or if the value is a relative name.
2665    MKDIR_P="$ac_install_sh -d"
2666  fi
2667fi
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2669$as_echo "$MKDIR_P" >&6; }
2670
2671for ac_prog in gawk mawk nawk awk
2672do
2673  # Extract the first word of "$ac_prog", so it can be a program name with args.
2674set dummy $ac_prog; ac_word=$2
2675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2676$as_echo_n "checking for $ac_word... " >&6; }
2677if ${ac_cv_prog_AWK+:} false; then :
2678  $as_echo_n "(cached) " >&6
2679else
2680  if test -n "$AWK"; then
2681  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2682else
2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684for as_dir in $PATH
2685do
2686  IFS=$as_save_IFS
2687  test -z "$as_dir" && as_dir=.
2688    for ac_exec_ext in '' $ac_executable_extensions; do
2689  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690    ac_cv_prog_AWK="$ac_prog"
2691    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2692    break 2
2693  fi
2694done
2695  done
2696IFS=$as_save_IFS
2697
2698fi
2699fi
2700AWK=$ac_cv_prog_AWK
2701if test -n "$AWK"; then
2702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2703$as_echo "$AWK" >&6; }
2704else
2705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706$as_echo "no" >&6; }
2707fi
2708
2709
2710  test -n "$AWK" && break
2711done
2712
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2714$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2715set x ${MAKE-make}
2716ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2717if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2718  $as_echo_n "(cached) " >&6
2719else
2720  cat >conftest.make <<\_ACEOF
2721SHELL = /bin/sh
2722all:
2723	@echo '@@@%%%=$(MAKE)=@@@%%%'
2724_ACEOF
2725# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2726case `${MAKE-make} -f conftest.make 2>/dev/null` in
2727  *@@@%%%=?*=@@@%%%*)
2728    eval ac_cv_prog_make_${ac_make}_set=yes;;
2729  *)
2730    eval ac_cv_prog_make_${ac_make}_set=no;;
2731esac
2732rm -f conftest.make
2733fi
2734if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2736$as_echo "yes" >&6; }
2737  SET_MAKE=
2738else
2739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740$as_echo "no" >&6; }
2741  SET_MAKE="MAKE=${MAKE-make}"
2742fi
2743
2744rm -rf .tst 2>/dev/null
2745mkdir .tst 2>/dev/null
2746if test -d .tst; then
2747  am__leading_dot=.
2748else
2749  am__leading_dot=_
2750fi
2751rmdir .tst 2>/dev/null
2752
2753# Check whether --enable-silent-rules was given.
2754if test "${enable_silent_rules+set}" = set; then :
2755  enableval=$enable_silent_rules;
2756fi
2757
2758case $enable_silent_rules in # (((
2759  yes) AM_DEFAULT_VERBOSITY=0;;
2760   no) AM_DEFAULT_VERBOSITY=1;;
2761    *) AM_DEFAULT_VERBOSITY=1;;
2762esac
2763am_make=${MAKE-make}
2764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2765$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2766if ${am_cv_make_support_nested_variables+:} false; then :
2767  $as_echo_n "(cached) " >&6
2768else
2769  if $as_echo 'TRUE=$(BAR$(V))
2770BAR0=false
2771BAR1=true
2772V=1
2773am__doit:
2774	@$(TRUE)
2775.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2776  am_cv_make_support_nested_variables=yes
2777else
2778  am_cv_make_support_nested_variables=no
2779fi
2780fi
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2782$as_echo "$am_cv_make_support_nested_variables" >&6; }
2783if test $am_cv_make_support_nested_variables = yes; then
2784    AM_V='$(V)'
2785  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2786else
2787  AM_V=$AM_DEFAULT_VERBOSITY
2788  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2789fi
2790AM_BACKSLASH='\'
2791
2792if test "`cd $srcdir && pwd`" != "`pwd`"; then
2793  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2794  # is not polluted with repeated "-I."
2795  am__isrc=' -I$(srcdir)'
2796  # test to see if srcdir already configured
2797  if test -f $srcdir/config.status; then
2798    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2799  fi
2800fi
2801
2802# test whether we have cygpath
2803if test -z "$CYGPATH_W"; then
2804  if (cygpath --version) >/dev/null 2>/dev/null; then
2805    CYGPATH_W='cygpath -w'
2806  else
2807    CYGPATH_W=echo
2808  fi
2809fi
2810
2811
2812# Define the identity of the package.
2813 PACKAGE='xf86-video-nouveau'
2814 VERSION='1.0.13'
2815
2816
2817cat >>confdefs.h <<_ACEOF
2818#define PACKAGE "$PACKAGE"
2819_ACEOF
2820
2821
2822cat >>confdefs.h <<_ACEOF
2823#define VERSION "$VERSION"
2824_ACEOF
2825
2826# Some tools Automake needs.
2827
2828ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2829
2830
2831AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2832
2833
2834AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2835
2836
2837AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2838
2839
2840MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2841
2842# For better backward compatibility.  To be removed once Automake 1.9.x
2843# dies out for good.  For more background, see:
2844# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2845# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2846mkdir_p='$(MKDIR_P)'
2847
2848# We need awk for the "check" target (and possibly the TAP driver).  The
2849# system "awk" is bad on some platforms.
2850# Always define AMTAR for backward compatibility.  Yes, it's still used
2851# in the wild :-(  We should find a proper way to deprecate it ...
2852AMTAR='$${TAR-tar}'
2853
2854
2855# We'll loop over all known methods to create a tar archive until one works.
2856_am_tools='gnutar  pax cpio none'
2857
2858am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2859
2860
2861
2862
2863
2864
2865# POSIX will say in a future version that running "rm -f" with no argument
2866# is OK; and we want to be able to make that assumption in our Makefile
2867# recipes.  So use an aggressive probe to check that the usage we want is
2868# actually supported "in the wild" to an acceptable degree.
2869# See automake bug#10828.
2870# To make any issue more visible, cause the running configure to be aborted
2871# by default if the 'rm' program in use doesn't match our expectations; the
2872# user can still override this though.
2873if rm -f && rm -fr && rm -rf; then : OK; else
2874  cat >&2 <<'END'
2875Oops!
2876
2877Your 'rm' program seems unable to run without file operands specified
2878on the command line, even when the '-f' option is present.  This is contrary
2879to the behaviour of most rm programs out there, and not conforming with
2880the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2881
2882Please tell bug-automake@gnu.org about your system, including the value
2883of your $PATH and any error possibly output before this message.  This
2884can help us improve future automake versions.
2885
2886END
2887  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2888    echo 'Configuration will proceed anyway, since you have set the' >&2
2889    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2890    echo >&2
2891  else
2892    cat >&2 <<'END'
2893Aborting the configuration process, to ensure you take notice of the issue.
2894
2895You can download and install GNU coreutils to get an 'rm' implementation
2896that behaves properly: <http://www.gnu.org/software/coreutils/>.
2897
2898If you want to complete the configuration process using your problematic
2899'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2900to "yes", and re-run configure.
2901
2902END
2903    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2904  fi
2905fi
2906
2907
2908# Check whether --enable-silent-rules was given.
2909if test "${enable_silent_rules+set}" = set; then :
2910  enableval=$enable_silent_rules;
2911fi
2912
2913case $enable_silent_rules in # (((
2914  yes) AM_DEFAULT_VERBOSITY=0;;
2915   no) AM_DEFAULT_VERBOSITY=1;;
2916    *) AM_DEFAULT_VERBOSITY=0;;
2917esac
2918am_make=${MAKE-make}
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2920$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2921if ${am_cv_make_support_nested_variables+:} false; then :
2922  $as_echo_n "(cached) " >&6
2923else
2924  if $as_echo 'TRUE=$(BAR$(V))
2925BAR0=false
2926BAR1=true
2927V=1
2928am__doit:
2929	@$(TRUE)
2930.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2931  am_cv_make_support_nested_variables=yes
2932else
2933  am_cv_make_support_nested_variables=no
2934fi
2935fi
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2937$as_echo "$am_cv_make_support_nested_variables" >&6; }
2938if test $am_cv_make_support_nested_variables = yes; then
2939    AM_V='$(V)'
2940  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2941else
2942  AM_V=$AM_DEFAULT_VERBOSITY
2943  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2944fi
2945AM_BACKSLASH='\'
2946
2947
2948# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961DEPDIR="${am__leading_dot}deps"
2962
2963ac_config_commands="$ac_config_commands depfiles"
2964
2965
2966am_make=${MAKE-make}
2967cat > confinc << 'END'
2968am__doit:
2969	@echo this is the am__doit target
2970.PHONY: am__doit
2971END
2972# If we don't find an include directive, just comment out the code.
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2974$as_echo_n "checking for style of include used by $am_make... " >&6; }
2975am__include="#"
2976am__quote=
2977_am_result=none
2978# First try GNU make style include.
2979echo "include confinc" > confmf
2980# Ignore all kinds of additional output from 'make'.
2981case `$am_make -s -f confmf 2> /dev/null` in #(
2982*the\ am__doit\ target*)
2983  am__include=include
2984  am__quote=
2985  _am_result=GNU
2986  ;;
2987esac
2988# Now try BSD make style include.
2989if test "$am__include" = "#"; then
2990   echo '.include "confinc"' > confmf
2991   case `$am_make -s -f confmf 2> /dev/null` in #(
2992   *the\ am__doit\ target*)
2993     am__include=.include
2994     am__quote="\""
2995     _am_result=BSD
2996     ;;
2997   esac
2998fi
2999
3000
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3002$as_echo "$_am_result" >&6; }
3003rm -f confinc confmf
3004
3005# Check whether --enable-dependency-tracking was given.
3006if test "${enable_dependency_tracking+set}" = set; then :
3007  enableval=$enable_dependency_tracking;
3008fi
3009
3010if test "x$enable_dependency_tracking" != xno; then
3011  am_depcomp="$ac_aux_dir/depcomp"
3012  AMDEPBACKSLASH='\'
3013  am__nodep='_no'
3014fi
3015 if test "x$enable_dependency_tracking" != xno; then
3016  AMDEP_TRUE=
3017  AMDEP_FALSE='#'
3018else
3019  AMDEP_TRUE='#'
3020  AMDEP_FALSE=
3021fi
3022
3023
3024ac_ext=c
3025ac_cpp='$CPP $CPPFLAGS'
3026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028ac_compiler_gnu=$ac_cv_c_compiler_gnu
3029if test -n "$ac_tool_prefix"; then
3030  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3031set dummy ${ac_tool_prefix}gcc; ac_word=$2
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033$as_echo_n "checking for $ac_word... " >&6; }
3034if ${ac_cv_prog_CC+:} false; then :
3035  $as_echo_n "(cached) " >&6
3036else
3037  if test -n "$CC"; then
3038  ac_cv_prog_CC="$CC" # Let the user override the test.
3039else
3040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041for as_dir in $PATH
3042do
3043  IFS=$as_save_IFS
3044  test -z "$as_dir" && as_dir=.
3045    for ac_exec_ext in '' $ac_executable_extensions; do
3046  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049    break 2
3050  fi
3051done
3052  done
3053IFS=$as_save_IFS
3054
3055fi
3056fi
3057CC=$ac_cv_prog_CC
3058if test -n "$CC"; then
3059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3060$as_echo "$CC" >&6; }
3061else
3062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063$as_echo "no" >&6; }
3064fi
3065
3066
3067fi
3068if test -z "$ac_cv_prog_CC"; then
3069  ac_ct_CC=$CC
3070  # Extract the first word of "gcc", so it can be a program name with args.
3071set dummy gcc; ac_word=$2
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073$as_echo_n "checking for $ac_word... " >&6; }
3074if ${ac_cv_prog_ac_ct_CC+:} false; then :
3075  $as_echo_n "(cached) " >&6
3076else
3077  if test -n "$ac_ct_CC"; then
3078  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3079else
3080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081for as_dir in $PATH
3082do
3083  IFS=$as_save_IFS
3084  test -z "$as_dir" && as_dir=.
3085    for ac_exec_ext in '' $ac_executable_extensions; do
3086  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3087    ac_cv_prog_ac_ct_CC="gcc"
3088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089    break 2
3090  fi
3091done
3092  done
3093IFS=$as_save_IFS
3094
3095fi
3096fi
3097ac_ct_CC=$ac_cv_prog_ac_ct_CC
3098if test -n "$ac_ct_CC"; then
3099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3100$as_echo "$ac_ct_CC" >&6; }
3101else
3102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103$as_echo "no" >&6; }
3104fi
3105
3106  if test "x$ac_ct_CC" = x; then
3107    CC=""
3108  else
3109    case $cross_compiling:$ac_tool_warned in
3110yes:)
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3113ac_tool_warned=yes ;;
3114esac
3115    CC=$ac_ct_CC
3116  fi
3117else
3118  CC="$ac_cv_prog_CC"
3119fi
3120
3121if test -z "$CC"; then
3122          if test -n "$ac_tool_prefix"; then
3123    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3124set dummy ${ac_tool_prefix}cc; ac_word=$2
3125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126$as_echo_n "checking for $ac_word... " >&6; }
3127if ${ac_cv_prog_CC+:} false; then :
3128  $as_echo_n "(cached) " >&6
3129else
3130  if test -n "$CC"; then
3131  ac_cv_prog_CC="$CC" # Let the user override the test.
3132else
3133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134for as_dir in $PATH
3135do
3136  IFS=$as_save_IFS
3137  test -z "$as_dir" && as_dir=.
3138    for ac_exec_ext in '' $ac_executable_extensions; do
3139  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140    ac_cv_prog_CC="${ac_tool_prefix}cc"
3141    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142    break 2
3143  fi
3144done
3145  done
3146IFS=$as_save_IFS
3147
3148fi
3149fi
3150CC=$ac_cv_prog_CC
3151if test -n "$CC"; then
3152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3153$as_echo "$CC" >&6; }
3154else
3155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156$as_echo "no" >&6; }
3157fi
3158
3159
3160  fi
3161fi
3162if test -z "$CC"; then
3163  # Extract the first word of "cc", so it can be a program name with args.
3164set dummy cc; ac_word=$2
3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166$as_echo_n "checking for $ac_word... " >&6; }
3167if ${ac_cv_prog_CC+:} false; then :
3168  $as_echo_n "(cached) " >&6
3169else
3170  if test -n "$CC"; then
3171  ac_cv_prog_CC="$CC" # Let the user override the test.
3172else
3173  ac_prog_rejected=no
3174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175for as_dir in $PATH
3176do
3177  IFS=$as_save_IFS
3178  test -z "$as_dir" && as_dir=.
3179    for ac_exec_ext in '' $ac_executable_extensions; do
3180  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3182       ac_prog_rejected=yes
3183       continue
3184     fi
3185    ac_cv_prog_CC="cc"
3186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187    break 2
3188  fi
3189done
3190  done
3191IFS=$as_save_IFS
3192
3193if test $ac_prog_rejected = yes; then
3194  # We found a bogon in the path, so make sure we never use it.
3195  set dummy $ac_cv_prog_CC
3196  shift
3197  if test $# != 0; then
3198    # We chose a different compiler from the bogus one.
3199    # However, it has the same basename, so the bogon will be chosen
3200    # first if we set CC to just the basename; use the full file name.
3201    shift
3202    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3203  fi
3204fi
3205fi
3206fi
3207CC=$ac_cv_prog_CC
3208if test -n "$CC"; then
3209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3210$as_echo "$CC" >&6; }
3211else
3212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213$as_echo "no" >&6; }
3214fi
3215
3216
3217fi
3218if test -z "$CC"; then
3219  if test -n "$ac_tool_prefix"; then
3220  for ac_prog in cl.exe
3221  do
3222    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3223set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225$as_echo_n "checking for $ac_word... " >&6; }
3226if ${ac_cv_prog_CC+:} false; then :
3227  $as_echo_n "(cached) " >&6
3228else
3229  if test -n "$CC"; then
3230  ac_cv_prog_CC="$CC" # Let the user override the test.
3231else
3232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233for as_dir in $PATH
3234do
3235  IFS=$as_save_IFS
3236  test -z "$as_dir" && as_dir=.
3237    for ac_exec_ext in '' $ac_executable_extensions; do
3238  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3239    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241    break 2
3242  fi
3243done
3244  done
3245IFS=$as_save_IFS
3246
3247fi
3248fi
3249CC=$ac_cv_prog_CC
3250if test -n "$CC"; then
3251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3252$as_echo "$CC" >&6; }
3253else
3254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255$as_echo "no" >&6; }
3256fi
3257
3258
3259    test -n "$CC" && break
3260  done
3261fi
3262if test -z "$CC"; then
3263  ac_ct_CC=$CC
3264  for ac_prog in cl.exe
3265do
3266  # Extract the first word of "$ac_prog", so it can be a program name with args.
3267set dummy $ac_prog; ac_word=$2
3268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269$as_echo_n "checking for $ac_word... " >&6; }
3270if ${ac_cv_prog_ac_ct_CC+:} false; then :
3271  $as_echo_n "(cached) " >&6
3272else
3273  if test -n "$ac_ct_CC"; then
3274  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3275else
3276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277for as_dir in $PATH
3278do
3279  IFS=$as_save_IFS
3280  test -z "$as_dir" && as_dir=.
3281    for ac_exec_ext in '' $ac_executable_extensions; do
3282  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283    ac_cv_prog_ac_ct_CC="$ac_prog"
3284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285    break 2
3286  fi
3287done
3288  done
3289IFS=$as_save_IFS
3290
3291fi
3292fi
3293ac_ct_CC=$ac_cv_prog_ac_ct_CC
3294if test -n "$ac_ct_CC"; then
3295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3296$as_echo "$ac_ct_CC" >&6; }
3297else
3298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299$as_echo "no" >&6; }
3300fi
3301
3302
3303  test -n "$ac_ct_CC" && break
3304done
3305
3306  if test "x$ac_ct_CC" = x; then
3307    CC=""
3308  else
3309    case $cross_compiling:$ac_tool_warned in
3310yes:)
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3312$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3313ac_tool_warned=yes ;;
3314esac
3315    CC=$ac_ct_CC
3316  fi
3317fi
3318
3319fi
3320
3321
3322test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3323$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3324as_fn_error $? "no acceptable C compiler found in \$PATH
3325See \`config.log' for more details" "$LINENO" 5; }
3326
3327# Provide some information about the compiler.
3328$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3329set X $ac_compile
3330ac_compiler=$2
3331for ac_option in --version -v -V -qversion; do
3332  { { ac_try="$ac_compiler $ac_option >&5"
3333case "(($ac_try" in
3334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335  *) ac_try_echo=$ac_try;;
3336esac
3337eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338$as_echo "$ac_try_echo"; } >&5
3339  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3340  ac_status=$?
3341  if test -s conftest.err; then
3342    sed '10a\
3343... rest of stderr output deleted ...
3344         10q' conftest.err >conftest.er1
3345    cat conftest.er1 >&5
3346  fi
3347  rm -f conftest.er1 conftest.err
3348  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3349  test $ac_status = 0; }
3350done
3351
3352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353/* end confdefs.h.  */
3354
3355int
3356main ()
3357{
3358
3359  ;
3360  return 0;
3361}
3362_ACEOF
3363ac_clean_files_save=$ac_clean_files
3364ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3365# Try to create an executable without -o first, disregard a.out.
3366# It will help us diagnose broken compilers, and finding out an intuition
3367# of exeext.
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3369$as_echo_n "checking whether the C compiler works... " >&6; }
3370ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3371
3372# The possible output files:
3373ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3374
3375ac_rmfiles=
3376for ac_file in $ac_files
3377do
3378  case $ac_file in
3379    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3380    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3381  esac
3382done
3383rm -f $ac_rmfiles
3384
3385if { { ac_try="$ac_link_default"
3386case "(($ac_try" in
3387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388  *) ac_try_echo=$ac_try;;
3389esac
3390eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391$as_echo "$ac_try_echo"; } >&5
3392  (eval "$ac_link_default") 2>&5
3393  ac_status=$?
3394  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395  test $ac_status = 0; }; then :
3396  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3397# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3398# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3399# so that the user can short-circuit this test for compilers unknown to
3400# Autoconf.
3401for ac_file in $ac_files ''
3402do
3403  test -f "$ac_file" || continue
3404  case $ac_file in
3405    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3406	;;
3407    [ab].out )
3408	# We found the default executable, but exeext='' is most
3409	# certainly right.
3410	break;;
3411    *.* )
3412	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3413	then :; else
3414	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3415	fi
3416	# We set ac_cv_exeext here because the later test for it is not
3417	# safe: cross compilers may not add the suffix if given an `-o'
3418	# argument, so we may need to know it at that point already.
3419	# Even if this section looks crufty: it has the advantage of
3420	# actually working.
3421	break;;
3422    * )
3423	break;;
3424  esac
3425done
3426test "$ac_cv_exeext" = no && ac_cv_exeext=
3427
3428else
3429  ac_file=''
3430fi
3431if test -z "$ac_file"; then :
3432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433$as_echo "no" >&6; }
3434$as_echo "$as_me: failed program was:" >&5
3435sed 's/^/| /' conftest.$ac_ext >&5
3436
3437{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3439as_fn_error 77 "C compiler cannot create executables
3440See \`config.log' for more details" "$LINENO" 5; }
3441else
3442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3443$as_echo "yes" >&6; }
3444fi
3445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3446$as_echo_n "checking for C compiler default output file name... " >&6; }
3447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3448$as_echo "$ac_file" >&6; }
3449ac_exeext=$ac_cv_exeext
3450
3451rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3452ac_clean_files=$ac_clean_files_save
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3454$as_echo_n "checking for suffix of executables... " >&6; }
3455if { { ac_try="$ac_link"
3456case "(($ac_try" in
3457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458  *) ac_try_echo=$ac_try;;
3459esac
3460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461$as_echo "$ac_try_echo"; } >&5
3462  (eval "$ac_link") 2>&5
3463  ac_status=$?
3464  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465  test $ac_status = 0; }; then :
3466  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3467# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3468# work properly (i.e., refer to `conftest.exe'), while it won't with
3469# `rm'.
3470for ac_file in conftest.exe conftest conftest.*; do
3471  test -f "$ac_file" || continue
3472  case $ac_file in
3473    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3474    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3475	  break;;
3476    * ) break;;
3477  esac
3478done
3479else
3480  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3482as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3483See \`config.log' for more details" "$LINENO" 5; }
3484fi
3485rm -f conftest conftest$ac_cv_exeext
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3487$as_echo "$ac_cv_exeext" >&6; }
3488
3489rm -f conftest.$ac_ext
3490EXEEXT=$ac_cv_exeext
3491ac_exeext=$EXEEXT
3492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493/* end confdefs.h.  */
3494#include <stdio.h>
3495int
3496main ()
3497{
3498FILE *f = fopen ("conftest.out", "w");
3499 return ferror (f) || fclose (f) != 0;
3500
3501  ;
3502  return 0;
3503}
3504_ACEOF
3505ac_clean_files="$ac_clean_files conftest.out"
3506# Check that the compiler produces executables we can run.  If not, either
3507# the compiler is broken, or we cross compile.
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3509$as_echo_n "checking whether we are cross compiling... " >&6; }
3510if test "$cross_compiling" != yes; then
3511  { { ac_try="$ac_link"
3512case "(($ac_try" in
3513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514  *) ac_try_echo=$ac_try;;
3515esac
3516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3517$as_echo "$ac_try_echo"; } >&5
3518  (eval "$ac_link") 2>&5
3519  ac_status=$?
3520  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3521  test $ac_status = 0; }
3522  if { ac_try='./conftest$ac_cv_exeext'
3523  { { case "(($ac_try" in
3524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525  *) ac_try_echo=$ac_try;;
3526esac
3527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3528$as_echo "$ac_try_echo"; } >&5
3529  (eval "$ac_try") 2>&5
3530  ac_status=$?
3531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3532  test $ac_status = 0; }; }; then
3533    cross_compiling=no
3534  else
3535    if test "$cross_compiling" = maybe; then
3536	cross_compiling=yes
3537    else
3538	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3540as_fn_error $? "cannot run C compiled programs.
3541If you meant to cross compile, use \`--host'.
3542See \`config.log' for more details" "$LINENO" 5; }
3543    fi
3544  fi
3545fi
3546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3547$as_echo "$cross_compiling" >&6; }
3548
3549rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3550ac_clean_files=$ac_clean_files_save
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3552$as_echo_n "checking for suffix of object files... " >&6; }
3553if ${ac_cv_objext+:} false; then :
3554  $as_echo_n "(cached) " >&6
3555else
3556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557/* end confdefs.h.  */
3558
3559int
3560main ()
3561{
3562
3563  ;
3564  return 0;
3565}
3566_ACEOF
3567rm -f conftest.o conftest.obj
3568if { { ac_try="$ac_compile"
3569case "(($ac_try" in
3570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571  *) ac_try_echo=$ac_try;;
3572esac
3573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574$as_echo "$ac_try_echo"; } >&5
3575  (eval "$ac_compile") 2>&5
3576  ac_status=$?
3577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578  test $ac_status = 0; }; then :
3579  for ac_file in conftest.o conftest.obj conftest.*; do
3580  test -f "$ac_file" || continue;
3581  case $ac_file in
3582    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3583    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3584       break;;
3585  esac
3586done
3587else
3588  $as_echo "$as_me: failed program was:" >&5
3589sed 's/^/| /' conftest.$ac_ext >&5
3590
3591{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593as_fn_error $? "cannot compute suffix of object files: cannot compile
3594See \`config.log' for more details" "$LINENO" 5; }
3595fi
3596rm -f conftest.$ac_cv_objext conftest.$ac_ext
3597fi
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3599$as_echo "$ac_cv_objext" >&6; }
3600OBJEXT=$ac_cv_objext
3601ac_objext=$OBJEXT
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3603$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3604if ${ac_cv_c_compiler_gnu+:} false; then :
3605  $as_echo_n "(cached) " >&6
3606else
3607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608/* end confdefs.h.  */
3609
3610int
3611main ()
3612{
3613#ifndef __GNUC__
3614       choke me
3615#endif
3616
3617  ;
3618  return 0;
3619}
3620_ACEOF
3621if ac_fn_c_try_compile "$LINENO"; then :
3622  ac_compiler_gnu=yes
3623else
3624  ac_compiler_gnu=no
3625fi
3626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627ac_cv_c_compiler_gnu=$ac_compiler_gnu
3628
3629fi
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3631$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3632if test $ac_compiler_gnu = yes; then
3633  GCC=yes
3634else
3635  GCC=
3636fi
3637ac_test_CFLAGS=${CFLAGS+set}
3638ac_save_CFLAGS=$CFLAGS
3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3640$as_echo_n "checking whether $CC accepts -g... " >&6; }
3641if ${ac_cv_prog_cc_g+:} false; then :
3642  $as_echo_n "(cached) " >&6
3643else
3644  ac_save_c_werror_flag=$ac_c_werror_flag
3645   ac_c_werror_flag=yes
3646   ac_cv_prog_cc_g=no
3647   CFLAGS="-g"
3648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649/* end confdefs.h.  */
3650
3651int
3652main ()
3653{
3654
3655  ;
3656  return 0;
3657}
3658_ACEOF
3659if ac_fn_c_try_compile "$LINENO"; then :
3660  ac_cv_prog_cc_g=yes
3661else
3662  CFLAGS=""
3663      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664/* end confdefs.h.  */
3665
3666int
3667main ()
3668{
3669
3670  ;
3671  return 0;
3672}
3673_ACEOF
3674if ac_fn_c_try_compile "$LINENO"; then :
3675
3676else
3677  ac_c_werror_flag=$ac_save_c_werror_flag
3678	 CFLAGS="-g"
3679	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680/* end confdefs.h.  */
3681
3682int
3683main ()
3684{
3685
3686  ;
3687  return 0;
3688}
3689_ACEOF
3690if ac_fn_c_try_compile "$LINENO"; then :
3691  ac_cv_prog_cc_g=yes
3692fi
3693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694fi
3695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696fi
3697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698   ac_c_werror_flag=$ac_save_c_werror_flag
3699fi
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3701$as_echo "$ac_cv_prog_cc_g" >&6; }
3702if test "$ac_test_CFLAGS" = set; then
3703  CFLAGS=$ac_save_CFLAGS
3704elif test $ac_cv_prog_cc_g = yes; then
3705  if test "$GCC" = yes; then
3706    CFLAGS="-g -O2"
3707  else
3708    CFLAGS="-g"
3709  fi
3710else
3711  if test "$GCC" = yes; then
3712    CFLAGS="-O2"
3713  else
3714    CFLAGS=
3715  fi
3716fi
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3718$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3719if ${ac_cv_prog_cc_c89+:} false; then :
3720  $as_echo_n "(cached) " >&6
3721else
3722  ac_cv_prog_cc_c89=no
3723ac_save_CC=$CC
3724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725/* end confdefs.h.  */
3726#include <stdarg.h>
3727#include <stdio.h>
3728struct stat;
3729/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3730struct buf { int x; };
3731FILE * (*rcsopen) (struct buf *, struct stat *, int);
3732static char *e (p, i)
3733     char **p;
3734     int i;
3735{
3736  return p[i];
3737}
3738static char *f (char * (*g) (char **, int), char **p, ...)
3739{
3740  char *s;
3741  va_list v;
3742  va_start (v,p);
3743  s = g (p, va_arg (v,int));
3744  va_end (v);
3745  return s;
3746}
3747
3748/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3749   function prototypes and stuff, but not '\xHH' hex character constants.
3750   These don't provoke an error unfortunately, instead are silently treated
3751   as 'x'.  The following induces an error, until -std is added to get
3752   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3753   array size at least.  It's necessary to write '\x00'==0 to get something
3754   that's true only with -std.  */
3755int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3756
3757/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3758   inside strings and character constants.  */
3759#define FOO(x) 'x'
3760int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3761
3762int test (int i, double x);
3763struct s1 {int (*f) (int a);};
3764struct s2 {int (*f) (double a);};
3765int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3766int argc;
3767char **argv;
3768int
3769main ()
3770{
3771return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3772  ;
3773  return 0;
3774}
3775_ACEOF
3776for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3777	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3778do
3779  CC="$ac_save_CC $ac_arg"
3780  if ac_fn_c_try_compile "$LINENO"; then :
3781  ac_cv_prog_cc_c89=$ac_arg
3782fi
3783rm -f core conftest.err conftest.$ac_objext
3784  test "x$ac_cv_prog_cc_c89" != "xno" && break
3785done
3786rm -f conftest.$ac_ext
3787CC=$ac_save_CC
3788
3789fi
3790# AC_CACHE_VAL
3791case "x$ac_cv_prog_cc_c89" in
3792  x)
3793    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3794$as_echo "none needed" >&6; } ;;
3795  xno)
3796    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3797$as_echo "unsupported" >&6; } ;;
3798  *)
3799    CC="$CC $ac_cv_prog_cc_c89"
3800    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3801$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3802esac
3803if test "x$ac_cv_prog_cc_c89" != xno; then :
3804
3805fi
3806
3807ac_ext=c
3808ac_cpp='$CPP $CPPFLAGS'
3809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811ac_compiler_gnu=$ac_cv_c_compiler_gnu
3812
3813ac_ext=c
3814ac_cpp='$CPP $CPPFLAGS'
3815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817ac_compiler_gnu=$ac_cv_c_compiler_gnu
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3819$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3820if ${am_cv_prog_cc_c_o+:} false; then :
3821  $as_echo_n "(cached) " >&6
3822else
3823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824/* end confdefs.h.  */
3825
3826int
3827main ()
3828{
3829
3830  ;
3831  return 0;
3832}
3833_ACEOF
3834  # Make sure it works both with $CC and with simple cc.
3835  # Following AC_PROG_CC_C_O, we do the test twice because some
3836  # compilers refuse to overwrite an existing .o file with -o,
3837  # though they will create one.
3838  am_cv_prog_cc_c_o=yes
3839  for am_i in 1 2; do
3840    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3841   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3842   ac_status=$?
3843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844   (exit $ac_status); } \
3845         && test -f conftest2.$ac_objext; then
3846      : OK
3847    else
3848      am_cv_prog_cc_c_o=no
3849      break
3850    fi
3851  done
3852  rm -f core conftest*
3853  unset am_i
3854fi
3855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3856$as_echo "$am_cv_prog_cc_c_o" >&6; }
3857if test "$am_cv_prog_cc_c_o" != yes; then
3858   # Losing compiler, so override with the script.
3859   # FIXME: It is wrong to rewrite CC.
3860   # But if we don't then we get into trouble of one sort or another.
3861   # A longer-term fix would be to have automake use am__CC in this case,
3862   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3863   CC="$am_aux_dir/compile $CC"
3864fi
3865ac_ext=c
3866ac_cpp='$CPP $CPPFLAGS'
3867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870
3871
3872depcc="$CC"   am_compiler_list=
3873
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3875$as_echo_n "checking dependency style of $depcc... " >&6; }
3876if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3877  $as_echo_n "(cached) " >&6
3878else
3879  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3880  # We make a subdir and do the tests there.  Otherwise we can end up
3881  # making bogus files that we don't know about and never remove.  For
3882  # instance it was reported that on HP-UX the gcc test will end up
3883  # making a dummy file named 'D' -- because '-MD' means "put the output
3884  # in D".
3885  rm -rf conftest.dir
3886  mkdir conftest.dir
3887  # Copy depcomp to subdir because otherwise we won't find it if we're
3888  # using a relative directory.
3889  cp "$am_depcomp" conftest.dir
3890  cd conftest.dir
3891  # We will build objects and dependencies in a subdirectory because
3892  # it helps to detect inapplicable dependency modes.  For instance
3893  # both Tru64's cc and ICC support -MD to output dependencies as a
3894  # side effect of compilation, but ICC will put the dependencies in
3895  # the current directory while Tru64 will put them in the object
3896  # directory.
3897  mkdir sub
3898
3899  am_cv_CC_dependencies_compiler_type=none
3900  if test "$am_compiler_list" = ""; then
3901     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3902  fi
3903  am__universal=false
3904  case " $depcc " in #(
3905     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3906     esac
3907
3908  for depmode in $am_compiler_list; do
3909    # Setup a source with many dependencies, because some compilers
3910    # like to wrap large dependency lists on column 80 (with \), and
3911    # we should not choose a depcomp mode which is confused by this.
3912    #
3913    # We need to recreate these files for each test, as the compiler may
3914    # overwrite some of them when testing with obscure command lines.
3915    # This happens at least with the AIX C compiler.
3916    : > sub/conftest.c
3917    for i in 1 2 3 4 5 6; do
3918      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3919      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3920      # Solaris 10 /bin/sh.
3921      echo '/* dummy */' > sub/conftst$i.h
3922    done
3923    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3924
3925    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3926    # mode.  It turns out that the SunPro C++ compiler does not properly
3927    # handle '-M -o', and we need to detect this.  Also, some Intel
3928    # versions had trouble with output in subdirs.
3929    am__obj=sub/conftest.${OBJEXT-o}
3930    am__minus_obj="-o $am__obj"
3931    case $depmode in
3932    gcc)
3933      # This depmode causes a compiler race in universal mode.
3934      test "$am__universal" = false || continue
3935      ;;
3936    nosideeffect)
3937      # After this tag, mechanisms are not by side-effect, so they'll
3938      # only be used when explicitly requested.
3939      if test "x$enable_dependency_tracking" = xyes; then
3940	continue
3941      else
3942	break
3943      fi
3944      ;;
3945    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3946      # This compiler won't grok '-c -o', but also, the minuso test has
3947      # not run yet.  These depmodes are late enough in the game, and
3948      # so weak that their functioning should not be impacted.
3949      am__obj=conftest.${OBJEXT-o}
3950      am__minus_obj=
3951      ;;
3952    none) break ;;
3953    esac
3954    if depmode=$depmode \
3955       source=sub/conftest.c object=$am__obj \
3956       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3957       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3958         >/dev/null 2>conftest.err &&
3959       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3960       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3961       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3962       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3963      # icc doesn't choke on unknown options, it will just issue warnings
3964      # or remarks (even with -Werror).  So we grep stderr for any message
3965      # that says an option was ignored or not supported.
3966      # When given -MP, icc 7.0 and 7.1 complain thusly:
3967      #   icc: Command line warning: ignoring option '-M'; no argument required
3968      # The diagnosis changed in icc 8.0:
3969      #   icc: Command line remark: option '-MP' not supported
3970      if (grep 'ignoring option' conftest.err ||
3971          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3972        am_cv_CC_dependencies_compiler_type=$depmode
3973        break
3974      fi
3975    fi
3976  done
3977
3978  cd ..
3979  rm -rf conftest.dir
3980else
3981  am_cv_CC_dependencies_compiler_type=none
3982fi
3983
3984fi
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3986$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3987CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3988
3989 if
3990  test "x$enable_dependency_tracking" != xno \
3991  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3992  am__fastdepCC_TRUE=
3993  am__fastdepCC_FALSE='#'
3994else
3995  am__fastdepCC_TRUE='#'
3996  am__fastdepCC_FALSE=
3997fi
3998
3999
4000   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4001$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4002if ${ac_cv_prog_cc_c99+:} false; then :
4003  $as_echo_n "(cached) " >&6
4004else
4005  ac_cv_prog_cc_c99=no
4006ac_save_CC=$CC
4007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008/* end confdefs.h.  */
4009#include <stdarg.h>
4010#include <stdbool.h>
4011#include <stdlib.h>
4012#include <wchar.h>
4013#include <stdio.h>
4014
4015// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4016#define debug(...) fprintf (stderr, __VA_ARGS__)
4017#define showlist(...) puts (#__VA_ARGS__)
4018#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4019static void
4020test_varargs_macros (void)
4021{
4022  int x = 1234;
4023  int y = 5678;
4024  debug ("Flag");
4025  debug ("X = %d\n", x);
4026  showlist (The first, second, and third items.);
4027  report (x>y, "x is %d but y is %d", x, y);
4028}
4029
4030// Check long long types.
4031#define BIG64 18446744073709551615ull
4032#define BIG32 4294967295ul
4033#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4034#if !BIG_OK
4035  your preprocessor is broken;
4036#endif
4037#if BIG_OK
4038#else
4039  your preprocessor is broken;
4040#endif
4041static long long int bignum = -9223372036854775807LL;
4042static unsigned long long int ubignum = BIG64;
4043
4044struct incomplete_array
4045{
4046  int datasize;
4047  double data[];
4048};
4049
4050struct named_init {
4051  int number;
4052  const wchar_t *name;
4053  double average;
4054};
4055
4056typedef const char *ccp;
4057
4058static inline int
4059test_restrict (ccp restrict text)
4060{
4061  // See if C++-style comments work.
4062  // Iterate through items via the restricted pointer.
4063  // Also check for declarations in for loops.
4064  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4065    continue;
4066  return 0;
4067}
4068
4069// Check varargs and va_copy.
4070static void
4071test_varargs (const char *format, ...)
4072{
4073  va_list args;
4074  va_start (args, format);
4075  va_list args_copy;
4076  va_copy (args_copy, args);
4077
4078  const char *str;
4079  int number;
4080  float fnumber;
4081
4082  while (*format)
4083    {
4084      switch (*format++)
4085	{
4086	case 's': // string
4087	  str = va_arg (args_copy, const char *);
4088	  break;
4089	case 'd': // int
4090	  number = va_arg (args_copy, int);
4091	  break;
4092	case 'f': // float
4093	  fnumber = va_arg (args_copy, double);
4094	  break;
4095	default:
4096	  break;
4097	}
4098    }
4099  va_end (args_copy);
4100  va_end (args);
4101}
4102
4103int
4104main ()
4105{
4106
4107  // Check bool.
4108  _Bool success = false;
4109
4110  // Check restrict.
4111  if (test_restrict ("String literal") == 0)
4112    success = true;
4113  char *restrict newvar = "Another string";
4114
4115  // Check varargs.
4116  test_varargs ("s, d' f .", "string", 65, 34.234);
4117  test_varargs_macros ();
4118
4119  // Check flexible array members.
4120  struct incomplete_array *ia =
4121    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4122  ia->datasize = 10;
4123  for (int i = 0; i < ia->datasize; ++i)
4124    ia->data[i] = i * 1.234;
4125
4126  // Check named initializers.
4127  struct named_init ni = {
4128    .number = 34,
4129    .name = L"Test wide string",
4130    .average = 543.34343,
4131  };
4132
4133  ni.number = 58;
4134
4135  int dynamic_array[ni.number];
4136  dynamic_array[ni.number - 1] = 543;
4137
4138  // work around unused variable warnings
4139  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4140	  || dynamic_array[ni.number - 1] != 543);
4141
4142  ;
4143  return 0;
4144}
4145_ACEOF
4146for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4147do
4148  CC="$ac_save_CC $ac_arg"
4149  if ac_fn_c_try_compile "$LINENO"; then :
4150  ac_cv_prog_cc_c99=$ac_arg
4151fi
4152rm -f core conftest.err conftest.$ac_objext
4153  test "x$ac_cv_prog_cc_c99" != "xno" && break
4154done
4155rm -f conftest.$ac_ext
4156CC=$ac_save_CC
4157
4158fi
4159# AC_CACHE_VAL
4160case "x$ac_cv_prog_cc_c99" in
4161  x)
4162    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4163$as_echo "none needed" >&6; } ;;
4164  xno)
4165    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4166$as_echo "unsupported" >&6; } ;;
4167  *)
4168    CC="$CC $ac_cv_prog_cc_c99"
4169    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4170$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4171esac
4172if test "x$ac_cv_prog_cc_c99" != xno; then :
4173
4174fi
4175
4176
4177
4178ac_ext=c
4179ac_cpp='$CPP $CPPFLAGS'
4180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4182ac_compiler_gnu=$ac_cv_c_compiler_gnu
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4184$as_echo_n "checking how to run the C preprocessor... " >&6; }
4185# On Suns, sometimes $CPP names a directory.
4186if test -n "$CPP" && test -d "$CPP"; then
4187  CPP=
4188fi
4189if test -z "$CPP"; then
4190  if ${ac_cv_prog_CPP+:} false; then :
4191  $as_echo_n "(cached) " >&6
4192else
4193      # Double quotes because CPP needs to be expanded
4194    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4195    do
4196      ac_preproc_ok=false
4197for ac_c_preproc_warn_flag in '' yes
4198do
4199  # Use a header file that comes with gcc, so configuring glibc
4200  # with a fresh cross-compiler works.
4201  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4202  # <limits.h> exists even on freestanding compilers.
4203  # On the NeXT, cc -E runs the code through the compiler's parser,
4204  # not just through cpp. "Syntax error" is here to catch this case.
4205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206/* end confdefs.h.  */
4207#ifdef __STDC__
4208# include <limits.h>
4209#else
4210# include <assert.h>
4211#endif
4212		     Syntax error
4213_ACEOF
4214if ac_fn_c_try_cpp "$LINENO"; then :
4215
4216else
4217  # Broken: fails on valid input.
4218continue
4219fi
4220rm -f conftest.err conftest.i conftest.$ac_ext
4221
4222  # OK, works on sane cases.  Now check whether nonexistent headers
4223  # can be detected and how.
4224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225/* end confdefs.h.  */
4226#include <ac_nonexistent.h>
4227_ACEOF
4228if ac_fn_c_try_cpp "$LINENO"; then :
4229  # Broken: success on invalid input.
4230continue
4231else
4232  # Passes both tests.
4233ac_preproc_ok=:
4234break
4235fi
4236rm -f conftest.err conftest.i conftest.$ac_ext
4237
4238done
4239# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4240rm -f conftest.i conftest.err conftest.$ac_ext
4241if $ac_preproc_ok; then :
4242  break
4243fi
4244
4245    done
4246    ac_cv_prog_CPP=$CPP
4247
4248fi
4249  CPP=$ac_cv_prog_CPP
4250else
4251  ac_cv_prog_CPP=$CPP
4252fi
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4254$as_echo "$CPP" >&6; }
4255ac_preproc_ok=false
4256for ac_c_preproc_warn_flag in '' yes
4257do
4258  # Use a header file that comes with gcc, so configuring glibc
4259  # with a fresh cross-compiler works.
4260  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4261  # <limits.h> exists even on freestanding compilers.
4262  # On the NeXT, cc -E runs the code through the compiler's parser,
4263  # not just through cpp. "Syntax error" is here to catch this case.
4264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265/* end confdefs.h.  */
4266#ifdef __STDC__
4267# include <limits.h>
4268#else
4269# include <assert.h>
4270#endif
4271		     Syntax error
4272_ACEOF
4273if ac_fn_c_try_cpp "$LINENO"; then :
4274
4275else
4276  # Broken: fails on valid input.
4277continue
4278fi
4279rm -f conftest.err conftest.i conftest.$ac_ext
4280
4281  # OK, works on sane cases.  Now check whether nonexistent headers
4282  # can be detected and how.
4283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284/* end confdefs.h.  */
4285#include <ac_nonexistent.h>
4286_ACEOF
4287if ac_fn_c_try_cpp "$LINENO"; then :
4288  # Broken: success on invalid input.
4289continue
4290else
4291  # Passes both tests.
4292ac_preproc_ok=:
4293break
4294fi
4295rm -f conftest.err conftest.i conftest.$ac_ext
4296
4297done
4298# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4299rm -f conftest.i conftest.err conftest.$ac_ext
4300if $ac_preproc_ok; then :
4301
4302else
4303  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4305as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4306See \`config.log' for more details" "$LINENO" 5; }
4307fi
4308
4309ac_ext=c
4310ac_cpp='$CPP $CPPFLAGS'
4311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4313ac_compiler_gnu=$ac_cv_c_compiler_gnu
4314
4315
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4317$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4318if ${ac_cv_path_GREP+:} false; then :
4319  $as_echo_n "(cached) " >&6
4320else
4321  if test -z "$GREP"; then
4322  ac_path_GREP_found=false
4323  # Loop through the user's path and test for each of PROGNAME-LIST
4324  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4326do
4327  IFS=$as_save_IFS
4328  test -z "$as_dir" && as_dir=.
4329    for ac_prog in grep ggrep; do
4330    for ac_exec_ext in '' $ac_executable_extensions; do
4331      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4332      as_fn_executable_p "$ac_path_GREP" || continue
4333# Check for GNU ac_path_GREP and select it if it is found.
4334  # Check for GNU $ac_path_GREP
4335case `"$ac_path_GREP" --version 2>&1` in
4336*GNU*)
4337  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4338*)
4339  ac_count=0
4340  $as_echo_n 0123456789 >"conftest.in"
4341  while :
4342  do
4343    cat "conftest.in" "conftest.in" >"conftest.tmp"
4344    mv "conftest.tmp" "conftest.in"
4345    cp "conftest.in" "conftest.nl"
4346    $as_echo 'GREP' >> "conftest.nl"
4347    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4348    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4349    as_fn_arith $ac_count + 1 && ac_count=$as_val
4350    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4351      # Best one so far, save it but keep looking for a better one
4352      ac_cv_path_GREP="$ac_path_GREP"
4353      ac_path_GREP_max=$ac_count
4354    fi
4355    # 10*(2^10) chars as input seems more than enough
4356    test $ac_count -gt 10 && break
4357  done
4358  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4359esac
4360
4361      $ac_path_GREP_found && break 3
4362    done
4363  done
4364  done
4365IFS=$as_save_IFS
4366  if test -z "$ac_cv_path_GREP"; then
4367    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4368  fi
4369else
4370  ac_cv_path_GREP=$GREP
4371fi
4372
4373fi
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4375$as_echo "$ac_cv_path_GREP" >&6; }
4376 GREP="$ac_cv_path_GREP"
4377
4378
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4380$as_echo_n "checking for egrep... " >&6; }
4381if ${ac_cv_path_EGREP+:} false; then :
4382  $as_echo_n "(cached) " >&6
4383else
4384  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4385   then ac_cv_path_EGREP="$GREP -E"
4386   else
4387     if test -z "$EGREP"; then
4388  ac_path_EGREP_found=false
4389  # Loop through the user's path and test for each of PROGNAME-LIST
4390  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4392do
4393  IFS=$as_save_IFS
4394  test -z "$as_dir" && as_dir=.
4395    for ac_prog in egrep; do
4396    for ac_exec_ext in '' $ac_executable_extensions; do
4397      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4398      as_fn_executable_p "$ac_path_EGREP" || continue
4399# Check for GNU ac_path_EGREP and select it if it is found.
4400  # Check for GNU $ac_path_EGREP
4401case `"$ac_path_EGREP" --version 2>&1` in
4402*GNU*)
4403  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4404*)
4405  ac_count=0
4406  $as_echo_n 0123456789 >"conftest.in"
4407  while :
4408  do
4409    cat "conftest.in" "conftest.in" >"conftest.tmp"
4410    mv "conftest.tmp" "conftest.in"
4411    cp "conftest.in" "conftest.nl"
4412    $as_echo 'EGREP' >> "conftest.nl"
4413    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4414    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4415    as_fn_arith $ac_count + 1 && ac_count=$as_val
4416    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4417      # Best one so far, save it but keep looking for a better one
4418      ac_cv_path_EGREP="$ac_path_EGREP"
4419      ac_path_EGREP_max=$ac_count
4420    fi
4421    # 10*(2^10) chars as input seems more than enough
4422    test $ac_count -gt 10 && break
4423  done
4424  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4425esac
4426
4427      $ac_path_EGREP_found && break 3
4428    done
4429  done
4430  done
4431IFS=$as_save_IFS
4432  if test -z "$ac_cv_path_EGREP"; then
4433    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4434  fi
4435else
4436  ac_cv_path_EGREP=$EGREP
4437fi
4438
4439   fi
4440fi
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4442$as_echo "$ac_cv_path_EGREP" >&6; }
4443 EGREP="$ac_cv_path_EGREP"
4444
4445
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4447$as_echo_n "checking for ANSI C header files... " >&6; }
4448if ${ac_cv_header_stdc+:} false; then :
4449  $as_echo_n "(cached) " >&6
4450else
4451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452/* end confdefs.h.  */
4453#include <stdlib.h>
4454#include <stdarg.h>
4455#include <string.h>
4456#include <float.h>
4457
4458int
4459main ()
4460{
4461
4462  ;
4463  return 0;
4464}
4465_ACEOF
4466if ac_fn_c_try_compile "$LINENO"; then :
4467  ac_cv_header_stdc=yes
4468else
4469  ac_cv_header_stdc=no
4470fi
4471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472
4473if test $ac_cv_header_stdc = yes; then
4474  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476/* end confdefs.h.  */
4477#include <string.h>
4478
4479_ACEOF
4480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4481  $EGREP "memchr" >/dev/null 2>&1; then :
4482
4483else
4484  ac_cv_header_stdc=no
4485fi
4486rm -f conftest*
4487
4488fi
4489
4490if test $ac_cv_header_stdc = yes; then
4491  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493/* end confdefs.h.  */
4494#include <stdlib.h>
4495
4496_ACEOF
4497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4498  $EGREP "free" >/dev/null 2>&1; then :
4499
4500else
4501  ac_cv_header_stdc=no
4502fi
4503rm -f conftest*
4504
4505fi
4506
4507if test $ac_cv_header_stdc = yes; then
4508  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4509  if test "$cross_compiling" = yes; then :
4510  :
4511else
4512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513/* end confdefs.h.  */
4514#include <ctype.h>
4515#include <stdlib.h>
4516#if ((' ' & 0x0FF) == 0x020)
4517# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4518# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4519#else
4520# define ISLOWER(c) \
4521		   (('a' <= (c) && (c) <= 'i') \
4522		     || ('j' <= (c) && (c) <= 'r') \
4523		     || ('s' <= (c) && (c) <= 'z'))
4524# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4525#endif
4526
4527#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4528int
4529main ()
4530{
4531  int i;
4532  for (i = 0; i < 256; i++)
4533    if (XOR (islower (i), ISLOWER (i))
4534	|| toupper (i) != TOUPPER (i))
4535      return 2;
4536  return 0;
4537}
4538_ACEOF
4539if ac_fn_c_try_run "$LINENO"; then :
4540
4541else
4542  ac_cv_header_stdc=no
4543fi
4544rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4545  conftest.$ac_objext conftest.beam conftest.$ac_ext
4546fi
4547
4548fi
4549fi
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4551$as_echo "$ac_cv_header_stdc" >&6; }
4552if test $ac_cv_header_stdc = yes; then
4553
4554$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4555
4556fi
4557
4558# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4559for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4560		  inttypes.h stdint.h unistd.h
4561do :
4562  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4563ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4564"
4565if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4566  cat >>confdefs.h <<_ACEOF
4567#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4568_ACEOF
4569
4570fi
4571
4572done
4573
4574
4575
4576
4577
4578
4579ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4580if test "x$ac_cv_have_decl___clang__" = xyes; then :
4581  CLANGCC="yes"
4582else
4583  CLANGCC="no"
4584fi
4585
4586ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4587if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4588  INTELCC="yes"
4589else
4590  INTELCC="no"
4591fi
4592
4593ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4594if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4595  SUNCC="yes"
4596else
4597  SUNCC="no"
4598fi
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4609	if test -n "$ac_tool_prefix"; then
4610  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4611set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4613$as_echo_n "checking for $ac_word... " >&6; }
4614if ${ac_cv_path_PKG_CONFIG+:} false; then :
4615  $as_echo_n "(cached) " >&6
4616else
4617  case $PKG_CONFIG in
4618  [\\/]* | ?:[\\/]*)
4619  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4620  ;;
4621  *)
4622  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623for as_dir in $PATH
4624do
4625  IFS=$as_save_IFS
4626  test -z "$as_dir" && as_dir=.
4627    for ac_exec_ext in '' $ac_executable_extensions; do
4628  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4629    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4630    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4631    break 2
4632  fi
4633done
4634  done
4635IFS=$as_save_IFS
4636
4637  ;;
4638esac
4639fi
4640PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4641if test -n "$PKG_CONFIG"; then
4642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4643$as_echo "$PKG_CONFIG" >&6; }
4644else
4645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646$as_echo "no" >&6; }
4647fi
4648
4649
4650fi
4651if test -z "$ac_cv_path_PKG_CONFIG"; then
4652  ac_pt_PKG_CONFIG=$PKG_CONFIG
4653  # Extract the first word of "pkg-config", so it can be a program name with args.
4654set dummy pkg-config; ac_word=$2
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4656$as_echo_n "checking for $ac_word... " >&6; }
4657if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4658  $as_echo_n "(cached) " >&6
4659else
4660  case $ac_pt_PKG_CONFIG in
4661  [\\/]* | ?:[\\/]*)
4662  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4663  ;;
4664  *)
4665  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666for as_dir in $PATH
4667do
4668  IFS=$as_save_IFS
4669  test -z "$as_dir" && as_dir=.
4670    for ac_exec_ext in '' $ac_executable_extensions; do
4671  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4672    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674    break 2
4675  fi
4676done
4677  done
4678IFS=$as_save_IFS
4679
4680  ;;
4681esac
4682fi
4683ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4684if test -n "$ac_pt_PKG_CONFIG"; then
4685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4686$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4687else
4688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689$as_echo "no" >&6; }
4690fi
4691
4692  if test "x$ac_pt_PKG_CONFIG" = x; then
4693    PKG_CONFIG=""
4694  else
4695    case $cross_compiling:$ac_tool_warned in
4696yes:)
4697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4699ac_tool_warned=yes ;;
4700esac
4701    PKG_CONFIG=$ac_pt_PKG_CONFIG
4702  fi
4703else
4704  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4705fi
4706
4707fi
4708if test -n "$PKG_CONFIG"; then
4709	_pkg_min_version=0.9.0
4710	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4711$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4712	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4713		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4714$as_echo "yes" >&6; }
4715	else
4716		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717$as_echo "no" >&6; }
4718		PKG_CONFIG=""
4719	fi
4720fi
4721# Make sure we can run config.sub.
4722$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4723  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4724
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4726$as_echo_n "checking build system type... " >&6; }
4727if ${ac_cv_build+:} false; then :
4728  $as_echo_n "(cached) " >&6
4729else
4730  ac_build_alias=$build_alias
4731test "x$ac_build_alias" = x &&
4732  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4733test "x$ac_build_alias" = x &&
4734  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4735ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4736  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4737
4738fi
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4740$as_echo "$ac_cv_build" >&6; }
4741case $ac_cv_build in
4742*-*-*) ;;
4743*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4744esac
4745build=$ac_cv_build
4746ac_save_IFS=$IFS; IFS='-'
4747set x $ac_cv_build
4748shift
4749build_cpu=$1
4750build_vendor=$2
4751shift; shift
4752# Remember, the first character of IFS is used to create $*,
4753# except with old shells:
4754build_os=$*
4755IFS=$ac_save_IFS
4756case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4757
4758
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4760$as_echo_n "checking host system type... " >&6; }
4761if ${ac_cv_host+:} false; then :
4762  $as_echo_n "(cached) " >&6
4763else
4764  if test "x$host_alias" = x; then
4765  ac_cv_host=$ac_cv_build
4766else
4767  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4768    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4769fi
4770
4771fi
4772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4773$as_echo "$ac_cv_host" >&6; }
4774case $ac_cv_host in
4775*-*-*) ;;
4776*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4777esac
4778host=$ac_cv_host
4779ac_save_IFS=$IFS; IFS='-'
4780set x $ac_cv_host
4781shift
4782host_cpu=$1
4783host_vendor=$2
4784shift; shift
4785# Remember, the first character of IFS is used to create $*,
4786# except with old shells:
4787host_os=$*
4788IFS=$ac_save_IFS
4789case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4790
4791
4792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4793$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4794if ${ac_cv_path_SED+:} false; then :
4795  $as_echo_n "(cached) " >&6
4796else
4797            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4798     for ac_i in 1 2 3 4 5 6 7; do
4799       ac_script="$ac_script$as_nl$ac_script"
4800     done
4801     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4802     { ac_script=; unset ac_script;}
4803     if test -z "$SED"; then
4804  ac_path_SED_found=false
4805  # Loop through the user's path and test for each of PROGNAME-LIST
4806  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807for as_dir in $PATH
4808do
4809  IFS=$as_save_IFS
4810  test -z "$as_dir" && as_dir=.
4811    for ac_prog in sed gsed; do
4812    for ac_exec_ext in '' $ac_executable_extensions; do
4813      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4814      as_fn_executable_p "$ac_path_SED" || continue
4815# Check for GNU ac_path_SED and select it if it is found.
4816  # Check for GNU $ac_path_SED
4817case `"$ac_path_SED" --version 2>&1` in
4818*GNU*)
4819  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4820*)
4821  ac_count=0
4822  $as_echo_n 0123456789 >"conftest.in"
4823  while :
4824  do
4825    cat "conftest.in" "conftest.in" >"conftest.tmp"
4826    mv "conftest.tmp" "conftest.in"
4827    cp "conftest.in" "conftest.nl"
4828    $as_echo '' >> "conftest.nl"
4829    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4830    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4831    as_fn_arith $ac_count + 1 && ac_count=$as_val
4832    if test $ac_count -gt ${ac_path_SED_max-0}; then
4833      # Best one so far, save it but keep looking for a better one
4834      ac_cv_path_SED="$ac_path_SED"
4835      ac_path_SED_max=$ac_count
4836    fi
4837    # 10*(2^10) chars as input seems more than enough
4838    test $ac_count -gt 10 && break
4839  done
4840  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4841esac
4842
4843      $ac_path_SED_found && break 3
4844    done
4845  done
4846  done
4847IFS=$as_save_IFS
4848  if test -z "$ac_cv_path_SED"; then
4849    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4850  fi
4851else
4852  ac_cv_path_SED=$SED
4853fi
4854
4855fi
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4857$as_echo "$ac_cv_path_SED" >&6; }
4858 SED="$ac_cv_path_SED"
4859  rm -f conftest.sed
4860
4861
4862
4863
4864
4865
4866# Check whether --enable-selective-werror was given.
4867if test "${enable_selective_werror+set}" = set; then :
4868  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4869else
4870  SELECTIVE_WERROR=yes
4871fi
4872
4873
4874
4875
4876
4877# -v is too short to test reliably with XORG_TESTSET_CFLAG
4878if test "x$SUNCC" = "xyes"; then
4879    BASE_CFLAGS="-v"
4880else
4881    BASE_CFLAGS=""
4882fi
4883
4884# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898xorg_testset_save_CFLAGS="$CFLAGS"
4899
4900if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4901	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4902	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4903$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4904if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4905  $as_echo_n "(cached) " >&6
4906else
4907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908/* end confdefs.h.  */
4909int i;
4910_ACEOF
4911if ac_fn_c_try_compile "$LINENO"; then :
4912  xorg_cv_cc_flag_unknown_warning_option=yes
4913else
4914  xorg_cv_cc_flag_unknown_warning_option=no
4915fi
4916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4917fi
4918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4919$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4920	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4921	CFLAGS="$xorg_testset_save_CFLAGS"
4922fi
4923
4924if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4925	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4926		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4927	fi
4928	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4929	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4930$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4931if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4932  $as_echo_n "(cached) " >&6
4933else
4934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935/* end confdefs.h.  */
4936int i;
4937_ACEOF
4938if ac_fn_c_try_compile "$LINENO"; then :
4939  xorg_cv_cc_flag_unused_command_line_argument=yes
4940else
4941  xorg_cv_cc_flag_unused_command_line_argument=no
4942fi
4943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4944fi
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4946$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4947	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4948	CFLAGS="$xorg_testset_save_CFLAGS"
4949fi
4950
4951found="no"
4952
4953	if test $found = "no" ; then
4954		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4955			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4956		fi
4957
4958		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4959			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4960		fi
4961
4962		CFLAGS="$CFLAGS -Wall"
4963
4964		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4965$as_echo_n "checking if $CC supports -Wall... " >&6; }
4966		cacheid=xorg_cv_cc_flag__Wall
4967		if eval \${$cacheid+:} false; then :
4968  $as_echo_n "(cached) " >&6
4969else
4970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971/* end confdefs.h.  */
4972int i;
4973int
4974main ()
4975{
4976
4977  ;
4978  return 0;
4979}
4980_ACEOF
4981if ac_fn_c_try_link "$LINENO"; then :
4982  eval $cacheid=yes
4983else
4984  eval $cacheid=no
4985fi
4986rm -f core conftest.err conftest.$ac_objext \
4987    conftest$ac_exeext conftest.$ac_ext
4988fi
4989
4990
4991		CFLAGS="$xorg_testset_save_CFLAGS"
4992
4993		eval supported=\$$cacheid
4994		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4995$as_echo "$supported" >&6; }
4996		if test "$supported" = "yes" ; then
4997			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4998			found="yes"
4999		fi
5000	fi
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016xorg_testset_save_CFLAGS="$CFLAGS"
5017
5018if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5019	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5020	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5021$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5022if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5023  $as_echo_n "(cached) " >&6
5024else
5025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026/* end confdefs.h.  */
5027int i;
5028_ACEOF
5029if ac_fn_c_try_compile "$LINENO"; then :
5030  xorg_cv_cc_flag_unknown_warning_option=yes
5031else
5032  xorg_cv_cc_flag_unknown_warning_option=no
5033fi
5034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5035fi
5036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5037$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5038	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5039	CFLAGS="$xorg_testset_save_CFLAGS"
5040fi
5041
5042if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5043	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5044		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5045	fi
5046	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5047	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5048$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5049if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5050  $as_echo_n "(cached) " >&6
5051else
5052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053/* end confdefs.h.  */
5054int i;
5055_ACEOF
5056if ac_fn_c_try_compile "$LINENO"; then :
5057  xorg_cv_cc_flag_unused_command_line_argument=yes
5058else
5059  xorg_cv_cc_flag_unused_command_line_argument=no
5060fi
5061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062fi
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5064$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5065	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5066	CFLAGS="$xorg_testset_save_CFLAGS"
5067fi
5068
5069found="no"
5070
5071	if test $found = "no" ; then
5072		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5073			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5074		fi
5075
5076		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5077			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5078		fi
5079
5080		CFLAGS="$CFLAGS -Wpointer-arith"
5081
5082		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5083$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5084		cacheid=xorg_cv_cc_flag__Wpointer_arith
5085		if eval \${$cacheid+:} false; then :
5086  $as_echo_n "(cached) " >&6
5087else
5088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089/* end confdefs.h.  */
5090int i;
5091int
5092main ()
5093{
5094
5095  ;
5096  return 0;
5097}
5098_ACEOF
5099if ac_fn_c_try_link "$LINENO"; then :
5100  eval $cacheid=yes
5101else
5102  eval $cacheid=no
5103fi
5104rm -f core conftest.err conftest.$ac_objext \
5105    conftest$ac_exeext conftest.$ac_ext
5106fi
5107
5108
5109		CFLAGS="$xorg_testset_save_CFLAGS"
5110
5111		eval supported=\$$cacheid
5112		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5113$as_echo "$supported" >&6; }
5114		if test "$supported" = "yes" ; then
5115			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5116			found="yes"
5117		fi
5118	fi
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134xorg_testset_save_CFLAGS="$CFLAGS"
5135
5136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5137	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5138	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5139$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5140if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5141  $as_echo_n "(cached) " >&6
5142else
5143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144/* end confdefs.h.  */
5145int i;
5146_ACEOF
5147if ac_fn_c_try_compile "$LINENO"; then :
5148  xorg_cv_cc_flag_unknown_warning_option=yes
5149else
5150  xorg_cv_cc_flag_unknown_warning_option=no
5151fi
5152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5153fi
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5155$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5156	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5157	CFLAGS="$xorg_testset_save_CFLAGS"
5158fi
5159
5160if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5161	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5162		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5163	fi
5164	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5165	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5166$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5167if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5168  $as_echo_n "(cached) " >&6
5169else
5170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171/* end confdefs.h.  */
5172int i;
5173_ACEOF
5174if ac_fn_c_try_compile "$LINENO"; then :
5175  xorg_cv_cc_flag_unused_command_line_argument=yes
5176else
5177  xorg_cv_cc_flag_unused_command_line_argument=no
5178fi
5179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5180fi
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5182$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5183	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5184	CFLAGS="$xorg_testset_save_CFLAGS"
5185fi
5186
5187found="no"
5188
5189	if test $found = "no" ; then
5190		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5191			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5192		fi
5193
5194		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5195			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5196		fi
5197
5198		CFLAGS="$CFLAGS -Wmissing-declarations"
5199
5200		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5201$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5202		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5203		if eval \${$cacheid+:} false; then :
5204  $as_echo_n "(cached) " >&6
5205else
5206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207/* end confdefs.h.  */
5208int i;
5209int
5210main ()
5211{
5212
5213  ;
5214  return 0;
5215}
5216_ACEOF
5217if ac_fn_c_try_link "$LINENO"; then :
5218  eval $cacheid=yes
5219else
5220  eval $cacheid=no
5221fi
5222rm -f core conftest.err conftest.$ac_objext \
5223    conftest$ac_exeext conftest.$ac_ext
5224fi
5225
5226
5227		CFLAGS="$xorg_testset_save_CFLAGS"
5228
5229		eval supported=\$$cacheid
5230		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5231$as_echo "$supported" >&6; }
5232		if test "$supported" = "yes" ; then
5233			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5234			found="yes"
5235		fi
5236	fi
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252xorg_testset_save_CFLAGS="$CFLAGS"
5253
5254if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5255	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5256	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5257$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5258if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5259  $as_echo_n "(cached) " >&6
5260else
5261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262/* end confdefs.h.  */
5263int i;
5264_ACEOF
5265if ac_fn_c_try_compile "$LINENO"; then :
5266  xorg_cv_cc_flag_unknown_warning_option=yes
5267else
5268  xorg_cv_cc_flag_unknown_warning_option=no
5269fi
5270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271fi
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5273$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5274	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5275	CFLAGS="$xorg_testset_save_CFLAGS"
5276fi
5277
5278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5279	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5280		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5281	fi
5282	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5283	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5284$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5285if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5286  $as_echo_n "(cached) " >&6
5287else
5288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289/* end confdefs.h.  */
5290int i;
5291_ACEOF
5292if ac_fn_c_try_compile "$LINENO"; then :
5293  xorg_cv_cc_flag_unused_command_line_argument=yes
5294else
5295  xorg_cv_cc_flag_unused_command_line_argument=no
5296fi
5297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298fi
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5300$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5301	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5302	CFLAGS="$xorg_testset_save_CFLAGS"
5303fi
5304
5305found="no"
5306
5307	if test $found = "no" ; then
5308		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5309			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5310		fi
5311
5312		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5313			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5314		fi
5315
5316		CFLAGS="$CFLAGS -Wformat=2"
5317
5318		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5319$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5320		cacheid=xorg_cv_cc_flag__Wformat_2
5321		if eval \${$cacheid+:} false; then :
5322  $as_echo_n "(cached) " >&6
5323else
5324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325/* end confdefs.h.  */
5326int i;
5327int
5328main ()
5329{
5330
5331  ;
5332  return 0;
5333}
5334_ACEOF
5335if ac_fn_c_try_link "$LINENO"; then :
5336  eval $cacheid=yes
5337else
5338  eval $cacheid=no
5339fi
5340rm -f core conftest.err conftest.$ac_objext \
5341    conftest$ac_exeext conftest.$ac_ext
5342fi
5343
5344
5345		CFLAGS="$xorg_testset_save_CFLAGS"
5346
5347		eval supported=\$$cacheid
5348		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5349$as_echo "$supported" >&6; }
5350		if test "$supported" = "yes" ; then
5351			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5352			found="yes"
5353		fi
5354	fi
5355
5356	if test $found = "no" ; then
5357		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5358			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5359		fi
5360
5361		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5362			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5363		fi
5364
5365		CFLAGS="$CFLAGS -Wformat"
5366
5367		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5368$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5369		cacheid=xorg_cv_cc_flag__Wformat
5370		if eval \${$cacheid+:} false; then :
5371  $as_echo_n "(cached) " >&6
5372else
5373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374/* end confdefs.h.  */
5375int i;
5376int
5377main ()
5378{
5379
5380  ;
5381  return 0;
5382}
5383_ACEOF
5384if ac_fn_c_try_link "$LINENO"; then :
5385  eval $cacheid=yes
5386else
5387  eval $cacheid=no
5388fi
5389rm -f core conftest.err conftest.$ac_objext \
5390    conftest$ac_exeext conftest.$ac_ext
5391fi
5392
5393
5394		CFLAGS="$xorg_testset_save_CFLAGS"
5395
5396		eval supported=\$$cacheid
5397		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5398$as_echo "$supported" >&6; }
5399		if test "$supported" = "yes" ; then
5400			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5401			found="yes"
5402		fi
5403	fi
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421xorg_testset_save_CFLAGS="$CFLAGS"
5422
5423if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5424	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5425	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5426$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5427if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5428  $as_echo_n "(cached) " >&6
5429else
5430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431/* end confdefs.h.  */
5432int i;
5433_ACEOF
5434if ac_fn_c_try_compile "$LINENO"; then :
5435  xorg_cv_cc_flag_unknown_warning_option=yes
5436else
5437  xorg_cv_cc_flag_unknown_warning_option=no
5438fi
5439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440fi
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5442$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5443	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5444	CFLAGS="$xorg_testset_save_CFLAGS"
5445fi
5446
5447if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5448	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5449		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5450	fi
5451	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5452	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5453$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5454if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5455  $as_echo_n "(cached) " >&6
5456else
5457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458/* end confdefs.h.  */
5459int i;
5460_ACEOF
5461if ac_fn_c_try_compile "$LINENO"; then :
5462  xorg_cv_cc_flag_unused_command_line_argument=yes
5463else
5464  xorg_cv_cc_flag_unused_command_line_argument=no
5465fi
5466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467fi
5468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5469$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5470	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5471	CFLAGS="$xorg_testset_save_CFLAGS"
5472fi
5473
5474found="no"
5475
5476	if test $found = "no" ; then
5477		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5478			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5479		fi
5480
5481		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5482			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5483		fi
5484
5485		CFLAGS="$CFLAGS -Wstrict-prototypes"
5486
5487		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5488$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5489		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5490		if eval \${$cacheid+:} false; then :
5491  $as_echo_n "(cached) " >&6
5492else
5493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494/* end confdefs.h.  */
5495int i;
5496int
5497main ()
5498{
5499
5500  ;
5501  return 0;
5502}
5503_ACEOF
5504if ac_fn_c_try_link "$LINENO"; then :
5505  eval $cacheid=yes
5506else
5507  eval $cacheid=no
5508fi
5509rm -f core conftest.err conftest.$ac_objext \
5510    conftest$ac_exeext conftest.$ac_ext
5511fi
5512
5513
5514		CFLAGS="$xorg_testset_save_CFLAGS"
5515
5516		eval supported=\$$cacheid
5517		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5518$as_echo "$supported" >&6; }
5519		if test "$supported" = "yes" ; then
5520			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5521			found="yes"
5522		fi
5523	fi
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539xorg_testset_save_CFLAGS="$CFLAGS"
5540
5541if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5542	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5543	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5544$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5545if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5546  $as_echo_n "(cached) " >&6
5547else
5548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549/* end confdefs.h.  */
5550int i;
5551_ACEOF
5552if ac_fn_c_try_compile "$LINENO"; then :
5553  xorg_cv_cc_flag_unknown_warning_option=yes
5554else
5555  xorg_cv_cc_flag_unknown_warning_option=no
5556fi
5557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5558fi
5559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5560$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5561	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5562	CFLAGS="$xorg_testset_save_CFLAGS"
5563fi
5564
5565if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5566	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5567		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5568	fi
5569	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5570	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5571$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5572if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5573  $as_echo_n "(cached) " >&6
5574else
5575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576/* end confdefs.h.  */
5577int i;
5578_ACEOF
5579if ac_fn_c_try_compile "$LINENO"; then :
5580  xorg_cv_cc_flag_unused_command_line_argument=yes
5581else
5582  xorg_cv_cc_flag_unused_command_line_argument=no
5583fi
5584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585fi
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5587$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5588	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5589	CFLAGS="$xorg_testset_save_CFLAGS"
5590fi
5591
5592found="no"
5593
5594	if test $found = "no" ; then
5595		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5596			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5597		fi
5598
5599		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5600			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5601		fi
5602
5603		CFLAGS="$CFLAGS -Wmissing-prototypes"
5604
5605		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5606$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5607		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5608		if eval \${$cacheid+:} false; then :
5609  $as_echo_n "(cached) " >&6
5610else
5611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612/* end confdefs.h.  */
5613int i;
5614int
5615main ()
5616{
5617
5618  ;
5619  return 0;
5620}
5621_ACEOF
5622if ac_fn_c_try_link "$LINENO"; then :
5623  eval $cacheid=yes
5624else
5625  eval $cacheid=no
5626fi
5627rm -f core conftest.err conftest.$ac_objext \
5628    conftest$ac_exeext conftest.$ac_ext
5629fi
5630
5631
5632		CFLAGS="$xorg_testset_save_CFLAGS"
5633
5634		eval supported=\$$cacheid
5635		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5636$as_echo "$supported" >&6; }
5637		if test "$supported" = "yes" ; then
5638			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5639			found="yes"
5640		fi
5641	fi
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657xorg_testset_save_CFLAGS="$CFLAGS"
5658
5659if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5660	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5661	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5662$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5663if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5664  $as_echo_n "(cached) " >&6
5665else
5666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667/* end confdefs.h.  */
5668int i;
5669_ACEOF
5670if ac_fn_c_try_compile "$LINENO"; then :
5671  xorg_cv_cc_flag_unknown_warning_option=yes
5672else
5673  xorg_cv_cc_flag_unknown_warning_option=no
5674fi
5675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676fi
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5678$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5679	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5680	CFLAGS="$xorg_testset_save_CFLAGS"
5681fi
5682
5683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5684	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5685		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5686	fi
5687	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5688	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5689$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5690if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5691  $as_echo_n "(cached) " >&6
5692else
5693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694/* end confdefs.h.  */
5695int i;
5696_ACEOF
5697if ac_fn_c_try_compile "$LINENO"; then :
5698  xorg_cv_cc_flag_unused_command_line_argument=yes
5699else
5700  xorg_cv_cc_flag_unused_command_line_argument=no
5701fi
5702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703fi
5704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5705$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5706	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5707	CFLAGS="$xorg_testset_save_CFLAGS"
5708fi
5709
5710found="no"
5711
5712	if test $found = "no" ; then
5713		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5714			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5715		fi
5716
5717		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5718			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5719		fi
5720
5721		CFLAGS="$CFLAGS -Wnested-externs"
5722
5723		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5724$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5725		cacheid=xorg_cv_cc_flag__Wnested_externs
5726		if eval \${$cacheid+:} false; then :
5727  $as_echo_n "(cached) " >&6
5728else
5729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730/* end confdefs.h.  */
5731int i;
5732int
5733main ()
5734{
5735
5736  ;
5737  return 0;
5738}
5739_ACEOF
5740if ac_fn_c_try_link "$LINENO"; then :
5741  eval $cacheid=yes
5742else
5743  eval $cacheid=no
5744fi
5745rm -f core conftest.err conftest.$ac_objext \
5746    conftest$ac_exeext conftest.$ac_ext
5747fi
5748
5749
5750		CFLAGS="$xorg_testset_save_CFLAGS"
5751
5752		eval supported=\$$cacheid
5753		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5754$as_echo "$supported" >&6; }
5755		if test "$supported" = "yes" ; then
5756			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5757			found="yes"
5758		fi
5759	fi
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775xorg_testset_save_CFLAGS="$CFLAGS"
5776
5777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5778	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5779	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5780$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5781if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5782  $as_echo_n "(cached) " >&6
5783else
5784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785/* end confdefs.h.  */
5786int i;
5787_ACEOF
5788if ac_fn_c_try_compile "$LINENO"; then :
5789  xorg_cv_cc_flag_unknown_warning_option=yes
5790else
5791  xorg_cv_cc_flag_unknown_warning_option=no
5792fi
5793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5794fi
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5796$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5797	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5798	CFLAGS="$xorg_testset_save_CFLAGS"
5799fi
5800
5801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5802	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5803		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5804	fi
5805	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5806	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5807$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5808if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5809  $as_echo_n "(cached) " >&6
5810else
5811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812/* end confdefs.h.  */
5813int i;
5814_ACEOF
5815if ac_fn_c_try_compile "$LINENO"; then :
5816  xorg_cv_cc_flag_unused_command_line_argument=yes
5817else
5818  xorg_cv_cc_flag_unused_command_line_argument=no
5819fi
5820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821fi
5822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5823$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5824	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5825	CFLAGS="$xorg_testset_save_CFLAGS"
5826fi
5827
5828found="no"
5829
5830	if test $found = "no" ; then
5831		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5832			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5833		fi
5834
5835		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5836			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5837		fi
5838
5839		CFLAGS="$CFLAGS -Wbad-function-cast"
5840
5841		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5842$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5843		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5844		if eval \${$cacheid+:} false; then :
5845  $as_echo_n "(cached) " >&6
5846else
5847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848/* end confdefs.h.  */
5849int i;
5850int
5851main ()
5852{
5853
5854  ;
5855  return 0;
5856}
5857_ACEOF
5858if ac_fn_c_try_link "$LINENO"; then :
5859  eval $cacheid=yes
5860else
5861  eval $cacheid=no
5862fi
5863rm -f core conftest.err conftest.$ac_objext \
5864    conftest$ac_exeext conftest.$ac_ext
5865fi
5866
5867
5868		CFLAGS="$xorg_testset_save_CFLAGS"
5869
5870		eval supported=\$$cacheid
5871		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5872$as_echo "$supported" >&6; }
5873		if test "$supported" = "yes" ; then
5874			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5875			found="yes"
5876		fi
5877	fi
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893xorg_testset_save_CFLAGS="$CFLAGS"
5894
5895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5896	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5897	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5898$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5899if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5900  $as_echo_n "(cached) " >&6
5901else
5902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903/* end confdefs.h.  */
5904int i;
5905_ACEOF
5906if ac_fn_c_try_compile "$LINENO"; then :
5907  xorg_cv_cc_flag_unknown_warning_option=yes
5908else
5909  xorg_cv_cc_flag_unknown_warning_option=no
5910fi
5911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5912fi
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5914$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5915	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5916	CFLAGS="$xorg_testset_save_CFLAGS"
5917fi
5918
5919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5920	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5921		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5922	fi
5923	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5924	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5925$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5926if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5927  $as_echo_n "(cached) " >&6
5928else
5929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930/* end confdefs.h.  */
5931int i;
5932_ACEOF
5933if ac_fn_c_try_compile "$LINENO"; then :
5934  xorg_cv_cc_flag_unused_command_line_argument=yes
5935else
5936  xorg_cv_cc_flag_unused_command_line_argument=no
5937fi
5938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939fi
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5941$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5942	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5943	CFLAGS="$xorg_testset_save_CFLAGS"
5944fi
5945
5946found="no"
5947
5948	if test $found = "no" ; then
5949		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5950			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5951		fi
5952
5953		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5954			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5955		fi
5956
5957		CFLAGS="$CFLAGS -Wold-style-definition"
5958
5959		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5960$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5961		cacheid=xorg_cv_cc_flag__Wold_style_definition
5962		if eval \${$cacheid+:} false; then :
5963  $as_echo_n "(cached) " >&6
5964else
5965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966/* end confdefs.h.  */
5967int i;
5968int
5969main ()
5970{
5971
5972  ;
5973  return 0;
5974}
5975_ACEOF
5976if ac_fn_c_try_link "$LINENO"; then :
5977  eval $cacheid=yes
5978else
5979  eval $cacheid=no
5980fi
5981rm -f core conftest.err conftest.$ac_objext \
5982    conftest$ac_exeext conftest.$ac_ext
5983fi
5984
5985
5986		CFLAGS="$xorg_testset_save_CFLAGS"
5987
5988		eval supported=\$$cacheid
5989		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5990$as_echo "$supported" >&6; }
5991		if test "$supported" = "yes" ; then
5992			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5993			found="yes"
5994		fi
5995	fi
5996
5997	if test $found = "no" ; then
5998		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5999			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6000		fi
6001
6002		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6003			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6004		fi
6005
6006		CFLAGS="$CFLAGS -fd"
6007
6008		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6009$as_echo_n "checking if $CC supports -fd... " >&6; }
6010		cacheid=xorg_cv_cc_flag__fd
6011		if eval \${$cacheid+:} false; then :
6012  $as_echo_n "(cached) " >&6
6013else
6014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015/* end confdefs.h.  */
6016int i;
6017int
6018main ()
6019{
6020
6021  ;
6022  return 0;
6023}
6024_ACEOF
6025if ac_fn_c_try_link "$LINENO"; then :
6026  eval $cacheid=yes
6027else
6028  eval $cacheid=no
6029fi
6030rm -f core conftest.err conftest.$ac_objext \
6031    conftest$ac_exeext conftest.$ac_ext
6032fi
6033
6034
6035		CFLAGS="$xorg_testset_save_CFLAGS"
6036
6037		eval supported=\$$cacheid
6038		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6039$as_echo "$supported" >&6; }
6040		if test "$supported" = "yes" ; then
6041			BASE_CFLAGS="$BASE_CFLAGS -fd"
6042			found="yes"
6043		fi
6044	fi
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060xorg_testset_save_CFLAGS="$CFLAGS"
6061
6062if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6063	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6064	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6065$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6066if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6067  $as_echo_n "(cached) " >&6
6068else
6069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070/* end confdefs.h.  */
6071int i;
6072_ACEOF
6073if ac_fn_c_try_compile "$LINENO"; then :
6074  xorg_cv_cc_flag_unknown_warning_option=yes
6075else
6076  xorg_cv_cc_flag_unknown_warning_option=no
6077fi
6078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6079fi
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6081$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6082	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6083	CFLAGS="$xorg_testset_save_CFLAGS"
6084fi
6085
6086if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6087	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6088		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6089	fi
6090	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6091	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6092$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6093if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6094  $as_echo_n "(cached) " >&6
6095else
6096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097/* end confdefs.h.  */
6098int i;
6099_ACEOF
6100if ac_fn_c_try_compile "$LINENO"; then :
6101  xorg_cv_cc_flag_unused_command_line_argument=yes
6102else
6103  xorg_cv_cc_flag_unused_command_line_argument=no
6104fi
6105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106fi
6107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6108$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6109	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6110	CFLAGS="$xorg_testset_save_CFLAGS"
6111fi
6112
6113found="no"
6114
6115	if test $found = "no" ; then
6116		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6117			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6118		fi
6119
6120		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6121			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6122		fi
6123
6124		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6125
6126		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6127$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6128		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6129		if eval \${$cacheid+:} false; then :
6130  $as_echo_n "(cached) " >&6
6131else
6132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133/* end confdefs.h.  */
6134int i;
6135int
6136main ()
6137{
6138
6139  ;
6140  return 0;
6141}
6142_ACEOF
6143if ac_fn_c_try_link "$LINENO"; then :
6144  eval $cacheid=yes
6145else
6146  eval $cacheid=no
6147fi
6148rm -f core conftest.err conftest.$ac_objext \
6149    conftest$ac_exeext conftest.$ac_ext
6150fi
6151
6152
6153		CFLAGS="$xorg_testset_save_CFLAGS"
6154
6155		eval supported=\$$cacheid
6156		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6157$as_echo "$supported" >&6; }
6158		if test "$supported" = "yes" ; then
6159			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6160			found="yes"
6161		fi
6162	fi
6163
6164
6165
6166
6167
6168# This chunk adds additional warnings that could catch undesired effects.
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182xorg_testset_save_CFLAGS="$CFLAGS"
6183
6184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6185	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6186	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6187$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6188if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6189  $as_echo_n "(cached) " >&6
6190else
6191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192/* end confdefs.h.  */
6193int i;
6194_ACEOF
6195if ac_fn_c_try_compile "$LINENO"; then :
6196  xorg_cv_cc_flag_unknown_warning_option=yes
6197else
6198  xorg_cv_cc_flag_unknown_warning_option=no
6199fi
6200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6201fi
6202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6203$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6204	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6205	CFLAGS="$xorg_testset_save_CFLAGS"
6206fi
6207
6208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6209	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6210		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6211	fi
6212	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6213	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6214$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6215if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6216  $as_echo_n "(cached) " >&6
6217else
6218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219/* end confdefs.h.  */
6220int i;
6221_ACEOF
6222if ac_fn_c_try_compile "$LINENO"; then :
6223  xorg_cv_cc_flag_unused_command_line_argument=yes
6224else
6225  xorg_cv_cc_flag_unused_command_line_argument=no
6226fi
6227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228fi
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6230$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6231	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6232	CFLAGS="$xorg_testset_save_CFLAGS"
6233fi
6234
6235found="no"
6236
6237	if test $found = "no" ; then
6238		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6239			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6240		fi
6241
6242		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6243			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6244		fi
6245
6246		CFLAGS="$CFLAGS -Wunused"
6247
6248		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6249$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6250		cacheid=xorg_cv_cc_flag__Wunused
6251		if eval \${$cacheid+:} false; then :
6252  $as_echo_n "(cached) " >&6
6253else
6254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255/* end confdefs.h.  */
6256int i;
6257int
6258main ()
6259{
6260
6261  ;
6262  return 0;
6263}
6264_ACEOF
6265if ac_fn_c_try_link "$LINENO"; then :
6266  eval $cacheid=yes
6267else
6268  eval $cacheid=no
6269fi
6270rm -f core conftest.err conftest.$ac_objext \
6271    conftest$ac_exeext conftest.$ac_ext
6272fi
6273
6274
6275		CFLAGS="$xorg_testset_save_CFLAGS"
6276
6277		eval supported=\$$cacheid
6278		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6279$as_echo "$supported" >&6; }
6280		if test "$supported" = "yes" ; then
6281			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6282			found="yes"
6283		fi
6284	fi
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300xorg_testset_save_CFLAGS="$CFLAGS"
6301
6302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6303	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6304	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6305$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6306if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6307  $as_echo_n "(cached) " >&6
6308else
6309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310/* end confdefs.h.  */
6311int i;
6312_ACEOF
6313if ac_fn_c_try_compile "$LINENO"; then :
6314  xorg_cv_cc_flag_unknown_warning_option=yes
6315else
6316  xorg_cv_cc_flag_unknown_warning_option=no
6317fi
6318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319fi
6320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6321$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6322	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6323	CFLAGS="$xorg_testset_save_CFLAGS"
6324fi
6325
6326if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6327	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6328		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6329	fi
6330	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6331	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6332$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6333if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6334  $as_echo_n "(cached) " >&6
6335else
6336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337/* end confdefs.h.  */
6338int i;
6339_ACEOF
6340if ac_fn_c_try_compile "$LINENO"; then :
6341  xorg_cv_cc_flag_unused_command_line_argument=yes
6342else
6343  xorg_cv_cc_flag_unused_command_line_argument=no
6344fi
6345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6346fi
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6348$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6349	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6350	CFLAGS="$xorg_testset_save_CFLAGS"
6351fi
6352
6353found="no"
6354
6355	if test $found = "no" ; then
6356		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6357			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6358		fi
6359
6360		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6361			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6362		fi
6363
6364		CFLAGS="$CFLAGS -Wuninitialized"
6365
6366		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6367$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6368		cacheid=xorg_cv_cc_flag__Wuninitialized
6369		if eval \${$cacheid+:} false; then :
6370  $as_echo_n "(cached) " >&6
6371else
6372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373/* end confdefs.h.  */
6374int i;
6375int
6376main ()
6377{
6378
6379  ;
6380  return 0;
6381}
6382_ACEOF
6383if ac_fn_c_try_link "$LINENO"; then :
6384  eval $cacheid=yes
6385else
6386  eval $cacheid=no
6387fi
6388rm -f core conftest.err conftest.$ac_objext \
6389    conftest$ac_exeext conftest.$ac_ext
6390fi
6391
6392
6393		CFLAGS="$xorg_testset_save_CFLAGS"
6394
6395		eval supported=\$$cacheid
6396		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6397$as_echo "$supported" >&6; }
6398		if test "$supported" = "yes" ; then
6399			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6400			found="yes"
6401		fi
6402	fi
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418xorg_testset_save_CFLAGS="$CFLAGS"
6419
6420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6421	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6422	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6423$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6424if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6425  $as_echo_n "(cached) " >&6
6426else
6427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6428/* end confdefs.h.  */
6429int i;
6430_ACEOF
6431if ac_fn_c_try_compile "$LINENO"; then :
6432  xorg_cv_cc_flag_unknown_warning_option=yes
6433else
6434  xorg_cv_cc_flag_unknown_warning_option=no
6435fi
6436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437fi
6438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6439$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6440	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6441	CFLAGS="$xorg_testset_save_CFLAGS"
6442fi
6443
6444if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6445	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6446		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6447	fi
6448	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6449	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6450$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6451if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6452  $as_echo_n "(cached) " >&6
6453else
6454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455/* end confdefs.h.  */
6456int i;
6457_ACEOF
6458if ac_fn_c_try_compile "$LINENO"; then :
6459  xorg_cv_cc_flag_unused_command_line_argument=yes
6460else
6461  xorg_cv_cc_flag_unused_command_line_argument=no
6462fi
6463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6464fi
6465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6466$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6467	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6468	CFLAGS="$xorg_testset_save_CFLAGS"
6469fi
6470
6471found="no"
6472
6473	if test $found = "no" ; then
6474		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6475			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6476		fi
6477
6478		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6479			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6480		fi
6481
6482		CFLAGS="$CFLAGS -Wshadow"
6483
6484		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6485$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6486		cacheid=xorg_cv_cc_flag__Wshadow
6487		if eval \${$cacheid+:} false; then :
6488  $as_echo_n "(cached) " >&6
6489else
6490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491/* end confdefs.h.  */
6492int i;
6493int
6494main ()
6495{
6496
6497  ;
6498  return 0;
6499}
6500_ACEOF
6501if ac_fn_c_try_link "$LINENO"; then :
6502  eval $cacheid=yes
6503else
6504  eval $cacheid=no
6505fi
6506rm -f core conftest.err conftest.$ac_objext \
6507    conftest$ac_exeext conftest.$ac_ext
6508fi
6509
6510
6511		CFLAGS="$xorg_testset_save_CFLAGS"
6512
6513		eval supported=\$$cacheid
6514		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6515$as_echo "$supported" >&6; }
6516		if test "$supported" = "yes" ; then
6517			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6518			found="yes"
6519		fi
6520	fi
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536xorg_testset_save_CFLAGS="$CFLAGS"
6537
6538if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6539	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6540	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6541$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6542if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6543  $as_echo_n "(cached) " >&6
6544else
6545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546/* end confdefs.h.  */
6547int i;
6548_ACEOF
6549if ac_fn_c_try_compile "$LINENO"; then :
6550  xorg_cv_cc_flag_unknown_warning_option=yes
6551else
6552  xorg_cv_cc_flag_unknown_warning_option=no
6553fi
6554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555fi
6556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6557$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6558	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6559	CFLAGS="$xorg_testset_save_CFLAGS"
6560fi
6561
6562if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6563	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6564		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6565	fi
6566	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6567	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6568$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6569if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6570  $as_echo_n "(cached) " >&6
6571else
6572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573/* end confdefs.h.  */
6574int i;
6575_ACEOF
6576if ac_fn_c_try_compile "$LINENO"; then :
6577  xorg_cv_cc_flag_unused_command_line_argument=yes
6578else
6579  xorg_cv_cc_flag_unused_command_line_argument=no
6580fi
6581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582fi
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6584$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6585	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6586	CFLAGS="$xorg_testset_save_CFLAGS"
6587fi
6588
6589found="no"
6590
6591	if test $found = "no" ; then
6592		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6593			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594		fi
6595
6596		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6597			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6598		fi
6599
6600		CFLAGS="$CFLAGS -Wmissing-noreturn"
6601
6602		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6603$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6604		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6605		if eval \${$cacheid+:} false; then :
6606  $as_echo_n "(cached) " >&6
6607else
6608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609/* end confdefs.h.  */
6610int i;
6611int
6612main ()
6613{
6614
6615  ;
6616  return 0;
6617}
6618_ACEOF
6619if ac_fn_c_try_link "$LINENO"; then :
6620  eval $cacheid=yes
6621else
6622  eval $cacheid=no
6623fi
6624rm -f core conftest.err conftest.$ac_objext \
6625    conftest$ac_exeext conftest.$ac_ext
6626fi
6627
6628
6629		CFLAGS="$xorg_testset_save_CFLAGS"
6630
6631		eval supported=\$$cacheid
6632		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6633$as_echo "$supported" >&6; }
6634		if test "$supported" = "yes" ; then
6635			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6636			found="yes"
6637		fi
6638	fi
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654xorg_testset_save_CFLAGS="$CFLAGS"
6655
6656if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6657	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6658	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6659$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6660if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6661  $as_echo_n "(cached) " >&6
6662else
6663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664/* end confdefs.h.  */
6665int i;
6666_ACEOF
6667if ac_fn_c_try_compile "$LINENO"; then :
6668  xorg_cv_cc_flag_unknown_warning_option=yes
6669else
6670  xorg_cv_cc_flag_unknown_warning_option=no
6671fi
6672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673fi
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6675$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6676	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6677	CFLAGS="$xorg_testset_save_CFLAGS"
6678fi
6679
6680if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6681	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6682		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6683	fi
6684	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6685	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6686$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6687if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6688  $as_echo_n "(cached) " >&6
6689else
6690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691/* end confdefs.h.  */
6692int i;
6693_ACEOF
6694if ac_fn_c_try_compile "$LINENO"; then :
6695  xorg_cv_cc_flag_unused_command_line_argument=yes
6696else
6697  xorg_cv_cc_flag_unused_command_line_argument=no
6698fi
6699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700fi
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6702$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6703	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6704	CFLAGS="$xorg_testset_save_CFLAGS"
6705fi
6706
6707found="no"
6708
6709	if test $found = "no" ; then
6710		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6711			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6712		fi
6713
6714		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6715			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6716		fi
6717
6718		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6719
6720		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6721$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6722		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6723		if eval \${$cacheid+:} false; then :
6724  $as_echo_n "(cached) " >&6
6725else
6726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727/* end confdefs.h.  */
6728int i;
6729int
6730main ()
6731{
6732
6733  ;
6734  return 0;
6735}
6736_ACEOF
6737if ac_fn_c_try_link "$LINENO"; then :
6738  eval $cacheid=yes
6739else
6740  eval $cacheid=no
6741fi
6742rm -f core conftest.err conftest.$ac_objext \
6743    conftest$ac_exeext conftest.$ac_ext
6744fi
6745
6746
6747		CFLAGS="$xorg_testset_save_CFLAGS"
6748
6749		eval supported=\$$cacheid
6750		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6751$as_echo "$supported" >&6; }
6752		if test "$supported" = "yes" ; then
6753			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6754			found="yes"
6755		fi
6756	fi
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772xorg_testset_save_CFLAGS="$CFLAGS"
6773
6774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6775	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6776	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6777$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6778if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6779  $as_echo_n "(cached) " >&6
6780else
6781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782/* end confdefs.h.  */
6783int i;
6784_ACEOF
6785if ac_fn_c_try_compile "$LINENO"; then :
6786  xorg_cv_cc_flag_unknown_warning_option=yes
6787else
6788  xorg_cv_cc_flag_unknown_warning_option=no
6789fi
6790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6791fi
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6793$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6794	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6795	CFLAGS="$xorg_testset_save_CFLAGS"
6796fi
6797
6798if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6799	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6800		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6801	fi
6802	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6803	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6804$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6805if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6806  $as_echo_n "(cached) " >&6
6807else
6808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809/* end confdefs.h.  */
6810int i;
6811_ACEOF
6812if ac_fn_c_try_compile "$LINENO"; then :
6813  xorg_cv_cc_flag_unused_command_line_argument=yes
6814else
6815  xorg_cv_cc_flag_unused_command_line_argument=no
6816fi
6817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818fi
6819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6820$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6821	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6822	CFLAGS="$xorg_testset_save_CFLAGS"
6823fi
6824
6825found="no"
6826
6827	if test $found = "no" ; then
6828		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6829			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6830		fi
6831
6832		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6833			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6834		fi
6835
6836		CFLAGS="$CFLAGS -Wredundant-decls"
6837
6838		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6839$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6840		cacheid=xorg_cv_cc_flag__Wredundant_decls
6841		if eval \${$cacheid+:} false; then :
6842  $as_echo_n "(cached) " >&6
6843else
6844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845/* end confdefs.h.  */
6846int i;
6847int
6848main ()
6849{
6850
6851  ;
6852  return 0;
6853}
6854_ACEOF
6855if ac_fn_c_try_link "$LINENO"; then :
6856  eval $cacheid=yes
6857else
6858  eval $cacheid=no
6859fi
6860rm -f core conftest.err conftest.$ac_objext \
6861    conftest$ac_exeext conftest.$ac_ext
6862fi
6863
6864
6865		CFLAGS="$xorg_testset_save_CFLAGS"
6866
6867		eval supported=\$$cacheid
6868		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6869$as_echo "$supported" >&6; }
6870		if test "$supported" = "yes" ; then
6871			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6872			found="yes"
6873		fi
6874	fi
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890xorg_testset_save_CFLAGS="$CFLAGS"
6891
6892if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6893	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6894	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6895$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6896if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6897  $as_echo_n "(cached) " >&6
6898else
6899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900/* end confdefs.h.  */
6901int i;
6902_ACEOF
6903if ac_fn_c_try_compile "$LINENO"; then :
6904  xorg_cv_cc_flag_unknown_warning_option=yes
6905else
6906  xorg_cv_cc_flag_unknown_warning_option=no
6907fi
6908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909fi
6910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6911$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6912	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6913	CFLAGS="$xorg_testset_save_CFLAGS"
6914fi
6915
6916if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6917	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6918		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6919	fi
6920	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6921	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6922$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6923if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6924  $as_echo_n "(cached) " >&6
6925else
6926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927/* end confdefs.h.  */
6928int i;
6929_ACEOF
6930if ac_fn_c_try_compile "$LINENO"; then :
6931  xorg_cv_cc_flag_unused_command_line_argument=yes
6932else
6933  xorg_cv_cc_flag_unused_command_line_argument=no
6934fi
6935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936fi
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6938$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6939	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6940	CFLAGS="$xorg_testset_save_CFLAGS"
6941fi
6942
6943found="no"
6944
6945	if test $found = "no" ; then
6946		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6947			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6948		fi
6949
6950		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6951			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6952		fi
6953
6954		CFLAGS="$CFLAGS -Wlogical-op"
6955
6956		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6957$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6958		cacheid=xorg_cv_cc_flag__Wlogical_op
6959		if eval \${$cacheid+:} false; then :
6960  $as_echo_n "(cached) " >&6
6961else
6962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963/* end confdefs.h.  */
6964int i;
6965int
6966main ()
6967{
6968
6969  ;
6970  return 0;
6971}
6972_ACEOF
6973if ac_fn_c_try_link "$LINENO"; then :
6974  eval $cacheid=yes
6975else
6976  eval $cacheid=no
6977fi
6978rm -f core conftest.err conftest.$ac_objext \
6979    conftest$ac_exeext conftest.$ac_ext
6980fi
6981
6982
6983		CFLAGS="$xorg_testset_save_CFLAGS"
6984
6985		eval supported=\$$cacheid
6986		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6987$as_echo "$supported" >&6; }
6988		if test "$supported" = "yes" ; then
6989			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6990			found="yes"
6991		fi
6992	fi
6993
6994
6995
6996# These are currently disabled because they are noisy.  They will be enabled
6997# in the future once the codebase is sufficiently modernized to silence
6998# them.  For now, I don't want them to drown out the other warnings.
6999# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7000# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7001# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7002
7003# Turn some warnings into errors, so we don't accidently get successful builds
7004# when there are problems that should be fixed.
7005
7006if test "x$SELECTIVE_WERROR" = "xyes" ; then
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020xorg_testset_save_CFLAGS="$CFLAGS"
7021
7022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7023	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7024	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7025$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7026if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7027  $as_echo_n "(cached) " >&6
7028else
7029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7030/* end confdefs.h.  */
7031int i;
7032_ACEOF
7033if ac_fn_c_try_compile "$LINENO"; then :
7034  xorg_cv_cc_flag_unknown_warning_option=yes
7035else
7036  xorg_cv_cc_flag_unknown_warning_option=no
7037fi
7038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7039fi
7040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7041$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7042	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7043	CFLAGS="$xorg_testset_save_CFLAGS"
7044fi
7045
7046if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7047	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7048		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7049	fi
7050	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7051	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7052$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7053if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7054  $as_echo_n "(cached) " >&6
7055else
7056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057/* end confdefs.h.  */
7058int i;
7059_ACEOF
7060if ac_fn_c_try_compile "$LINENO"; then :
7061  xorg_cv_cc_flag_unused_command_line_argument=yes
7062else
7063  xorg_cv_cc_flag_unused_command_line_argument=no
7064fi
7065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7066fi
7067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7068$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7069	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7070	CFLAGS="$xorg_testset_save_CFLAGS"
7071fi
7072
7073found="no"
7074
7075	if test $found = "no" ; then
7076		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7077			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7078		fi
7079
7080		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7081			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7082		fi
7083
7084		CFLAGS="$CFLAGS -Werror=implicit"
7085
7086		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7087$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7088		cacheid=xorg_cv_cc_flag__Werror_implicit
7089		if eval \${$cacheid+:} false; then :
7090  $as_echo_n "(cached) " >&6
7091else
7092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093/* end confdefs.h.  */
7094int i;
7095int
7096main ()
7097{
7098
7099  ;
7100  return 0;
7101}
7102_ACEOF
7103if ac_fn_c_try_link "$LINENO"; then :
7104  eval $cacheid=yes
7105else
7106  eval $cacheid=no
7107fi
7108rm -f core conftest.err conftest.$ac_objext \
7109    conftest$ac_exeext conftest.$ac_ext
7110fi
7111
7112
7113		CFLAGS="$xorg_testset_save_CFLAGS"
7114
7115		eval supported=\$$cacheid
7116		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7117$as_echo "$supported" >&6; }
7118		if test "$supported" = "yes" ; then
7119			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7120			found="yes"
7121		fi
7122	fi
7123
7124	if test $found = "no" ; then
7125		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7126			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7127		fi
7128
7129		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7130			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7131		fi
7132
7133		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7134
7135		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7136$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7137		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7138		if eval \${$cacheid+:} false; then :
7139  $as_echo_n "(cached) " >&6
7140else
7141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142/* end confdefs.h.  */
7143int i;
7144int
7145main ()
7146{
7147
7148  ;
7149  return 0;
7150}
7151_ACEOF
7152if ac_fn_c_try_link "$LINENO"; then :
7153  eval $cacheid=yes
7154else
7155  eval $cacheid=no
7156fi
7157rm -f core conftest.err conftest.$ac_objext \
7158    conftest$ac_exeext conftest.$ac_ext
7159fi
7160
7161
7162		CFLAGS="$xorg_testset_save_CFLAGS"
7163
7164		eval supported=\$$cacheid
7165		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7166$as_echo "$supported" >&6; }
7167		if test "$supported" = "yes" ; then
7168			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7169			found="yes"
7170		fi
7171	fi
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187xorg_testset_save_CFLAGS="$CFLAGS"
7188
7189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7190	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7191	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7192$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7193if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7194  $as_echo_n "(cached) " >&6
7195else
7196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197/* end confdefs.h.  */
7198int i;
7199_ACEOF
7200if ac_fn_c_try_compile "$LINENO"; then :
7201  xorg_cv_cc_flag_unknown_warning_option=yes
7202else
7203  xorg_cv_cc_flag_unknown_warning_option=no
7204fi
7205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206fi
7207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7208$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7209	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7210	CFLAGS="$xorg_testset_save_CFLAGS"
7211fi
7212
7213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7214	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7215		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7216	fi
7217	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7218	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7219$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7220if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7221  $as_echo_n "(cached) " >&6
7222else
7223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224/* end confdefs.h.  */
7225int i;
7226_ACEOF
7227if ac_fn_c_try_compile "$LINENO"; then :
7228  xorg_cv_cc_flag_unused_command_line_argument=yes
7229else
7230  xorg_cv_cc_flag_unused_command_line_argument=no
7231fi
7232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7233fi
7234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7235$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7236	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7237	CFLAGS="$xorg_testset_save_CFLAGS"
7238fi
7239
7240found="no"
7241
7242	if test $found = "no" ; then
7243		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7244			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7245		fi
7246
7247		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7248			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7249		fi
7250
7251		CFLAGS="$CFLAGS -Werror=nonnull"
7252
7253		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7254$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7255		cacheid=xorg_cv_cc_flag__Werror_nonnull
7256		if eval \${$cacheid+:} false; then :
7257  $as_echo_n "(cached) " >&6
7258else
7259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260/* end confdefs.h.  */
7261int i;
7262int
7263main ()
7264{
7265
7266  ;
7267  return 0;
7268}
7269_ACEOF
7270if ac_fn_c_try_link "$LINENO"; then :
7271  eval $cacheid=yes
7272else
7273  eval $cacheid=no
7274fi
7275rm -f core conftest.err conftest.$ac_objext \
7276    conftest$ac_exeext conftest.$ac_ext
7277fi
7278
7279
7280		CFLAGS="$xorg_testset_save_CFLAGS"
7281
7282		eval supported=\$$cacheid
7283		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7284$as_echo "$supported" >&6; }
7285		if test "$supported" = "yes" ; then
7286			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7287			found="yes"
7288		fi
7289	fi
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305xorg_testset_save_CFLAGS="$CFLAGS"
7306
7307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7308	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7309	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7310$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7311if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7312  $as_echo_n "(cached) " >&6
7313else
7314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315/* end confdefs.h.  */
7316int i;
7317_ACEOF
7318if ac_fn_c_try_compile "$LINENO"; then :
7319  xorg_cv_cc_flag_unknown_warning_option=yes
7320else
7321  xorg_cv_cc_flag_unknown_warning_option=no
7322fi
7323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7324fi
7325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7326$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7327	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7328	CFLAGS="$xorg_testset_save_CFLAGS"
7329fi
7330
7331if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7332	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7333		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7334	fi
7335	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7336	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7337$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7338if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7339  $as_echo_n "(cached) " >&6
7340else
7341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342/* end confdefs.h.  */
7343int i;
7344_ACEOF
7345if ac_fn_c_try_compile "$LINENO"; then :
7346  xorg_cv_cc_flag_unused_command_line_argument=yes
7347else
7348  xorg_cv_cc_flag_unused_command_line_argument=no
7349fi
7350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7351fi
7352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7353$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7354	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7355	CFLAGS="$xorg_testset_save_CFLAGS"
7356fi
7357
7358found="no"
7359
7360	if test $found = "no" ; then
7361		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7362			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7363		fi
7364
7365		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7366			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7367		fi
7368
7369		CFLAGS="$CFLAGS -Werror=init-self"
7370
7371		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7372$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7373		cacheid=xorg_cv_cc_flag__Werror_init_self
7374		if eval \${$cacheid+:} false; then :
7375  $as_echo_n "(cached) " >&6
7376else
7377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378/* end confdefs.h.  */
7379int i;
7380int
7381main ()
7382{
7383
7384  ;
7385  return 0;
7386}
7387_ACEOF
7388if ac_fn_c_try_link "$LINENO"; then :
7389  eval $cacheid=yes
7390else
7391  eval $cacheid=no
7392fi
7393rm -f core conftest.err conftest.$ac_objext \
7394    conftest$ac_exeext conftest.$ac_ext
7395fi
7396
7397
7398		CFLAGS="$xorg_testset_save_CFLAGS"
7399
7400		eval supported=\$$cacheid
7401		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7402$as_echo "$supported" >&6; }
7403		if test "$supported" = "yes" ; then
7404			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7405			found="yes"
7406		fi
7407	fi
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423xorg_testset_save_CFLAGS="$CFLAGS"
7424
7425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7426	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7427	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7428$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7429if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7430  $as_echo_n "(cached) " >&6
7431else
7432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433/* end confdefs.h.  */
7434int i;
7435_ACEOF
7436if ac_fn_c_try_compile "$LINENO"; then :
7437  xorg_cv_cc_flag_unknown_warning_option=yes
7438else
7439  xorg_cv_cc_flag_unknown_warning_option=no
7440fi
7441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442fi
7443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7444$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7445	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7446	CFLAGS="$xorg_testset_save_CFLAGS"
7447fi
7448
7449if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7450	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7451		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7452	fi
7453	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7454	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7455$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7456if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7457  $as_echo_n "(cached) " >&6
7458else
7459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460/* end confdefs.h.  */
7461int i;
7462_ACEOF
7463if ac_fn_c_try_compile "$LINENO"; then :
7464  xorg_cv_cc_flag_unused_command_line_argument=yes
7465else
7466  xorg_cv_cc_flag_unused_command_line_argument=no
7467fi
7468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469fi
7470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7471$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7472	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7473	CFLAGS="$xorg_testset_save_CFLAGS"
7474fi
7475
7476found="no"
7477
7478	if test $found = "no" ; then
7479		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7480			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7481		fi
7482
7483		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7484			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7485		fi
7486
7487		CFLAGS="$CFLAGS -Werror=main"
7488
7489		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7490$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7491		cacheid=xorg_cv_cc_flag__Werror_main
7492		if eval \${$cacheid+:} false; then :
7493  $as_echo_n "(cached) " >&6
7494else
7495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496/* end confdefs.h.  */
7497int i;
7498int
7499main ()
7500{
7501
7502  ;
7503  return 0;
7504}
7505_ACEOF
7506if ac_fn_c_try_link "$LINENO"; then :
7507  eval $cacheid=yes
7508else
7509  eval $cacheid=no
7510fi
7511rm -f core conftest.err conftest.$ac_objext \
7512    conftest$ac_exeext conftest.$ac_ext
7513fi
7514
7515
7516		CFLAGS="$xorg_testset_save_CFLAGS"
7517
7518		eval supported=\$$cacheid
7519		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7520$as_echo "$supported" >&6; }
7521		if test "$supported" = "yes" ; then
7522			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7523			found="yes"
7524		fi
7525	fi
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541xorg_testset_save_CFLAGS="$CFLAGS"
7542
7543if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7544	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7545	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7546$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7547if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7548  $as_echo_n "(cached) " >&6
7549else
7550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551/* end confdefs.h.  */
7552int i;
7553_ACEOF
7554if ac_fn_c_try_compile "$LINENO"; then :
7555  xorg_cv_cc_flag_unknown_warning_option=yes
7556else
7557  xorg_cv_cc_flag_unknown_warning_option=no
7558fi
7559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7560fi
7561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7562$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7563	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7564	CFLAGS="$xorg_testset_save_CFLAGS"
7565fi
7566
7567if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7568	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7569		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7570	fi
7571	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7572	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7573$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7574if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7575  $as_echo_n "(cached) " >&6
7576else
7577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578/* end confdefs.h.  */
7579int i;
7580_ACEOF
7581if ac_fn_c_try_compile "$LINENO"; then :
7582  xorg_cv_cc_flag_unused_command_line_argument=yes
7583else
7584  xorg_cv_cc_flag_unused_command_line_argument=no
7585fi
7586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587fi
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7589$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7590	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7591	CFLAGS="$xorg_testset_save_CFLAGS"
7592fi
7593
7594found="no"
7595
7596	if test $found = "no" ; then
7597		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7598			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7599		fi
7600
7601		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7602			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7603		fi
7604
7605		CFLAGS="$CFLAGS -Werror=missing-braces"
7606
7607		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7608$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7609		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7610		if eval \${$cacheid+:} false; then :
7611  $as_echo_n "(cached) " >&6
7612else
7613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614/* end confdefs.h.  */
7615int i;
7616int
7617main ()
7618{
7619
7620  ;
7621  return 0;
7622}
7623_ACEOF
7624if ac_fn_c_try_link "$LINENO"; then :
7625  eval $cacheid=yes
7626else
7627  eval $cacheid=no
7628fi
7629rm -f core conftest.err conftest.$ac_objext \
7630    conftest$ac_exeext conftest.$ac_ext
7631fi
7632
7633
7634		CFLAGS="$xorg_testset_save_CFLAGS"
7635
7636		eval supported=\$$cacheid
7637		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7638$as_echo "$supported" >&6; }
7639		if test "$supported" = "yes" ; then
7640			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7641			found="yes"
7642		fi
7643	fi
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659xorg_testset_save_CFLAGS="$CFLAGS"
7660
7661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7662	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7663	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7664$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7665if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7666  $as_echo_n "(cached) " >&6
7667else
7668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669/* end confdefs.h.  */
7670int i;
7671_ACEOF
7672if ac_fn_c_try_compile "$LINENO"; then :
7673  xorg_cv_cc_flag_unknown_warning_option=yes
7674else
7675  xorg_cv_cc_flag_unknown_warning_option=no
7676fi
7677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7678fi
7679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7680$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7681	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7682	CFLAGS="$xorg_testset_save_CFLAGS"
7683fi
7684
7685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7686	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7687		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7688	fi
7689	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7690	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7691$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7692if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7693  $as_echo_n "(cached) " >&6
7694else
7695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696/* end confdefs.h.  */
7697int i;
7698_ACEOF
7699if ac_fn_c_try_compile "$LINENO"; then :
7700  xorg_cv_cc_flag_unused_command_line_argument=yes
7701else
7702  xorg_cv_cc_flag_unused_command_line_argument=no
7703fi
7704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7705fi
7706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7707$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7708	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7709	CFLAGS="$xorg_testset_save_CFLAGS"
7710fi
7711
7712found="no"
7713
7714	if test $found = "no" ; then
7715		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7716			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7717		fi
7718
7719		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7720			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7721		fi
7722
7723		CFLAGS="$CFLAGS -Werror=sequence-point"
7724
7725		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7726$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7727		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7728		if eval \${$cacheid+:} false; then :
7729  $as_echo_n "(cached) " >&6
7730else
7731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732/* end confdefs.h.  */
7733int i;
7734int
7735main ()
7736{
7737
7738  ;
7739  return 0;
7740}
7741_ACEOF
7742if ac_fn_c_try_link "$LINENO"; then :
7743  eval $cacheid=yes
7744else
7745  eval $cacheid=no
7746fi
7747rm -f core conftest.err conftest.$ac_objext \
7748    conftest$ac_exeext conftest.$ac_ext
7749fi
7750
7751
7752		CFLAGS="$xorg_testset_save_CFLAGS"
7753
7754		eval supported=\$$cacheid
7755		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7756$as_echo "$supported" >&6; }
7757		if test "$supported" = "yes" ; then
7758			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7759			found="yes"
7760		fi
7761	fi
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777xorg_testset_save_CFLAGS="$CFLAGS"
7778
7779if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7780	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7781	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7782$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7783if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7784  $as_echo_n "(cached) " >&6
7785else
7786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787/* end confdefs.h.  */
7788int i;
7789_ACEOF
7790if ac_fn_c_try_compile "$LINENO"; then :
7791  xorg_cv_cc_flag_unknown_warning_option=yes
7792else
7793  xorg_cv_cc_flag_unknown_warning_option=no
7794fi
7795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7796fi
7797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7798$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7799	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7800	CFLAGS="$xorg_testset_save_CFLAGS"
7801fi
7802
7803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7804	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7805		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7806	fi
7807	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7808	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7809$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7810if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7811  $as_echo_n "(cached) " >&6
7812else
7813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814/* end confdefs.h.  */
7815int i;
7816_ACEOF
7817if ac_fn_c_try_compile "$LINENO"; then :
7818  xorg_cv_cc_flag_unused_command_line_argument=yes
7819else
7820  xorg_cv_cc_flag_unused_command_line_argument=no
7821fi
7822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823fi
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7825$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7826	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7827	CFLAGS="$xorg_testset_save_CFLAGS"
7828fi
7829
7830found="no"
7831
7832	if test $found = "no" ; then
7833		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7834			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7835		fi
7836
7837		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7838			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7839		fi
7840
7841		CFLAGS="$CFLAGS -Werror=return-type"
7842
7843		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7844$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7845		cacheid=xorg_cv_cc_flag__Werror_return_type
7846		if eval \${$cacheid+:} false; then :
7847  $as_echo_n "(cached) " >&6
7848else
7849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850/* end confdefs.h.  */
7851int i;
7852int
7853main ()
7854{
7855
7856  ;
7857  return 0;
7858}
7859_ACEOF
7860if ac_fn_c_try_link "$LINENO"; then :
7861  eval $cacheid=yes
7862else
7863  eval $cacheid=no
7864fi
7865rm -f core conftest.err conftest.$ac_objext \
7866    conftest$ac_exeext conftest.$ac_ext
7867fi
7868
7869
7870		CFLAGS="$xorg_testset_save_CFLAGS"
7871
7872		eval supported=\$$cacheid
7873		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7874$as_echo "$supported" >&6; }
7875		if test "$supported" = "yes" ; then
7876			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7877			found="yes"
7878		fi
7879	fi
7880
7881	if test $found = "no" ; then
7882		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7883			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7884		fi
7885
7886		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7887			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7888		fi
7889
7890		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7891
7892		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7893$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7894		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7895		if eval \${$cacheid+:} false; then :
7896  $as_echo_n "(cached) " >&6
7897else
7898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899/* end confdefs.h.  */
7900int i;
7901int
7902main ()
7903{
7904
7905  ;
7906  return 0;
7907}
7908_ACEOF
7909if ac_fn_c_try_link "$LINENO"; then :
7910  eval $cacheid=yes
7911else
7912  eval $cacheid=no
7913fi
7914rm -f core conftest.err conftest.$ac_objext \
7915    conftest$ac_exeext conftest.$ac_ext
7916fi
7917
7918
7919		CFLAGS="$xorg_testset_save_CFLAGS"
7920
7921		eval supported=\$$cacheid
7922		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7923$as_echo "$supported" >&6; }
7924		if test "$supported" = "yes" ; then
7925			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7926			found="yes"
7927		fi
7928	fi
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944xorg_testset_save_CFLAGS="$CFLAGS"
7945
7946if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7947	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7948	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7949$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7950if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7951  $as_echo_n "(cached) " >&6
7952else
7953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954/* end confdefs.h.  */
7955int i;
7956_ACEOF
7957if ac_fn_c_try_compile "$LINENO"; then :
7958  xorg_cv_cc_flag_unknown_warning_option=yes
7959else
7960  xorg_cv_cc_flag_unknown_warning_option=no
7961fi
7962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7963fi
7964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7965$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7966	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7967	CFLAGS="$xorg_testset_save_CFLAGS"
7968fi
7969
7970if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7971	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7972		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7973	fi
7974	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7975	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7976$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7977if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7978  $as_echo_n "(cached) " >&6
7979else
7980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981/* end confdefs.h.  */
7982int i;
7983_ACEOF
7984if ac_fn_c_try_compile "$LINENO"; then :
7985  xorg_cv_cc_flag_unused_command_line_argument=yes
7986else
7987  xorg_cv_cc_flag_unused_command_line_argument=no
7988fi
7989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7990fi
7991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7992$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7993	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7994	CFLAGS="$xorg_testset_save_CFLAGS"
7995fi
7996
7997found="no"
7998
7999	if test $found = "no" ; then
8000		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8001			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8002		fi
8003
8004		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8005			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8006		fi
8007
8008		CFLAGS="$CFLAGS -Werror=trigraphs"
8009
8010		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8011$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8012		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8013		if eval \${$cacheid+:} false; then :
8014  $as_echo_n "(cached) " >&6
8015else
8016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017/* end confdefs.h.  */
8018int i;
8019int
8020main ()
8021{
8022
8023  ;
8024  return 0;
8025}
8026_ACEOF
8027if ac_fn_c_try_link "$LINENO"; then :
8028  eval $cacheid=yes
8029else
8030  eval $cacheid=no
8031fi
8032rm -f core conftest.err conftest.$ac_objext \
8033    conftest$ac_exeext conftest.$ac_ext
8034fi
8035
8036
8037		CFLAGS="$xorg_testset_save_CFLAGS"
8038
8039		eval supported=\$$cacheid
8040		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8041$as_echo "$supported" >&6; }
8042		if test "$supported" = "yes" ; then
8043			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8044			found="yes"
8045		fi
8046	fi
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062xorg_testset_save_CFLAGS="$CFLAGS"
8063
8064if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8065	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8066	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8067$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8068if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8069  $as_echo_n "(cached) " >&6
8070else
8071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072/* end confdefs.h.  */
8073int i;
8074_ACEOF
8075if ac_fn_c_try_compile "$LINENO"; then :
8076  xorg_cv_cc_flag_unknown_warning_option=yes
8077else
8078  xorg_cv_cc_flag_unknown_warning_option=no
8079fi
8080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8081fi
8082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8083$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8084	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8085	CFLAGS="$xorg_testset_save_CFLAGS"
8086fi
8087
8088if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8089	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8090		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8091	fi
8092	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8093	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8094$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8095if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8096  $as_echo_n "(cached) " >&6
8097else
8098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099/* end confdefs.h.  */
8100int i;
8101_ACEOF
8102if ac_fn_c_try_compile "$LINENO"; then :
8103  xorg_cv_cc_flag_unused_command_line_argument=yes
8104else
8105  xorg_cv_cc_flag_unused_command_line_argument=no
8106fi
8107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8108fi
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8110$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8111	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8112	CFLAGS="$xorg_testset_save_CFLAGS"
8113fi
8114
8115found="no"
8116
8117	if test $found = "no" ; then
8118		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8119			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8120		fi
8121
8122		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8123			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8124		fi
8125
8126		CFLAGS="$CFLAGS -Werror=array-bounds"
8127
8128		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8129$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8130		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8131		if eval \${$cacheid+:} false; then :
8132  $as_echo_n "(cached) " >&6
8133else
8134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135/* end confdefs.h.  */
8136int i;
8137int
8138main ()
8139{
8140
8141  ;
8142  return 0;
8143}
8144_ACEOF
8145if ac_fn_c_try_link "$LINENO"; then :
8146  eval $cacheid=yes
8147else
8148  eval $cacheid=no
8149fi
8150rm -f core conftest.err conftest.$ac_objext \
8151    conftest$ac_exeext conftest.$ac_ext
8152fi
8153
8154
8155		CFLAGS="$xorg_testset_save_CFLAGS"
8156
8157		eval supported=\$$cacheid
8158		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8159$as_echo "$supported" >&6; }
8160		if test "$supported" = "yes" ; then
8161			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8162			found="yes"
8163		fi
8164	fi
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180xorg_testset_save_CFLAGS="$CFLAGS"
8181
8182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8183	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8184	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8185$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8186if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8187  $as_echo_n "(cached) " >&6
8188else
8189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190/* end confdefs.h.  */
8191int i;
8192_ACEOF
8193if ac_fn_c_try_compile "$LINENO"; then :
8194  xorg_cv_cc_flag_unknown_warning_option=yes
8195else
8196  xorg_cv_cc_flag_unknown_warning_option=no
8197fi
8198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199fi
8200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8201$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8202	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8203	CFLAGS="$xorg_testset_save_CFLAGS"
8204fi
8205
8206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8207	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8208		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8209	fi
8210	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8211	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8212$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8213if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8214  $as_echo_n "(cached) " >&6
8215else
8216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217/* end confdefs.h.  */
8218int i;
8219_ACEOF
8220if ac_fn_c_try_compile "$LINENO"; then :
8221  xorg_cv_cc_flag_unused_command_line_argument=yes
8222else
8223  xorg_cv_cc_flag_unused_command_line_argument=no
8224fi
8225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8226fi
8227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8228$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8229	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8230	CFLAGS="$xorg_testset_save_CFLAGS"
8231fi
8232
8233found="no"
8234
8235	if test $found = "no" ; then
8236		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8237			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8238		fi
8239
8240		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8241			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8242		fi
8243
8244		CFLAGS="$CFLAGS -Werror=write-strings"
8245
8246		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8247$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8248		cacheid=xorg_cv_cc_flag__Werror_write_strings
8249		if eval \${$cacheid+:} false; then :
8250  $as_echo_n "(cached) " >&6
8251else
8252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253/* end confdefs.h.  */
8254int i;
8255int
8256main ()
8257{
8258
8259  ;
8260  return 0;
8261}
8262_ACEOF
8263if ac_fn_c_try_link "$LINENO"; then :
8264  eval $cacheid=yes
8265else
8266  eval $cacheid=no
8267fi
8268rm -f core conftest.err conftest.$ac_objext \
8269    conftest$ac_exeext conftest.$ac_ext
8270fi
8271
8272
8273		CFLAGS="$xorg_testset_save_CFLAGS"
8274
8275		eval supported=\$$cacheid
8276		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8277$as_echo "$supported" >&6; }
8278		if test "$supported" = "yes" ; then
8279			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8280			found="yes"
8281		fi
8282	fi
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298xorg_testset_save_CFLAGS="$CFLAGS"
8299
8300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8301	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8302	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8303$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8304if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8305  $as_echo_n "(cached) " >&6
8306else
8307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308/* end confdefs.h.  */
8309int i;
8310_ACEOF
8311if ac_fn_c_try_compile "$LINENO"; then :
8312  xorg_cv_cc_flag_unknown_warning_option=yes
8313else
8314  xorg_cv_cc_flag_unknown_warning_option=no
8315fi
8316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317fi
8318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8319$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8320	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8321	CFLAGS="$xorg_testset_save_CFLAGS"
8322fi
8323
8324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8325	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8326		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8327	fi
8328	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8329	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8330$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8331if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8332  $as_echo_n "(cached) " >&6
8333else
8334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335/* end confdefs.h.  */
8336int i;
8337_ACEOF
8338if ac_fn_c_try_compile "$LINENO"; then :
8339  xorg_cv_cc_flag_unused_command_line_argument=yes
8340else
8341  xorg_cv_cc_flag_unused_command_line_argument=no
8342fi
8343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344fi
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8346$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8347	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8348	CFLAGS="$xorg_testset_save_CFLAGS"
8349fi
8350
8351found="no"
8352
8353	if test $found = "no" ; then
8354		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8355			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8356		fi
8357
8358		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8359			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8360		fi
8361
8362		CFLAGS="$CFLAGS -Werror=address"
8363
8364		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8365$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8366		cacheid=xorg_cv_cc_flag__Werror_address
8367		if eval \${$cacheid+:} false; then :
8368  $as_echo_n "(cached) " >&6
8369else
8370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371/* end confdefs.h.  */
8372int i;
8373int
8374main ()
8375{
8376
8377  ;
8378  return 0;
8379}
8380_ACEOF
8381if ac_fn_c_try_link "$LINENO"; then :
8382  eval $cacheid=yes
8383else
8384  eval $cacheid=no
8385fi
8386rm -f core conftest.err conftest.$ac_objext \
8387    conftest$ac_exeext conftest.$ac_ext
8388fi
8389
8390
8391		CFLAGS="$xorg_testset_save_CFLAGS"
8392
8393		eval supported=\$$cacheid
8394		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8395$as_echo "$supported" >&6; }
8396		if test "$supported" = "yes" ; then
8397			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8398			found="yes"
8399		fi
8400	fi
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416xorg_testset_save_CFLAGS="$CFLAGS"
8417
8418if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8419	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8420	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8421$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8422if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8423  $as_echo_n "(cached) " >&6
8424else
8425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426/* end confdefs.h.  */
8427int i;
8428_ACEOF
8429if ac_fn_c_try_compile "$LINENO"; then :
8430  xorg_cv_cc_flag_unknown_warning_option=yes
8431else
8432  xorg_cv_cc_flag_unknown_warning_option=no
8433fi
8434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435fi
8436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8437$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8438	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8439	CFLAGS="$xorg_testset_save_CFLAGS"
8440fi
8441
8442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8443	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8444		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8445	fi
8446	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8447	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8448$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8449if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8450  $as_echo_n "(cached) " >&6
8451else
8452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453/* end confdefs.h.  */
8454int i;
8455_ACEOF
8456if ac_fn_c_try_compile "$LINENO"; then :
8457  xorg_cv_cc_flag_unused_command_line_argument=yes
8458else
8459  xorg_cv_cc_flag_unused_command_line_argument=no
8460fi
8461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8462fi
8463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8464$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8465	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8466	CFLAGS="$xorg_testset_save_CFLAGS"
8467fi
8468
8469found="no"
8470
8471	if test $found = "no" ; then
8472		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8473			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8474		fi
8475
8476		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8477			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8478		fi
8479
8480		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8481
8482		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8483$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8484		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8485		if eval \${$cacheid+:} false; then :
8486  $as_echo_n "(cached) " >&6
8487else
8488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489/* end confdefs.h.  */
8490int i;
8491int
8492main ()
8493{
8494
8495  ;
8496  return 0;
8497}
8498_ACEOF
8499if ac_fn_c_try_link "$LINENO"; then :
8500  eval $cacheid=yes
8501else
8502  eval $cacheid=no
8503fi
8504rm -f core conftest.err conftest.$ac_objext \
8505    conftest$ac_exeext conftest.$ac_ext
8506fi
8507
8508
8509		CFLAGS="$xorg_testset_save_CFLAGS"
8510
8511		eval supported=\$$cacheid
8512		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8513$as_echo "$supported" >&6; }
8514		if test "$supported" = "yes" ; then
8515			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8516			found="yes"
8517		fi
8518	fi
8519
8520	if test $found = "no" ; then
8521		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8522			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8523		fi
8524
8525		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8526			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8527		fi
8528
8529		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8530
8531		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8532$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8533		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8534		if eval \${$cacheid+:} false; then :
8535  $as_echo_n "(cached) " >&6
8536else
8537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538/* end confdefs.h.  */
8539int i;
8540int
8541main ()
8542{
8543
8544  ;
8545  return 0;
8546}
8547_ACEOF
8548if ac_fn_c_try_link "$LINENO"; then :
8549  eval $cacheid=yes
8550else
8551  eval $cacheid=no
8552fi
8553rm -f core conftest.err conftest.$ac_objext \
8554    conftest$ac_exeext conftest.$ac_ext
8555fi
8556
8557
8558		CFLAGS="$xorg_testset_save_CFLAGS"
8559
8560		eval supported=\$$cacheid
8561		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8562$as_echo "$supported" >&6; }
8563		if test "$supported" = "yes" ; then
8564			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8565			found="yes"
8566		fi
8567	fi
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583xorg_testset_save_CFLAGS="$CFLAGS"
8584
8585if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8586	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8587	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8588$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8589if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8590  $as_echo_n "(cached) " >&6
8591else
8592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8593/* end confdefs.h.  */
8594int i;
8595_ACEOF
8596if ac_fn_c_try_compile "$LINENO"; then :
8597  xorg_cv_cc_flag_unknown_warning_option=yes
8598else
8599  xorg_cv_cc_flag_unknown_warning_option=no
8600fi
8601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8602fi
8603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8604$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8605	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8606	CFLAGS="$xorg_testset_save_CFLAGS"
8607fi
8608
8609if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8610	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8611		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8612	fi
8613	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8614	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8615$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8616if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8617  $as_echo_n "(cached) " >&6
8618else
8619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620/* end confdefs.h.  */
8621int i;
8622_ACEOF
8623if ac_fn_c_try_compile "$LINENO"; then :
8624  xorg_cv_cc_flag_unused_command_line_argument=yes
8625else
8626  xorg_cv_cc_flag_unused_command_line_argument=no
8627fi
8628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8629fi
8630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8631$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8632	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8633	CFLAGS="$xorg_testset_save_CFLAGS"
8634fi
8635
8636found="no"
8637
8638	if test $found = "no" ; then
8639		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8640			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8641		fi
8642
8643		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8644			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8645		fi
8646
8647		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8648
8649		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8650$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8651		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8652		if eval \${$cacheid+:} false; then :
8653  $as_echo_n "(cached) " >&6
8654else
8655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656/* end confdefs.h.  */
8657int i;
8658int
8659main ()
8660{
8661
8662  ;
8663  return 0;
8664}
8665_ACEOF
8666if ac_fn_c_try_link "$LINENO"; then :
8667  eval $cacheid=yes
8668else
8669  eval $cacheid=no
8670fi
8671rm -f core conftest.err conftest.$ac_objext \
8672    conftest$ac_exeext conftest.$ac_ext
8673fi
8674
8675
8676		CFLAGS="$xorg_testset_save_CFLAGS"
8677
8678		eval supported=\$$cacheid
8679		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8680$as_echo "$supported" >&6; }
8681		if test "$supported" = "yes" ; then
8682			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8683			found="yes"
8684		fi
8685	fi
8686
8687 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8688else
8689{ $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
8690$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;}
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704xorg_testset_save_CFLAGS="$CFLAGS"
8705
8706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8707	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8708	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8709$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8710if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8711  $as_echo_n "(cached) " >&6
8712else
8713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8714/* end confdefs.h.  */
8715int i;
8716_ACEOF
8717if ac_fn_c_try_compile "$LINENO"; then :
8718  xorg_cv_cc_flag_unknown_warning_option=yes
8719else
8720  xorg_cv_cc_flag_unknown_warning_option=no
8721fi
8722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723fi
8724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8725$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8726	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8727	CFLAGS="$xorg_testset_save_CFLAGS"
8728fi
8729
8730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8731	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8732		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8733	fi
8734	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8735	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8736$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8737if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8738  $as_echo_n "(cached) " >&6
8739else
8740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741/* end confdefs.h.  */
8742int i;
8743_ACEOF
8744if ac_fn_c_try_compile "$LINENO"; then :
8745  xorg_cv_cc_flag_unused_command_line_argument=yes
8746else
8747  xorg_cv_cc_flag_unused_command_line_argument=no
8748fi
8749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750fi
8751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8752$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8753	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8754	CFLAGS="$xorg_testset_save_CFLAGS"
8755fi
8756
8757found="no"
8758
8759	if test $found = "no" ; then
8760		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8761			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8762		fi
8763
8764		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8765			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8766		fi
8767
8768		CFLAGS="$CFLAGS -Wimplicit"
8769
8770		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8771$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8772		cacheid=xorg_cv_cc_flag__Wimplicit
8773		if eval \${$cacheid+:} false; then :
8774  $as_echo_n "(cached) " >&6
8775else
8776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777/* end confdefs.h.  */
8778int i;
8779int
8780main ()
8781{
8782
8783  ;
8784  return 0;
8785}
8786_ACEOF
8787if ac_fn_c_try_link "$LINENO"; then :
8788  eval $cacheid=yes
8789else
8790  eval $cacheid=no
8791fi
8792rm -f core conftest.err conftest.$ac_objext \
8793    conftest$ac_exeext conftest.$ac_ext
8794fi
8795
8796
8797		CFLAGS="$xorg_testset_save_CFLAGS"
8798
8799		eval supported=\$$cacheid
8800		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8801$as_echo "$supported" >&6; }
8802		if test "$supported" = "yes" ; then
8803			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8804			found="yes"
8805		fi
8806	fi
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822xorg_testset_save_CFLAGS="$CFLAGS"
8823
8824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8825	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8826	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8827$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8828if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8829  $as_echo_n "(cached) " >&6
8830else
8831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832/* end confdefs.h.  */
8833int i;
8834_ACEOF
8835if ac_fn_c_try_compile "$LINENO"; then :
8836  xorg_cv_cc_flag_unknown_warning_option=yes
8837else
8838  xorg_cv_cc_flag_unknown_warning_option=no
8839fi
8840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8841fi
8842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8843$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8844	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8845	CFLAGS="$xorg_testset_save_CFLAGS"
8846fi
8847
8848if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8849	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8850		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8851	fi
8852	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8853	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8854$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8855if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8856  $as_echo_n "(cached) " >&6
8857else
8858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859/* end confdefs.h.  */
8860int i;
8861_ACEOF
8862if ac_fn_c_try_compile "$LINENO"; then :
8863  xorg_cv_cc_flag_unused_command_line_argument=yes
8864else
8865  xorg_cv_cc_flag_unused_command_line_argument=no
8866fi
8867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8868fi
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8870$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8871	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8872	CFLAGS="$xorg_testset_save_CFLAGS"
8873fi
8874
8875found="no"
8876
8877	if test $found = "no" ; then
8878		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8879			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8880		fi
8881
8882		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8883			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8884		fi
8885
8886		CFLAGS="$CFLAGS -Wnonnull"
8887
8888		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8889$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8890		cacheid=xorg_cv_cc_flag__Wnonnull
8891		if eval \${$cacheid+:} false; then :
8892  $as_echo_n "(cached) " >&6
8893else
8894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895/* end confdefs.h.  */
8896int i;
8897int
8898main ()
8899{
8900
8901  ;
8902  return 0;
8903}
8904_ACEOF
8905if ac_fn_c_try_link "$LINENO"; then :
8906  eval $cacheid=yes
8907else
8908  eval $cacheid=no
8909fi
8910rm -f core conftest.err conftest.$ac_objext \
8911    conftest$ac_exeext conftest.$ac_ext
8912fi
8913
8914
8915		CFLAGS="$xorg_testset_save_CFLAGS"
8916
8917		eval supported=\$$cacheid
8918		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8919$as_echo "$supported" >&6; }
8920		if test "$supported" = "yes" ; then
8921			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8922			found="yes"
8923		fi
8924	fi
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940xorg_testset_save_CFLAGS="$CFLAGS"
8941
8942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8943	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8944	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8945$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8946if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8947  $as_echo_n "(cached) " >&6
8948else
8949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8950/* end confdefs.h.  */
8951int i;
8952_ACEOF
8953if ac_fn_c_try_compile "$LINENO"; then :
8954  xorg_cv_cc_flag_unknown_warning_option=yes
8955else
8956  xorg_cv_cc_flag_unknown_warning_option=no
8957fi
8958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8959fi
8960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8961$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8962	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8963	CFLAGS="$xorg_testset_save_CFLAGS"
8964fi
8965
8966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8967	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8968		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8969	fi
8970	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8971	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8972$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8973if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8974  $as_echo_n "(cached) " >&6
8975else
8976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977/* end confdefs.h.  */
8978int i;
8979_ACEOF
8980if ac_fn_c_try_compile "$LINENO"; then :
8981  xorg_cv_cc_flag_unused_command_line_argument=yes
8982else
8983  xorg_cv_cc_flag_unused_command_line_argument=no
8984fi
8985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986fi
8987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8988$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8989	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8990	CFLAGS="$xorg_testset_save_CFLAGS"
8991fi
8992
8993found="no"
8994
8995	if test $found = "no" ; then
8996		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8997			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8998		fi
8999
9000		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9001			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9002		fi
9003
9004		CFLAGS="$CFLAGS -Winit-self"
9005
9006		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9007$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9008		cacheid=xorg_cv_cc_flag__Winit_self
9009		if eval \${$cacheid+:} false; then :
9010  $as_echo_n "(cached) " >&6
9011else
9012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9013/* end confdefs.h.  */
9014int i;
9015int
9016main ()
9017{
9018
9019  ;
9020  return 0;
9021}
9022_ACEOF
9023if ac_fn_c_try_link "$LINENO"; then :
9024  eval $cacheid=yes
9025else
9026  eval $cacheid=no
9027fi
9028rm -f core conftest.err conftest.$ac_objext \
9029    conftest$ac_exeext conftest.$ac_ext
9030fi
9031
9032
9033		CFLAGS="$xorg_testset_save_CFLAGS"
9034
9035		eval supported=\$$cacheid
9036		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9037$as_echo "$supported" >&6; }
9038		if test "$supported" = "yes" ; then
9039			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9040			found="yes"
9041		fi
9042	fi
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058xorg_testset_save_CFLAGS="$CFLAGS"
9059
9060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9061	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9062	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9063$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9064if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9065  $as_echo_n "(cached) " >&6
9066else
9067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068/* end confdefs.h.  */
9069int i;
9070_ACEOF
9071if ac_fn_c_try_compile "$LINENO"; then :
9072  xorg_cv_cc_flag_unknown_warning_option=yes
9073else
9074  xorg_cv_cc_flag_unknown_warning_option=no
9075fi
9076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9077fi
9078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9079$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9080	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9081	CFLAGS="$xorg_testset_save_CFLAGS"
9082fi
9083
9084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9085	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9086		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9087	fi
9088	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9089	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9090$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9091if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9092  $as_echo_n "(cached) " >&6
9093else
9094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095/* end confdefs.h.  */
9096int i;
9097_ACEOF
9098if ac_fn_c_try_compile "$LINENO"; then :
9099  xorg_cv_cc_flag_unused_command_line_argument=yes
9100else
9101  xorg_cv_cc_flag_unused_command_line_argument=no
9102fi
9103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9104fi
9105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9106$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9107	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9108	CFLAGS="$xorg_testset_save_CFLAGS"
9109fi
9110
9111found="no"
9112
9113	if test $found = "no" ; then
9114		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9115			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9116		fi
9117
9118		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9119			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9120		fi
9121
9122		CFLAGS="$CFLAGS -Wmain"
9123
9124		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9125$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9126		cacheid=xorg_cv_cc_flag__Wmain
9127		if eval \${$cacheid+:} false; then :
9128  $as_echo_n "(cached) " >&6
9129else
9130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9131/* end confdefs.h.  */
9132int i;
9133int
9134main ()
9135{
9136
9137  ;
9138  return 0;
9139}
9140_ACEOF
9141if ac_fn_c_try_link "$LINENO"; then :
9142  eval $cacheid=yes
9143else
9144  eval $cacheid=no
9145fi
9146rm -f core conftest.err conftest.$ac_objext \
9147    conftest$ac_exeext conftest.$ac_ext
9148fi
9149
9150
9151		CFLAGS="$xorg_testset_save_CFLAGS"
9152
9153		eval supported=\$$cacheid
9154		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9155$as_echo "$supported" >&6; }
9156		if test "$supported" = "yes" ; then
9157			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9158			found="yes"
9159		fi
9160	fi
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176xorg_testset_save_CFLAGS="$CFLAGS"
9177
9178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9179	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9180	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9181$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9182if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9183  $as_echo_n "(cached) " >&6
9184else
9185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186/* end confdefs.h.  */
9187int i;
9188_ACEOF
9189if ac_fn_c_try_compile "$LINENO"; then :
9190  xorg_cv_cc_flag_unknown_warning_option=yes
9191else
9192  xorg_cv_cc_flag_unknown_warning_option=no
9193fi
9194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9195fi
9196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9197$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9198	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9199	CFLAGS="$xorg_testset_save_CFLAGS"
9200fi
9201
9202if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9203	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9204		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9205	fi
9206	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9207	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9208$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9209if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9210  $as_echo_n "(cached) " >&6
9211else
9212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213/* end confdefs.h.  */
9214int i;
9215_ACEOF
9216if ac_fn_c_try_compile "$LINENO"; then :
9217  xorg_cv_cc_flag_unused_command_line_argument=yes
9218else
9219  xorg_cv_cc_flag_unused_command_line_argument=no
9220fi
9221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9222fi
9223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9224$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9225	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9226	CFLAGS="$xorg_testset_save_CFLAGS"
9227fi
9228
9229found="no"
9230
9231	if test $found = "no" ; then
9232		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9233			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9234		fi
9235
9236		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9237			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9238		fi
9239
9240		CFLAGS="$CFLAGS -Wmissing-braces"
9241
9242		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9243$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9244		cacheid=xorg_cv_cc_flag__Wmissing_braces
9245		if eval \${$cacheid+:} false; then :
9246  $as_echo_n "(cached) " >&6
9247else
9248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249/* end confdefs.h.  */
9250int i;
9251int
9252main ()
9253{
9254
9255  ;
9256  return 0;
9257}
9258_ACEOF
9259if ac_fn_c_try_link "$LINENO"; then :
9260  eval $cacheid=yes
9261else
9262  eval $cacheid=no
9263fi
9264rm -f core conftest.err conftest.$ac_objext \
9265    conftest$ac_exeext conftest.$ac_ext
9266fi
9267
9268
9269		CFLAGS="$xorg_testset_save_CFLAGS"
9270
9271		eval supported=\$$cacheid
9272		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9273$as_echo "$supported" >&6; }
9274		if test "$supported" = "yes" ; then
9275			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9276			found="yes"
9277		fi
9278	fi
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294xorg_testset_save_CFLAGS="$CFLAGS"
9295
9296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9297	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9298	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9299$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9300if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9301  $as_echo_n "(cached) " >&6
9302else
9303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9304/* end confdefs.h.  */
9305int i;
9306_ACEOF
9307if ac_fn_c_try_compile "$LINENO"; then :
9308  xorg_cv_cc_flag_unknown_warning_option=yes
9309else
9310  xorg_cv_cc_flag_unknown_warning_option=no
9311fi
9312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9313fi
9314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9315$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9316	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9317	CFLAGS="$xorg_testset_save_CFLAGS"
9318fi
9319
9320if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9321	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9322		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9323	fi
9324	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9326$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9327if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9328  $as_echo_n "(cached) " >&6
9329else
9330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331/* end confdefs.h.  */
9332int i;
9333_ACEOF
9334if ac_fn_c_try_compile "$LINENO"; then :
9335  xorg_cv_cc_flag_unused_command_line_argument=yes
9336else
9337  xorg_cv_cc_flag_unused_command_line_argument=no
9338fi
9339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9340fi
9341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9342$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9343	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9344	CFLAGS="$xorg_testset_save_CFLAGS"
9345fi
9346
9347found="no"
9348
9349	if test $found = "no" ; then
9350		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9351			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9352		fi
9353
9354		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9355			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9356		fi
9357
9358		CFLAGS="$CFLAGS -Wsequence-point"
9359
9360		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9361$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9362		cacheid=xorg_cv_cc_flag__Wsequence_point
9363		if eval \${$cacheid+:} false; then :
9364  $as_echo_n "(cached) " >&6
9365else
9366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367/* end confdefs.h.  */
9368int i;
9369int
9370main ()
9371{
9372
9373  ;
9374  return 0;
9375}
9376_ACEOF
9377if ac_fn_c_try_link "$LINENO"; then :
9378  eval $cacheid=yes
9379else
9380  eval $cacheid=no
9381fi
9382rm -f core conftest.err conftest.$ac_objext \
9383    conftest$ac_exeext conftest.$ac_ext
9384fi
9385
9386
9387		CFLAGS="$xorg_testset_save_CFLAGS"
9388
9389		eval supported=\$$cacheid
9390		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9391$as_echo "$supported" >&6; }
9392		if test "$supported" = "yes" ; then
9393			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9394			found="yes"
9395		fi
9396	fi
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412xorg_testset_save_CFLAGS="$CFLAGS"
9413
9414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9415	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9416	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9417$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9418if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9419  $as_echo_n "(cached) " >&6
9420else
9421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422/* end confdefs.h.  */
9423int i;
9424_ACEOF
9425if ac_fn_c_try_compile "$LINENO"; then :
9426  xorg_cv_cc_flag_unknown_warning_option=yes
9427else
9428  xorg_cv_cc_flag_unknown_warning_option=no
9429fi
9430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9431fi
9432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9433$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9434	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9435	CFLAGS="$xorg_testset_save_CFLAGS"
9436fi
9437
9438if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9439	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9440		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9441	fi
9442	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9444$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9445if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9446  $as_echo_n "(cached) " >&6
9447else
9448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449/* end confdefs.h.  */
9450int i;
9451_ACEOF
9452if ac_fn_c_try_compile "$LINENO"; then :
9453  xorg_cv_cc_flag_unused_command_line_argument=yes
9454else
9455  xorg_cv_cc_flag_unused_command_line_argument=no
9456fi
9457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9458fi
9459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9460$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9461	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9462	CFLAGS="$xorg_testset_save_CFLAGS"
9463fi
9464
9465found="no"
9466
9467	if test $found = "no" ; then
9468		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9469			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470		fi
9471
9472		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9473			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9474		fi
9475
9476		CFLAGS="$CFLAGS -Wreturn-type"
9477
9478		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9479$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9480		cacheid=xorg_cv_cc_flag__Wreturn_type
9481		if eval \${$cacheid+:} false; then :
9482  $as_echo_n "(cached) " >&6
9483else
9484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485/* end confdefs.h.  */
9486int i;
9487int
9488main ()
9489{
9490
9491  ;
9492  return 0;
9493}
9494_ACEOF
9495if ac_fn_c_try_link "$LINENO"; then :
9496  eval $cacheid=yes
9497else
9498  eval $cacheid=no
9499fi
9500rm -f core conftest.err conftest.$ac_objext \
9501    conftest$ac_exeext conftest.$ac_ext
9502fi
9503
9504
9505		CFLAGS="$xorg_testset_save_CFLAGS"
9506
9507		eval supported=\$$cacheid
9508		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9509$as_echo "$supported" >&6; }
9510		if test "$supported" = "yes" ; then
9511			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9512			found="yes"
9513		fi
9514	fi
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530xorg_testset_save_CFLAGS="$CFLAGS"
9531
9532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9533	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9534	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9535$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9536if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9537  $as_echo_n "(cached) " >&6
9538else
9539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540/* end confdefs.h.  */
9541int i;
9542_ACEOF
9543if ac_fn_c_try_compile "$LINENO"; then :
9544  xorg_cv_cc_flag_unknown_warning_option=yes
9545else
9546  xorg_cv_cc_flag_unknown_warning_option=no
9547fi
9548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9549fi
9550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9551$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9552	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9553	CFLAGS="$xorg_testset_save_CFLAGS"
9554fi
9555
9556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9557	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9558		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9559	fi
9560	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9561	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9562$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9563if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9564  $as_echo_n "(cached) " >&6
9565else
9566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567/* end confdefs.h.  */
9568int i;
9569_ACEOF
9570if ac_fn_c_try_compile "$LINENO"; then :
9571  xorg_cv_cc_flag_unused_command_line_argument=yes
9572else
9573  xorg_cv_cc_flag_unused_command_line_argument=no
9574fi
9575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9576fi
9577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9578$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9579	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9580	CFLAGS="$xorg_testset_save_CFLAGS"
9581fi
9582
9583found="no"
9584
9585	if test $found = "no" ; then
9586		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9587			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9588		fi
9589
9590		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9591			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9592		fi
9593
9594		CFLAGS="$CFLAGS -Wtrigraphs"
9595
9596		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9597$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9598		cacheid=xorg_cv_cc_flag__Wtrigraphs
9599		if eval \${$cacheid+:} false; then :
9600  $as_echo_n "(cached) " >&6
9601else
9602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603/* end confdefs.h.  */
9604int i;
9605int
9606main ()
9607{
9608
9609  ;
9610  return 0;
9611}
9612_ACEOF
9613if ac_fn_c_try_link "$LINENO"; then :
9614  eval $cacheid=yes
9615else
9616  eval $cacheid=no
9617fi
9618rm -f core conftest.err conftest.$ac_objext \
9619    conftest$ac_exeext conftest.$ac_ext
9620fi
9621
9622
9623		CFLAGS="$xorg_testset_save_CFLAGS"
9624
9625		eval supported=\$$cacheid
9626		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9627$as_echo "$supported" >&6; }
9628		if test "$supported" = "yes" ; then
9629			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9630			found="yes"
9631		fi
9632	fi
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648xorg_testset_save_CFLAGS="$CFLAGS"
9649
9650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9651	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9652	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9653$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9654if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9655  $as_echo_n "(cached) " >&6
9656else
9657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9658/* end confdefs.h.  */
9659int i;
9660_ACEOF
9661if ac_fn_c_try_compile "$LINENO"; then :
9662  xorg_cv_cc_flag_unknown_warning_option=yes
9663else
9664  xorg_cv_cc_flag_unknown_warning_option=no
9665fi
9666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9667fi
9668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9669$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9670	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9671	CFLAGS="$xorg_testset_save_CFLAGS"
9672fi
9673
9674if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9675	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9676		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9677	fi
9678	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9679	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9680$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9681if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9682  $as_echo_n "(cached) " >&6
9683else
9684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685/* end confdefs.h.  */
9686int i;
9687_ACEOF
9688if ac_fn_c_try_compile "$LINENO"; then :
9689  xorg_cv_cc_flag_unused_command_line_argument=yes
9690else
9691  xorg_cv_cc_flag_unused_command_line_argument=no
9692fi
9693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9694fi
9695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9696$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9697	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9698	CFLAGS="$xorg_testset_save_CFLAGS"
9699fi
9700
9701found="no"
9702
9703	if test $found = "no" ; then
9704		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9705			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9706		fi
9707
9708		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9709			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9710		fi
9711
9712		CFLAGS="$CFLAGS -Warray-bounds"
9713
9714		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9715$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9716		cacheid=xorg_cv_cc_flag__Warray_bounds
9717		if eval \${$cacheid+:} false; then :
9718  $as_echo_n "(cached) " >&6
9719else
9720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721/* end confdefs.h.  */
9722int i;
9723int
9724main ()
9725{
9726
9727  ;
9728  return 0;
9729}
9730_ACEOF
9731if ac_fn_c_try_link "$LINENO"; then :
9732  eval $cacheid=yes
9733else
9734  eval $cacheid=no
9735fi
9736rm -f core conftest.err conftest.$ac_objext \
9737    conftest$ac_exeext conftest.$ac_ext
9738fi
9739
9740
9741		CFLAGS="$xorg_testset_save_CFLAGS"
9742
9743		eval supported=\$$cacheid
9744		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9745$as_echo "$supported" >&6; }
9746		if test "$supported" = "yes" ; then
9747			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9748			found="yes"
9749		fi
9750	fi
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766xorg_testset_save_CFLAGS="$CFLAGS"
9767
9768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9769	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9770	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9771$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9772if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9773  $as_echo_n "(cached) " >&6
9774else
9775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776/* end confdefs.h.  */
9777int i;
9778_ACEOF
9779if ac_fn_c_try_compile "$LINENO"; then :
9780  xorg_cv_cc_flag_unknown_warning_option=yes
9781else
9782  xorg_cv_cc_flag_unknown_warning_option=no
9783fi
9784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9785fi
9786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9787$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9788	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9789	CFLAGS="$xorg_testset_save_CFLAGS"
9790fi
9791
9792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9793	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9794		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9795	fi
9796	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9797	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9798$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9799if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9800  $as_echo_n "(cached) " >&6
9801else
9802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803/* end confdefs.h.  */
9804int i;
9805_ACEOF
9806if ac_fn_c_try_compile "$LINENO"; then :
9807  xorg_cv_cc_flag_unused_command_line_argument=yes
9808else
9809  xorg_cv_cc_flag_unused_command_line_argument=no
9810fi
9811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9812fi
9813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9814$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9815	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9816	CFLAGS="$xorg_testset_save_CFLAGS"
9817fi
9818
9819found="no"
9820
9821	if test $found = "no" ; then
9822		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9823			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9824		fi
9825
9826		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9827			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9828		fi
9829
9830		CFLAGS="$CFLAGS -Wwrite-strings"
9831
9832		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9833$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9834		cacheid=xorg_cv_cc_flag__Wwrite_strings
9835		if eval \${$cacheid+:} false; then :
9836  $as_echo_n "(cached) " >&6
9837else
9838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9839/* end confdefs.h.  */
9840int i;
9841int
9842main ()
9843{
9844
9845  ;
9846  return 0;
9847}
9848_ACEOF
9849if ac_fn_c_try_link "$LINENO"; then :
9850  eval $cacheid=yes
9851else
9852  eval $cacheid=no
9853fi
9854rm -f core conftest.err conftest.$ac_objext \
9855    conftest$ac_exeext conftest.$ac_ext
9856fi
9857
9858
9859		CFLAGS="$xorg_testset_save_CFLAGS"
9860
9861		eval supported=\$$cacheid
9862		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9863$as_echo "$supported" >&6; }
9864		if test "$supported" = "yes" ; then
9865			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9866			found="yes"
9867		fi
9868	fi
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884xorg_testset_save_CFLAGS="$CFLAGS"
9885
9886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9887	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9888	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9889$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9890if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9891  $as_echo_n "(cached) " >&6
9892else
9893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894/* end confdefs.h.  */
9895int i;
9896_ACEOF
9897if ac_fn_c_try_compile "$LINENO"; then :
9898  xorg_cv_cc_flag_unknown_warning_option=yes
9899else
9900  xorg_cv_cc_flag_unknown_warning_option=no
9901fi
9902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9903fi
9904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9905$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9906	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9907	CFLAGS="$xorg_testset_save_CFLAGS"
9908fi
9909
9910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9911	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9912		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9913	fi
9914	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9916$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9917if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9918  $as_echo_n "(cached) " >&6
9919else
9920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921/* end confdefs.h.  */
9922int i;
9923_ACEOF
9924if ac_fn_c_try_compile "$LINENO"; then :
9925  xorg_cv_cc_flag_unused_command_line_argument=yes
9926else
9927  xorg_cv_cc_flag_unused_command_line_argument=no
9928fi
9929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9930fi
9931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9932$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9933	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9934	CFLAGS="$xorg_testset_save_CFLAGS"
9935fi
9936
9937found="no"
9938
9939	if test $found = "no" ; then
9940		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9941			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9942		fi
9943
9944		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9945			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9946		fi
9947
9948		CFLAGS="$CFLAGS -Waddress"
9949
9950		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9951$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9952		cacheid=xorg_cv_cc_flag__Waddress
9953		if eval \${$cacheid+:} false; then :
9954  $as_echo_n "(cached) " >&6
9955else
9956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957/* end confdefs.h.  */
9958int i;
9959int
9960main ()
9961{
9962
9963  ;
9964  return 0;
9965}
9966_ACEOF
9967if ac_fn_c_try_link "$LINENO"; then :
9968  eval $cacheid=yes
9969else
9970  eval $cacheid=no
9971fi
9972rm -f core conftest.err conftest.$ac_objext \
9973    conftest$ac_exeext conftest.$ac_ext
9974fi
9975
9976
9977		CFLAGS="$xorg_testset_save_CFLAGS"
9978
9979		eval supported=\$$cacheid
9980		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9981$as_echo "$supported" >&6; }
9982		if test "$supported" = "yes" ; then
9983			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9984			found="yes"
9985		fi
9986	fi
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002xorg_testset_save_CFLAGS="$CFLAGS"
10003
10004if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10005	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10006	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10007$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10008if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10009  $as_echo_n "(cached) " >&6
10010else
10011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012/* end confdefs.h.  */
10013int i;
10014_ACEOF
10015if ac_fn_c_try_compile "$LINENO"; then :
10016  xorg_cv_cc_flag_unknown_warning_option=yes
10017else
10018  xorg_cv_cc_flag_unknown_warning_option=no
10019fi
10020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10021fi
10022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10023$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10024	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10025	CFLAGS="$xorg_testset_save_CFLAGS"
10026fi
10027
10028if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10029	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10030		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10031	fi
10032	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10033	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10034$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10035if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10036  $as_echo_n "(cached) " >&6
10037else
10038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039/* end confdefs.h.  */
10040int i;
10041_ACEOF
10042if ac_fn_c_try_compile "$LINENO"; then :
10043  xorg_cv_cc_flag_unused_command_line_argument=yes
10044else
10045  xorg_cv_cc_flag_unused_command_line_argument=no
10046fi
10047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10048fi
10049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10050$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10051	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10052	CFLAGS="$xorg_testset_save_CFLAGS"
10053fi
10054
10055found="no"
10056
10057	if test $found = "no" ; then
10058		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10059			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10060		fi
10061
10062		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10063			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10064		fi
10065
10066		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10067
10068		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10069$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10070		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10071		if eval \${$cacheid+:} false; then :
10072  $as_echo_n "(cached) " >&6
10073else
10074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075/* end confdefs.h.  */
10076int i;
10077int
10078main ()
10079{
10080
10081  ;
10082  return 0;
10083}
10084_ACEOF
10085if ac_fn_c_try_link "$LINENO"; then :
10086  eval $cacheid=yes
10087else
10088  eval $cacheid=no
10089fi
10090rm -f core conftest.err conftest.$ac_objext \
10091    conftest$ac_exeext conftest.$ac_ext
10092fi
10093
10094
10095		CFLAGS="$xorg_testset_save_CFLAGS"
10096
10097		eval supported=\$$cacheid
10098		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10099$as_echo "$supported" >&6; }
10100		if test "$supported" = "yes" ; then
10101			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10102			found="yes"
10103		fi
10104	fi
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120xorg_testset_save_CFLAGS="$CFLAGS"
10121
10122if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10123	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10124	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10125$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10126if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10127  $as_echo_n "(cached) " >&6
10128else
10129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10130/* end confdefs.h.  */
10131int i;
10132_ACEOF
10133if ac_fn_c_try_compile "$LINENO"; then :
10134  xorg_cv_cc_flag_unknown_warning_option=yes
10135else
10136  xorg_cv_cc_flag_unknown_warning_option=no
10137fi
10138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10139fi
10140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10141$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10142	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10143	CFLAGS="$xorg_testset_save_CFLAGS"
10144fi
10145
10146if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10147	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10148		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10149	fi
10150	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10151	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10152$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10153if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10154  $as_echo_n "(cached) " >&6
10155else
10156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157/* end confdefs.h.  */
10158int i;
10159_ACEOF
10160if ac_fn_c_try_compile "$LINENO"; then :
10161  xorg_cv_cc_flag_unused_command_line_argument=yes
10162else
10163  xorg_cv_cc_flag_unused_command_line_argument=no
10164fi
10165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10166fi
10167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10168$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10169	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10170	CFLAGS="$xorg_testset_save_CFLAGS"
10171fi
10172
10173found="no"
10174
10175	if test $found = "no" ; then
10176		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10177			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10178		fi
10179
10180		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10181			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10182		fi
10183
10184		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10185
10186		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10187$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10188		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10189		if eval \${$cacheid+:} false; then :
10190  $as_echo_n "(cached) " >&6
10191else
10192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10193/* end confdefs.h.  */
10194int i;
10195int
10196main ()
10197{
10198
10199  ;
10200  return 0;
10201}
10202_ACEOF
10203if ac_fn_c_try_link "$LINENO"; then :
10204  eval $cacheid=yes
10205else
10206  eval $cacheid=no
10207fi
10208rm -f core conftest.err conftest.$ac_objext \
10209    conftest$ac_exeext conftest.$ac_ext
10210fi
10211
10212
10213		CFLAGS="$xorg_testset_save_CFLAGS"
10214
10215		eval supported=\$$cacheid
10216		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10217$as_echo "$supported" >&6; }
10218		if test "$supported" = "yes" ; then
10219			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10220			found="yes"
10221		fi
10222	fi
10223
10224
10225fi
10226
10227
10228
10229
10230
10231
10232
10233		CWARNFLAGS="$BASE_CFLAGS"
10234		if  test "x$GCC" = xyes ; then
10235		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10236		fi
10237
10238
10239
10240
10241
10242
10243
10244
10245# Check whether --enable-strict-compilation was given.
10246if test "${enable_strict_compilation+set}" = set; then :
10247  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10248else
10249  STRICT_COMPILE=no
10250fi
10251
10252
10253
10254
10255
10256
10257STRICT_CFLAGS=""
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271xorg_testset_save_CFLAGS="$CFLAGS"
10272
10273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10274	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10275	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10276$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10277if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10278  $as_echo_n "(cached) " >&6
10279else
10280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281/* end confdefs.h.  */
10282int i;
10283_ACEOF
10284if ac_fn_c_try_compile "$LINENO"; then :
10285  xorg_cv_cc_flag_unknown_warning_option=yes
10286else
10287  xorg_cv_cc_flag_unknown_warning_option=no
10288fi
10289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10290fi
10291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10292$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10293	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10294	CFLAGS="$xorg_testset_save_CFLAGS"
10295fi
10296
10297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10298	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10299		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10300	fi
10301	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10302	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10303$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10304if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10305  $as_echo_n "(cached) " >&6
10306else
10307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308/* end confdefs.h.  */
10309int i;
10310_ACEOF
10311if ac_fn_c_try_compile "$LINENO"; then :
10312  xorg_cv_cc_flag_unused_command_line_argument=yes
10313else
10314  xorg_cv_cc_flag_unused_command_line_argument=no
10315fi
10316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10317fi
10318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10319$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10320	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10321	CFLAGS="$xorg_testset_save_CFLAGS"
10322fi
10323
10324found="no"
10325
10326	if test $found = "no" ; then
10327		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10328			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10329		fi
10330
10331		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10332			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10333		fi
10334
10335		CFLAGS="$CFLAGS -pedantic"
10336
10337		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10338$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10339		cacheid=xorg_cv_cc_flag__pedantic
10340		if eval \${$cacheid+:} false; then :
10341  $as_echo_n "(cached) " >&6
10342else
10343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10344/* end confdefs.h.  */
10345int i;
10346int
10347main ()
10348{
10349
10350  ;
10351  return 0;
10352}
10353_ACEOF
10354if ac_fn_c_try_link "$LINENO"; then :
10355  eval $cacheid=yes
10356else
10357  eval $cacheid=no
10358fi
10359rm -f core conftest.err conftest.$ac_objext \
10360    conftest$ac_exeext conftest.$ac_ext
10361fi
10362
10363
10364		CFLAGS="$xorg_testset_save_CFLAGS"
10365
10366		eval supported=\$$cacheid
10367		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10368$as_echo "$supported" >&6; }
10369		if test "$supported" = "yes" ; then
10370			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10371			found="yes"
10372		fi
10373	fi
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389xorg_testset_save_CFLAGS="$CFLAGS"
10390
10391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10392	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10393	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10394$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10395if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10396  $as_echo_n "(cached) " >&6
10397else
10398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399/* end confdefs.h.  */
10400int i;
10401_ACEOF
10402if ac_fn_c_try_compile "$LINENO"; then :
10403  xorg_cv_cc_flag_unknown_warning_option=yes
10404else
10405  xorg_cv_cc_flag_unknown_warning_option=no
10406fi
10407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10408fi
10409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10410$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10411	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10412	CFLAGS="$xorg_testset_save_CFLAGS"
10413fi
10414
10415if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10416	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10417		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10418	fi
10419	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10420	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10421$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10422if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10423  $as_echo_n "(cached) " >&6
10424else
10425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426/* end confdefs.h.  */
10427int i;
10428_ACEOF
10429if ac_fn_c_try_compile "$LINENO"; then :
10430  xorg_cv_cc_flag_unused_command_line_argument=yes
10431else
10432  xorg_cv_cc_flag_unused_command_line_argument=no
10433fi
10434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10435fi
10436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10437$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10438	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10439	CFLAGS="$xorg_testset_save_CFLAGS"
10440fi
10441
10442found="no"
10443
10444	if test $found = "no" ; then
10445		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10446			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10447		fi
10448
10449		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10450			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10451		fi
10452
10453		CFLAGS="$CFLAGS -Werror"
10454
10455		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10456$as_echo_n "checking if $CC supports -Werror... " >&6; }
10457		cacheid=xorg_cv_cc_flag__Werror
10458		if eval \${$cacheid+:} false; then :
10459  $as_echo_n "(cached) " >&6
10460else
10461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10462/* end confdefs.h.  */
10463int i;
10464int
10465main ()
10466{
10467
10468  ;
10469  return 0;
10470}
10471_ACEOF
10472if ac_fn_c_try_link "$LINENO"; then :
10473  eval $cacheid=yes
10474else
10475  eval $cacheid=no
10476fi
10477rm -f core conftest.err conftest.$ac_objext \
10478    conftest$ac_exeext conftest.$ac_ext
10479fi
10480
10481
10482		CFLAGS="$xorg_testset_save_CFLAGS"
10483
10484		eval supported=\$$cacheid
10485		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10486$as_echo "$supported" >&6; }
10487		if test "$supported" = "yes" ; then
10488			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10489			found="yes"
10490		fi
10491	fi
10492
10493	if test $found = "no" ; then
10494		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10495			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10496		fi
10497
10498		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10499			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10500		fi
10501
10502		CFLAGS="$CFLAGS -errwarn"
10503
10504		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10505$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10506		cacheid=xorg_cv_cc_flag__errwarn
10507		if eval \${$cacheid+:} false; then :
10508  $as_echo_n "(cached) " >&6
10509else
10510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511/* end confdefs.h.  */
10512int i;
10513int
10514main ()
10515{
10516
10517  ;
10518  return 0;
10519}
10520_ACEOF
10521if ac_fn_c_try_link "$LINENO"; then :
10522  eval $cacheid=yes
10523else
10524  eval $cacheid=no
10525fi
10526rm -f core conftest.err conftest.$ac_objext \
10527    conftest$ac_exeext conftest.$ac_ext
10528fi
10529
10530
10531		CFLAGS="$xorg_testset_save_CFLAGS"
10532
10533		eval supported=\$$cacheid
10534		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10535$as_echo "$supported" >&6; }
10536		if test "$supported" = "yes" ; then
10537			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10538			found="yes"
10539		fi
10540	fi
10541
10542
10543
10544# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10545# activate it with -Werror, so we add it here explicitly.
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559xorg_testset_save_CFLAGS="$CFLAGS"
10560
10561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10562	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10563	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10564$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10565if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10566  $as_echo_n "(cached) " >&6
10567else
10568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569/* end confdefs.h.  */
10570int i;
10571_ACEOF
10572if ac_fn_c_try_compile "$LINENO"; then :
10573  xorg_cv_cc_flag_unknown_warning_option=yes
10574else
10575  xorg_cv_cc_flag_unknown_warning_option=no
10576fi
10577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10578fi
10579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10580$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10581	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10582	CFLAGS="$xorg_testset_save_CFLAGS"
10583fi
10584
10585if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10586	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10587		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10588	fi
10589	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10590	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10591$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10592if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10593  $as_echo_n "(cached) " >&6
10594else
10595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596/* end confdefs.h.  */
10597int i;
10598_ACEOF
10599if ac_fn_c_try_compile "$LINENO"; then :
10600  xorg_cv_cc_flag_unused_command_line_argument=yes
10601else
10602  xorg_cv_cc_flag_unused_command_line_argument=no
10603fi
10604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10605fi
10606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10607$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10608	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10609	CFLAGS="$xorg_testset_save_CFLAGS"
10610fi
10611
10612found="no"
10613
10614	if test $found = "no" ; then
10615		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10616			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10617		fi
10618
10619		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10620			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10621		fi
10622
10623		CFLAGS="$CFLAGS -Werror=attributes"
10624
10625		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10626$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10627		cacheid=xorg_cv_cc_flag__Werror_attributes
10628		if eval \${$cacheid+:} false; then :
10629  $as_echo_n "(cached) " >&6
10630else
10631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10632/* end confdefs.h.  */
10633int i;
10634int
10635main ()
10636{
10637
10638  ;
10639  return 0;
10640}
10641_ACEOF
10642if ac_fn_c_try_link "$LINENO"; then :
10643  eval $cacheid=yes
10644else
10645  eval $cacheid=no
10646fi
10647rm -f core conftest.err conftest.$ac_objext \
10648    conftest$ac_exeext conftest.$ac_ext
10649fi
10650
10651
10652		CFLAGS="$xorg_testset_save_CFLAGS"
10653
10654		eval supported=\$$cacheid
10655		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10656$as_echo "$supported" >&6; }
10657		if test "$supported" = "yes" ; then
10658			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10659			found="yes"
10660		fi
10661	fi
10662
10663
10664
10665if test "x$STRICT_COMPILE" = "xyes"; then
10666    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10667    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10668fi
10669
10670
10671
10672
10673
10674
10675cat >>confdefs.h <<_ACEOF
10676#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10677_ACEOF
10678
10679	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10680	if test "x$PVM" = "x"; then
10681		PVM="0"
10682	fi
10683
10684cat >>confdefs.h <<_ACEOF
10685#define PACKAGE_VERSION_MINOR $PVM
10686_ACEOF
10687
10688	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10689	if test "x$PVP" = "x"; then
10690		PVP="0"
10691	fi
10692
10693cat >>confdefs.h <<_ACEOF
10694#define PACKAGE_VERSION_PATCHLEVEL $PVP
10695_ACEOF
10696
10697
10698
10699CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10700mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10701|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10702echo 'git directory not found: installing possibly empty changelog.' >&2)"
10703
10704
10705
10706
10707macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10708INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10709mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10710|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10711echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10712
10713
10714
10715
10716
10717
10718if test x$APP_MAN_SUFFIX = x    ; then
10719    APP_MAN_SUFFIX=1
10720fi
10721if test x$APP_MAN_DIR = x    ; then
10722    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10723fi
10724
10725if test x$LIB_MAN_SUFFIX = x    ; then
10726    LIB_MAN_SUFFIX=3
10727fi
10728if test x$LIB_MAN_DIR = x    ; then
10729    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10730fi
10731
10732if test x$FILE_MAN_SUFFIX = x    ; then
10733    case $host_os in
10734	solaris*)	FILE_MAN_SUFFIX=4  ;;
10735	*)		FILE_MAN_SUFFIX=5  ;;
10736    esac
10737fi
10738if test x$FILE_MAN_DIR = x    ; then
10739    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10740fi
10741
10742if test x$MISC_MAN_SUFFIX = x    ; then
10743    case $host_os in
10744	solaris*)	MISC_MAN_SUFFIX=5  ;;
10745	*)		MISC_MAN_SUFFIX=7  ;;
10746    esac
10747fi
10748if test x$MISC_MAN_DIR = x    ; then
10749    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10750fi
10751
10752if test x$DRIVER_MAN_SUFFIX = x    ; then
10753    case $host_os in
10754	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10755	*)		DRIVER_MAN_SUFFIX=4  ;;
10756    esac
10757fi
10758if test x$DRIVER_MAN_DIR = x    ; then
10759    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10760fi
10761
10762if test x$ADMIN_MAN_SUFFIX = x    ; then
10763    case $host_os in
10764	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10765	*)		ADMIN_MAN_SUFFIX=8  ;;
10766    esac
10767fi
10768if test x$ADMIN_MAN_DIR = x    ; then
10769    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10770fi
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786XORG_MAN_PAGE="X Version 11"
10787
10788MAN_SUBSTS="\
10789	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10790	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10791	-e 's|__xservername__|Xorg|g' \
10792	-e 's|__xconfigfile__|xorg.conf|g' \
10793	-e 's|__projectroot__|\$(prefix)|g' \
10794	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10795	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10796	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10797	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10798	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10799	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10800	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10801
10802
10803
10804# Check whether --enable-silent-rules was given.
10805if test "${enable_silent_rules+set}" = set; then :
10806  enableval=$enable_silent_rules;
10807fi
10808
10809case $enable_silent_rules in # (((
10810  yes) AM_DEFAULT_VERBOSITY=0;;
10811   no) AM_DEFAULT_VERBOSITY=1;;
10812    *) AM_DEFAULT_VERBOSITY=0;;
10813esac
10814am_make=${MAKE-make}
10815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10816$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10817if ${am_cv_make_support_nested_variables+:} false; then :
10818  $as_echo_n "(cached) " >&6
10819else
10820  if $as_echo 'TRUE=$(BAR$(V))
10821BAR0=false
10822BAR1=true
10823V=1
10824am__doit:
10825	@$(TRUE)
10826.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10827  am_cv_make_support_nested_variables=yes
10828else
10829  am_cv_make_support_nested_variables=no
10830fi
10831fi
10832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10833$as_echo "$am_cv_make_support_nested_variables" >&6; }
10834if test $am_cv_make_support_nested_variables = yes; then
10835    AM_V='$(V)'
10836  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10837else
10838  AM_V=$AM_DEFAULT_VERBOSITY
10839  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10840fi
10841AM_BACKSLASH='\'
10842
10843
10844
10845# Require X.Org server macros (i.e. XORG_DRIVER_CHECK_EXT) to check for required modules
10846
10847
10848
10849# Checks for programs.
10850# Check whether --enable-static was given.
10851if test "${enable_static+set}" = set; then :
10852  enableval=$enable_static; p=${PACKAGE-default}
10853    case $enableval in
10854    yes) enable_static=yes ;;
10855    no) enable_static=no ;;
10856    *)
10857     enable_static=no
10858      # Look at the argument we got.  We use all the common list separators.
10859      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10860      for pkg in $enableval; do
10861	IFS=$lt_save_ifs
10862	if test "X$pkg" = "X$p"; then
10863	  enable_static=yes
10864	fi
10865      done
10866      IFS=$lt_save_ifs
10867      ;;
10868    esac
10869else
10870  enable_static=no
10871fi
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881case `pwd` in
10882  *\ * | *\	*)
10883    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10884$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10885esac
10886
10887
10888
10889macro_version='2.4.6'
10890macro_revision='2.4.6'
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904ltmain=$ac_aux_dir/ltmain.sh
10905
10906# Backslashify metacharacters that are still active within
10907# double-quoted strings.
10908sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10909
10910# Same as above, but do not quote variable references.
10911double_quote_subst='s/\(["`\\]\)/\\\1/g'
10912
10913# Sed substitution to delay expansion of an escaped shell variable in a
10914# double_quote_subst'ed string.
10915delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10916
10917# Sed substitution to delay expansion of an escaped single quote.
10918delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10919
10920# Sed substitution to avoid accidental globbing in evaled expressions
10921no_glob_subst='s/\*/\\\*/g'
10922
10923ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10924ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10925ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10926
10927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10928$as_echo_n "checking how to print strings... " >&6; }
10929# Test print first, because it will be a builtin if present.
10930if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10931   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10932  ECHO='print -r --'
10933elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10934  ECHO='printf %s\n'
10935else
10936  # Use this function as a fallback that always works.
10937  func_fallback_echo ()
10938  {
10939    eval 'cat <<_LTECHO_EOF
10940$1
10941_LTECHO_EOF'
10942  }
10943  ECHO='func_fallback_echo'
10944fi
10945
10946# func_echo_all arg...
10947# Invoke $ECHO with all args, space-separated.
10948func_echo_all ()
10949{
10950    $ECHO ""
10951}
10952
10953case $ECHO in
10954  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10955$as_echo "printf" >&6; } ;;
10956  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10957$as_echo "print -r" >&6; } ;;
10958  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10959$as_echo "cat" >&6; } ;;
10960esac
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10976$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10977if ${ac_cv_path_SED+:} false; then :
10978  $as_echo_n "(cached) " >&6
10979else
10980            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10981     for ac_i in 1 2 3 4 5 6 7; do
10982       ac_script="$ac_script$as_nl$ac_script"
10983     done
10984     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10985     { ac_script=; unset ac_script;}
10986     if test -z "$SED"; then
10987  ac_path_SED_found=false
10988  # Loop through the user's path and test for each of PROGNAME-LIST
10989  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10990for as_dir in $PATH
10991do
10992  IFS=$as_save_IFS
10993  test -z "$as_dir" && as_dir=.
10994    for ac_prog in sed gsed; do
10995    for ac_exec_ext in '' $ac_executable_extensions; do
10996      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10997      as_fn_executable_p "$ac_path_SED" || continue
10998# Check for GNU ac_path_SED and select it if it is found.
10999  # Check for GNU $ac_path_SED
11000case `"$ac_path_SED" --version 2>&1` in
11001*GNU*)
11002  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11003*)
11004  ac_count=0
11005  $as_echo_n 0123456789 >"conftest.in"
11006  while :
11007  do
11008    cat "conftest.in" "conftest.in" >"conftest.tmp"
11009    mv "conftest.tmp" "conftest.in"
11010    cp "conftest.in" "conftest.nl"
11011    $as_echo '' >> "conftest.nl"
11012    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11013    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11014    as_fn_arith $ac_count + 1 && ac_count=$as_val
11015    if test $ac_count -gt ${ac_path_SED_max-0}; then
11016      # Best one so far, save it but keep looking for a better one
11017      ac_cv_path_SED="$ac_path_SED"
11018      ac_path_SED_max=$ac_count
11019    fi
11020    # 10*(2^10) chars as input seems more than enough
11021    test $ac_count -gt 10 && break
11022  done
11023  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11024esac
11025
11026      $ac_path_SED_found && break 3
11027    done
11028  done
11029  done
11030IFS=$as_save_IFS
11031  if test -z "$ac_cv_path_SED"; then
11032    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11033  fi
11034else
11035  ac_cv_path_SED=$SED
11036fi
11037
11038fi
11039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11040$as_echo "$ac_cv_path_SED" >&6; }
11041 SED="$ac_cv_path_SED"
11042  rm -f conftest.sed
11043
11044test -z "$SED" && SED=sed
11045Xsed="$SED -e 1s/^X//"
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11058$as_echo_n "checking for fgrep... " >&6; }
11059if ${ac_cv_path_FGREP+:} false; then :
11060  $as_echo_n "(cached) " >&6
11061else
11062  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11063   then ac_cv_path_FGREP="$GREP -F"
11064   else
11065     if test -z "$FGREP"; then
11066  ac_path_FGREP_found=false
11067  # Loop through the user's path and test for each of PROGNAME-LIST
11068  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11069for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11070do
11071  IFS=$as_save_IFS
11072  test -z "$as_dir" && as_dir=.
11073    for ac_prog in fgrep; do
11074    for ac_exec_ext in '' $ac_executable_extensions; do
11075      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11076      as_fn_executable_p "$ac_path_FGREP" || continue
11077# Check for GNU ac_path_FGREP and select it if it is found.
11078  # Check for GNU $ac_path_FGREP
11079case `"$ac_path_FGREP" --version 2>&1` in
11080*GNU*)
11081  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11082*)
11083  ac_count=0
11084  $as_echo_n 0123456789 >"conftest.in"
11085  while :
11086  do
11087    cat "conftest.in" "conftest.in" >"conftest.tmp"
11088    mv "conftest.tmp" "conftest.in"
11089    cp "conftest.in" "conftest.nl"
11090    $as_echo 'FGREP' >> "conftest.nl"
11091    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11092    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11093    as_fn_arith $ac_count + 1 && ac_count=$as_val
11094    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11095      # Best one so far, save it but keep looking for a better one
11096      ac_cv_path_FGREP="$ac_path_FGREP"
11097      ac_path_FGREP_max=$ac_count
11098    fi
11099    # 10*(2^10) chars as input seems more than enough
11100    test $ac_count -gt 10 && break
11101  done
11102  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11103esac
11104
11105      $ac_path_FGREP_found && break 3
11106    done
11107  done
11108  done
11109IFS=$as_save_IFS
11110  if test -z "$ac_cv_path_FGREP"; then
11111    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11112  fi
11113else
11114  ac_cv_path_FGREP=$FGREP
11115fi
11116
11117   fi
11118fi
11119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11120$as_echo "$ac_cv_path_FGREP" >&6; }
11121 FGREP="$ac_cv_path_FGREP"
11122
11123
11124test -z "$GREP" && GREP=grep
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144# Check whether --with-gnu-ld was given.
11145if test "${with_gnu_ld+set}" = set; then :
11146  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11147else
11148  with_gnu_ld=no
11149fi
11150
11151ac_prog=ld
11152if test yes = "$GCC"; then
11153  # Check if gcc -print-prog-name=ld gives a path.
11154  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11155$as_echo_n "checking for ld used by $CC... " >&6; }
11156  case $host in
11157  *-*-mingw*)
11158    # gcc leaves a trailing carriage return, which upsets mingw
11159    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11160  *)
11161    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11162  esac
11163  case $ac_prog in
11164    # Accept absolute paths.
11165    [\\/]* | ?:[\\/]*)
11166      re_direlt='/[^/][^/]*/\.\./'
11167      # Canonicalize the pathname of ld
11168      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11169      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11170	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11171      done
11172      test -z "$LD" && LD=$ac_prog
11173      ;;
11174  "")
11175    # If it fails, then pretend we aren't using GCC.
11176    ac_prog=ld
11177    ;;
11178  *)
11179    # If it is relative, then search for the first ld in PATH.
11180    with_gnu_ld=unknown
11181    ;;
11182  esac
11183elif test yes = "$with_gnu_ld"; then
11184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11185$as_echo_n "checking for GNU ld... " >&6; }
11186else
11187  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11188$as_echo_n "checking for non-GNU ld... " >&6; }
11189fi
11190if ${lt_cv_path_LD+:} false; then :
11191  $as_echo_n "(cached) " >&6
11192else
11193  if test -z "$LD"; then
11194  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11195  for ac_dir in $PATH; do
11196    IFS=$lt_save_ifs
11197    test -z "$ac_dir" && ac_dir=.
11198    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11199      lt_cv_path_LD=$ac_dir/$ac_prog
11200      # Check to see if the program is GNU ld.  I'd rather use --version,
11201      # but apparently some variants of GNU ld only accept -v.
11202      # Break only if it was the GNU/non-GNU ld that we prefer.
11203      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11204      *GNU* | *'with BFD'*)
11205	test no != "$with_gnu_ld" && break
11206	;;
11207      *)
11208	test yes != "$with_gnu_ld" && break
11209	;;
11210      esac
11211    fi
11212  done
11213  IFS=$lt_save_ifs
11214else
11215  lt_cv_path_LD=$LD # Let the user override the test with a path.
11216fi
11217fi
11218
11219LD=$lt_cv_path_LD
11220if test -n "$LD"; then
11221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11222$as_echo "$LD" >&6; }
11223else
11224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225$as_echo "no" >&6; }
11226fi
11227test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11229$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11230if ${lt_cv_prog_gnu_ld+:} false; then :
11231  $as_echo_n "(cached) " >&6
11232else
11233  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11234case `$LD -v 2>&1 </dev/null` in
11235*GNU* | *'with BFD'*)
11236  lt_cv_prog_gnu_ld=yes
11237  ;;
11238*)
11239  lt_cv_prog_gnu_ld=no
11240  ;;
11241esac
11242fi
11243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11244$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11245with_gnu_ld=$lt_cv_prog_gnu_ld
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11256$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11257if ${lt_cv_path_NM+:} false; then :
11258  $as_echo_n "(cached) " >&6
11259else
11260  if test -n "$NM"; then
11261  # Let the user override the test.
11262  lt_cv_path_NM=$NM
11263else
11264  lt_nm_to_check=${ac_tool_prefix}nm
11265  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11266    lt_nm_to_check="$lt_nm_to_check nm"
11267  fi
11268  for lt_tmp_nm in $lt_nm_to_check; do
11269    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11270    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11271      IFS=$lt_save_ifs
11272      test -z "$ac_dir" && ac_dir=.
11273      tmp_nm=$ac_dir/$lt_tmp_nm
11274      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11275	# Check to see if the nm accepts a BSD-compat flag.
11276	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11277	#   nm: unknown option "B" ignored
11278	# Tru64's nm complains that /dev/null is an invalid object file
11279	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11280	case $build_os in
11281	mingw*) lt_bad_file=conftest.nm/nofile ;;
11282	*) lt_bad_file=/dev/null ;;
11283	esac
11284	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11285	*$lt_bad_file* | *'Invalid file or object type'*)
11286	  lt_cv_path_NM="$tmp_nm -B"
11287	  break 2
11288	  ;;
11289	*)
11290	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11291	  */dev/null*)
11292	    lt_cv_path_NM="$tmp_nm -p"
11293	    break 2
11294	    ;;
11295	  *)
11296	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11297	    continue # so that we can try to find one that supports BSD flags
11298	    ;;
11299	  esac
11300	  ;;
11301	esac
11302      fi
11303    done
11304    IFS=$lt_save_ifs
11305  done
11306  : ${lt_cv_path_NM=no}
11307fi
11308fi
11309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11310$as_echo "$lt_cv_path_NM" >&6; }
11311if test no != "$lt_cv_path_NM"; then
11312  NM=$lt_cv_path_NM
11313else
11314  # Didn't find any BSD compatible name lister, look for dumpbin.
11315  if test -n "$DUMPBIN"; then :
11316    # Let the user override the test.
11317  else
11318    if test -n "$ac_tool_prefix"; then
11319  for ac_prog in dumpbin "link -dump"
11320  do
11321    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11322set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11324$as_echo_n "checking for $ac_word... " >&6; }
11325if ${ac_cv_prog_DUMPBIN+:} false; then :
11326  $as_echo_n "(cached) " >&6
11327else
11328  if test -n "$DUMPBIN"; then
11329  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11330else
11331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11332for as_dir in $PATH
11333do
11334  IFS=$as_save_IFS
11335  test -z "$as_dir" && as_dir=.
11336    for ac_exec_ext in '' $ac_executable_extensions; do
11337  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11338    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11339    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11340    break 2
11341  fi
11342done
11343  done
11344IFS=$as_save_IFS
11345
11346fi
11347fi
11348DUMPBIN=$ac_cv_prog_DUMPBIN
11349if test -n "$DUMPBIN"; then
11350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11351$as_echo "$DUMPBIN" >&6; }
11352else
11353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11354$as_echo "no" >&6; }
11355fi
11356
11357
11358    test -n "$DUMPBIN" && break
11359  done
11360fi
11361if test -z "$DUMPBIN"; then
11362  ac_ct_DUMPBIN=$DUMPBIN
11363  for ac_prog in dumpbin "link -dump"
11364do
11365  # Extract the first word of "$ac_prog", so it can be a program name with args.
11366set dummy $ac_prog; ac_word=$2
11367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11368$as_echo_n "checking for $ac_word... " >&6; }
11369if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11370  $as_echo_n "(cached) " >&6
11371else
11372  if test -n "$ac_ct_DUMPBIN"; then
11373  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11374else
11375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11376for as_dir in $PATH
11377do
11378  IFS=$as_save_IFS
11379  test -z "$as_dir" && as_dir=.
11380    for ac_exec_ext in '' $ac_executable_extensions; do
11381  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11382    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11383    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11384    break 2
11385  fi
11386done
11387  done
11388IFS=$as_save_IFS
11389
11390fi
11391fi
11392ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11393if test -n "$ac_ct_DUMPBIN"; then
11394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11395$as_echo "$ac_ct_DUMPBIN" >&6; }
11396else
11397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11398$as_echo "no" >&6; }
11399fi
11400
11401
11402  test -n "$ac_ct_DUMPBIN" && break
11403done
11404
11405  if test "x$ac_ct_DUMPBIN" = x; then
11406    DUMPBIN=":"
11407  else
11408    case $cross_compiling:$ac_tool_warned in
11409yes:)
11410{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11411$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11412ac_tool_warned=yes ;;
11413esac
11414    DUMPBIN=$ac_ct_DUMPBIN
11415  fi
11416fi
11417
11418    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11419    *COFF*)
11420      DUMPBIN="$DUMPBIN -symbols -headers"
11421      ;;
11422    *)
11423      DUMPBIN=:
11424      ;;
11425    esac
11426  fi
11427
11428  if test : != "$DUMPBIN"; then
11429    NM=$DUMPBIN
11430  fi
11431fi
11432test -z "$NM" && NM=nm
11433
11434
11435
11436
11437
11438
11439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11440$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11441if ${lt_cv_nm_interface+:} false; then :
11442  $as_echo_n "(cached) " >&6
11443else
11444  lt_cv_nm_interface="BSD nm"
11445  echo "int some_variable = 0;" > conftest.$ac_ext
11446  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11447  (eval "$ac_compile" 2>conftest.err)
11448  cat conftest.err >&5
11449  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11450  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11451  cat conftest.err >&5
11452  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11453  cat conftest.out >&5
11454  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11455    lt_cv_nm_interface="MS dumpbin"
11456  fi
11457  rm -f conftest*
11458fi
11459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11460$as_echo "$lt_cv_nm_interface" >&6; }
11461
11462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11463$as_echo_n "checking whether ln -s works... " >&6; }
11464LN_S=$as_ln_s
11465if test "$LN_S" = "ln -s"; then
11466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11467$as_echo "yes" >&6; }
11468else
11469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11470$as_echo "no, using $LN_S" >&6; }
11471fi
11472
11473# find the maximum length of command line arguments
11474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11475$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11476if ${lt_cv_sys_max_cmd_len+:} false; then :
11477  $as_echo_n "(cached) " >&6
11478else
11479    i=0
11480  teststring=ABCD
11481
11482  case $build_os in
11483  msdosdjgpp*)
11484    # On DJGPP, this test can blow up pretty badly due to problems in libc
11485    # (any single argument exceeding 2000 bytes causes a buffer overrun
11486    # during glob expansion).  Even if it were fixed, the result of this
11487    # check would be larger than it should be.
11488    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11489    ;;
11490
11491  gnu*)
11492    # Under GNU Hurd, this test is not required because there is
11493    # no limit to the length of command line arguments.
11494    # Libtool will interpret -1 as no limit whatsoever
11495    lt_cv_sys_max_cmd_len=-1;
11496    ;;
11497
11498  cygwin* | mingw* | cegcc*)
11499    # On Win9x/ME, this test blows up -- it succeeds, but takes
11500    # about 5 minutes as the teststring grows exponentially.
11501    # Worse, since 9x/ME are not pre-emptively multitasking,
11502    # you end up with a "frozen" computer, even though with patience
11503    # the test eventually succeeds (with a max line length of 256k).
11504    # Instead, let's just punt: use the minimum linelength reported by
11505    # all of the supported platforms: 8192 (on NT/2K/XP).
11506    lt_cv_sys_max_cmd_len=8192;
11507    ;;
11508
11509  mint*)
11510    # On MiNT this can take a long time and run out of memory.
11511    lt_cv_sys_max_cmd_len=8192;
11512    ;;
11513
11514  amigaos*)
11515    # On AmigaOS with pdksh, this test takes hours, literally.
11516    # So we just punt and use a minimum line length of 8192.
11517    lt_cv_sys_max_cmd_len=8192;
11518    ;;
11519
11520  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11521    # This has been around since 386BSD, at least.  Likely further.
11522    if test -x /sbin/sysctl; then
11523      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11524    elif test -x /usr/sbin/sysctl; then
11525      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11526    else
11527      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11528    fi
11529    # And add a safety zone
11530    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11531    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11532    ;;
11533
11534  interix*)
11535    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11536    lt_cv_sys_max_cmd_len=196608
11537    ;;
11538
11539  os2*)
11540    # The test takes a long time on OS/2.
11541    lt_cv_sys_max_cmd_len=8192
11542    ;;
11543
11544  osf*)
11545    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11546    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11547    # nice to cause kernel panics so lets avoid the loop below.
11548    # First set a reasonable default.
11549    lt_cv_sys_max_cmd_len=16384
11550    #
11551    if test -x /sbin/sysconfig; then
11552      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11553        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11554      esac
11555    fi
11556    ;;
11557  sco3.2v5*)
11558    lt_cv_sys_max_cmd_len=102400
11559    ;;
11560  sysv5* | sco5v6* | sysv4.2uw2*)
11561    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11562    if test -n "$kargmax"; then
11563      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11564    else
11565      lt_cv_sys_max_cmd_len=32768
11566    fi
11567    ;;
11568  *)
11569    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11570    if test -n "$lt_cv_sys_max_cmd_len" && \
11571       test undefined != "$lt_cv_sys_max_cmd_len"; then
11572      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11573      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11574    else
11575      # Make teststring a little bigger before we do anything with it.
11576      # a 1K string should be a reasonable start.
11577      for i in 1 2 3 4 5 6 7 8; do
11578        teststring=$teststring$teststring
11579      done
11580      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11581      # If test is not a shell built-in, we'll probably end up computing a
11582      # maximum length that is only half of the actual maximum length, but
11583      # we can't tell.
11584      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11585	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11586	      test 17 != "$i" # 1/2 MB should be enough
11587      do
11588        i=`expr $i + 1`
11589        teststring=$teststring$teststring
11590      done
11591      # Only check the string length outside the loop.
11592      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11593      teststring=
11594      # Add a significant safety factor because C++ compilers can tack on
11595      # massive amounts of additional arguments before passing them to the
11596      # linker.  It appears as though 1/2 is a usable value.
11597      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11598    fi
11599    ;;
11600  esac
11601
11602fi
11603
11604if test -n "$lt_cv_sys_max_cmd_len"; then
11605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11606$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11607else
11608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11609$as_echo "none" >&6; }
11610fi
11611max_cmd_len=$lt_cv_sys_max_cmd_len
11612
11613
11614
11615
11616
11617
11618: ${CP="cp -f"}
11619: ${MV="mv -f"}
11620: ${RM="rm -f"}
11621
11622if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11623  lt_unset=unset
11624else
11625  lt_unset=false
11626fi
11627
11628
11629
11630
11631
11632# test EBCDIC or ASCII
11633case `echo X|tr X '\101'` in
11634 A) # ASCII based system
11635    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11636  lt_SP2NL='tr \040 \012'
11637  lt_NL2SP='tr \015\012 \040\040'
11638  ;;
11639 *) # EBCDIC based system
11640  lt_SP2NL='tr \100 \n'
11641  lt_NL2SP='tr \r\n \100\100'
11642  ;;
11643esac
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11654$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11655if ${lt_cv_to_host_file_cmd+:} false; then :
11656  $as_echo_n "(cached) " >&6
11657else
11658  case $host in
11659  *-*-mingw* )
11660    case $build in
11661      *-*-mingw* ) # actually msys
11662        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11663        ;;
11664      *-*-cygwin* )
11665        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11666        ;;
11667      * ) # otherwise, assume *nix
11668        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11669        ;;
11670    esac
11671    ;;
11672  *-*-cygwin* )
11673    case $build in
11674      *-*-mingw* ) # actually msys
11675        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11676        ;;
11677      *-*-cygwin* )
11678        lt_cv_to_host_file_cmd=func_convert_file_noop
11679        ;;
11680      * ) # otherwise, assume *nix
11681        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11682        ;;
11683    esac
11684    ;;
11685  * ) # unhandled hosts (and "normal" native builds)
11686    lt_cv_to_host_file_cmd=func_convert_file_noop
11687    ;;
11688esac
11689
11690fi
11691
11692to_host_file_cmd=$lt_cv_to_host_file_cmd
11693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11694$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11695
11696
11697
11698
11699
11700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11701$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11702if ${lt_cv_to_tool_file_cmd+:} false; then :
11703  $as_echo_n "(cached) " >&6
11704else
11705  #assume ordinary cross tools, or native build.
11706lt_cv_to_tool_file_cmd=func_convert_file_noop
11707case $host in
11708  *-*-mingw* )
11709    case $build in
11710      *-*-mingw* ) # actually msys
11711        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11712        ;;
11713    esac
11714    ;;
11715esac
11716
11717fi
11718
11719to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11721$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11722
11723
11724
11725
11726
11727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11728$as_echo_n "checking for $LD option to reload object files... " >&6; }
11729if ${lt_cv_ld_reload_flag+:} false; then :
11730  $as_echo_n "(cached) " >&6
11731else
11732  lt_cv_ld_reload_flag='-r'
11733fi
11734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11735$as_echo "$lt_cv_ld_reload_flag" >&6; }
11736reload_flag=$lt_cv_ld_reload_flag
11737case $reload_flag in
11738"" | " "*) ;;
11739*) reload_flag=" $reload_flag" ;;
11740esac
11741reload_cmds='$LD$reload_flag -o $output$reload_objs'
11742case $host_os in
11743  cygwin* | mingw* | pw32* | cegcc*)
11744    if test yes != "$GCC"; then
11745      reload_cmds=false
11746    fi
11747    ;;
11748  darwin*)
11749    if test yes = "$GCC"; then
11750      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11751    else
11752      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11753    fi
11754    ;;
11755esac
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765if test -n "$ac_tool_prefix"; then
11766  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11767set dummy ${ac_tool_prefix}objdump; ac_word=$2
11768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11769$as_echo_n "checking for $ac_word... " >&6; }
11770if ${ac_cv_prog_OBJDUMP+:} false; then :
11771  $as_echo_n "(cached) " >&6
11772else
11773  if test -n "$OBJDUMP"; then
11774  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11775else
11776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777for as_dir in $PATH
11778do
11779  IFS=$as_save_IFS
11780  test -z "$as_dir" && as_dir=.
11781    for ac_exec_ext in '' $ac_executable_extensions; do
11782  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11783    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11784    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11785    break 2
11786  fi
11787done
11788  done
11789IFS=$as_save_IFS
11790
11791fi
11792fi
11793OBJDUMP=$ac_cv_prog_OBJDUMP
11794if test -n "$OBJDUMP"; then
11795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11796$as_echo "$OBJDUMP" >&6; }
11797else
11798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799$as_echo "no" >&6; }
11800fi
11801
11802
11803fi
11804if test -z "$ac_cv_prog_OBJDUMP"; then
11805  ac_ct_OBJDUMP=$OBJDUMP
11806  # Extract the first word of "objdump", so it can be a program name with args.
11807set dummy objdump; ac_word=$2
11808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11809$as_echo_n "checking for $ac_word... " >&6; }
11810if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11811  $as_echo_n "(cached) " >&6
11812else
11813  if test -n "$ac_ct_OBJDUMP"; then
11814  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11815else
11816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11817for as_dir in $PATH
11818do
11819  IFS=$as_save_IFS
11820  test -z "$as_dir" && as_dir=.
11821    for ac_exec_ext in '' $ac_executable_extensions; do
11822  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11823    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11825    break 2
11826  fi
11827done
11828  done
11829IFS=$as_save_IFS
11830
11831fi
11832fi
11833ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11834if test -n "$ac_ct_OBJDUMP"; then
11835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11836$as_echo "$ac_ct_OBJDUMP" >&6; }
11837else
11838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839$as_echo "no" >&6; }
11840fi
11841
11842  if test "x$ac_ct_OBJDUMP" = x; then
11843    OBJDUMP="false"
11844  else
11845    case $cross_compiling:$ac_tool_warned in
11846yes:)
11847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11849ac_tool_warned=yes ;;
11850esac
11851    OBJDUMP=$ac_ct_OBJDUMP
11852  fi
11853else
11854  OBJDUMP="$ac_cv_prog_OBJDUMP"
11855fi
11856
11857test -z "$OBJDUMP" && OBJDUMP=objdump
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11868$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11869if ${lt_cv_deplibs_check_method+:} false; then :
11870  $as_echo_n "(cached) " >&6
11871else
11872  lt_cv_file_magic_cmd='$MAGIC_CMD'
11873lt_cv_file_magic_test_file=
11874lt_cv_deplibs_check_method='unknown'
11875# Need to set the preceding variable on all platforms that support
11876# interlibrary dependencies.
11877# 'none' -- dependencies not supported.
11878# 'unknown' -- same as none, but documents that we really don't know.
11879# 'pass_all' -- all dependencies passed with no checks.
11880# 'test_compile' -- check by making test program.
11881# 'file_magic [[regex]]' -- check by looking for files in library path
11882# that responds to the $file_magic_cmd with a given extended regex.
11883# If you have 'file' or equivalent on your system and you're not sure
11884# whether 'pass_all' will *always* work, you probably want this one.
11885
11886case $host_os in
11887aix[4-9]*)
11888  lt_cv_deplibs_check_method=pass_all
11889  ;;
11890
11891beos*)
11892  lt_cv_deplibs_check_method=pass_all
11893  ;;
11894
11895bsdi[45]*)
11896  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11897  lt_cv_file_magic_cmd='/usr/bin/file -L'
11898  lt_cv_file_magic_test_file=/shlib/libc.so
11899  ;;
11900
11901cygwin*)
11902  # func_win32_libid is a shell function defined in ltmain.sh
11903  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11904  lt_cv_file_magic_cmd='func_win32_libid'
11905  ;;
11906
11907mingw* | pw32*)
11908  # Base MSYS/MinGW do not provide the 'file' command needed by
11909  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11910  # unless we find 'file', for example because we are cross-compiling.
11911  if ( file / ) >/dev/null 2>&1; then
11912    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11913    lt_cv_file_magic_cmd='func_win32_libid'
11914  else
11915    # Keep this pattern in sync with the one in func_win32_libid.
11916    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11917    lt_cv_file_magic_cmd='$OBJDUMP -f'
11918  fi
11919  ;;
11920
11921cegcc*)
11922  # use the weaker test based on 'objdump'. See mingw*.
11923  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11924  lt_cv_file_magic_cmd='$OBJDUMP -f'
11925  ;;
11926
11927darwin* | rhapsody*)
11928  lt_cv_deplibs_check_method=pass_all
11929  ;;
11930
11931freebsd* | dragonfly*)
11932  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11933    case $host_cpu in
11934    i*86 )
11935      # Not sure whether the presence of OpenBSD here was a mistake.
11936      # Let's accept both of them until this is cleared up.
11937      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11938      lt_cv_file_magic_cmd=/usr/bin/file
11939      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11940      ;;
11941    esac
11942  else
11943    lt_cv_deplibs_check_method=pass_all
11944  fi
11945  ;;
11946
11947haiku*)
11948  lt_cv_deplibs_check_method=pass_all
11949  ;;
11950
11951hpux10.20* | hpux11*)
11952  lt_cv_file_magic_cmd=/usr/bin/file
11953  case $host_cpu in
11954  ia64*)
11955    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11956    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11957    ;;
11958  hppa*64*)
11959    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]'
11960    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11961    ;;
11962  *)
11963    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11964    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11965    ;;
11966  esac
11967  ;;
11968
11969interix[3-9]*)
11970  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11971  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11972  ;;
11973
11974irix5* | irix6* | nonstopux*)
11975  case $LD in
11976  *-32|*"-32 ") libmagic=32-bit;;
11977  *-n32|*"-n32 ") libmagic=N32;;
11978  *-64|*"-64 ") libmagic=64-bit;;
11979  *) libmagic=never-match;;
11980  esac
11981  lt_cv_deplibs_check_method=pass_all
11982  ;;
11983
11984# This must be glibc/ELF.
11985linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11986  lt_cv_deplibs_check_method=pass_all
11987  ;;
11988
11989netbsd* | netbsdelf*-gnu)
11990  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11991    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11992  else
11993    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11994  fi
11995  ;;
11996
11997newos6*)
11998  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11999  lt_cv_file_magic_cmd=/usr/bin/file
12000  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12001  ;;
12002
12003*nto* | *qnx*)
12004  lt_cv_deplibs_check_method=pass_all
12005  ;;
12006
12007openbsd* | bitrig*)
12008  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12009    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12010  else
12011    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12012  fi
12013  ;;
12014
12015osf3* | osf4* | osf5*)
12016  lt_cv_deplibs_check_method=pass_all
12017  ;;
12018
12019rdos*)
12020  lt_cv_deplibs_check_method=pass_all
12021  ;;
12022
12023solaris*)
12024  lt_cv_deplibs_check_method=pass_all
12025  ;;
12026
12027sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12028  lt_cv_deplibs_check_method=pass_all
12029  ;;
12030
12031sysv4 | sysv4.3*)
12032  case $host_vendor in
12033  motorola)
12034    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]'
12035    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12036    ;;
12037  ncr)
12038    lt_cv_deplibs_check_method=pass_all
12039    ;;
12040  sequent)
12041    lt_cv_file_magic_cmd='/bin/file'
12042    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12043    ;;
12044  sni)
12045    lt_cv_file_magic_cmd='/bin/file'
12046    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12047    lt_cv_file_magic_test_file=/lib/libc.so
12048    ;;
12049  siemens)
12050    lt_cv_deplibs_check_method=pass_all
12051    ;;
12052  pc)
12053    lt_cv_deplibs_check_method=pass_all
12054    ;;
12055  esac
12056  ;;
12057
12058tpf*)
12059  lt_cv_deplibs_check_method=pass_all
12060  ;;
12061os2*)
12062  lt_cv_deplibs_check_method=pass_all
12063  ;;
12064esac
12065
12066fi
12067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12068$as_echo "$lt_cv_deplibs_check_method" >&6; }
12069
12070file_magic_glob=
12071want_nocaseglob=no
12072if test "$build" = "$host"; then
12073  case $host_os in
12074  mingw* | pw32*)
12075    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12076      want_nocaseglob=yes
12077    else
12078      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12079    fi
12080    ;;
12081  esac
12082fi
12083
12084file_magic_cmd=$lt_cv_file_magic_cmd
12085deplibs_check_method=$lt_cv_deplibs_check_method
12086test -z "$deplibs_check_method" && deplibs_check_method=unknown
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109if test -n "$ac_tool_prefix"; then
12110  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12111set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12113$as_echo_n "checking for $ac_word... " >&6; }
12114if ${ac_cv_prog_DLLTOOL+:} false; then :
12115  $as_echo_n "(cached) " >&6
12116else
12117  if test -n "$DLLTOOL"; then
12118  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12119else
12120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12121for as_dir in $PATH
12122do
12123  IFS=$as_save_IFS
12124  test -z "$as_dir" && as_dir=.
12125    for ac_exec_ext in '' $ac_executable_extensions; do
12126  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12127    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12129    break 2
12130  fi
12131done
12132  done
12133IFS=$as_save_IFS
12134
12135fi
12136fi
12137DLLTOOL=$ac_cv_prog_DLLTOOL
12138if test -n "$DLLTOOL"; then
12139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12140$as_echo "$DLLTOOL" >&6; }
12141else
12142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143$as_echo "no" >&6; }
12144fi
12145
12146
12147fi
12148if test -z "$ac_cv_prog_DLLTOOL"; then
12149  ac_ct_DLLTOOL=$DLLTOOL
12150  # Extract the first word of "dlltool", so it can be a program name with args.
12151set dummy dlltool; ac_word=$2
12152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12153$as_echo_n "checking for $ac_word... " >&6; }
12154if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12155  $as_echo_n "(cached) " >&6
12156else
12157  if test -n "$ac_ct_DLLTOOL"; then
12158  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12159else
12160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12161for as_dir in $PATH
12162do
12163  IFS=$as_save_IFS
12164  test -z "$as_dir" && as_dir=.
12165    for ac_exec_ext in '' $ac_executable_extensions; do
12166  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12167    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12168    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12169    break 2
12170  fi
12171done
12172  done
12173IFS=$as_save_IFS
12174
12175fi
12176fi
12177ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12178if test -n "$ac_ct_DLLTOOL"; then
12179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12180$as_echo "$ac_ct_DLLTOOL" >&6; }
12181else
12182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183$as_echo "no" >&6; }
12184fi
12185
12186  if test "x$ac_ct_DLLTOOL" = x; then
12187    DLLTOOL="false"
12188  else
12189    case $cross_compiling:$ac_tool_warned in
12190yes:)
12191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12193ac_tool_warned=yes ;;
12194esac
12195    DLLTOOL=$ac_ct_DLLTOOL
12196  fi
12197else
12198  DLLTOOL="$ac_cv_prog_DLLTOOL"
12199fi
12200
12201test -z "$DLLTOOL" && DLLTOOL=dlltool
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12213$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12214if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12215  $as_echo_n "(cached) " >&6
12216else
12217  lt_cv_sharedlib_from_linklib_cmd='unknown'
12218
12219case $host_os in
12220cygwin* | mingw* | pw32* | cegcc*)
12221  # two different shell functions defined in ltmain.sh;
12222  # decide which one to use based on capabilities of $DLLTOOL
12223  case `$DLLTOOL --help 2>&1` in
12224  *--identify-strict*)
12225    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12226    ;;
12227  *)
12228    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12229    ;;
12230  esac
12231  ;;
12232*)
12233  # fallback: assume linklib IS sharedlib
12234  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12235  ;;
12236esac
12237
12238fi
12239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12240$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12241sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12242test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12243
12244
12245
12246
12247
12248
12249
12250if test -n "$ac_tool_prefix"; then
12251  for ac_prog in ar
12252  do
12253    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12254set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12256$as_echo_n "checking for $ac_word... " >&6; }
12257if ${ac_cv_prog_AR+:} false; then :
12258  $as_echo_n "(cached) " >&6
12259else
12260  if test -n "$AR"; then
12261  ac_cv_prog_AR="$AR" # Let the user override the test.
12262else
12263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12264for as_dir in $PATH
12265do
12266  IFS=$as_save_IFS
12267  test -z "$as_dir" && as_dir=.
12268    for ac_exec_ext in '' $ac_executable_extensions; do
12269  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12270    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12272    break 2
12273  fi
12274done
12275  done
12276IFS=$as_save_IFS
12277
12278fi
12279fi
12280AR=$ac_cv_prog_AR
12281if test -n "$AR"; then
12282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12283$as_echo "$AR" >&6; }
12284else
12285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286$as_echo "no" >&6; }
12287fi
12288
12289
12290    test -n "$AR" && break
12291  done
12292fi
12293if test -z "$AR"; then
12294  ac_ct_AR=$AR
12295  for ac_prog in ar
12296do
12297  # Extract the first word of "$ac_prog", so it can be a program name with args.
12298set dummy $ac_prog; ac_word=$2
12299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12300$as_echo_n "checking for $ac_word... " >&6; }
12301if ${ac_cv_prog_ac_ct_AR+:} false; then :
12302  $as_echo_n "(cached) " >&6
12303else
12304  if test -n "$ac_ct_AR"; then
12305  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12306else
12307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12308for as_dir in $PATH
12309do
12310  IFS=$as_save_IFS
12311  test -z "$as_dir" && as_dir=.
12312    for ac_exec_ext in '' $ac_executable_extensions; do
12313  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12314    ac_cv_prog_ac_ct_AR="$ac_prog"
12315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12316    break 2
12317  fi
12318done
12319  done
12320IFS=$as_save_IFS
12321
12322fi
12323fi
12324ac_ct_AR=$ac_cv_prog_ac_ct_AR
12325if test -n "$ac_ct_AR"; then
12326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12327$as_echo "$ac_ct_AR" >&6; }
12328else
12329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330$as_echo "no" >&6; }
12331fi
12332
12333
12334  test -n "$ac_ct_AR" && break
12335done
12336
12337  if test "x$ac_ct_AR" = x; then
12338    AR="false"
12339  else
12340    case $cross_compiling:$ac_tool_warned in
12341yes:)
12342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12344ac_tool_warned=yes ;;
12345esac
12346    AR=$ac_ct_AR
12347  fi
12348fi
12349
12350: ${AR=ar}
12351: ${AR_FLAGS=cru}
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12364$as_echo_n "checking for archiver @FILE support... " >&6; }
12365if ${lt_cv_ar_at_file+:} false; then :
12366  $as_echo_n "(cached) " >&6
12367else
12368  lt_cv_ar_at_file=no
12369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370/* end confdefs.h.  */
12371
12372int
12373main ()
12374{
12375
12376  ;
12377  return 0;
12378}
12379_ACEOF
12380if ac_fn_c_try_compile "$LINENO"; then :
12381  echo conftest.$ac_objext > conftest.lst
12382      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12383      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12384  (eval $lt_ar_try) 2>&5
12385  ac_status=$?
12386  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12387  test $ac_status = 0; }
12388      if test 0 -eq "$ac_status"; then
12389	# Ensure the archiver fails upon bogus file names.
12390	rm -f conftest.$ac_objext libconftest.a
12391	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12392  (eval $lt_ar_try) 2>&5
12393  ac_status=$?
12394  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12395  test $ac_status = 0; }
12396	if test 0 -ne "$ac_status"; then
12397          lt_cv_ar_at_file=@
12398        fi
12399      fi
12400      rm -f conftest.* libconftest.a
12401
12402fi
12403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12404
12405fi
12406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12407$as_echo "$lt_cv_ar_at_file" >&6; }
12408
12409if test no = "$lt_cv_ar_at_file"; then
12410  archiver_list_spec=
12411else
12412  archiver_list_spec=$lt_cv_ar_at_file
12413fi
12414
12415
12416
12417
12418
12419
12420
12421if test -n "$ac_tool_prefix"; then
12422  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12423set dummy ${ac_tool_prefix}strip; ac_word=$2
12424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12425$as_echo_n "checking for $ac_word... " >&6; }
12426if ${ac_cv_prog_STRIP+:} false; then :
12427  $as_echo_n "(cached) " >&6
12428else
12429  if test -n "$STRIP"; then
12430  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12431else
12432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12433for as_dir in $PATH
12434do
12435  IFS=$as_save_IFS
12436  test -z "$as_dir" && as_dir=.
12437    for ac_exec_ext in '' $ac_executable_extensions; do
12438  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12439    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12440    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12441    break 2
12442  fi
12443done
12444  done
12445IFS=$as_save_IFS
12446
12447fi
12448fi
12449STRIP=$ac_cv_prog_STRIP
12450if test -n "$STRIP"; then
12451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12452$as_echo "$STRIP" >&6; }
12453else
12454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12455$as_echo "no" >&6; }
12456fi
12457
12458
12459fi
12460if test -z "$ac_cv_prog_STRIP"; then
12461  ac_ct_STRIP=$STRIP
12462  # Extract the first word of "strip", so it can be a program name with args.
12463set dummy strip; ac_word=$2
12464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12465$as_echo_n "checking for $ac_word... " >&6; }
12466if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12467  $as_echo_n "(cached) " >&6
12468else
12469  if test -n "$ac_ct_STRIP"; then
12470  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12471else
12472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12473for as_dir in $PATH
12474do
12475  IFS=$as_save_IFS
12476  test -z "$as_dir" && as_dir=.
12477    for ac_exec_ext in '' $ac_executable_extensions; do
12478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12479    ac_cv_prog_ac_ct_STRIP="strip"
12480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12481    break 2
12482  fi
12483done
12484  done
12485IFS=$as_save_IFS
12486
12487fi
12488fi
12489ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12490if test -n "$ac_ct_STRIP"; then
12491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12492$as_echo "$ac_ct_STRIP" >&6; }
12493else
12494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12495$as_echo "no" >&6; }
12496fi
12497
12498  if test "x$ac_ct_STRIP" = x; then
12499    STRIP=":"
12500  else
12501    case $cross_compiling:$ac_tool_warned in
12502yes:)
12503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12505ac_tool_warned=yes ;;
12506esac
12507    STRIP=$ac_ct_STRIP
12508  fi
12509else
12510  STRIP="$ac_cv_prog_STRIP"
12511fi
12512
12513test -z "$STRIP" && STRIP=:
12514
12515
12516
12517
12518
12519
12520if test -n "$ac_tool_prefix"; then
12521  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12522set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12524$as_echo_n "checking for $ac_word... " >&6; }
12525if ${ac_cv_prog_RANLIB+:} false; then :
12526  $as_echo_n "(cached) " >&6
12527else
12528  if test -n "$RANLIB"; then
12529  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12530else
12531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12532for as_dir in $PATH
12533do
12534  IFS=$as_save_IFS
12535  test -z "$as_dir" && as_dir=.
12536    for ac_exec_ext in '' $ac_executable_extensions; do
12537  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12538    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12540    break 2
12541  fi
12542done
12543  done
12544IFS=$as_save_IFS
12545
12546fi
12547fi
12548RANLIB=$ac_cv_prog_RANLIB
12549if test -n "$RANLIB"; then
12550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12551$as_echo "$RANLIB" >&6; }
12552else
12553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554$as_echo "no" >&6; }
12555fi
12556
12557
12558fi
12559if test -z "$ac_cv_prog_RANLIB"; then
12560  ac_ct_RANLIB=$RANLIB
12561  # Extract the first word of "ranlib", so it can be a program name with args.
12562set dummy ranlib; ac_word=$2
12563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12564$as_echo_n "checking for $ac_word... " >&6; }
12565if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12566  $as_echo_n "(cached) " >&6
12567else
12568  if test -n "$ac_ct_RANLIB"; then
12569  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12570else
12571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12572for as_dir in $PATH
12573do
12574  IFS=$as_save_IFS
12575  test -z "$as_dir" && as_dir=.
12576    for ac_exec_ext in '' $ac_executable_extensions; do
12577  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12578    ac_cv_prog_ac_ct_RANLIB="ranlib"
12579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12580    break 2
12581  fi
12582done
12583  done
12584IFS=$as_save_IFS
12585
12586fi
12587fi
12588ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12589if test -n "$ac_ct_RANLIB"; then
12590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12591$as_echo "$ac_ct_RANLIB" >&6; }
12592else
12593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12594$as_echo "no" >&6; }
12595fi
12596
12597  if test "x$ac_ct_RANLIB" = x; then
12598    RANLIB=":"
12599  else
12600    case $cross_compiling:$ac_tool_warned in
12601yes:)
12602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12604ac_tool_warned=yes ;;
12605esac
12606    RANLIB=$ac_ct_RANLIB
12607  fi
12608else
12609  RANLIB="$ac_cv_prog_RANLIB"
12610fi
12611
12612test -z "$RANLIB" && RANLIB=:
12613
12614
12615
12616
12617
12618
12619# Determine commands to create old-style static archives.
12620old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12621old_postinstall_cmds='chmod 644 $oldlib'
12622old_postuninstall_cmds=
12623
12624if test -n "$RANLIB"; then
12625  case $host_os in
12626  bitrig* | openbsd*)
12627    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12628    ;;
12629  *)
12630    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12631    ;;
12632  esac
12633  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12634fi
12635
12636case $host_os in
12637  darwin*)
12638    lock_old_archive_extraction=yes ;;
12639  *)
12640    lock_old_archive_extraction=no ;;
12641esac
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681# If no C compiler was specified, use CC.
12682LTCC=${LTCC-"$CC"}
12683
12684# If no C compiler flags were specified, use CFLAGS.
12685LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12686
12687# Allow CC to be a program name with arguments.
12688compiler=$CC
12689
12690
12691# Check for command to grab the raw symbol name followed by C symbol from nm.
12692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12693$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12694if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12695  $as_echo_n "(cached) " >&6
12696else
12697
12698# These are sane defaults that work on at least a few old systems.
12699# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12700
12701# Character class describing NM global symbol codes.
12702symcode='[BCDEGRST]'
12703
12704# Regexp to match symbols that can be accessed directly from C.
12705sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12706
12707# Define system-specific variables.
12708case $host_os in
12709aix*)
12710  symcode='[BCDT]'
12711  ;;
12712cygwin* | mingw* | pw32* | cegcc*)
12713  symcode='[ABCDGISTW]'
12714  ;;
12715hpux*)
12716  if test ia64 = "$host_cpu"; then
12717    symcode='[ABCDEGRST]'
12718  fi
12719  ;;
12720irix* | nonstopux*)
12721  symcode='[BCDEGRST]'
12722  ;;
12723osf*)
12724  symcode='[BCDEGQRST]'
12725  ;;
12726solaris*)
12727  symcode='[BDRT]'
12728  ;;
12729sco3.2v5*)
12730  symcode='[DT]'
12731  ;;
12732sysv4.2uw2*)
12733  symcode='[DT]'
12734  ;;
12735sysv5* | sco5v6* | unixware* | OpenUNIX*)
12736  symcode='[ABDT]'
12737  ;;
12738sysv4)
12739  symcode='[DFNSTU]'
12740  ;;
12741esac
12742
12743# If we're using GNU nm, then use its standard symbol codes.
12744case `$NM -V 2>&1` in
12745*GNU* | *'with BFD'*)
12746  symcode='[ABCDGIRSTW]' ;;
12747esac
12748
12749if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12750  # Gets list of data symbols to import.
12751  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12752  # Adjust the below global symbol transforms to fixup imported variables.
12753  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12754  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
12755  lt_c_name_lib_hook="\
12756  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
12757  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
12758else
12759  # Disable hooks by default.
12760  lt_cv_sys_global_symbol_to_import=
12761  lt_cdecl_hook=
12762  lt_c_name_hook=
12763  lt_c_name_lib_hook=
12764fi
12765
12766# Transform an extracted symbol line into a proper C declaration.
12767# Some systems (esp. on ia64) link data and code symbols differently,
12768# so use this general approach.
12769lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12770$lt_cdecl_hook\
12771" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12772" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12773
12774# Transform an extracted symbol line into symbol name and symbol address
12775lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12776$lt_c_name_hook\
12777" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12778" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
12779
12780# Transform an extracted symbol line into symbol name with lib prefix and
12781# symbol address.
12782lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12783$lt_c_name_lib_hook\
12784" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12785" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
12786" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
12787
12788# Handle CRLF in mingw tool chain
12789opt_cr=
12790case $build_os in
12791mingw*)
12792  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12793  ;;
12794esac
12795
12796# Try without a prefix underscore, then with it.
12797for ac_symprfx in "" "_"; do
12798
12799  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12800  symxfrm="\\1 $ac_symprfx\\2 \\2"
12801
12802  # Write the raw and C identifiers.
12803  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12804    # Fake it for dumpbin and say T for any non-static function,
12805    # D for any global variable and I for any imported variable.
12806    # Also find C++ and __fastcall symbols from MSVC++,
12807    # which start with @ or ?.
12808    lt_cv_sys_global_symbol_pipe="$AWK '"\
12809"     {last_section=section; section=\$ 3};"\
12810"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12811"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12812"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12813"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12814"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12815"     \$ 0!~/External *\|/{next};"\
12816"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12817"     {if(hide[section]) next};"\
12818"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12819"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12820"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12821"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12822"     ' prfx=^$ac_symprfx"
12823  else
12824    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12825  fi
12826  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12827
12828  # Check to see that the pipe works correctly.
12829  pipe_works=no
12830
12831  rm -f conftest*
12832  cat > conftest.$ac_ext <<_LT_EOF
12833#ifdef __cplusplus
12834extern "C" {
12835#endif
12836char nm_test_var;
12837void nm_test_func(void);
12838void nm_test_func(void){}
12839#ifdef __cplusplus
12840}
12841#endif
12842int main(){nm_test_var='a';nm_test_func();return(0);}
12843_LT_EOF
12844
12845  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12846  (eval $ac_compile) 2>&5
12847  ac_status=$?
12848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12849  test $ac_status = 0; }; then
12850    # Now try to grab the symbols.
12851    nlist=conftest.nm
12852    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12853  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12854  ac_status=$?
12855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12856  test $ac_status = 0; } && test -s "$nlist"; then
12857      # Try sorting and uniquifying the output.
12858      if sort "$nlist" | uniq > "$nlist"T; then
12859	mv -f "$nlist"T "$nlist"
12860      else
12861	rm -f "$nlist"T
12862      fi
12863
12864      # Make sure that we snagged all the symbols we need.
12865      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12866	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12867	  cat <<_LT_EOF > conftest.$ac_ext
12868/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12869#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12870/* DATA imports from DLLs on WIN32 can't be const, because runtime
12871   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12872# define LT_DLSYM_CONST
12873#elif defined __osf__
12874/* This system does not cope well with relocations in const data.  */
12875# define LT_DLSYM_CONST
12876#else
12877# define LT_DLSYM_CONST const
12878#endif
12879
12880#ifdef __cplusplus
12881extern "C" {
12882#endif
12883
12884_LT_EOF
12885	  # Now generate the symbol file.
12886	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12887
12888	  cat <<_LT_EOF >> conftest.$ac_ext
12889
12890/* The mapping between symbol names and symbols.  */
12891LT_DLSYM_CONST struct {
12892  const char *name;
12893  void       *address;
12894}
12895lt__PROGRAM__LTX_preloaded_symbols[] =
12896{
12897  { "@PROGRAM@", (void *) 0 },
12898_LT_EOF
12899	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12900	  cat <<\_LT_EOF >> conftest.$ac_ext
12901  {0, (void *) 0}
12902};
12903
12904/* This works around a problem in FreeBSD linker */
12905#ifdef FREEBSD_WORKAROUND
12906static const void *lt_preloaded_setup() {
12907  return lt__PROGRAM__LTX_preloaded_symbols;
12908}
12909#endif
12910
12911#ifdef __cplusplus
12912}
12913#endif
12914_LT_EOF
12915	  # Now try linking the two files.
12916	  mv conftest.$ac_objext conftstm.$ac_objext
12917	  lt_globsym_save_LIBS=$LIBS
12918	  lt_globsym_save_CFLAGS=$CFLAGS
12919	  LIBS=conftstm.$ac_objext
12920	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12921	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12922  (eval $ac_link) 2>&5
12923  ac_status=$?
12924  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12925  test $ac_status = 0; } && test -s conftest$ac_exeext; then
12926	    pipe_works=yes
12927	  fi
12928	  LIBS=$lt_globsym_save_LIBS
12929	  CFLAGS=$lt_globsym_save_CFLAGS
12930	else
12931	  echo "cannot find nm_test_func in $nlist" >&5
12932	fi
12933      else
12934	echo "cannot find nm_test_var in $nlist" >&5
12935      fi
12936    else
12937      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12938    fi
12939  else
12940    echo "$progname: failed program was:" >&5
12941    cat conftest.$ac_ext >&5
12942  fi
12943  rm -rf conftest* conftst*
12944
12945  # Do not use the global_symbol_pipe unless it works.
12946  if test yes = "$pipe_works"; then
12947    break
12948  else
12949    lt_cv_sys_global_symbol_pipe=
12950  fi
12951done
12952
12953fi
12954
12955if test -z "$lt_cv_sys_global_symbol_pipe"; then
12956  lt_cv_sys_global_symbol_to_cdecl=
12957fi
12958if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12960$as_echo "failed" >&6; }
12961else
12962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12963$as_echo "ok" >&6; }
12964fi
12965
12966# Response file support.
12967if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12968  nm_file_list_spec='@'
12969elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12970  nm_file_list_spec='@'
12971fi
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13010$as_echo_n "checking for sysroot... " >&6; }
13011
13012# Check whether --with-sysroot was given.
13013if test "${with_sysroot+set}" = set; then :
13014  withval=$with_sysroot;
13015else
13016  with_sysroot=no
13017fi
13018
13019
13020lt_sysroot=
13021case $with_sysroot in #(
13022 yes)
13023   if test yes = "$GCC"; then
13024     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13025   fi
13026   ;; #(
13027 /*)
13028   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13029   ;; #(
13030 no|'')
13031   ;; #(
13032 *)
13033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13034$as_echo "$with_sysroot" >&6; }
13035   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13036   ;;
13037esac
13038
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13040$as_echo "${lt_sysroot:-no}" >&6; }
13041
13042
13043
13044
13045
13046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13047$as_echo_n "checking for a working dd... " >&6; }
13048if ${ac_cv_path_lt_DD+:} false; then :
13049  $as_echo_n "(cached) " >&6
13050else
13051  printf 0123456789abcdef0123456789abcdef >conftest.i
13052cat conftest.i conftest.i >conftest2.i
13053: ${lt_DD:=$DD}
13054if test -z "$lt_DD"; then
13055  ac_path_lt_DD_found=false
13056  # Loop through the user's path and test for each of PROGNAME-LIST
13057  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13058for as_dir in $PATH
13059do
13060  IFS=$as_save_IFS
13061  test -z "$as_dir" && as_dir=.
13062    for ac_prog in dd; do
13063    for ac_exec_ext in '' $ac_executable_extensions; do
13064      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13065      as_fn_executable_p "$ac_path_lt_DD" || continue
13066if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13067  cmp -s conftest.i conftest.out \
13068  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13069fi
13070      $ac_path_lt_DD_found && break 3
13071    done
13072  done
13073  done
13074IFS=$as_save_IFS
13075  if test -z "$ac_cv_path_lt_DD"; then
13076    :
13077  fi
13078else
13079  ac_cv_path_lt_DD=$lt_DD
13080fi
13081
13082rm -f conftest.i conftest2.i conftest.out
13083fi
13084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13085$as_echo "$ac_cv_path_lt_DD" >&6; }
13086
13087
13088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13089$as_echo_n "checking how to truncate binary pipes... " >&6; }
13090if ${lt_cv_truncate_bin+:} false; then :
13091  $as_echo_n "(cached) " >&6
13092else
13093  printf 0123456789abcdef0123456789abcdef >conftest.i
13094cat conftest.i conftest.i >conftest2.i
13095lt_cv_truncate_bin=
13096if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13097  cmp -s conftest.i conftest.out \
13098  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13099fi
13100rm -f conftest.i conftest2.i conftest.out
13101test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13102fi
13103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13104$as_echo "$lt_cv_truncate_bin" >&6; }
13105
13106
13107
13108
13109
13110
13111
13112# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
13113func_cc_basename ()
13114{
13115    for cc_temp in $*""; do
13116      case $cc_temp in
13117        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13118        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13119        \-*) ;;
13120        *) break;;
13121      esac
13122    done
13123    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13124}
13125
13126# Check whether --enable-libtool-lock was given.
13127if test "${enable_libtool_lock+set}" = set; then :
13128  enableval=$enable_libtool_lock;
13129fi
13130
13131test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13132
13133# Some flags need to be propagated to the compiler or linker for good
13134# libtool support.
13135case $host in
13136ia64-*-hpux*)
13137  # Find out what ABI is being produced by ac_compile, and set mode
13138  # options accordingly.
13139  echo 'int i;' > conftest.$ac_ext
13140  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13141  (eval $ac_compile) 2>&5
13142  ac_status=$?
13143  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13144  test $ac_status = 0; }; then
13145    case `/usr/bin/file conftest.$ac_objext` in
13146      *ELF-32*)
13147	HPUX_IA64_MODE=32
13148	;;
13149      *ELF-64*)
13150	HPUX_IA64_MODE=64
13151	;;
13152    esac
13153  fi
13154  rm -rf conftest*
13155  ;;
13156*-*-irix6*)
13157  # Find out what ABI is being produced by ac_compile, and set linker
13158  # options accordingly.
13159  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13160  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13161  (eval $ac_compile) 2>&5
13162  ac_status=$?
13163  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13164  test $ac_status = 0; }; then
13165    if test yes = "$lt_cv_prog_gnu_ld"; then
13166      case `/usr/bin/file conftest.$ac_objext` in
13167	*32-bit*)
13168	  LD="${LD-ld} -melf32bsmip"
13169	  ;;
13170	*N32*)
13171	  LD="${LD-ld} -melf32bmipn32"
13172	  ;;
13173	*64-bit*)
13174	  LD="${LD-ld} -melf64bmip"
13175	;;
13176      esac
13177    else
13178      case `/usr/bin/file conftest.$ac_objext` in
13179	*32-bit*)
13180	  LD="${LD-ld} -32"
13181	  ;;
13182	*N32*)
13183	  LD="${LD-ld} -n32"
13184	  ;;
13185	*64-bit*)
13186	  LD="${LD-ld} -64"
13187	  ;;
13188      esac
13189    fi
13190  fi
13191  rm -rf conftest*
13192  ;;
13193
13194mips64*-*linux*)
13195  # Find out what ABI is being produced by ac_compile, and set linker
13196  # options accordingly.
13197  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13198  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13199  (eval $ac_compile) 2>&5
13200  ac_status=$?
13201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13202  test $ac_status = 0; }; then
13203    emul=elf
13204    case `/usr/bin/file conftest.$ac_objext` in
13205      *32-bit*)
13206	emul="${emul}32"
13207	;;
13208      *64-bit*)
13209	emul="${emul}64"
13210	;;
13211    esac
13212    case `/usr/bin/file conftest.$ac_objext` in
13213      *MSB*)
13214	emul="${emul}btsmip"
13215	;;
13216      *LSB*)
13217	emul="${emul}ltsmip"
13218	;;
13219    esac
13220    case `/usr/bin/file conftest.$ac_objext` in
13221      *N32*)
13222	emul="${emul}n32"
13223	;;
13224    esac
13225    LD="${LD-ld} -m $emul"
13226  fi
13227  rm -rf conftest*
13228  ;;
13229
13230x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13231s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13232  # Find out what ABI is being produced by ac_compile, and set linker
13233  # options accordingly.  Note that the listed cases only cover the
13234  # situations where additional linker options are needed (such as when
13235  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13236  # vice versa); the common cases where no linker options are needed do
13237  # not appear in the list.
13238  echo 'int i;' > conftest.$ac_ext
13239  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13240  (eval $ac_compile) 2>&5
13241  ac_status=$?
13242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13243  test $ac_status = 0; }; then
13244    case `/usr/bin/file conftest.o` in
13245      *32-bit*)
13246	case $host in
13247	  x86_64-*kfreebsd*-gnu)
13248	    LD="${LD-ld} -m elf_i386_fbsd"
13249	    ;;
13250	  x86_64-*linux*)
13251	    case `/usr/bin/file conftest.o` in
13252	      *x86-64*)
13253		LD="${LD-ld} -m elf32_x86_64"
13254		;;
13255	      *)
13256		LD="${LD-ld} -m elf_i386"
13257		;;
13258	    esac
13259	    ;;
13260	  powerpc64le-*linux*)
13261	    LD="${LD-ld} -m elf32lppclinux"
13262	    ;;
13263	  powerpc64-*linux*)
13264	    LD="${LD-ld} -m elf32ppclinux"
13265	    ;;
13266	  s390x-*linux*)
13267	    LD="${LD-ld} -m elf_s390"
13268	    ;;
13269	  sparc64-*linux*)
13270	    LD="${LD-ld} -m elf32_sparc"
13271	    ;;
13272	esac
13273	;;
13274      *64-bit*)
13275	case $host in
13276	  x86_64-*kfreebsd*-gnu)
13277	    LD="${LD-ld} -m elf_x86_64_fbsd"
13278	    ;;
13279	  x86_64-*linux*)
13280	    LD="${LD-ld} -m elf_x86_64"
13281	    ;;
13282	  powerpcle-*linux*)
13283	    LD="${LD-ld} -m elf64lppc"
13284	    ;;
13285	  powerpc-*linux*)
13286	    LD="${LD-ld} -m elf64ppc"
13287	    ;;
13288	  s390*-*linux*|s390*-*tpf*)
13289	    LD="${LD-ld} -m elf64_s390"
13290	    ;;
13291	  sparc*-*linux*)
13292	    LD="${LD-ld} -m elf64_sparc"
13293	    ;;
13294	esac
13295	;;
13296    esac
13297  fi
13298  rm -rf conftest*
13299  ;;
13300
13301*-*-sco3.2v5*)
13302  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13303  SAVE_CFLAGS=$CFLAGS
13304  CFLAGS="$CFLAGS -belf"
13305  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13306$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13307if ${lt_cv_cc_needs_belf+:} false; then :
13308  $as_echo_n "(cached) " >&6
13309else
13310  ac_ext=c
13311ac_cpp='$CPP $CPPFLAGS'
13312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13314ac_compiler_gnu=$ac_cv_c_compiler_gnu
13315
13316     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317/* end confdefs.h.  */
13318
13319int
13320main ()
13321{
13322
13323  ;
13324  return 0;
13325}
13326_ACEOF
13327if ac_fn_c_try_link "$LINENO"; then :
13328  lt_cv_cc_needs_belf=yes
13329else
13330  lt_cv_cc_needs_belf=no
13331fi
13332rm -f core conftest.err conftest.$ac_objext \
13333    conftest$ac_exeext conftest.$ac_ext
13334     ac_ext=c
13335ac_cpp='$CPP $CPPFLAGS'
13336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13338ac_compiler_gnu=$ac_cv_c_compiler_gnu
13339
13340fi
13341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13342$as_echo "$lt_cv_cc_needs_belf" >&6; }
13343  if test yes != "$lt_cv_cc_needs_belf"; then
13344    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13345    CFLAGS=$SAVE_CFLAGS
13346  fi
13347  ;;
13348*-*solaris*)
13349  # Find out what ABI is being produced by ac_compile, and set linker
13350  # options accordingly.
13351  echo 'int i;' > conftest.$ac_ext
13352  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13353  (eval $ac_compile) 2>&5
13354  ac_status=$?
13355  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13356  test $ac_status = 0; }; then
13357    case `/usr/bin/file conftest.o` in
13358    *64-bit*)
13359      case $lt_cv_prog_gnu_ld in
13360      yes*)
13361        case $host in
13362        i?86-*-solaris*|x86_64-*-solaris*)
13363          LD="${LD-ld} -m elf_x86_64"
13364          ;;
13365        sparc*-*-solaris*)
13366          LD="${LD-ld} -m elf64_sparc"
13367          ;;
13368        esac
13369        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13370        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13371          LD=${LD-ld}_sol2
13372        fi
13373        ;;
13374      *)
13375	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13376	  LD="${LD-ld} -64"
13377	fi
13378	;;
13379      esac
13380      ;;
13381    esac
13382  fi
13383  rm -rf conftest*
13384  ;;
13385esac
13386
13387need_locks=$enable_libtool_lock
13388
13389if test -n "$ac_tool_prefix"; then
13390  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13391set dummy ${ac_tool_prefix}mt; ac_word=$2
13392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13393$as_echo_n "checking for $ac_word... " >&6; }
13394if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13395  $as_echo_n "(cached) " >&6
13396else
13397  if test -n "$MANIFEST_TOOL"; then
13398  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13399else
13400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13401for as_dir in $PATH
13402do
13403  IFS=$as_save_IFS
13404  test -z "$as_dir" && as_dir=.
13405    for ac_exec_ext in '' $ac_executable_extensions; do
13406  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13407    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13409    break 2
13410  fi
13411done
13412  done
13413IFS=$as_save_IFS
13414
13415fi
13416fi
13417MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13418if test -n "$MANIFEST_TOOL"; then
13419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13420$as_echo "$MANIFEST_TOOL" >&6; }
13421else
13422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13423$as_echo "no" >&6; }
13424fi
13425
13426
13427fi
13428if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13429  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13430  # Extract the first word of "mt", so it can be a program name with args.
13431set dummy mt; ac_word=$2
13432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13433$as_echo_n "checking for $ac_word... " >&6; }
13434if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13435  $as_echo_n "(cached) " >&6
13436else
13437  if test -n "$ac_ct_MANIFEST_TOOL"; then
13438  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13439else
13440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13441for as_dir in $PATH
13442do
13443  IFS=$as_save_IFS
13444  test -z "$as_dir" && as_dir=.
13445    for ac_exec_ext in '' $ac_executable_extensions; do
13446  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13447    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13448    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13449    break 2
13450  fi
13451done
13452  done
13453IFS=$as_save_IFS
13454
13455fi
13456fi
13457ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13458if test -n "$ac_ct_MANIFEST_TOOL"; then
13459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13460$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13461else
13462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13463$as_echo "no" >&6; }
13464fi
13465
13466  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13467    MANIFEST_TOOL=":"
13468  else
13469    case $cross_compiling:$ac_tool_warned in
13470yes:)
13471{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13473ac_tool_warned=yes ;;
13474esac
13475    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13476  fi
13477else
13478  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13479fi
13480
13481test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13483$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13484if ${lt_cv_path_mainfest_tool+:} false; then :
13485  $as_echo_n "(cached) " >&6
13486else
13487  lt_cv_path_mainfest_tool=no
13488  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13489  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13490  cat conftest.err >&5
13491  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13492    lt_cv_path_mainfest_tool=yes
13493  fi
13494  rm -f conftest*
13495fi
13496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13497$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13498if test yes != "$lt_cv_path_mainfest_tool"; then
13499  MANIFEST_TOOL=:
13500fi
13501
13502
13503
13504
13505
13506
13507  case $host_os in
13508    rhapsody* | darwin*)
13509    if test -n "$ac_tool_prefix"; then
13510  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13511set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13513$as_echo_n "checking for $ac_word... " >&6; }
13514if ${ac_cv_prog_DSYMUTIL+:} false; then :
13515  $as_echo_n "(cached) " >&6
13516else
13517  if test -n "$DSYMUTIL"; then
13518  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13519else
13520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13521for as_dir in $PATH
13522do
13523  IFS=$as_save_IFS
13524  test -z "$as_dir" && as_dir=.
13525    for ac_exec_ext in '' $ac_executable_extensions; do
13526  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13527    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13529    break 2
13530  fi
13531done
13532  done
13533IFS=$as_save_IFS
13534
13535fi
13536fi
13537DSYMUTIL=$ac_cv_prog_DSYMUTIL
13538if test -n "$DSYMUTIL"; then
13539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13540$as_echo "$DSYMUTIL" >&6; }
13541else
13542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13543$as_echo "no" >&6; }
13544fi
13545
13546
13547fi
13548if test -z "$ac_cv_prog_DSYMUTIL"; then
13549  ac_ct_DSYMUTIL=$DSYMUTIL
13550  # Extract the first word of "dsymutil", so it can be a program name with args.
13551set dummy dsymutil; ac_word=$2
13552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13553$as_echo_n "checking for $ac_word... " >&6; }
13554if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13555  $as_echo_n "(cached) " >&6
13556else
13557  if test -n "$ac_ct_DSYMUTIL"; then
13558  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13559else
13560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13561for as_dir in $PATH
13562do
13563  IFS=$as_save_IFS
13564  test -z "$as_dir" && as_dir=.
13565    for ac_exec_ext in '' $ac_executable_extensions; do
13566  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13567    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13568    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13569    break 2
13570  fi
13571done
13572  done
13573IFS=$as_save_IFS
13574
13575fi
13576fi
13577ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13578if test -n "$ac_ct_DSYMUTIL"; then
13579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13580$as_echo "$ac_ct_DSYMUTIL" >&6; }
13581else
13582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13583$as_echo "no" >&6; }
13584fi
13585
13586  if test "x$ac_ct_DSYMUTIL" = x; then
13587    DSYMUTIL=":"
13588  else
13589    case $cross_compiling:$ac_tool_warned in
13590yes:)
13591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13593ac_tool_warned=yes ;;
13594esac
13595    DSYMUTIL=$ac_ct_DSYMUTIL
13596  fi
13597else
13598  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13599fi
13600
13601    if test -n "$ac_tool_prefix"; then
13602  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13603set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13605$as_echo_n "checking for $ac_word... " >&6; }
13606if ${ac_cv_prog_NMEDIT+:} false; then :
13607  $as_echo_n "(cached) " >&6
13608else
13609  if test -n "$NMEDIT"; then
13610  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13611else
13612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13613for as_dir in $PATH
13614do
13615  IFS=$as_save_IFS
13616  test -z "$as_dir" && as_dir=.
13617    for ac_exec_ext in '' $ac_executable_extensions; do
13618  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13619    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13621    break 2
13622  fi
13623done
13624  done
13625IFS=$as_save_IFS
13626
13627fi
13628fi
13629NMEDIT=$ac_cv_prog_NMEDIT
13630if test -n "$NMEDIT"; then
13631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13632$as_echo "$NMEDIT" >&6; }
13633else
13634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13635$as_echo "no" >&6; }
13636fi
13637
13638
13639fi
13640if test -z "$ac_cv_prog_NMEDIT"; then
13641  ac_ct_NMEDIT=$NMEDIT
13642  # Extract the first word of "nmedit", so it can be a program name with args.
13643set dummy nmedit; ac_word=$2
13644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13645$as_echo_n "checking for $ac_word... " >&6; }
13646if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13647  $as_echo_n "(cached) " >&6
13648else
13649  if test -n "$ac_ct_NMEDIT"; then
13650  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13651else
13652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13653for as_dir in $PATH
13654do
13655  IFS=$as_save_IFS
13656  test -z "$as_dir" && as_dir=.
13657    for ac_exec_ext in '' $ac_executable_extensions; do
13658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13659    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13661    break 2
13662  fi
13663done
13664  done
13665IFS=$as_save_IFS
13666
13667fi
13668fi
13669ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13670if test -n "$ac_ct_NMEDIT"; then
13671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13672$as_echo "$ac_ct_NMEDIT" >&6; }
13673else
13674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13675$as_echo "no" >&6; }
13676fi
13677
13678  if test "x$ac_ct_NMEDIT" = x; then
13679    NMEDIT=":"
13680  else
13681    case $cross_compiling:$ac_tool_warned in
13682yes:)
13683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13685ac_tool_warned=yes ;;
13686esac
13687    NMEDIT=$ac_ct_NMEDIT
13688  fi
13689else
13690  NMEDIT="$ac_cv_prog_NMEDIT"
13691fi
13692
13693    if test -n "$ac_tool_prefix"; then
13694  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13695set dummy ${ac_tool_prefix}lipo; ac_word=$2
13696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13697$as_echo_n "checking for $ac_word... " >&6; }
13698if ${ac_cv_prog_LIPO+:} false; then :
13699  $as_echo_n "(cached) " >&6
13700else
13701  if test -n "$LIPO"; then
13702  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13703else
13704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13705for as_dir in $PATH
13706do
13707  IFS=$as_save_IFS
13708  test -z "$as_dir" && as_dir=.
13709    for ac_exec_ext in '' $ac_executable_extensions; do
13710  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13711    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13712    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13713    break 2
13714  fi
13715done
13716  done
13717IFS=$as_save_IFS
13718
13719fi
13720fi
13721LIPO=$ac_cv_prog_LIPO
13722if test -n "$LIPO"; then
13723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13724$as_echo "$LIPO" >&6; }
13725else
13726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13727$as_echo "no" >&6; }
13728fi
13729
13730
13731fi
13732if test -z "$ac_cv_prog_LIPO"; then
13733  ac_ct_LIPO=$LIPO
13734  # Extract the first word of "lipo", so it can be a program name with args.
13735set dummy lipo; ac_word=$2
13736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13737$as_echo_n "checking for $ac_word... " >&6; }
13738if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13739  $as_echo_n "(cached) " >&6
13740else
13741  if test -n "$ac_ct_LIPO"; then
13742  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13743else
13744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13745for as_dir in $PATH
13746do
13747  IFS=$as_save_IFS
13748  test -z "$as_dir" && as_dir=.
13749    for ac_exec_ext in '' $ac_executable_extensions; do
13750  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13751    ac_cv_prog_ac_ct_LIPO="lipo"
13752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13753    break 2
13754  fi
13755done
13756  done
13757IFS=$as_save_IFS
13758
13759fi
13760fi
13761ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13762if test -n "$ac_ct_LIPO"; then
13763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13764$as_echo "$ac_ct_LIPO" >&6; }
13765else
13766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13767$as_echo "no" >&6; }
13768fi
13769
13770  if test "x$ac_ct_LIPO" = x; then
13771    LIPO=":"
13772  else
13773    case $cross_compiling:$ac_tool_warned in
13774yes:)
13775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13777ac_tool_warned=yes ;;
13778esac
13779    LIPO=$ac_ct_LIPO
13780  fi
13781else
13782  LIPO="$ac_cv_prog_LIPO"
13783fi
13784
13785    if test -n "$ac_tool_prefix"; then
13786  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13787set dummy ${ac_tool_prefix}otool; ac_word=$2
13788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13789$as_echo_n "checking for $ac_word... " >&6; }
13790if ${ac_cv_prog_OTOOL+:} false; then :
13791  $as_echo_n "(cached) " >&6
13792else
13793  if test -n "$OTOOL"; then
13794  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13795else
13796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13797for as_dir in $PATH
13798do
13799  IFS=$as_save_IFS
13800  test -z "$as_dir" && as_dir=.
13801    for ac_exec_ext in '' $ac_executable_extensions; do
13802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13803    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13805    break 2
13806  fi
13807done
13808  done
13809IFS=$as_save_IFS
13810
13811fi
13812fi
13813OTOOL=$ac_cv_prog_OTOOL
13814if test -n "$OTOOL"; then
13815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13816$as_echo "$OTOOL" >&6; }
13817else
13818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13819$as_echo "no" >&6; }
13820fi
13821
13822
13823fi
13824if test -z "$ac_cv_prog_OTOOL"; then
13825  ac_ct_OTOOL=$OTOOL
13826  # Extract the first word of "otool", so it can be a program name with args.
13827set dummy otool; ac_word=$2
13828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13829$as_echo_n "checking for $ac_word... " >&6; }
13830if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13831  $as_echo_n "(cached) " >&6
13832else
13833  if test -n "$ac_ct_OTOOL"; then
13834  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13835else
13836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13837for as_dir in $PATH
13838do
13839  IFS=$as_save_IFS
13840  test -z "$as_dir" && as_dir=.
13841    for ac_exec_ext in '' $ac_executable_extensions; do
13842  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13843    ac_cv_prog_ac_ct_OTOOL="otool"
13844    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13845    break 2
13846  fi
13847done
13848  done
13849IFS=$as_save_IFS
13850
13851fi
13852fi
13853ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13854if test -n "$ac_ct_OTOOL"; then
13855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13856$as_echo "$ac_ct_OTOOL" >&6; }
13857else
13858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13859$as_echo "no" >&6; }
13860fi
13861
13862  if test "x$ac_ct_OTOOL" = x; then
13863    OTOOL=":"
13864  else
13865    case $cross_compiling:$ac_tool_warned in
13866yes:)
13867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13869ac_tool_warned=yes ;;
13870esac
13871    OTOOL=$ac_ct_OTOOL
13872  fi
13873else
13874  OTOOL="$ac_cv_prog_OTOOL"
13875fi
13876
13877    if test -n "$ac_tool_prefix"; then
13878  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13879set dummy ${ac_tool_prefix}otool64; ac_word=$2
13880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13881$as_echo_n "checking for $ac_word... " >&6; }
13882if ${ac_cv_prog_OTOOL64+:} false; then :
13883  $as_echo_n "(cached) " >&6
13884else
13885  if test -n "$OTOOL64"; then
13886  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13887else
13888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13889for as_dir in $PATH
13890do
13891  IFS=$as_save_IFS
13892  test -z "$as_dir" && as_dir=.
13893    for ac_exec_ext in '' $ac_executable_extensions; do
13894  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13895    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13897    break 2
13898  fi
13899done
13900  done
13901IFS=$as_save_IFS
13902
13903fi
13904fi
13905OTOOL64=$ac_cv_prog_OTOOL64
13906if test -n "$OTOOL64"; then
13907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13908$as_echo "$OTOOL64" >&6; }
13909else
13910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13911$as_echo "no" >&6; }
13912fi
13913
13914
13915fi
13916if test -z "$ac_cv_prog_OTOOL64"; then
13917  ac_ct_OTOOL64=$OTOOL64
13918  # Extract the first word of "otool64", so it can be a program name with args.
13919set dummy otool64; ac_word=$2
13920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13921$as_echo_n "checking for $ac_word... " >&6; }
13922if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13923  $as_echo_n "(cached) " >&6
13924else
13925  if test -n "$ac_ct_OTOOL64"; then
13926  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13927else
13928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13929for as_dir in $PATH
13930do
13931  IFS=$as_save_IFS
13932  test -z "$as_dir" && as_dir=.
13933    for ac_exec_ext in '' $ac_executable_extensions; do
13934  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13935    ac_cv_prog_ac_ct_OTOOL64="otool64"
13936    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13937    break 2
13938  fi
13939done
13940  done
13941IFS=$as_save_IFS
13942
13943fi
13944fi
13945ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13946if test -n "$ac_ct_OTOOL64"; then
13947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13948$as_echo "$ac_ct_OTOOL64" >&6; }
13949else
13950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13951$as_echo "no" >&6; }
13952fi
13953
13954  if test "x$ac_ct_OTOOL64" = x; then
13955    OTOOL64=":"
13956  else
13957    case $cross_compiling:$ac_tool_warned in
13958yes:)
13959{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13961ac_tool_warned=yes ;;
13962esac
13963    OTOOL64=$ac_ct_OTOOL64
13964  fi
13965else
13966  OTOOL64="$ac_cv_prog_OTOOL64"
13967fi
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13996$as_echo_n "checking for -single_module linker flag... " >&6; }
13997if ${lt_cv_apple_cc_single_mod+:} false; then :
13998  $as_echo_n "(cached) " >&6
13999else
14000  lt_cv_apple_cc_single_mod=no
14001      if test -z "$LT_MULTI_MODULE"; then
14002	# By default we will add the -single_module flag. You can override
14003	# by either setting the environment variable LT_MULTI_MODULE
14004	# non-empty at configure time, or by adding -multi_module to the
14005	# link flags.
14006	rm -rf libconftest.dylib*
14007	echo "int foo(void){return 1;}" > conftest.c
14008	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14009-dynamiclib -Wl,-single_module conftest.c" >&5
14010	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14011	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14012        _lt_result=$?
14013	# If there is a non-empty error log, and "single_module"
14014	# appears in it, assume the flag caused a linker warning
14015        if test -s conftest.err && $GREP single_module conftest.err; then
14016	  cat conftest.err >&5
14017	# Otherwise, if the output was created with a 0 exit code from
14018	# the compiler, it worked.
14019	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14020	  lt_cv_apple_cc_single_mod=yes
14021	else
14022	  cat conftest.err >&5
14023	fi
14024	rm -rf libconftest.dylib*
14025	rm -f conftest.*
14026      fi
14027fi
14028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14029$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14030
14031    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14032$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14033if ${lt_cv_ld_exported_symbols_list+:} false; then :
14034  $as_echo_n "(cached) " >&6
14035else
14036  lt_cv_ld_exported_symbols_list=no
14037      save_LDFLAGS=$LDFLAGS
14038      echo "_main" > conftest.sym
14039      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14040      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14041/* end confdefs.h.  */
14042
14043int
14044main ()
14045{
14046
14047  ;
14048  return 0;
14049}
14050_ACEOF
14051if ac_fn_c_try_link "$LINENO"; then :
14052  lt_cv_ld_exported_symbols_list=yes
14053else
14054  lt_cv_ld_exported_symbols_list=no
14055fi
14056rm -f core conftest.err conftest.$ac_objext \
14057    conftest$ac_exeext conftest.$ac_ext
14058	LDFLAGS=$save_LDFLAGS
14059
14060fi
14061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14062$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14063
14064    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14065$as_echo_n "checking for -force_load linker flag... " >&6; }
14066if ${lt_cv_ld_force_load+:} false; then :
14067  $as_echo_n "(cached) " >&6
14068else
14069  lt_cv_ld_force_load=no
14070      cat > conftest.c << _LT_EOF
14071int forced_loaded() { return 2;}
14072_LT_EOF
14073      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14074      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14075      echo "$AR cru libconftest.a conftest.o" >&5
14076      $AR cru libconftest.a conftest.o 2>&5
14077      echo "$RANLIB libconftest.a" >&5
14078      $RANLIB libconftest.a 2>&5
14079      cat > conftest.c << _LT_EOF
14080int main() { return 0;}
14081_LT_EOF
14082      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14083      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14084      _lt_result=$?
14085      if test -s conftest.err && $GREP force_load conftest.err; then
14086	cat conftest.err >&5
14087      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14088	lt_cv_ld_force_load=yes
14089      else
14090	cat conftest.err >&5
14091      fi
14092        rm -f conftest.err libconftest.a conftest conftest.c
14093        rm -rf conftest.dSYM
14094
14095fi
14096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14097$as_echo "$lt_cv_ld_force_load" >&6; }
14098    case $host_os in
14099    rhapsody* | darwin1.[012])
14100      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14101    darwin1.*)
14102      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14103    darwin*) # darwin 5.x on
14104      # if running on 10.5 or later, the deployment target defaults
14105      # to the OS version, if on x86, and 10.4, the deployment
14106      # target defaults to 10.4. Don't you love it?
14107      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14108	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14109	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14110	10.[012][,.]*)
14111	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14112	10.*)
14113	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14114      esac
14115    ;;
14116  esac
14117    if test yes = "$lt_cv_apple_cc_single_mod"; then
14118      _lt_dar_single_mod='$single_module'
14119    fi
14120    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14121      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14122    else
14123      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14124    fi
14125    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14126      _lt_dsymutil='~$DSYMUTIL $lib || :'
14127    else
14128      _lt_dsymutil=
14129    fi
14130    ;;
14131  esac
14132
14133# func_munge_path_list VARIABLE PATH
14134# -----------------------------------
14135# VARIABLE is name of variable containing _space_ separated list of
14136# directories to be munged by the contents of PATH, which is string
14137# having a format:
14138# "DIR[:DIR]:"
14139#       string "DIR[ DIR]" will be prepended to VARIABLE
14140# ":DIR[:DIR]"
14141#       string "DIR[ DIR]" will be appended to VARIABLE
14142# "DIRP[:DIRP]::[DIRA:]DIRA"
14143#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14144#       "DIRA[ DIRA]" will be appended to VARIABLE
14145# "DIR[:DIR]"
14146#       VARIABLE will be replaced by "DIR[ DIR]"
14147func_munge_path_list ()
14148{
14149    case x$2 in
14150    x)
14151        ;;
14152    *:)
14153        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14154        ;;
14155    x:*)
14156        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14157        ;;
14158    *::*)
14159        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14160        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14161        ;;
14162    *)
14163        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14164        ;;
14165    esac
14166}
14167
14168for ac_header in dlfcn.h
14169do :
14170  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14171"
14172if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14173  cat >>confdefs.h <<_ACEOF
14174#define HAVE_DLFCN_H 1
14175_ACEOF
14176
14177fi
14178
14179done
14180
14181
14182
14183
14184
14185# Set options
14186
14187
14188
14189        enable_dlopen=no
14190
14191
14192  enable_win32_dll=no
14193
14194
14195            # Check whether --enable-shared was given.
14196if test "${enable_shared+set}" = set; then :
14197  enableval=$enable_shared; p=${PACKAGE-default}
14198    case $enableval in
14199    yes) enable_shared=yes ;;
14200    no) enable_shared=no ;;
14201    *)
14202      enable_shared=no
14203      # Look at the argument we got.  We use all the common list separators.
14204      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14205      for pkg in $enableval; do
14206	IFS=$lt_save_ifs
14207	if test "X$pkg" = "X$p"; then
14208	  enable_shared=yes
14209	fi
14210      done
14211      IFS=$lt_save_ifs
14212      ;;
14213    esac
14214else
14215  enable_shared=yes
14216fi
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228# Check whether --with-pic was given.
14229if test "${with_pic+set}" = set; then :
14230  withval=$with_pic; lt_p=${PACKAGE-default}
14231    case $withval in
14232    yes|no) pic_mode=$withval ;;
14233    *)
14234      pic_mode=default
14235      # Look at the argument we got.  We use all the common list separators.
14236      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14237      for lt_pkg in $withval; do
14238	IFS=$lt_save_ifs
14239	if test "X$lt_pkg" = "X$lt_p"; then
14240	  pic_mode=yes
14241	fi
14242      done
14243      IFS=$lt_save_ifs
14244      ;;
14245    esac
14246else
14247  pic_mode=default
14248fi
14249
14250
14251
14252
14253
14254
14255
14256
14257  # Check whether --enable-fast-install was given.
14258if test "${enable_fast_install+set}" = set; then :
14259  enableval=$enable_fast_install; p=${PACKAGE-default}
14260    case $enableval in
14261    yes) enable_fast_install=yes ;;
14262    no) enable_fast_install=no ;;
14263    *)
14264      enable_fast_install=no
14265      # Look at the argument we got.  We use all the common list separators.
14266      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14267      for pkg in $enableval; do
14268	IFS=$lt_save_ifs
14269	if test "X$pkg" = "X$p"; then
14270	  enable_fast_install=yes
14271	fi
14272      done
14273      IFS=$lt_save_ifs
14274      ;;
14275    esac
14276else
14277  enable_fast_install=yes
14278fi
14279
14280
14281
14282
14283
14284
14285
14286
14287  shared_archive_member_spec=
14288case $host,$enable_shared in
14289power*-*-aix[5-9]*,yes)
14290  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14291$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14292
14293# Check whether --with-aix-soname was given.
14294if test "${with_aix_soname+set}" = set; then :
14295  withval=$with_aix_soname; case $withval in
14296    aix|svr4|both)
14297      ;;
14298    *)
14299      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14300      ;;
14301    esac
14302    lt_cv_with_aix_soname=$with_aix_soname
14303else
14304  if ${lt_cv_with_aix_soname+:} false; then :
14305  $as_echo_n "(cached) " >&6
14306else
14307  lt_cv_with_aix_soname=aix
14308fi
14309
14310    with_aix_soname=$lt_cv_with_aix_soname
14311fi
14312
14313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14314$as_echo "$with_aix_soname" >&6; }
14315  if test aix != "$with_aix_soname"; then
14316    # For the AIX way of multilib, we name the shared archive member
14317    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14318    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14319    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14320    # the AIX toolchain works better with OBJECT_MODE set (default 32).
14321    if test 64 = "${OBJECT_MODE-32}"; then
14322      shared_archive_member_spec=shr_64
14323    else
14324      shared_archive_member_spec=shr
14325    fi
14326  fi
14327  ;;
14328*)
14329  with_aix_soname=aix
14330  ;;
14331esac
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342# This can be used to rebuild libtool when needed
14343LIBTOOL_DEPS=$ltmain
14344
14345# Always use our own libtool.
14346LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377test -z "$LN_S" && LN_S="ln -s"
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392if test -n "${ZSH_VERSION+set}"; then
14393   setopt NO_GLOB_SUBST
14394fi
14395
14396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14397$as_echo_n "checking for objdir... " >&6; }
14398if ${lt_cv_objdir+:} false; then :
14399  $as_echo_n "(cached) " >&6
14400else
14401  rm -f .libs 2>/dev/null
14402mkdir .libs 2>/dev/null
14403if test -d .libs; then
14404  lt_cv_objdir=.libs
14405else
14406  # MS-DOS does not allow filenames that begin with a dot.
14407  lt_cv_objdir=_libs
14408fi
14409rmdir .libs 2>/dev/null
14410fi
14411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14412$as_echo "$lt_cv_objdir" >&6; }
14413objdir=$lt_cv_objdir
14414
14415
14416
14417
14418
14419cat >>confdefs.h <<_ACEOF
14420#define LT_OBJDIR "$lt_cv_objdir/"
14421_ACEOF
14422
14423
14424
14425
14426case $host_os in
14427aix3*)
14428  # AIX sometimes has problems with the GCC collect2 program.  For some
14429  # reason, if we set the COLLECT_NAMES environment variable, the problems
14430  # vanish in a puff of smoke.
14431  if test set != "${COLLECT_NAMES+set}"; then
14432    COLLECT_NAMES=
14433    export COLLECT_NAMES
14434  fi
14435  ;;
14436esac
14437
14438# Global variables:
14439ofile=libtool
14440can_build_shared=yes
14441
14442# All known linkers require a '.a' archive for static linking (except MSVC,
14443# which needs '.lib').
14444libext=a
14445
14446with_gnu_ld=$lt_cv_prog_gnu_ld
14447
14448old_CC=$CC
14449old_CFLAGS=$CFLAGS
14450
14451# Set sane defaults for various variables
14452test -z "$CC" && CC=cc
14453test -z "$LTCC" && LTCC=$CC
14454test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14455test -z "$LD" && LD=ld
14456test -z "$ac_objext" && ac_objext=o
14457
14458func_cc_basename $compiler
14459cc_basename=$func_cc_basename_result
14460
14461
14462# Only perform the check for file, if the check method requires it
14463test -z "$MAGIC_CMD" && MAGIC_CMD=file
14464case $deplibs_check_method in
14465file_magic*)
14466  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14467    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14468$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14469if ${lt_cv_path_MAGIC_CMD+:} false; then :
14470  $as_echo_n "(cached) " >&6
14471else
14472  case $MAGIC_CMD in
14473[\\/*] |  ?:[\\/]*)
14474  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14475  ;;
14476*)
14477  lt_save_MAGIC_CMD=$MAGIC_CMD
14478  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14479  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14480  for ac_dir in $ac_dummy; do
14481    IFS=$lt_save_ifs
14482    test -z "$ac_dir" && ac_dir=.
14483    if test -f "$ac_dir/${ac_tool_prefix}file"; then
14484      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14485      if test -n "$file_magic_test_file"; then
14486	case $deplibs_check_method in
14487	"file_magic "*)
14488	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14489	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14490	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14491	    $EGREP "$file_magic_regex" > /dev/null; then
14492	    :
14493	  else
14494	    cat <<_LT_EOF 1>&2
14495
14496*** Warning: the command libtool uses to detect shared libraries,
14497*** $file_magic_cmd, produces output that libtool cannot recognize.
14498*** The result is that libtool may fail to recognize shared libraries
14499*** as such.  This will affect the creation of libtool libraries that
14500*** depend on shared libraries, but programs linked with such libtool
14501*** libraries will work regardless of this problem.  Nevertheless, you
14502*** may want to report the problem to your system manager and/or to
14503*** bug-libtool@gnu.org
14504
14505_LT_EOF
14506	  fi ;;
14507	esac
14508      fi
14509      break
14510    fi
14511  done
14512  IFS=$lt_save_ifs
14513  MAGIC_CMD=$lt_save_MAGIC_CMD
14514  ;;
14515esac
14516fi
14517
14518MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14519if test -n "$MAGIC_CMD"; then
14520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14521$as_echo "$MAGIC_CMD" >&6; }
14522else
14523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14524$as_echo "no" >&6; }
14525fi
14526
14527
14528
14529
14530
14531if test -z "$lt_cv_path_MAGIC_CMD"; then
14532  if test -n "$ac_tool_prefix"; then
14533    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14534$as_echo_n "checking for file... " >&6; }
14535if ${lt_cv_path_MAGIC_CMD+:} false; then :
14536  $as_echo_n "(cached) " >&6
14537else
14538  case $MAGIC_CMD in
14539[\\/*] |  ?:[\\/]*)
14540  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14541  ;;
14542*)
14543  lt_save_MAGIC_CMD=$MAGIC_CMD
14544  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14545  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14546  for ac_dir in $ac_dummy; do
14547    IFS=$lt_save_ifs
14548    test -z "$ac_dir" && ac_dir=.
14549    if test -f "$ac_dir/file"; then
14550      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14551      if test -n "$file_magic_test_file"; then
14552	case $deplibs_check_method in
14553	"file_magic "*)
14554	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14555	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14556	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14557	    $EGREP "$file_magic_regex" > /dev/null; then
14558	    :
14559	  else
14560	    cat <<_LT_EOF 1>&2
14561
14562*** Warning: the command libtool uses to detect shared libraries,
14563*** $file_magic_cmd, produces output that libtool cannot recognize.
14564*** The result is that libtool may fail to recognize shared libraries
14565*** as such.  This will affect the creation of libtool libraries that
14566*** depend on shared libraries, but programs linked with such libtool
14567*** libraries will work regardless of this problem.  Nevertheless, you
14568*** may want to report the problem to your system manager and/or to
14569*** bug-libtool@gnu.org
14570
14571_LT_EOF
14572	  fi ;;
14573	esac
14574      fi
14575      break
14576    fi
14577  done
14578  IFS=$lt_save_ifs
14579  MAGIC_CMD=$lt_save_MAGIC_CMD
14580  ;;
14581esac
14582fi
14583
14584MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14585if test -n "$MAGIC_CMD"; then
14586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14587$as_echo "$MAGIC_CMD" >&6; }
14588else
14589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14590$as_echo "no" >&6; }
14591fi
14592
14593
14594  else
14595    MAGIC_CMD=:
14596  fi
14597fi
14598
14599  fi
14600  ;;
14601esac
14602
14603# Use C for the default configuration in the libtool script
14604
14605lt_save_CC=$CC
14606ac_ext=c
14607ac_cpp='$CPP $CPPFLAGS'
14608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14610ac_compiler_gnu=$ac_cv_c_compiler_gnu
14611
14612
14613# Source file extension for C test sources.
14614ac_ext=c
14615
14616# Object file extension for compiled C test sources.
14617objext=o
14618objext=$objext
14619
14620# Code to be used in simple compile tests
14621lt_simple_compile_test_code="int some_variable = 0;"
14622
14623# Code to be used in simple link tests
14624lt_simple_link_test_code='int main(){return(0);}'
14625
14626
14627
14628
14629
14630
14631
14632# If no C compiler was specified, use CC.
14633LTCC=${LTCC-"$CC"}
14634
14635# If no C compiler flags were specified, use CFLAGS.
14636LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14637
14638# Allow CC to be a program name with arguments.
14639compiler=$CC
14640
14641# Save the default compiler, since it gets overwritten when the other
14642# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14643compiler_DEFAULT=$CC
14644
14645# save warnings/boilerplate of simple test code
14646ac_outfile=conftest.$ac_objext
14647echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14648eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14649_lt_compiler_boilerplate=`cat conftest.err`
14650$RM conftest*
14651
14652ac_outfile=conftest.$ac_objext
14653echo "$lt_simple_link_test_code" >conftest.$ac_ext
14654eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14655_lt_linker_boilerplate=`cat conftest.err`
14656$RM -r conftest*
14657
14658
14659if test -n "$compiler"; then
14660
14661lt_prog_compiler_no_builtin_flag=
14662
14663if test yes = "$GCC"; then
14664  case $cc_basename in
14665  nvcc*)
14666    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14667  *)
14668    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14669  esac
14670
14671  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14672$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14673if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14674  $as_echo_n "(cached) " >&6
14675else
14676  lt_cv_prog_compiler_rtti_exceptions=no
14677   ac_outfile=conftest.$ac_objext
14678   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14679   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
14680   # Insert the option either (1) after the last *FLAGS variable, or
14681   # (2) before a word containing "conftest.", or (3) at the end.
14682   # Note that $ac_compile itself does not contain backslashes and begins
14683   # with a dollar sign (not a hyphen), so the echo should work correctly.
14684   # The option is referenced via a variable to avoid confusing sed.
14685   lt_compile=`echo "$ac_compile" | $SED \
14686   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14687   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14688   -e 's:$: $lt_compiler_flag:'`
14689   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14690   (eval "$lt_compile" 2>conftest.err)
14691   ac_status=$?
14692   cat conftest.err >&5
14693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694   if (exit $ac_status) && test -s "$ac_outfile"; then
14695     # The compiler can only warn and ignore the option if not recognized
14696     # So say no if there are warnings other than the usual output.
14697     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14698     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14699     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14700       lt_cv_prog_compiler_rtti_exceptions=yes
14701     fi
14702   fi
14703   $RM conftest*
14704
14705fi
14706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14707$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14708
14709if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14710    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14711else
14712    :
14713fi
14714
14715fi
14716
14717
14718
14719
14720
14721
14722  lt_prog_compiler_wl=
14723lt_prog_compiler_pic=
14724lt_prog_compiler_static=
14725
14726
14727  if test yes = "$GCC"; then
14728    lt_prog_compiler_wl='-Wl,'
14729    lt_prog_compiler_static='-static'
14730
14731    case $host_os in
14732      aix*)
14733      # All AIX code is PIC.
14734      if test ia64 = "$host_cpu"; then
14735	# AIX 5 now supports IA64 processor
14736	lt_prog_compiler_static='-Bstatic'
14737      fi
14738      lt_prog_compiler_pic='-fPIC'
14739      ;;
14740
14741    amigaos*)
14742      case $host_cpu in
14743      powerpc)
14744            # see comment about AmigaOS4 .so support
14745            lt_prog_compiler_pic='-fPIC'
14746        ;;
14747      m68k)
14748            # FIXME: we need at least 68020 code to build shared libraries, but
14749            # adding the '-m68020' flag to GCC prevents building anything better,
14750            # like '-m68040'.
14751            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14752        ;;
14753      esac
14754      ;;
14755
14756    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14757      # PIC is the default for these OSes.
14758      ;;
14759
14760    mingw* | cygwin* | pw32* | os2* | cegcc*)
14761      # This hack is so that the source file can tell whether it is being
14762      # built for inclusion in a dll (and should export symbols for example).
14763      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14764      # (--disable-auto-import) libraries
14765      lt_prog_compiler_pic='-DDLL_EXPORT'
14766      case $host_os in
14767      os2*)
14768	lt_prog_compiler_static='$wl-static'
14769	;;
14770      esac
14771      ;;
14772
14773    darwin* | rhapsody*)
14774      # PIC is the default on this platform
14775      # Common symbols not allowed in MH_DYLIB files
14776      lt_prog_compiler_pic='-fno-common'
14777      ;;
14778
14779    haiku*)
14780      # PIC is the default for Haiku.
14781      # The "-static" flag exists, but is broken.
14782      lt_prog_compiler_static=
14783      ;;
14784
14785    hpux*)
14786      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14787      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14788      # sets the default TLS model and affects inlining.
14789      case $host_cpu in
14790      hppa*64*)
14791	# +Z the default
14792	;;
14793      *)
14794	lt_prog_compiler_pic='-fPIC'
14795	;;
14796      esac
14797      ;;
14798
14799    interix[3-9]*)
14800      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14801      # Instead, we relocate shared libraries at runtime.
14802      ;;
14803
14804    msdosdjgpp*)
14805      # Just because we use GCC doesn't mean we suddenly get shared libraries
14806      # on systems that don't support them.
14807      lt_prog_compiler_can_build_shared=no
14808      enable_shared=no
14809      ;;
14810
14811    *nto* | *qnx*)
14812      # QNX uses GNU C++, but need to define -shared option too, otherwise
14813      # it will coredump.
14814      lt_prog_compiler_pic='-fPIC -shared'
14815      ;;
14816
14817    sysv4*MP*)
14818      if test -d /usr/nec; then
14819	lt_prog_compiler_pic=-Kconform_pic
14820      fi
14821      ;;
14822
14823    *)
14824      lt_prog_compiler_pic='-fPIC'
14825      ;;
14826    esac
14827
14828    case $cc_basename in
14829    nvcc*) # Cuda Compiler Driver 2.2
14830      lt_prog_compiler_wl='-Xlinker '
14831      if test -n "$lt_prog_compiler_pic"; then
14832        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14833      fi
14834      ;;
14835    esac
14836  else
14837    # PORTME Check for flag to pass linker flags through the system compiler.
14838    case $host_os in
14839    aix*)
14840      lt_prog_compiler_wl='-Wl,'
14841      if test ia64 = "$host_cpu"; then
14842	# AIX 5 now supports IA64 processor
14843	lt_prog_compiler_static='-Bstatic'
14844      else
14845	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14846      fi
14847      ;;
14848
14849    darwin* | rhapsody*)
14850      # PIC is the default on this platform
14851      # Common symbols not allowed in MH_DYLIB files
14852      lt_prog_compiler_pic='-fno-common'
14853      case $cc_basename in
14854      nagfor*)
14855        # NAG Fortran compiler
14856        lt_prog_compiler_wl='-Wl,-Wl,,'
14857        lt_prog_compiler_pic='-PIC'
14858        lt_prog_compiler_static='-Bstatic'
14859        ;;
14860      esac
14861      ;;
14862
14863    mingw* | cygwin* | pw32* | os2* | cegcc*)
14864      # This hack is so that the source file can tell whether it is being
14865      # built for inclusion in a dll (and should export symbols for example).
14866      lt_prog_compiler_pic='-DDLL_EXPORT'
14867      case $host_os in
14868      os2*)
14869	lt_prog_compiler_static='$wl-static'
14870	;;
14871      esac
14872      ;;
14873
14874    hpux9* | hpux10* | hpux11*)
14875      lt_prog_compiler_wl='-Wl,'
14876      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14877      # not for PA HP-UX.
14878      case $host_cpu in
14879      hppa*64*|ia64*)
14880	# +Z the default
14881	;;
14882      *)
14883	lt_prog_compiler_pic='+Z'
14884	;;
14885      esac
14886      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14887      lt_prog_compiler_static='$wl-a ${wl}archive'
14888      ;;
14889
14890    irix5* | irix6* | nonstopux*)
14891      lt_prog_compiler_wl='-Wl,'
14892      # PIC (with -KPIC) is the default.
14893      lt_prog_compiler_static='-non_shared'
14894      ;;
14895
14896    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14897      case $cc_basename in
14898      # old Intel for x86_64, which still supported -KPIC.
14899      ecc*)
14900	lt_prog_compiler_wl='-Wl,'
14901	lt_prog_compiler_pic='-KPIC'
14902	lt_prog_compiler_static='-static'
14903        ;;
14904      # icc used to be incompatible with GCC.
14905      # ICC 10 doesn't accept -KPIC any more.
14906      icc* | ifort*)
14907	lt_prog_compiler_wl='-Wl,'
14908	lt_prog_compiler_pic='-fPIC'
14909	lt_prog_compiler_static='-static'
14910        ;;
14911      # Lahey Fortran 8.1.
14912      lf95*)
14913	lt_prog_compiler_wl='-Wl,'
14914	lt_prog_compiler_pic='--shared'
14915	lt_prog_compiler_static='--static'
14916	;;
14917      nagfor*)
14918	# NAG Fortran compiler
14919	lt_prog_compiler_wl='-Wl,-Wl,,'
14920	lt_prog_compiler_pic='-PIC'
14921	lt_prog_compiler_static='-Bstatic'
14922	;;
14923      tcc*)
14924	# Fabrice Bellard et al's Tiny C Compiler
14925	lt_prog_compiler_wl='-Wl,'
14926	lt_prog_compiler_pic='-fPIC'
14927	lt_prog_compiler_static='-static'
14928	;;
14929      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14930        # Portland Group compilers (*not* the Pentium gcc compiler,
14931	# which looks to be a dead project)
14932	lt_prog_compiler_wl='-Wl,'
14933	lt_prog_compiler_pic='-fpic'
14934	lt_prog_compiler_static='-Bstatic'
14935        ;;
14936      ccc*)
14937        lt_prog_compiler_wl='-Wl,'
14938        # All Alpha code is PIC.
14939        lt_prog_compiler_static='-non_shared'
14940        ;;
14941      xl* | bgxl* | bgf* | mpixl*)
14942	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14943	lt_prog_compiler_wl='-Wl,'
14944	lt_prog_compiler_pic='-qpic'
14945	lt_prog_compiler_static='-qstaticlink'
14946	;;
14947      *)
14948	case `$CC -V 2>&1 | sed 5q` in
14949	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14950	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14951	  lt_prog_compiler_pic='-KPIC'
14952	  lt_prog_compiler_static='-Bstatic'
14953	  lt_prog_compiler_wl=''
14954	  ;;
14955	*Sun\ F* | *Sun*Fortran*)
14956	  lt_prog_compiler_pic='-KPIC'
14957	  lt_prog_compiler_static='-Bstatic'
14958	  lt_prog_compiler_wl='-Qoption ld '
14959	  ;;
14960	*Sun\ C*)
14961	  # Sun C 5.9
14962	  lt_prog_compiler_pic='-KPIC'
14963	  lt_prog_compiler_static='-Bstatic'
14964	  lt_prog_compiler_wl='-Wl,'
14965	  ;;
14966        *Intel*\ [CF]*Compiler*)
14967	  lt_prog_compiler_wl='-Wl,'
14968	  lt_prog_compiler_pic='-fPIC'
14969	  lt_prog_compiler_static='-static'
14970	  ;;
14971	*Portland\ Group*)
14972	  lt_prog_compiler_wl='-Wl,'
14973	  lt_prog_compiler_pic='-fpic'
14974	  lt_prog_compiler_static='-Bstatic'
14975	  ;;
14976	esac
14977	;;
14978      esac
14979      ;;
14980
14981    newsos6)
14982      lt_prog_compiler_pic='-KPIC'
14983      lt_prog_compiler_static='-Bstatic'
14984      ;;
14985
14986    *nto* | *qnx*)
14987      # QNX uses GNU C++, but need to define -shared option too, otherwise
14988      # it will coredump.
14989      lt_prog_compiler_pic='-fPIC -shared'
14990      ;;
14991
14992    osf3* | osf4* | osf5*)
14993      lt_prog_compiler_wl='-Wl,'
14994      # All OSF/1 code is PIC.
14995      lt_prog_compiler_static='-non_shared'
14996      ;;
14997
14998    rdos*)
14999      lt_prog_compiler_static='-non_shared'
15000      ;;
15001
15002    solaris*)
15003      lt_prog_compiler_pic='-KPIC'
15004      lt_prog_compiler_static='-Bstatic'
15005      case $cc_basename in
15006      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15007	lt_prog_compiler_wl='-Qoption ld ';;
15008      *)
15009	lt_prog_compiler_wl='-Wl,';;
15010      esac
15011      ;;
15012
15013    sunos4*)
15014      lt_prog_compiler_wl='-Qoption ld '
15015      lt_prog_compiler_pic='-PIC'
15016      lt_prog_compiler_static='-Bstatic'
15017      ;;
15018
15019    sysv4 | sysv4.2uw2* | sysv4.3*)
15020      lt_prog_compiler_wl='-Wl,'
15021      lt_prog_compiler_pic='-KPIC'
15022      lt_prog_compiler_static='-Bstatic'
15023      ;;
15024
15025    sysv4*MP*)
15026      if test -d /usr/nec; then
15027	lt_prog_compiler_pic='-Kconform_pic'
15028	lt_prog_compiler_static='-Bstatic'
15029      fi
15030      ;;
15031
15032    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15033      lt_prog_compiler_wl='-Wl,'
15034      lt_prog_compiler_pic='-KPIC'
15035      lt_prog_compiler_static='-Bstatic'
15036      ;;
15037
15038    unicos*)
15039      lt_prog_compiler_wl='-Wl,'
15040      lt_prog_compiler_can_build_shared=no
15041      ;;
15042
15043    uts4*)
15044      lt_prog_compiler_pic='-pic'
15045      lt_prog_compiler_static='-Bstatic'
15046      ;;
15047
15048    *)
15049      lt_prog_compiler_can_build_shared=no
15050      ;;
15051    esac
15052  fi
15053
15054case $host_os in
15055  # For platforms that do not support PIC, -DPIC is meaningless:
15056  *djgpp*)
15057    lt_prog_compiler_pic=
15058    ;;
15059  *)
15060    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15061    ;;
15062esac
15063
15064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15065$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15066if ${lt_cv_prog_compiler_pic+:} false; then :
15067  $as_echo_n "(cached) " >&6
15068else
15069  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15070fi
15071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15072$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15073lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15074
15075#
15076# Check to make sure the PIC flag actually works.
15077#
15078if test -n "$lt_prog_compiler_pic"; then
15079  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15080$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15081if ${lt_cv_prog_compiler_pic_works+:} false; then :
15082  $as_echo_n "(cached) " >&6
15083else
15084  lt_cv_prog_compiler_pic_works=no
15085   ac_outfile=conftest.$ac_objext
15086   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15087   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15088   # Insert the option either (1) after the last *FLAGS variable, or
15089   # (2) before a word containing "conftest.", or (3) at the end.
15090   # Note that $ac_compile itself does not contain backslashes and begins
15091   # with a dollar sign (not a hyphen), so the echo should work correctly.
15092   # The option is referenced via a variable to avoid confusing sed.
15093   lt_compile=`echo "$ac_compile" | $SED \
15094   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15095   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15096   -e 's:$: $lt_compiler_flag:'`
15097   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15098   (eval "$lt_compile" 2>conftest.err)
15099   ac_status=$?
15100   cat conftest.err >&5
15101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102   if (exit $ac_status) && test -s "$ac_outfile"; then
15103     # The compiler can only warn and ignore the option if not recognized
15104     # So say no if there are warnings other than the usual output.
15105     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15106     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15107     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15108       lt_cv_prog_compiler_pic_works=yes
15109     fi
15110   fi
15111   $RM conftest*
15112
15113fi
15114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15115$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15116
15117if test yes = "$lt_cv_prog_compiler_pic_works"; then
15118    case $lt_prog_compiler_pic in
15119     "" | " "*) ;;
15120     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15121     esac
15122else
15123    lt_prog_compiler_pic=
15124     lt_prog_compiler_can_build_shared=no
15125fi
15126
15127fi
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139#
15140# Check to make sure the static flag actually works.
15141#
15142wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15144$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15145if ${lt_cv_prog_compiler_static_works+:} false; then :
15146  $as_echo_n "(cached) " >&6
15147else
15148  lt_cv_prog_compiler_static_works=no
15149   save_LDFLAGS=$LDFLAGS
15150   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15151   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15152   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15153     # The linker can only warn and ignore the option if not recognized
15154     # So say no if there are warnings
15155     if test -s conftest.err; then
15156       # Append any errors to the config.log.
15157       cat conftest.err 1>&5
15158       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15159       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15160       if diff conftest.exp conftest.er2 >/dev/null; then
15161         lt_cv_prog_compiler_static_works=yes
15162       fi
15163     else
15164       lt_cv_prog_compiler_static_works=yes
15165     fi
15166   fi
15167   $RM -r conftest*
15168   LDFLAGS=$save_LDFLAGS
15169
15170fi
15171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15172$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15173
15174if test yes = "$lt_cv_prog_compiler_static_works"; then
15175    :
15176else
15177    lt_prog_compiler_static=
15178fi
15179
15180
15181
15182
15183
15184
15185
15186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15187$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15188if ${lt_cv_prog_compiler_c_o+:} false; then :
15189  $as_echo_n "(cached) " >&6
15190else
15191  lt_cv_prog_compiler_c_o=no
15192   $RM -r conftest 2>/dev/null
15193   mkdir conftest
15194   cd conftest
15195   mkdir out
15196   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15197
15198   lt_compiler_flag="-o out/conftest2.$ac_objext"
15199   # Insert the option either (1) after the last *FLAGS variable, or
15200   # (2) before a word containing "conftest.", or (3) at the end.
15201   # Note that $ac_compile itself does not contain backslashes and begins
15202   # with a dollar sign (not a hyphen), so the echo should work correctly.
15203   lt_compile=`echo "$ac_compile" | $SED \
15204   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15205   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15206   -e 's:$: $lt_compiler_flag:'`
15207   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15208   (eval "$lt_compile" 2>out/conftest.err)
15209   ac_status=$?
15210   cat out/conftest.err >&5
15211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15213   then
15214     # The compiler can only warn and ignore the option if not recognized
15215     # So say no if there are warnings
15216     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15217     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15218     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15219       lt_cv_prog_compiler_c_o=yes
15220     fi
15221   fi
15222   chmod u+w . 2>&5
15223   $RM conftest*
15224   # SGI C++ compiler will create directory out/ii_files/ for
15225   # template instantiation
15226   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15227   $RM out/* && rmdir out
15228   cd ..
15229   $RM -r conftest
15230   $RM conftest*
15231
15232fi
15233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15234$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15235
15236
15237
15238
15239
15240
15241  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15242$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15243if ${lt_cv_prog_compiler_c_o+:} false; then :
15244  $as_echo_n "(cached) " >&6
15245else
15246  lt_cv_prog_compiler_c_o=no
15247   $RM -r conftest 2>/dev/null
15248   mkdir conftest
15249   cd conftest
15250   mkdir out
15251   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15252
15253   lt_compiler_flag="-o out/conftest2.$ac_objext"
15254   # Insert the option either (1) after the last *FLAGS variable, or
15255   # (2) before a word containing "conftest.", or (3) at the end.
15256   # Note that $ac_compile itself does not contain backslashes and begins
15257   # with a dollar sign (not a hyphen), so the echo should work correctly.
15258   lt_compile=`echo "$ac_compile" | $SED \
15259   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15260   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15261   -e 's:$: $lt_compiler_flag:'`
15262   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15263   (eval "$lt_compile" 2>out/conftest.err)
15264   ac_status=$?
15265   cat out/conftest.err >&5
15266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15268   then
15269     # The compiler can only warn and ignore the option if not recognized
15270     # So say no if there are warnings
15271     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15272     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15273     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15274       lt_cv_prog_compiler_c_o=yes
15275     fi
15276   fi
15277   chmod u+w . 2>&5
15278   $RM conftest*
15279   # SGI C++ compiler will create directory out/ii_files/ for
15280   # template instantiation
15281   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15282   $RM out/* && rmdir out
15283   cd ..
15284   $RM -r conftest
15285   $RM conftest*
15286
15287fi
15288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15289$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15290
15291
15292
15293
15294hard_links=nottested
15295if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15296  # do not overwrite the value of need_locks provided by the user
15297  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15298$as_echo_n "checking if we can lock with hard links... " >&6; }
15299  hard_links=yes
15300  $RM conftest*
15301  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15302  touch conftest.a
15303  ln conftest.a conftest.b 2>&5 || hard_links=no
15304  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15306$as_echo "$hard_links" >&6; }
15307  if test no = "$hard_links"; then
15308    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15309$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15310    need_locks=warn
15311  fi
15312else
15313  need_locks=no
15314fi
15315
15316
15317
15318
15319
15320
15321  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15322$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15323
15324  runpath_var=
15325  allow_undefined_flag=
15326  always_export_symbols=no
15327  archive_cmds=
15328  archive_expsym_cmds=
15329  compiler_needs_object=no
15330  enable_shared_with_static_runtimes=no
15331  export_dynamic_flag_spec=
15332  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15333  hardcode_automatic=no
15334  hardcode_direct=no
15335  hardcode_direct_absolute=no
15336  hardcode_libdir_flag_spec=
15337  hardcode_libdir_separator=
15338  hardcode_minus_L=no
15339  hardcode_shlibpath_var=unsupported
15340  inherit_rpath=no
15341  link_all_deplibs=unknown
15342  module_cmds=
15343  module_expsym_cmds=
15344  old_archive_from_new_cmds=
15345  old_archive_from_expsyms_cmds=
15346  thread_safe_flag_spec=
15347  whole_archive_flag_spec=
15348  # include_expsyms should be a list of space-separated symbols to be *always*
15349  # included in the symbol list
15350  include_expsyms=
15351  # exclude_expsyms can be an extended regexp of symbols to exclude
15352  # it will be wrapped by ' (' and ')$', so one must not match beginning or
15353  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15354  # as well as any symbol that contains 'd'.
15355  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15356  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15357  # platforms (ab)use it in PIC code, but their linkers get confused if
15358  # the symbol is explicitly referenced.  Since portable code cannot
15359  # rely on this symbol name, it's probably fine to never include it in
15360  # preloaded symbol tables.
15361  # Exclude shared library initialization/finalization symbols.
15362  extract_expsyms_cmds=
15363
15364  case $host_os in
15365  cygwin* | mingw* | pw32* | cegcc*)
15366    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15367    # When not using gcc, we currently assume that we are using
15368    # Microsoft Visual C++.
15369    if test yes != "$GCC"; then
15370      with_gnu_ld=no
15371    fi
15372    ;;
15373  interix*)
15374    # we just hope/assume this is gcc and not c89 (= MSVC++)
15375    with_gnu_ld=yes
15376    ;;
15377  openbsd* | bitrig*)
15378    with_gnu_ld=no
15379    ;;
15380  linux* | k*bsd*-gnu | gnu*)
15381    link_all_deplibs=no
15382    ;;
15383  esac
15384
15385  ld_shlibs=yes
15386
15387  # On some targets, GNU ld is compatible enough with the native linker
15388  # that we're better off using the native interface for both.
15389  lt_use_gnu_ld_interface=no
15390  if test yes = "$with_gnu_ld"; then
15391    case $host_os in
15392      aix*)
15393	# The AIX port of GNU ld has always aspired to compatibility
15394	# with the native linker.  However, as the warning in the GNU ld
15395	# block says, versions before 2.19.5* couldn't really create working
15396	# shared libraries, regardless of the interface used.
15397	case `$LD -v 2>&1` in
15398	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15399	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15400	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15401	  *)
15402	    lt_use_gnu_ld_interface=yes
15403	    ;;
15404	esac
15405	;;
15406      *)
15407	lt_use_gnu_ld_interface=yes
15408	;;
15409    esac
15410  fi
15411
15412  if test yes = "$lt_use_gnu_ld_interface"; then
15413    # If archive_cmds runs LD, not CC, wlarc should be empty
15414    wlarc='$wl'
15415
15416    # Set some defaults for GNU ld with shared library support. These
15417    # are reset later if shared libraries are not supported. Putting them
15418    # here allows them to be overridden if necessary.
15419    runpath_var=LD_RUN_PATH
15420    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15421    export_dynamic_flag_spec='$wl--export-dynamic'
15422    # ancient GNU ld didn't support --whole-archive et. al.
15423    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15424      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15425    else
15426      whole_archive_flag_spec=
15427    fi
15428    supports_anon_versioning=no
15429    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15430      *GNU\ gold*) supports_anon_versioning=yes ;;
15431      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15432      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15433      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15434      *\ 2.11.*) ;; # other 2.11 versions
15435      *) supports_anon_versioning=yes ;;
15436    esac
15437
15438    # See if GNU ld supports shared libraries.
15439    case $host_os in
15440    aix[3-9]*)
15441      # On AIX/PPC, the GNU linker is very broken
15442      if test ia64 != "$host_cpu"; then
15443	ld_shlibs=no
15444	cat <<_LT_EOF 1>&2
15445
15446*** Warning: the GNU linker, at least up to release 2.19, is reported
15447*** to be unable to reliably create shared libraries on AIX.
15448*** Therefore, libtool is disabling shared libraries support.  If you
15449*** really care for shared libraries, you may want to install binutils
15450*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15451*** You will then need to restart the configuration process.
15452
15453_LT_EOF
15454      fi
15455      ;;
15456
15457    amigaos*)
15458      case $host_cpu in
15459      powerpc)
15460            # see comment about AmigaOS4 .so support
15461            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15462            archive_expsym_cmds=''
15463        ;;
15464      m68k)
15465            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)'
15466            hardcode_libdir_flag_spec='-L$libdir'
15467            hardcode_minus_L=yes
15468        ;;
15469      esac
15470      ;;
15471
15472    beos*)
15473      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15474	allow_undefined_flag=unsupported
15475	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15476	# support --undefined.  This deserves some investigation.  FIXME
15477	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15478      else
15479	ld_shlibs=no
15480      fi
15481      ;;
15482
15483    cygwin* | mingw* | pw32* | cegcc*)
15484      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15485      # as there is no search path for DLLs.
15486      hardcode_libdir_flag_spec='-L$libdir'
15487      export_dynamic_flag_spec='$wl--export-all-symbols'
15488      allow_undefined_flag=unsupported
15489      always_export_symbols=no
15490      enable_shared_with_static_runtimes=yes
15491      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'
15492      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15493
15494      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15495        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15496	# If the export-symbols file already is a .def file, use it as
15497	# is; otherwise, prepend EXPORTS...
15498	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15499          cp $export_symbols $output_objdir/$soname.def;
15500        else
15501          echo EXPORTS > $output_objdir/$soname.def;
15502          cat $export_symbols >> $output_objdir/$soname.def;
15503        fi~
15504        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15505      else
15506	ld_shlibs=no
15507      fi
15508      ;;
15509
15510    haiku*)
15511      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15512      link_all_deplibs=yes
15513      ;;
15514
15515    os2*)
15516      hardcode_libdir_flag_spec='-L$libdir'
15517      hardcode_minus_L=yes
15518      allow_undefined_flag=unsupported
15519      shrext_cmds=.dll
15520      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15521	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15522	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15523	$ECHO EXPORTS >> $output_objdir/$libname.def~
15524	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15525	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15526	emximp -o $lib $output_objdir/$libname.def'
15527      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15528	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15529	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15530	$ECHO EXPORTS >> $output_objdir/$libname.def~
15531	prefix_cmds="$SED"~
15532	if test EXPORTS = "`$SED 1q $export_symbols`"; then
15533	  prefix_cmds="$prefix_cmds -e 1d";
15534	fi~
15535	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15536	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15537	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15538	emximp -o $lib $output_objdir/$libname.def'
15539      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15540      enable_shared_with_static_runtimes=yes
15541      ;;
15542
15543    interix[3-9]*)
15544      hardcode_direct=no
15545      hardcode_shlibpath_var=no
15546      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15547      export_dynamic_flag_spec='$wl-E'
15548      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15549      # Instead, shared libraries are loaded at an image base (0x10000000 by
15550      # default) and relocated if they conflict, which is a slow very memory
15551      # consuming and fragmenting process.  To avoid this, we pick a random,
15552      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15553      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15554      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15555      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'
15556      ;;
15557
15558    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15559      tmp_diet=no
15560      if test linux-dietlibc = "$host_os"; then
15561	case $cc_basename in
15562	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15563	esac
15564      fi
15565      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15566	 && test no = "$tmp_diet"
15567      then
15568	tmp_addflag=' $pic_flag'
15569	tmp_sharedflag='-shared'
15570	case $cc_basename,$host_cpu in
15571        pgcc*)				# Portland Group C compiler
15572	  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'
15573	  tmp_addflag=' $pic_flag'
15574	  ;;
15575	pgf77* | pgf90* | pgf95* | pgfortran*)
15576					# Portland Group f77 and f90 compilers
15577	  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'
15578	  tmp_addflag=' $pic_flag -Mnomain' ;;
15579	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15580	  tmp_addflag=' -i_dynamic' ;;
15581	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15582	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15583	ifc* | ifort*)			# Intel Fortran compiler
15584	  tmp_addflag=' -nofor_main' ;;
15585	lf95*)				# Lahey Fortran 8.1
15586	  whole_archive_flag_spec=
15587	  tmp_sharedflag='--shared' ;;
15588        nagfor*)                        # NAGFOR 5.3
15589          tmp_sharedflag='-Wl,-shared' ;;
15590	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15591	  tmp_sharedflag='-qmkshrobj'
15592	  tmp_addflag= ;;
15593	nvcc*)	# Cuda Compiler Driver 2.2
15594	  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'
15595	  compiler_needs_object=yes
15596	  ;;
15597	esac
15598	case `$CC -V 2>&1 | sed 5q` in
15599	*Sun\ C*)			# Sun C 5.9
15600	  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'
15601	  compiler_needs_object=yes
15602	  tmp_sharedflag='-G' ;;
15603	*Sun\ F*)			# Sun Fortran 8.3
15604	  tmp_sharedflag='-G' ;;
15605	esac
15606	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15607
15608        if test yes = "$supports_anon_versioning"; then
15609          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15610            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15611            echo "local: *; };" >> $output_objdir/$libname.ver~
15612            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15613        fi
15614
15615	case $cc_basename in
15616	tcc*)
15617	  export_dynamic_flag_spec='-rdynamic'
15618	  ;;
15619	xlf* | bgf* | bgxlf* | mpixlf*)
15620	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15621	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15622	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15623	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15624	  if test yes = "$supports_anon_versioning"; then
15625	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15626              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15627              echo "local: *; };" >> $output_objdir/$libname.ver~
15628              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15629	  fi
15630	  ;;
15631	esac
15632      else
15633        ld_shlibs=no
15634      fi
15635      ;;
15636
15637    netbsd* | netbsdelf*-gnu)
15638      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15639	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15640	wlarc=
15641      else
15642	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15643	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15644      fi
15645      ;;
15646
15647    solaris*)
15648      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15649	ld_shlibs=no
15650	cat <<_LT_EOF 1>&2
15651
15652*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15653*** create shared libraries on Solaris systems.  Therefore, libtool
15654*** is disabling shared libraries support.  We urge you to upgrade GNU
15655*** binutils to release 2.9.1 or newer.  Another option is to modify
15656*** your PATH or compiler configuration so that the native linker is
15657*** used, and then restart.
15658
15659_LT_EOF
15660      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15661	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15662	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15663      else
15664	ld_shlibs=no
15665      fi
15666      ;;
15667
15668    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15669      case `$LD -v 2>&1` in
15670        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15671	ld_shlibs=no
15672	cat <<_LT_EOF 1>&2
15673
15674*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15675*** reliably create shared libraries on SCO systems.  Therefore, libtool
15676*** is disabling shared libraries support.  We urge you to upgrade GNU
15677*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15678*** your PATH or compiler configuration so that the native linker is
15679*** used, and then restart.
15680
15681_LT_EOF
15682	;;
15683	*)
15684	  # For security reasons, it is highly recommended that you always
15685	  # use absolute paths for naming shared libraries, and exclude the
15686	  # DT_RUNPATH tag from executables and libraries.  But doing so
15687	  # requires that you compile everything twice, which is a pain.
15688	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15689	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15690	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15691	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15692	  else
15693	    ld_shlibs=no
15694	  fi
15695	;;
15696      esac
15697      ;;
15698
15699    sunos4*)
15700      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15701      wlarc=
15702      hardcode_direct=yes
15703      hardcode_shlibpath_var=no
15704      ;;
15705
15706    *)
15707      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15708	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15709	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15710      else
15711	ld_shlibs=no
15712      fi
15713      ;;
15714    esac
15715
15716    if test no = "$ld_shlibs"; then
15717      runpath_var=
15718      hardcode_libdir_flag_spec=
15719      export_dynamic_flag_spec=
15720      whole_archive_flag_spec=
15721    fi
15722  else
15723    # PORTME fill in a description of your system's linker (not GNU ld)
15724    case $host_os in
15725    aix3*)
15726      allow_undefined_flag=unsupported
15727      always_export_symbols=yes
15728      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'
15729      # Note: this linker hardcodes the directories in LIBPATH if there
15730      # are no directories specified by -L.
15731      hardcode_minus_L=yes
15732      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15733	# Neither direct hardcoding nor static linking is supported with a
15734	# broken collect2.
15735	hardcode_direct=unsupported
15736      fi
15737      ;;
15738
15739    aix[4-9]*)
15740      if test ia64 = "$host_cpu"; then
15741	# On IA64, the linker does run time linking by default, so we don't
15742	# have to do anything special.
15743	aix_use_runtimelinking=no
15744	exp_sym_flag='-Bexport'
15745	no_entry_flag=
15746      else
15747	# If we're using GNU nm, then we don't want the "-C" option.
15748	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
15749	# Without the "-l" option, or with the "-B" option, AIX nm treats
15750	# weak defined symbols like other global defined symbols, whereas
15751	# GNU nm marks them as "W".
15752	# While the 'weak' keyword is ignored in the Export File, we need
15753	# it in the Import File for the 'aix-soname' feature, so we have
15754	# to replace the "-B" option with "-P" for AIX nm.
15755	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15756	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15757	else
15758	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15759	fi
15760	aix_use_runtimelinking=no
15761
15762	# Test if we are trying to use run time linking or normal
15763	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15764	# have runtime linking enabled, and use it for executables.
15765	# For shared libraries, we enable/disable runtime linking
15766	# depending on the kind of the shared library created -
15767	# when "with_aix_soname,aix_use_runtimelinking" is:
15768	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15769	# "aix,yes"  lib.so          shared, rtl:yes, for executables
15770	#            lib.a           static archive
15771	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
15772	#            lib.a(lib.so.V) shared, rtl:no,  for executables
15773	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15774	#            lib.a(lib.so.V) shared, rtl:no
15775	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15776	#            lib.a           static archive
15777	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15778	  for ld_flag in $LDFLAGS; do
15779	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15780	    aix_use_runtimelinking=yes
15781	    break
15782	  fi
15783	  done
15784	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15785	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
15786	    # so we don't have lib.a shared libs to link our executables.
15787	    # We have to force runtime linking in this case.
15788	    aix_use_runtimelinking=yes
15789	    LDFLAGS="$LDFLAGS -Wl,-brtl"
15790	  fi
15791	  ;;
15792	esac
15793
15794	exp_sym_flag='-bexport'
15795	no_entry_flag='-bnoentry'
15796      fi
15797
15798      # When large executables or shared objects are built, AIX ld can
15799      # have problems creating the table of contents.  If linking a library
15800      # or program results in "error TOC overflow" add -mminimal-toc to
15801      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15802      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15803
15804      archive_cmds=''
15805      hardcode_direct=yes
15806      hardcode_direct_absolute=yes
15807      hardcode_libdir_separator=':'
15808      link_all_deplibs=yes
15809      file_list_spec='$wl-f,'
15810      case $with_aix_soname,$aix_use_runtimelinking in
15811      aix,*) ;; # traditional, no import file
15812      svr4,* | *,yes) # use import file
15813	# The Import File defines what to hardcode.
15814	hardcode_direct=no
15815	hardcode_direct_absolute=no
15816	;;
15817      esac
15818
15819      if test yes = "$GCC"; then
15820	case $host_os in aix4.[012]|aix4.[012].*)
15821	# We only want to do this on AIX 4.2 and lower, the check
15822	# below for broken collect2 doesn't work under 4.3+
15823	  collect2name=`$CC -print-prog-name=collect2`
15824	  if test -f "$collect2name" &&
15825	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15826	  then
15827	  # We have reworked collect2
15828	  :
15829	  else
15830	  # We have old collect2
15831	  hardcode_direct=unsupported
15832	  # It fails to find uninstalled libraries when the uninstalled
15833	  # path is not listed in the libpath.  Setting hardcode_minus_L
15834	  # to unsupported forces relinking
15835	  hardcode_minus_L=yes
15836	  hardcode_libdir_flag_spec='-L$libdir'
15837	  hardcode_libdir_separator=
15838	  fi
15839	  ;;
15840	esac
15841	shared_flag='-shared'
15842	if test yes = "$aix_use_runtimelinking"; then
15843	  shared_flag="$shared_flag "'$wl-G'
15844	fi
15845	# Need to ensure runtime linking is disabled for the traditional
15846	# shared library, or the linker may eventually find shared libraries
15847	# /with/ Import File - we do not want to mix them.
15848	shared_flag_aix='-shared'
15849	shared_flag_svr4='-shared $wl-G'
15850      else
15851	# not using gcc
15852	if test ia64 = "$host_cpu"; then
15853	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15854	# chokes on -Wl,-G. The following line is correct:
15855	  shared_flag='-G'
15856	else
15857	  if test yes = "$aix_use_runtimelinking"; then
15858	    shared_flag='$wl-G'
15859	  else
15860	    shared_flag='$wl-bM:SRE'
15861	  fi
15862	  shared_flag_aix='$wl-bM:SRE'
15863	  shared_flag_svr4='$wl-G'
15864	fi
15865      fi
15866
15867      export_dynamic_flag_spec='$wl-bexpall'
15868      # It seems that -bexpall does not export symbols beginning with
15869      # underscore (_), so it is better to generate a list of symbols to export.
15870      always_export_symbols=yes
15871      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15872	# Warning - without using the other runtime loading flags (-brtl),
15873	# -berok will link without error, but may produce a broken library.
15874	allow_undefined_flag='-berok'
15875        # Determine the default libpath from the value encoded in an
15876        # empty executable.
15877        if test set = "${lt_cv_aix_libpath+set}"; then
15878  aix_libpath=$lt_cv_aix_libpath
15879else
15880  if ${lt_cv_aix_libpath_+:} false; then :
15881  $as_echo_n "(cached) " >&6
15882else
15883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884/* end confdefs.h.  */
15885
15886int
15887main ()
15888{
15889
15890  ;
15891  return 0;
15892}
15893_ACEOF
15894if ac_fn_c_try_link "$LINENO"; then :
15895
15896  lt_aix_libpath_sed='
15897      /Import File Strings/,/^$/ {
15898	  /^0/ {
15899	      s/^0  *\([^ ]*\) *$/\1/
15900	      p
15901	  }
15902      }'
15903  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15904  # Check for a 64-bit object if we didn't find anything.
15905  if test -z "$lt_cv_aix_libpath_"; then
15906    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15907  fi
15908fi
15909rm -f core conftest.err conftest.$ac_objext \
15910    conftest$ac_exeext conftest.$ac_ext
15911  if test -z "$lt_cv_aix_libpath_"; then
15912    lt_cv_aix_libpath_=/usr/lib:/lib
15913  fi
15914
15915fi
15916
15917  aix_libpath=$lt_cv_aix_libpath_
15918fi
15919
15920        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15921        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15922      else
15923	if test ia64 = "$host_cpu"; then
15924	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15925	  allow_undefined_flag="-z nodefs"
15926	  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"
15927	else
15928	 # Determine the default libpath from the value encoded in an
15929	 # empty executable.
15930	 if test set = "${lt_cv_aix_libpath+set}"; then
15931  aix_libpath=$lt_cv_aix_libpath
15932else
15933  if ${lt_cv_aix_libpath_+:} false; then :
15934  $as_echo_n "(cached) " >&6
15935else
15936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15937/* end confdefs.h.  */
15938
15939int
15940main ()
15941{
15942
15943  ;
15944  return 0;
15945}
15946_ACEOF
15947if ac_fn_c_try_link "$LINENO"; then :
15948
15949  lt_aix_libpath_sed='
15950      /Import File Strings/,/^$/ {
15951	  /^0/ {
15952	      s/^0  *\([^ ]*\) *$/\1/
15953	      p
15954	  }
15955      }'
15956  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15957  # Check for a 64-bit object if we didn't find anything.
15958  if test -z "$lt_cv_aix_libpath_"; then
15959    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15960  fi
15961fi
15962rm -f core conftest.err conftest.$ac_objext \
15963    conftest$ac_exeext conftest.$ac_ext
15964  if test -z "$lt_cv_aix_libpath_"; then
15965    lt_cv_aix_libpath_=/usr/lib:/lib
15966  fi
15967
15968fi
15969
15970  aix_libpath=$lt_cv_aix_libpath_
15971fi
15972
15973	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15974	  # Warning - without using the other run time loading flags,
15975	  # -berok will link without error, but may produce a broken library.
15976	  no_undefined_flag=' $wl-bernotok'
15977	  allow_undefined_flag=' $wl-berok'
15978	  if test yes = "$with_gnu_ld"; then
15979	    # We only use this code for GNU lds that support --whole-archive.
15980	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15981	  else
15982	    # Exported symbols can be pulled into shared objects from archives
15983	    whole_archive_flag_spec='$convenience'
15984	  fi
15985	  archive_cmds_need_lc=yes
15986	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15987	  # -brtl affects multiple linker settings, -berok does not and is overridden later
15988	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15989	  if test svr4 != "$with_aix_soname"; then
15990	    # This is similar to how AIX traditionally builds its shared libraries.
15991	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15992	  fi
15993	  if test aix != "$with_aix_soname"; then
15994	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15995	  else
15996	    # used by -dlpreopen to get the symbols
15997	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15998	  fi
15999	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16000	fi
16001      fi
16002      ;;
16003
16004    amigaos*)
16005      case $host_cpu in
16006      powerpc)
16007            # see comment about AmigaOS4 .so support
16008            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16009            archive_expsym_cmds=''
16010        ;;
16011      m68k)
16012            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)'
16013            hardcode_libdir_flag_spec='-L$libdir'
16014            hardcode_minus_L=yes
16015        ;;
16016      esac
16017      ;;
16018
16019    bsdi[45]*)
16020      export_dynamic_flag_spec=-rdynamic
16021      ;;
16022
16023    cygwin* | mingw* | pw32* | cegcc*)
16024      # When not using gcc, we currently assume that we are using
16025      # Microsoft Visual C++.
16026      # hardcode_libdir_flag_spec is actually meaningless, as there is
16027      # no search path for DLLs.
16028      case $cc_basename in
16029      cl*)
16030	# Native MSVC
16031	hardcode_libdir_flag_spec=' '
16032	allow_undefined_flag=unsupported
16033	always_export_symbols=yes
16034	file_list_spec='@'
16035	# Tell ltmain to make .lib files, not .a files.
16036	libext=lib
16037	# Tell ltmain to make .dll files, not .so files.
16038	shrext_cmds=.dll
16039	# FIXME: Setting linknames here is a bad hack.
16040	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16041	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16042            cp "$export_symbols" "$output_objdir/$soname.def";
16043            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16044          else
16045            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16046          fi~
16047          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16048          linknames='
16049	# The linker will not automatically build a static lib if we build a DLL.
16050	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16051	enable_shared_with_static_runtimes=yes
16052	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16053	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16054	# Don't use ranlib
16055	old_postinstall_cmds='chmod 644 $oldlib'
16056	postlink_cmds='lt_outputfile="@OUTPUT@"~
16057          lt_tool_outputfile="@TOOL_OUTPUT@"~
16058          case $lt_outputfile in
16059            *.exe|*.EXE) ;;
16060            *)
16061              lt_outputfile=$lt_outputfile.exe
16062              lt_tool_outputfile=$lt_tool_outputfile.exe
16063              ;;
16064          esac~
16065          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16066            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16067            $RM "$lt_outputfile.manifest";
16068          fi'
16069	;;
16070      *)
16071	# Assume MSVC wrapper
16072	hardcode_libdir_flag_spec=' '
16073	allow_undefined_flag=unsupported
16074	# Tell ltmain to make .lib files, not .a files.
16075	libext=lib
16076	# Tell ltmain to make .dll files, not .so files.
16077	shrext_cmds=.dll
16078	# FIXME: Setting linknames here is a bad hack.
16079	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16080	# The linker will automatically build a .lib file if we build a DLL.
16081	old_archive_from_new_cmds='true'
16082	# FIXME: Should let the user specify the lib program.
16083	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16084	enable_shared_with_static_runtimes=yes
16085	;;
16086      esac
16087      ;;
16088
16089    darwin* | rhapsody*)
16090
16091
16092  archive_cmds_need_lc=no
16093  hardcode_direct=no
16094  hardcode_automatic=yes
16095  hardcode_shlibpath_var=unsupported
16096  if test yes = "$lt_cv_ld_force_load"; then
16097    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\"`'
16098
16099  else
16100    whole_archive_flag_spec=''
16101  fi
16102  link_all_deplibs=yes
16103  allow_undefined_flag=$_lt_dar_allow_undefined
16104  case $cc_basename in
16105     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16106     *) _lt_dar_can_shared=$GCC ;;
16107  esac
16108  if test yes = "$_lt_dar_can_shared"; then
16109    output_verbose_link_cmd=func_echo_all
16110    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16111    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16112    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"
16113    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"
16114
16115  else
16116  ld_shlibs=no
16117  fi
16118
16119      ;;
16120
16121    dgux*)
16122      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16123      hardcode_libdir_flag_spec='-L$libdir'
16124      hardcode_shlibpath_var=no
16125      ;;
16126
16127    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16128    # support.  Future versions do this automatically, but an explicit c++rt0.o
16129    # does not break anything, and helps significantly (at the cost of a little
16130    # extra space).
16131    freebsd2.2*)
16132      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16133      hardcode_libdir_flag_spec='-R$libdir'
16134      hardcode_direct=yes
16135      hardcode_shlibpath_var=no
16136      ;;
16137
16138    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16139    freebsd2.*)
16140      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16141      hardcode_direct=yes
16142      hardcode_minus_L=yes
16143      hardcode_shlibpath_var=no
16144      ;;
16145
16146    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16147    freebsd* | dragonfly*)
16148      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16149      hardcode_libdir_flag_spec='-R$libdir'
16150      hardcode_direct=yes
16151      hardcode_shlibpath_var=no
16152      ;;
16153
16154    hpux9*)
16155      if test yes = "$GCC"; then
16156	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16157      else
16158	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16159      fi
16160      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16161      hardcode_libdir_separator=:
16162      hardcode_direct=yes
16163
16164      # hardcode_minus_L: Not really in the search PATH,
16165      # but as the default location of the library.
16166      hardcode_minus_L=yes
16167      export_dynamic_flag_spec='$wl-E'
16168      ;;
16169
16170    hpux10*)
16171      if test yes,no = "$GCC,$with_gnu_ld"; then
16172	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16173      else
16174	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16175      fi
16176      if test no = "$with_gnu_ld"; then
16177	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16178	hardcode_libdir_separator=:
16179	hardcode_direct=yes
16180	hardcode_direct_absolute=yes
16181	export_dynamic_flag_spec='$wl-E'
16182	# hardcode_minus_L: Not really in the search PATH,
16183	# but as the default location of the library.
16184	hardcode_minus_L=yes
16185      fi
16186      ;;
16187
16188    hpux11*)
16189      if test yes,no = "$GCC,$with_gnu_ld"; then
16190	case $host_cpu in
16191	hppa*64*)
16192	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16193	  ;;
16194	ia64*)
16195	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16196	  ;;
16197	*)
16198	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16199	  ;;
16200	esac
16201      else
16202	case $host_cpu in
16203	hppa*64*)
16204	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16205	  ;;
16206	ia64*)
16207	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16208	  ;;
16209	*)
16210
16211	  # Older versions of the 11.00 compiler do not understand -b yet
16212	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16213	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16214$as_echo_n "checking if $CC understands -b... " >&6; }
16215if ${lt_cv_prog_compiler__b+:} false; then :
16216  $as_echo_n "(cached) " >&6
16217else
16218  lt_cv_prog_compiler__b=no
16219   save_LDFLAGS=$LDFLAGS
16220   LDFLAGS="$LDFLAGS -b"
16221   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16222   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16223     # The linker can only warn and ignore the option if not recognized
16224     # So say no if there are warnings
16225     if test -s conftest.err; then
16226       # Append any errors to the config.log.
16227       cat conftest.err 1>&5
16228       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16229       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16230       if diff conftest.exp conftest.er2 >/dev/null; then
16231         lt_cv_prog_compiler__b=yes
16232       fi
16233     else
16234       lt_cv_prog_compiler__b=yes
16235     fi
16236   fi
16237   $RM -r conftest*
16238   LDFLAGS=$save_LDFLAGS
16239
16240fi
16241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16242$as_echo "$lt_cv_prog_compiler__b" >&6; }
16243
16244if test yes = "$lt_cv_prog_compiler__b"; then
16245    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16246else
16247    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16248fi
16249
16250	  ;;
16251	esac
16252      fi
16253      if test no = "$with_gnu_ld"; then
16254	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16255	hardcode_libdir_separator=:
16256
16257	case $host_cpu in
16258	hppa*64*|ia64*)
16259	  hardcode_direct=no
16260	  hardcode_shlibpath_var=no
16261	  ;;
16262	*)
16263	  hardcode_direct=yes
16264	  hardcode_direct_absolute=yes
16265	  export_dynamic_flag_spec='$wl-E'
16266
16267	  # hardcode_minus_L: Not really in the search PATH,
16268	  # but as the default location of the library.
16269	  hardcode_minus_L=yes
16270	  ;;
16271	esac
16272      fi
16273      ;;
16274
16275    irix5* | irix6* | nonstopux*)
16276      if test yes = "$GCC"; then
16277	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'
16278	# Try to use the -exported_symbol ld option, if it does not
16279	# work, assume that -exports_file does not work either and
16280	# implicitly export all symbols.
16281	# This should be the same for all languages, so no per-tag cache variable.
16282	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16283$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16284if ${lt_cv_irix_exported_symbol+:} false; then :
16285  $as_echo_n "(cached) " >&6
16286else
16287  save_LDFLAGS=$LDFLAGS
16288	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16289	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16290/* end confdefs.h.  */
16291int foo (void) { return 0; }
16292_ACEOF
16293if ac_fn_c_try_link "$LINENO"; then :
16294  lt_cv_irix_exported_symbol=yes
16295else
16296  lt_cv_irix_exported_symbol=no
16297fi
16298rm -f core conftest.err conftest.$ac_objext \
16299    conftest$ac_exeext conftest.$ac_ext
16300           LDFLAGS=$save_LDFLAGS
16301fi
16302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16303$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16304	if test yes = "$lt_cv_irix_exported_symbol"; then
16305          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'
16306	fi
16307	link_all_deplibs=no
16308      else
16309	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'
16310	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'
16311      fi
16312      archive_cmds_need_lc='no'
16313      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16314      hardcode_libdir_separator=:
16315      inherit_rpath=yes
16316      link_all_deplibs=yes
16317      ;;
16318
16319    linux*)
16320      case $cc_basename in
16321      tcc*)
16322	# Fabrice Bellard et al's Tiny C Compiler
16323	ld_shlibs=yes
16324	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16325	;;
16326      esac
16327      ;;
16328
16329    netbsd* | netbsdelf*-gnu)
16330      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16331	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16332      else
16333	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16334      fi
16335      hardcode_libdir_flag_spec='-R$libdir'
16336      hardcode_direct=yes
16337      hardcode_shlibpath_var=no
16338      ;;
16339
16340    newsos6)
16341      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16342      hardcode_direct=yes
16343      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16344      hardcode_libdir_separator=:
16345      hardcode_shlibpath_var=no
16346      ;;
16347
16348    *nto* | *qnx*)
16349      ;;
16350
16351    openbsd* | bitrig*)
16352      if test -f /usr/libexec/ld.so; then
16353	hardcode_direct=yes
16354	hardcode_shlibpath_var=no
16355	hardcode_direct_absolute=yes
16356	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16357	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16358	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16359	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16360	  export_dynamic_flag_spec='$wl-E'
16361	else
16362	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16363	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16364	fi
16365      else
16366	ld_shlibs=no
16367      fi
16368      ;;
16369
16370    os2*)
16371      hardcode_libdir_flag_spec='-L$libdir'
16372      hardcode_minus_L=yes
16373      allow_undefined_flag=unsupported
16374      shrext_cmds=.dll
16375      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16376	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16377	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16378	$ECHO EXPORTS >> $output_objdir/$libname.def~
16379	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16380	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16381	emximp -o $lib $output_objdir/$libname.def'
16382      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16383	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16384	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16385	$ECHO EXPORTS >> $output_objdir/$libname.def~
16386	prefix_cmds="$SED"~
16387	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16388	  prefix_cmds="$prefix_cmds -e 1d";
16389	fi~
16390	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16391	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16392	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16393	emximp -o $lib $output_objdir/$libname.def'
16394      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16395      enable_shared_with_static_runtimes=yes
16396      ;;
16397
16398    osf3*)
16399      if test yes = "$GCC"; then
16400	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16401	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'
16402      else
16403	allow_undefined_flag=' -expect_unresolved \*'
16404	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'
16405      fi
16406      archive_cmds_need_lc='no'
16407      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16408      hardcode_libdir_separator=:
16409      ;;
16410
16411    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16412      if test yes = "$GCC"; then
16413	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16414	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'
16415	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16416      else
16417	allow_undefined_flag=' -expect_unresolved \*'
16418	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'
16419	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~
16420          $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'
16421
16422	# Both c and cxx compiler support -rpath directly
16423	hardcode_libdir_flag_spec='-rpath $libdir'
16424      fi
16425      archive_cmds_need_lc='no'
16426      hardcode_libdir_separator=:
16427      ;;
16428
16429    solaris*)
16430      no_undefined_flag=' -z defs'
16431      if test yes = "$GCC"; then
16432	wlarc='$wl'
16433	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16434	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16435          $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'
16436      else
16437	case `$CC -V 2>&1` in
16438	*"Compilers 5.0"*)
16439	  wlarc=''
16440	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16441	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16442            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16443	  ;;
16444	*)
16445	  wlarc='$wl'
16446	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16447	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16448            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16449	  ;;
16450	esac
16451      fi
16452      hardcode_libdir_flag_spec='-R$libdir'
16453      hardcode_shlibpath_var=no
16454      case $host_os in
16455      solaris2.[0-5] | solaris2.[0-5].*) ;;
16456      *)
16457	# The compiler driver will combine and reorder linker options,
16458	# but understands '-z linker_flag'.  GCC discards it without '$wl',
16459	# but is careful enough not to reorder.
16460	# Supported since Solaris 2.6 (maybe 2.5.1?)
16461	if test yes = "$GCC"; then
16462	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16463	else
16464	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16465	fi
16466	;;
16467      esac
16468      link_all_deplibs=yes
16469      ;;
16470
16471    sunos4*)
16472      if test sequent = "$host_vendor"; then
16473	# Use $CC to link under sequent, because it throws in some extra .o
16474	# files that make .init and .fini sections work.
16475	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16476      else
16477	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16478      fi
16479      hardcode_libdir_flag_spec='-L$libdir'
16480      hardcode_direct=yes
16481      hardcode_minus_L=yes
16482      hardcode_shlibpath_var=no
16483      ;;
16484
16485    sysv4)
16486      case $host_vendor in
16487	sni)
16488	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16489	  hardcode_direct=yes # is this really true???
16490	;;
16491	siemens)
16492	  ## LD is ld it makes a PLAMLIB
16493	  ## CC just makes a GrossModule.
16494	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16495	  reload_cmds='$CC -r -o $output$reload_objs'
16496	  hardcode_direct=no
16497        ;;
16498	motorola)
16499	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16500	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16501	;;
16502      esac
16503      runpath_var='LD_RUN_PATH'
16504      hardcode_shlibpath_var=no
16505      ;;
16506
16507    sysv4.3*)
16508      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16509      hardcode_shlibpath_var=no
16510      export_dynamic_flag_spec='-Bexport'
16511      ;;
16512
16513    sysv4*MP*)
16514      if test -d /usr/nec; then
16515	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16516	hardcode_shlibpath_var=no
16517	runpath_var=LD_RUN_PATH
16518	hardcode_runpath_var=yes
16519	ld_shlibs=yes
16520      fi
16521      ;;
16522
16523    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16524      no_undefined_flag='$wl-z,text'
16525      archive_cmds_need_lc=no
16526      hardcode_shlibpath_var=no
16527      runpath_var='LD_RUN_PATH'
16528
16529      if test yes = "$GCC"; then
16530	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16531	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16532      else
16533	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16534	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16535      fi
16536      ;;
16537
16538    sysv5* | sco3.2v5* | sco5v6*)
16539      # Note: We CANNOT use -z defs as we might desire, because we do not
16540      # link with -lc, and that would cause any symbols used from libc to
16541      # always be unresolved, which means just about no library would
16542      # ever link correctly.  If we're not using GNU ld we use -z text
16543      # though, which does catch some bad symbols but isn't as heavy-handed
16544      # as -z defs.
16545      no_undefined_flag='$wl-z,text'
16546      allow_undefined_flag='$wl-z,nodefs'
16547      archive_cmds_need_lc=no
16548      hardcode_shlibpath_var=no
16549      hardcode_libdir_flag_spec='$wl-R,$libdir'
16550      hardcode_libdir_separator=':'
16551      link_all_deplibs=yes
16552      export_dynamic_flag_spec='$wl-Bexport'
16553      runpath_var='LD_RUN_PATH'
16554
16555      if test yes = "$GCC"; then
16556	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16557	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16558      else
16559	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16560	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16561      fi
16562      ;;
16563
16564    uts4*)
16565      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16566      hardcode_libdir_flag_spec='-L$libdir'
16567      hardcode_shlibpath_var=no
16568      ;;
16569
16570    *)
16571      ld_shlibs=no
16572      ;;
16573    esac
16574
16575    if test sni = "$host_vendor"; then
16576      case $host in
16577      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16578	export_dynamic_flag_spec='$wl-Blargedynsym'
16579	;;
16580      esac
16581    fi
16582  fi
16583
16584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16585$as_echo "$ld_shlibs" >&6; }
16586test no = "$ld_shlibs" && can_build_shared=no
16587
16588with_gnu_ld=$with_gnu_ld
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604#
16605# Do we need to explicitly link libc?
16606#
16607case "x$archive_cmds_need_lc" in
16608x|xyes)
16609  # Assume -lc should be added
16610  archive_cmds_need_lc=yes
16611
16612  if test yes,yes = "$GCC,$enable_shared"; then
16613    case $archive_cmds in
16614    *'~'*)
16615      # FIXME: we may have to deal with multi-command sequences.
16616      ;;
16617    '$CC '*)
16618      # Test whether the compiler implicitly links with -lc since on some
16619      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16620      # to ld, don't add -lc before -lgcc.
16621      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16622$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16623if ${lt_cv_archive_cmds_need_lc+:} false; then :
16624  $as_echo_n "(cached) " >&6
16625else
16626  $RM conftest*
16627	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16628
16629	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16630  (eval $ac_compile) 2>&5
16631  ac_status=$?
16632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16633  test $ac_status = 0; } 2>conftest.err; then
16634	  soname=conftest
16635	  lib=conftest
16636	  libobjs=conftest.$ac_objext
16637	  deplibs=
16638	  wl=$lt_prog_compiler_wl
16639	  pic_flag=$lt_prog_compiler_pic
16640	  compiler_flags=-v
16641	  linker_flags=-v
16642	  verstring=
16643	  output_objdir=.
16644	  libname=conftest
16645	  lt_save_allow_undefined_flag=$allow_undefined_flag
16646	  allow_undefined_flag=
16647	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16648  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16649  ac_status=$?
16650  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16651  test $ac_status = 0; }
16652	  then
16653	    lt_cv_archive_cmds_need_lc=no
16654	  else
16655	    lt_cv_archive_cmds_need_lc=yes
16656	  fi
16657	  allow_undefined_flag=$lt_save_allow_undefined_flag
16658	else
16659	  cat conftest.err 1>&5
16660	fi
16661	$RM conftest*
16662
16663fi
16664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16665$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16666      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16667      ;;
16668    esac
16669  fi
16670  ;;
16671esac
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16825$as_echo_n "checking dynamic linker characteristics... " >&6; }
16826
16827if test yes = "$GCC"; then
16828  case $host_os in
16829    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16830    *) lt_awk_arg='/^libraries:/' ;;
16831  esac
16832  case $host_os in
16833    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16834    *) lt_sed_strip_eq='s|=/|/|g' ;;
16835  esac
16836  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16837  case $lt_search_path_spec in
16838  *\;*)
16839    # if the path contains ";" then we assume it to be the separator
16840    # otherwise default to the standard path separator (i.e. ":") - it is
16841    # assumed that no part of a normal pathname contains ";" but that should
16842    # okay in the real world where ";" in dirpaths is itself problematic.
16843    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16844    ;;
16845  *)
16846    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16847    ;;
16848  esac
16849  # Ok, now we have the path, separated by spaces, we can step through it
16850  # and add multilib dir if necessary...
16851  lt_tmp_lt_search_path_spec=
16852  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16853  # ...but if some path component already ends with the multilib dir we assume
16854  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16855  case "$lt_multi_os_dir; $lt_search_path_spec " in
16856  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16857    lt_multi_os_dir=
16858    ;;
16859  esac
16860  for lt_sys_path in $lt_search_path_spec; do
16861    if test -d "$lt_sys_path$lt_multi_os_dir"; then
16862      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16863    elif test -n "$lt_multi_os_dir"; then
16864      test -d "$lt_sys_path" && \
16865	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16866    fi
16867  done
16868  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16869BEGIN {RS = " "; FS = "/|\n";} {
16870  lt_foo = "";
16871  lt_count = 0;
16872  for (lt_i = NF; lt_i > 0; lt_i--) {
16873    if ($lt_i != "" && $lt_i != ".") {
16874      if ($lt_i == "..") {
16875        lt_count++;
16876      } else {
16877        if (lt_count == 0) {
16878          lt_foo = "/" $lt_i lt_foo;
16879        } else {
16880          lt_count--;
16881        }
16882      }
16883    }
16884  }
16885  if (lt_foo != "") { lt_freq[lt_foo]++; }
16886  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16887}'`
16888  # AWK program above erroneously prepends '/' to C:/dos/paths
16889  # for these hosts.
16890  case $host_os in
16891    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16892      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16893  esac
16894  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16895else
16896  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16897fi
16898library_names_spec=
16899libname_spec='lib$name'
16900soname_spec=
16901shrext_cmds=.so
16902postinstall_cmds=
16903postuninstall_cmds=
16904finish_cmds=
16905finish_eval=
16906shlibpath_var=
16907shlibpath_overrides_runpath=unknown
16908version_type=none
16909dynamic_linker="$host_os ld.so"
16910sys_lib_dlsearch_path_spec="/lib /usr/lib"
16911need_lib_prefix=unknown
16912hardcode_into_libs=no
16913
16914# when you set need_version to no, make sure it does not cause -set_version
16915# flags to be left without arguments
16916need_version=unknown
16917
16918
16919
16920case $host_os in
16921aix3*)
16922  version_type=linux # correct to gnu/linux during the next big refactor
16923  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16924  shlibpath_var=LIBPATH
16925
16926  # AIX 3 has no versioning support, so we append a major version to the name.
16927  soname_spec='$libname$release$shared_ext$major'
16928  ;;
16929
16930aix[4-9]*)
16931  version_type=linux # correct to gnu/linux during the next big refactor
16932  need_lib_prefix=no
16933  need_version=no
16934  hardcode_into_libs=yes
16935  if test ia64 = "$host_cpu"; then
16936    # AIX 5 supports IA64
16937    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16938    shlibpath_var=LD_LIBRARY_PATH
16939  else
16940    # With GCC up to 2.95.x, collect2 would create an import file
16941    # for dependence libraries.  The import file would start with
16942    # the line '#! .'.  This would cause the generated library to
16943    # depend on '.', always an invalid library.  This was fixed in
16944    # development snapshots of GCC prior to 3.0.
16945    case $host_os in
16946      aix4 | aix4.[01] | aix4.[01].*)
16947      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16948	   echo ' yes '
16949	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16950	:
16951      else
16952	can_build_shared=no
16953      fi
16954      ;;
16955    esac
16956    # Using Import Files as archive members, it is possible to support
16957    # filename-based versioning of shared library archives on AIX. While
16958    # this would work for both with and without runtime linking, it will
16959    # prevent static linking of such archives. So we do filename-based
16960    # shared library versioning with .so extension only, which is used
16961    # when both runtime linking and shared linking is enabled.
16962    # Unfortunately, runtime linking may impact performance, so we do
16963    # not want this to be the default eventually. Also, we use the
16964    # versioned .so libs for executables only if there is the -brtl
16965    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16966    # To allow for filename-based versioning support, we need to create
16967    # libNAME.so.V as an archive file, containing:
16968    # *) an Import File, referring to the versioned filename of the
16969    #    archive as well as the shared archive member, telling the
16970    #    bitwidth (32 or 64) of that shared object, and providing the
16971    #    list of exported symbols of that shared object, eventually
16972    #    decorated with the 'weak' keyword
16973    # *) the shared object with the F_LOADONLY flag set, to really avoid
16974    #    it being seen by the linker.
16975    # At run time we better use the real file rather than another symlink,
16976    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16977
16978    case $with_aix_soname,$aix_use_runtimelinking in
16979    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16980    # soname into executable. Probably we can add versioning support to
16981    # collect2, so additional links can be useful in future.
16982    aix,yes) # traditional libtool
16983      dynamic_linker='AIX unversionable lib.so'
16984      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16985      # instead of lib<name>.a to let people know that these are not
16986      # typical AIX shared libraries.
16987      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16988      ;;
16989    aix,no) # traditional AIX only
16990      dynamic_linker='AIX lib.a(lib.so.V)'
16991      # We preserve .a as extension for shared libraries through AIX4.2
16992      # and later when we are not doing run time linking.
16993      library_names_spec='$libname$release.a $libname.a'
16994      soname_spec='$libname$release$shared_ext$major'
16995      ;;
16996    svr4,*) # full svr4 only
16997      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16998      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16999      # We do not specify a path in Import Files, so LIBPATH fires.
17000      shlibpath_overrides_runpath=yes
17001      ;;
17002    *,yes) # both, prefer svr4
17003      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17004      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17005      # unpreferred sharedlib libNAME.a needs extra handling
17006      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17007      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17008      # We do not specify a path in Import Files, so LIBPATH fires.
17009      shlibpath_overrides_runpath=yes
17010      ;;
17011    *,no) # both, prefer aix
17012      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17013      library_names_spec='$libname$release.a $libname.a'
17014      soname_spec='$libname$release$shared_ext$major'
17015      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17016      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17017      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17018      ;;
17019    esac
17020    shlibpath_var=LIBPATH
17021  fi
17022  ;;
17023
17024amigaos*)
17025  case $host_cpu in
17026  powerpc)
17027    # Since July 2007 AmigaOS4 officially supports .so libraries.
17028    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17029    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17030    ;;
17031  m68k)
17032    library_names_spec='$libname.ixlibrary $libname.a'
17033    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17034    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17035    ;;
17036  esac
17037  ;;
17038
17039beos*)
17040  library_names_spec='$libname$shared_ext'
17041  dynamic_linker="$host_os ld.so"
17042  shlibpath_var=LIBRARY_PATH
17043  ;;
17044
17045bsdi[45]*)
17046  version_type=linux # correct to gnu/linux during the next big refactor
17047  need_version=no
17048  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17049  soname_spec='$libname$release$shared_ext$major'
17050  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17051  shlibpath_var=LD_LIBRARY_PATH
17052  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17053  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17054  # the default ld.so.conf also contains /usr/contrib/lib and
17055  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17056  # libtool to hard-code these into programs
17057  ;;
17058
17059cygwin* | mingw* | pw32* | cegcc*)
17060  version_type=windows
17061  shrext_cmds=.dll
17062  need_version=no
17063  need_lib_prefix=no
17064
17065  case $GCC,$cc_basename in
17066  yes,*)
17067    # gcc
17068    library_names_spec='$libname.dll.a'
17069    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17070    postinstall_cmds='base_file=`basename \$file`~
17071      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17072      dldir=$destdir/`dirname \$dlpath`~
17073      test -d \$dldir || mkdir -p \$dldir~
17074      $install_prog $dir/$dlname \$dldir/$dlname~
17075      chmod a+x \$dldir/$dlname~
17076      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17077        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17078      fi'
17079    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17080      dlpath=$dir/\$dldll~
17081       $RM \$dlpath'
17082    shlibpath_overrides_runpath=yes
17083
17084    case $host_os in
17085    cygwin*)
17086      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17087      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17088
17089      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17090      ;;
17091    mingw* | cegcc*)
17092      # MinGW DLLs use traditional 'lib' prefix
17093      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17094      ;;
17095    pw32*)
17096      # pw32 DLLs use 'pw' prefix rather than 'lib'
17097      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17098      ;;
17099    esac
17100    dynamic_linker='Win32 ld.exe'
17101    ;;
17102
17103  *,cl*)
17104    # Native MSVC
17105    libname_spec='$name'
17106    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17107    library_names_spec='$libname.dll.lib'
17108
17109    case $build_os in
17110    mingw*)
17111      sys_lib_search_path_spec=
17112      lt_save_ifs=$IFS
17113      IFS=';'
17114      for lt_path in $LIB
17115      do
17116        IFS=$lt_save_ifs
17117        # Let DOS variable expansion print the short 8.3 style file name.
17118        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17119        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17120      done
17121      IFS=$lt_save_ifs
17122      # Convert to MSYS style.
17123      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17124      ;;
17125    cygwin*)
17126      # Convert to unix form, then to dos form, then back to unix form
17127      # but this time dos style (no spaces!) so that the unix form looks
17128      # like /cygdrive/c/PROGRA~1:/cygdr...
17129      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17130      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17131      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17132      ;;
17133    *)
17134      sys_lib_search_path_spec=$LIB
17135      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17136        # It is most probably a Windows format PATH.
17137        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17138      else
17139        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17140      fi
17141      # FIXME: find the short name or the path components, as spaces are
17142      # common. (e.g. "Program Files" -> "PROGRA~1")
17143      ;;
17144    esac
17145
17146    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17147    postinstall_cmds='base_file=`basename \$file`~
17148      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17149      dldir=$destdir/`dirname \$dlpath`~
17150      test -d \$dldir || mkdir -p \$dldir~
17151      $install_prog $dir/$dlname \$dldir/$dlname'
17152    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17153      dlpath=$dir/\$dldll~
17154       $RM \$dlpath'
17155    shlibpath_overrides_runpath=yes
17156    dynamic_linker='Win32 link.exe'
17157    ;;
17158
17159  *)
17160    # Assume MSVC wrapper
17161    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17162    dynamic_linker='Win32 ld.exe'
17163    ;;
17164  esac
17165  # FIXME: first we should search . and the directory the executable is in
17166  shlibpath_var=PATH
17167  ;;
17168
17169darwin* | rhapsody*)
17170  dynamic_linker="$host_os dyld"
17171  version_type=darwin
17172  need_lib_prefix=no
17173  need_version=no
17174  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17175  soname_spec='$libname$release$major$shared_ext'
17176  shlibpath_overrides_runpath=yes
17177  shlibpath_var=DYLD_LIBRARY_PATH
17178  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17179
17180  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17181  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17182  ;;
17183
17184dgux*)
17185  version_type=linux # correct to gnu/linux during the next big refactor
17186  need_lib_prefix=no
17187  need_version=no
17188  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17189  soname_spec='$libname$release$shared_ext$major'
17190  shlibpath_var=LD_LIBRARY_PATH
17191  ;;
17192
17193freebsd* | dragonfly*)
17194  # DragonFly does not have aout.  When/if they implement a new
17195  # versioning mechanism, adjust this.
17196  if test -x /usr/bin/objformat; then
17197    objformat=`/usr/bin/objformat`
17198  else
17199    case $host_os in
17200    freebsd[23].*) objformat=aout ;;
17201    *) objformat=elf ;;
17202    esac
17203  fi
17204  version_type=freebsd-$objformat
17205  case $version_type in
17206    freebsd-elf*)
17207      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17208      soname_spec='$libname$release$shared_ext$major'
17209      need_version=no
17210      need_lib_prefix=no
17211      ;;
17212    freebsd-*)
17213      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17214      need_version=yes
17215      ;;
17216  esac
17217  shlibpath_var=LD_LIBRARY_PATH
17218  case $host_os in
17219  freebsd2.*)
17220    shlibpath_overrides_runpath=yes
17221    ;;
17222  freebsd3.[01]* | freebsdelf3.[01]*)
17223    shlibpath_overrides_runpath=yes
17224    hardcode_into_libs=yes
17225    ;;
17226  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17227  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17228    shlibpath_overrides_runpath=no
17229    hardcode_into_libs=yes
17230    ;;
17231  *) # from 4.6 on, and DragonFly
17232    shlibpath_overrides_runpath=yes
17233    hardcode_into_libs=yes
17234    ;;
17235  esac
17236  ;;
17237
17238haiku*)
17239  version_type=linux # correct to gnu/linux during the next big refactor
17240  need_lib_prefix=no
17241  need_version=no
17242  dynamic_linker="$host_os runtime_loader"
17243  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17244  soname_spec='$libname$release$shared_ext$major'
17245  shlibpath_var=LIBRARY_PATH
17246  shlibpath_overrides_runpath=no
17247  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17248  hardcode_into_libs=yes
17249  ;;
17250
17251hpux9* | hpux10* | hpux11*)
17252  # Give a soname corresponding to the major version so that dld.sl refuses to
17253  # link against other versions.
17254  version_type=sunos
17255  need_lib_prefix=no
17256  need_version=no
17257  case $host_cpu in
17258  ia64*)
17259    shrext_cmds='.so'
17260    hardcode_into_libs=yes
17261    dynamic_linker="$host_os dld.so"
17262    shlibpath_var=LD_LIBRARY_PATH
17263    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17264    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17265    soname_spec='$libname$release$shared_ext$major'
17266    if test 32 = "$HPUX_IA64_MODE"; then
17267      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17268      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17269    else
17270      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17271      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17272    fi
17273    ;;
17274  hppa*64*)
17275    shrext_cmds='.sl'
17276    hardcode_into_libs=yes
17277    dynamic_linker="$host_os dld.sl"
17278    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17279    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17280    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17281    soname_spec='$libname$release$shared_ext$major'
17282    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17283    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17284    ;;
17285  *)
17286    shrext_cmds='.sl'
17287    dynamic_linker="$host_os dld.sl"
17288    shlibpath_var=SHLIB_PATH
17289    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17290    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17291    soname_spec='$libname$release$shared_ext$major'
17292    ;;
17293  esac
17294  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17295  postinstall_cmds='chmod 555 $lib'
17296  # or fails outright, so override atomically:
17297  install_override_mode=555
17298  ;;
17299
17300interix[3-9]*)
17301  version_type=linux # correct to gnu/linux during the next big refactor
17302  need_lib_prefix=no
17303  need_version=no
17304  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17305  soname_spec='$libname$release$shared_ext$major'
17306  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17307  shlibpath_var=LD_LIBRARY_PATH
17308  shlibpath_overrides_runpath=no
17309  hardcode_into_libs=yes
17310  ;;
17311
17312irix5* | irix6* | nonstopux*)
17313  case $host_os in
17314    nonstopux*) version_type=nonstopux ;;
17315    *)
17316	if test yes = "$lt_cv_prog_gnu_ld"; then
17317		version_type=linux # correct to gnu/linux during the next big refactor
17318	else
17319		version_type=irix
17320	fi ;;
17321  esac
17322  need_lib_prefix=no
17323  need_version=no
17324  soname_spec='$libname$release$shared_ext$major'
17325  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17326  case $host_os in
17327  irix5* | nonstopux*)
17328    libsuff= shlibsuff=
17329    ;;
17330  *)
17331    case $LD in # libtool.m4 will add one of these switches to LD
17332    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17333      libsuff= shlibsuff= libmagic=32-bit;;
17334    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17335      libsuff=32 shlibsuff=N32 libmagic=N32;;
17336    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17337      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17338    *) libsuff= shlibsuff= libmagic=never-match;;
17339    esac
17340    ;;
17341  esac
17342  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17343  shlibpath_overrides_runpath=no
17344  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17345  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17346  hardcode_into_libs=yes
17347  ;;
17348
17349# No shared lib support for Linux oldld, aout, or coff.
17350linux*oldld* | linux*aout* | linux*coff*)
17351  dynamic_linker=no
17352  ;;
17353
17354linux*android*)
17355  version_type=none # Android doesn't support versioned libraries.
17356  need_lib_prefix=no
17357  need_version=no
17358  library_names_spec='$libname$release$shared_ext'
17359  soname_spec='$libname$release$shared_ext'
17360  finish_cmds=
17361  shlibpath_var=LD_LIBRARY_PATH
17362  shlibpath_overrides_runpath=yes
17363
17364  # This implies no fast_install, which is unacceptable.
17365  # Some rework will be needed to allow for fast_install
17366  # before this can be enabled.
17367  hardcode_into_libs=yes
17368
17369  dynamic_linker='Android linker'
17370  # Don't embed -rpath directories since the linker doesn't support them.
17371  hardcode_libdir_flag_spec='-L$libdir'
17372  ;;
17373
17374# This must be glibc/ELF.
17375linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17376  version_type=linux # correct to gnu/linux during the next big refactor
17377  need_lib_prefix=no
17378  need_version=no
17379  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17380  soname_spec='$libname$release$shared_ext$major'
17381  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17382  shlibpath_var=LD_LIBRARY_PATH
17383  shlibpath_overrides_runpath=no
17384
17385  # Some binutils ld are patched to set DT_RUNPATH
17386  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17387  $as_echo_n "(cached) " >&6
17388else
17389  lt_cv_shlibpath_overrides_runpath=no
17390    save_LDFLAGS=$LDFLAGS
17391    save_libdir=$libdir
17392    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17393	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17394    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17395/* end confdefs.h.  */
17396
17397int
17398main ()
17399{
17400
17401  ;
17402  return 0;
17403}
17404_ACEOF
17405if ac_fn_c_try_link "$LINENO"; then :
17406  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17407  lt_cv_shlibpath_overrides_runpath=yes
17408fi
17409fi
17410rm -f core conftest.err conftest.$ac_objext \
17411    conftest$ac_exeext conftest.$ac_ext
17412    LDFLAGS=$save_LDFLAGS
17413    libdir=$save_libdir
17414
17415fi
17416
17417  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17418
17419  # This implies no fast_install, which is unacceptable.
17420  # Some rework will be needed to allow for fast_install
17421  # before this can be enabled.
17422  hardcode_into_libs=yes
17423
17424  # Ideally, we could use ldconfig to report *all* directores which are
17425  # searched for libraries, however this is still not possible.  Aside from not
17426  # being certain /sbin/ldconfig is available, command
17427  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17428  # even though it is searched at run-time.  Try to do the best guess by
17429  # appending ld.so.conf contents (and includes) to the search path.
17430  if test -f /etc/ld.so.conf; then
17431    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' ' '`
17432    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17433  fi
17434
17435  # We used to test for /lib/ld.so.1 and disable shared libraries on
17436  # powerpc, because MkLinux only supported shared libraries with the
17437  # GNU dynamic linker.  Since this was broken with cross compilers,
17438  # most powerpc-linux boxes support dynamic linking these days and
17439  # people can always --disable-shared, the test was removed, and we
17440  # assume the GNU/Linux dynamic linker is in use.
17441  dynamic_linker='GNU/Linux ld.so'
17442  ;;
17443
17444netbsdelf*-gnu)
17445  version_type=linux
17446  need_lib_prefix=no
17447  need_version=no
17448  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17449  soname_spec='${libname}${release}${shared_ext}$major'
17450  shlibpath_var=LD_LIBRARY_PATH
17451  shlibpath_overrides_runpath=no
17452  hardcode_into_libs=yes
17453  dynamic_linker='NetBSD ld.elf_so'
17454  ;;
17455
17456netbsd*)
17457  version_type=sunos
17458  need_lib_prefix=no
17459  need_version=no
17460  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17461    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17462    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17463    dynamic_linker='NetBSD (a.out) ld.so'
17464  else
17465    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17466    soname_spec='$libname$release$shared_ext$major'
17467    dynamic_linker='NetBSD ld.elf_so'
17468  fi
17469  shlibpath_var=LD_LIBRARY_PATH
17470  shlibpath_overrides_runpath=yes
17471  hardcode_into_libs=yes
17472  ;;
17473
17474newsos6)
17475  version_type=linux # correct to gnu/linux during the next big refactor
17476  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17477  shlibpath_var=LD_LIBRARY_PATH
17478  shlibpath_overrides_runpath=yes
17479  ;;
17480
17481*nto* | *qnx*)
17482  version_type=qnx
17483  need_lib_prefix=no
17484  need_version=no
17485  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17486  soname_spec='$libname$release$shared_ext$major'
17487  shlibpath_var=LD_LIBRARY_PATH
17488  shlibpath_overrides_runpath=no
17489  hardcode_into_libs=yes
17490  dynamic_linker='ldqnx.so'
17491  ;;
17492
17493openbsd* | bitrig*)
17494  version_type=sunos
17495  sys_lib_dlsearch_path_spec=/usr/lib
17496  need_lib_prefix=no
17497  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17498    need_version=no
17499  else
17500    need_version=yes
17501  fi
17502  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17503  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17504  shlibpath_var=LD_LIBRARY_PATH
17505  shlibpath_overrides_runpath=yes
17506  ;;
17507
17508os2*)
17509  libname_spec='$name'
17510  version_type=windows
17511  shrext_cmds=.dll
17512  need_version=no
17513  need_lib_prefix=no
17514  # OS/2 can only load a DLL with a base name of 8 characters or less.
17515  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17516    v=$($ECHO $release$versuffix | tr -d .-);
17517    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17518    $ECHO $n$v`$shared_ext'
17519  library_names_spec='${libname}_dll.$libext'
17520  dynamic_linker='OS/2 ld.exe'
17521  shlibpath_var=BEGINLIBPATH
17522  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17523  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17524  postinstall_cmds='base_file=`basename \$file`~
17525    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17526    dldir=$destdir/`dirname \$dlpath`~
17527    test -d \$dldir || mkdir -p \$dldir~
17528    $install_prog $dir/$dlname \$dldir/$dlname~
17529    chmod a+x \$dldir/$dlname~
17530    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17531      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17532    fi'
17533  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17534    dlpath=$dir/\$dldll~
17535    $RM \$dlpath'
17536  ;;
17537
17538osf3* | osf4* | osf5*)
17539  version_type=osf
17540  need_lib_prefix=no
17541  need_version=no
17542  soname_spec='$libname$release$shared_ext$major'
17543  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17544  shlibpath_var=LD_LIBRARY_PATH
17545  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17546  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17547  ;;
17548
17549rdos*)
17550  dynamic_linker=no
17551  ;;
17552
17553solaris*)
17554  version_type=linux # correct to gnu/linux during the next big refactor
17555  need_lib_prefix=no
17556  need_version=no
17557  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17558  soname_spec='$libname$release$shared_ext$major'
17559  shlibpath_var=LD_LIBRARY_PATH
17560  shlibpath_overrides_runpath=yes
17561  hardcode_into_libs=yes
17562  # ldd complains unless libraries are executable
17563  postinstall_cmds='chmod +x $lib'
17564  ;;
17565
17566sunos4*)
17567  version_type=sunos
17568  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17569  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17570  shlibpath_var=LD_LIBRARY_PATH
17571  shlibpath_overrides_runpath=yes
17572  if test yes = "$with_gnu_ld"; then
17573    need_lib_prefix=no
17574  fi
17575  need_version=yes
17576  ;;
17577
17578sysv4 | sysv4.3*)
17579  version_type=linux # correct to gnu/linux during the next big refactor
17580  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17581  soname_spec='$libname$release$shared_ext$major'
17582  shlibpath_var=LD_LIBRARY_PATH
17583  case $host_vendor in
17584    sni)
17585      shlibpath_overrides_runpath=no
17586      need_lib_prefix=no
17587      runpath_var=LD_RUN_PATH
17588      ;;
17589    siemens)
17590      need_lib_prefix=no
17591      ;;
17592    motorola)
17593      need_lib_prefix=no
17594      need_version=no
17595      shlibpath_overrides_runpath=no
17596      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17597      ;;
17598  esac
17599  ;;
17600
17601sysv4*MP*)
17602  if test -d /usr/nec; then
17603    version_type=linux # correct to gnu/linux during the next big refactor
17604    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17605    soname_spec='$libname$shared_ext.$major'
17606    shlibpath_var=LD_LIBRARY_PATH
17607  fi
17608  ;;
17609
17610sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17611  version_type=sco
17612  need_lib_prefix=no
17613  need_version=no
17614  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17615  soname_spec='$libname$release$shared_ext$major'
17616  shlibpath_var=LD_LIBRARY_PATH
17617  shlibpath_overrides_runpath=yes
17618  hardcode_into_libs=yes
17619  if test yes = "$with_gnu_ld"; then
17620    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17621  else
17622    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17623    case $host_os in
17624      sco3.2v5*)
17625        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17626	;;
17627    esac
17628  fi
17629  sys_lib_dlsearch_path_spec='/usr/lib'
17630  ;;
17631
17632tpf*)
17633  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17634  version_type=linux # correct to gnu/linux during the next big refactor
17635  need_lib_prefix=no
17636  need_version=no
17637  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17638  shlibpath_var=LD_LIBRARY_PATH
17639  shlibpath_overrides_runpath=no
17640  hardcode_into_libs=yes
17641  ;;
17642
17643uts4*)
17644  version_type=linux # correct to gnu/linux during the next big refactor
17645  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17646  soname_spec='$libname$release$shared_ext$major'
17647  shlibpath_var=LD_LIBRARY_PATH
17648  ;;
17649
17650*)
17651  dynamic_linker=no
17652  ;;
17653esac
17654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17655$as_echo "$dynamic_linker" >&6; }
17656test no = "$dynamic_linker" && can_build_shared=no
17657
17658variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17659if test yes = "$GCC"; then
17660  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17661fi
17662
17663if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17664  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17665fi
17666
17667if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17668  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17669fi
17670
17671# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17672configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17673
17674# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17675func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17676
17677# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17678configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17777$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17778hardcode_action=
17779if test -n "$hardcode_libdir_flag_spec" ||
17780   test -n "$runpath_var" ||
17781   test yes = "$hardcode_automatic"; then
17782
17783  # We can hardcode non-existent directories.
17784  if test no != "$hardcode_direct" &&
17785     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17786     # have to relink, otherwise we might link with an installed library
17787     # when we should be linking with a yet-to-be-installed one
17788     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17789     test no != "$hardcode_minus_L"; then
17790    # Linking always hardcodes the temporary library directory.
17791    hardcode_action=relink
17792  else
17793    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17794    hardcode_action=immediate
17795  fi
17796else
17797  # We cannot hardcode anything, or else we can only hardcode existing
17798  # directories.
17799  hardcode_action=unsupported
17800fi
17801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17802$as_echo "$hardcode_action" >&6; }
17803
17804if test relink = "$hardcode_action" ||
17805   test yes = "$inherit_rpath"; then
17806  # Fast installation is not supported
17807  enable_fast_install=no
17808elif test yes = "$shlibpath_overrides_runpath" ||
17809     test no = "$enable_shared"; then
17810  # Fast installation is not necessary
17811  enable_fast_install=needless
17812fi
17813
17814
17815
17816
17817
17818
17819  if test yes != "$enable_dlopen"; then
17820  enable_dlopen=unknown
17821  enable_dlopen_self=unknown
17822  enable_dlopen_self_static=unknown
17823else
17824  lt_cv_dlopen=no
17825  lt_cv_dlopen_libs=
17826
17827  case $host_os in
17828  beos*)
17829    lt_cv_dlopen=load_add_on
17830    lt_cv_dlopen_libs=
17831    lt_cv_dlopen_self=yes
17832    ;;
17833
17834  mingw* | pw32* | cegcc*)
17835    lt_cv_dlopen=LoadLibrary
17836    lt_cv_dlopen_libs=
17837    ;;
17838
17839  cygwin*)
17840    lt_cv_dlopen=dlopen
17841    lt_cv_dlopen_libs=
17842    ;;
17843
17844  darwin*)
17845    # if libdl is installed we need to link against it
17846    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17847$as_echo_n "checking for dlopen in -ldl... " >&6; }
17848if ${ac_cv_lib_dl_dlopen+:} false; then :
17849  $as_echo_n "(cached) " >&6
17850else
17851  ac_check_lib_save_LIBS=$LIBS
17852LIBS="-ldl  $LIBS"
17853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17854/* end confdefs.h.  */
17855
17856/* Override any GCC internal prototype to avoid an error.
17857   Use char because int might match the return type of a GCC
17858   builtin and then its argument prototype would still apply.  */
17859#ifdef __cplusplus
17860extern "C"
17861#endif
17862char dlopen ();
17863int
17864main ()
17865{
17866return dlopen ();
17867  ;
17868  return 0;
17869}
17870_ACEOF
17871if ac_fn_c_try_link "$LINENO"; then :
17872  ac_cv_lib_dl_dlopen=yes
17873else
17874  ac_cv_lib_dl_dlopen=no
17875fi
17876rm -f core conftest.err conftest.$ac_objext \
17877    conftest$ac_exeext conftest.$ac_ext
17878LIBS=$ac_check_lib_save_LIBS
17879fi
17880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17881$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17882if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17883  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17884else
17885
17886    lt_cv_dlopen=dyld
17887    lt_cv_dlopen_libs=
17888    lt_cv_dlopen_self=yes
17889
17890fi
17891
17892    ;;
17893
17894  tpf*)
17895    # Don't try to run any link tests for TPF.  We know it's impossible
17896    # because TPF is a cross-compiler, and we know how we open DSOs.
17897    lt_cv_dlopen=dlopen
17898    lt_cv_dlopen_libs=
17899    lt_cv_dlopen_self=no
17900    ;;
17901
17902  *)
17903    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17904if test "x$ac_cv_func_shl_load" = xyes; then :
17905  lt_cv_dlopen=shl_load
17906else
17907  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17908$as_echo_n "checking for shl_load in -ldld... " >&6; }
17909if ${ac_cv_lib_dld_shl_load+:} false; then :
17910  $as_echo_n "(cached) " >&6
17911else
17912  ac_check_lib_save_LIBS=$LIBS
17913LIBS="-ldld  $LIBS"
17914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17915/* end confdefs.h.  */
17916
17917/* Override any GCC internal prototype to avoid an error.
17918   Use char because int might match the return type of a GCC
17919   builtin and then its argument prototype would still apply.  */
17920#ifdef __cplusplus
17921extern "C"
17922#endif
17923char shl_load ();
17924int
17925main ()
17926{
17927return shl_load ();
17928  ;
17929  return 0;
17930}
17931_ACEOF
17932if ac_fn_c_try_link "$LINENO"; then :
17933  ac_cv_lib_dld_shl_load=yes
17934else
17935  ac_cv_lib_dld_shl_load=no
17936fi
17937rm -f core conftest.err conftest.$ac_objext \
17938    conftest$ac_exeext conftest.$ac_ext
17939LIBS=$ac_check_lib_save_LIBS
17940fi
17941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17942$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17943if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17944  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17945else
17946  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17947if test "x$ac_cv_func_dlopen" = xyes; then :
17948  lt_cv_dlopen=dlopen
17949else
17950  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17951$as_echo_n "checking for dlopen in -ldl... " >&6; }
17952if ${ac_cv_lib_dl_dlopen+:} false; then :
17953  $as_echo_n "(cached) " >&6
17954else
17955  ac_check_lib_save_LIBS=$LIBS
17956LIBS="-ldl  $LIBS"
17957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17958/* end confdefs.h.  */
17959
17960/* Override any GCC internal prototype to avoid an error.
17961   Use char because int might match the return type of a GCC
17962   builtin and then its argument prototype would still apply.  */
17963#ifdef __cplusplus
17964extern "C"
17965#endif
17966char dlopen ();
17967int
17968main ()
17969{
17970return dlopen ();
17971  ;
17972  return 0;
17973}
17974_ACEOF
17975if ac_fn_c_try_link "$LINENO"; then :
17976  ac_cv_lib_dl_dlopen=yes
17977else
17978  ac_cv_lib_dl_dlopen=no
17979fi
17980rm -f core conftest.err conftest.$ac_objext \
17981    conftest$ac_exeext conftest.$ac_ext
17982LIBS=$ac_check_lib_save_LIBS
17983fi
17984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17985$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17986if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17987  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17988else
17989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17990$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17991if ${ac_cv_lib_svld_dlopen+:} false; then :
17992  $as_echo_n "(cached) " >&6
17993else
17994  ac_check_lib_save_LIBS=$LIBS
17995LIBS="-lsvld  $LIBS"
17996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17997/* end confdefs.h.  */
17998
17999/* Override any GCC internal prototype to avoid an error.
18000   Use char because int might match the return type of a GCC
18001   builtin and then its argument prototype would still apply.  */
18002#ifdef __cplusplus
18003extern "C"
18004#endif
18005char dlopen ();
18006int
18007main ()
18008{
18009return dlopen ();
18010  ;
18011  return 0;
18012}
18013_ACEOF
18014if ac_fn_c_try_link "$LINENO"; then :
18015  ac_cv_lib_svld_dlopen=yes
18016else
18017  ac_cv_lib_svld_dlopen=no
18018fi
18019rm -f core conftest.err conftest.$ac_objext \
18020    conftest$ac_exeext conftest.$ac_ext
18021LIBS=$ac_check_lib_save_LIBS
18022fi
18023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18024$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18025if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18026  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18027else
18028  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18029$as_echo_n "checking for dld_link in -ldld... " >&6; }
18030if ${ac_cv_lib_dld_dld_link+:} false; then :
18031  $as_echo_n "(cached) " >&6
18032else
18033  ac_check_lib_save_LIBS=$LIBS
18034LIBS="-ldld  $LIBS"
18035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18036/* end confdefs.h.  */
18037
18038/* Override any GCC internal prototype to avoid an error.
18039   Use char because int might match the return type of a GCC
18040   builtin and then its argument prototype would still apply.  */
18041#ifdef __cplusplus
18042extern "C"
18043#endif
18044char dld_link ();
18045int
18046main ()
18047{
18048return dld_link ();
18049  ;
18050  return 0;
18051}
18052_ACEOF
18053if ac_fn_c_try_link "$LINENO"; then :
18054  ac_cv_lib_dld_dld_link=yes
18055else
18056  ac_cv_lib_dld_dld_link=no
18057fi
18058rm -f core conftest.err conftest.$ac_objext \
18059    conftest$ac_exeext conftest.$ac_ext
18060LIBS=$ac_check_lib_save_LIBS
18061fi
18062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18063$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18064if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18065  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18066fi
18067
18068
18069fi
18070
18071
18072fi
18073
18074
18075fi
18076
18077
18078fi
18079
18080
18081fi
18082
18083    ;;
18084  esac
18085
18086  if test no = "$lt_cv_dlopen"; then
18087    enable_dlopen=no
18088  else
18089    enable_dlopen=yes
18090  fi
18091
18092  case $lt_cv_dlopen in
18093  dlopen)
18094    save_CPPFLAGS=$CPPFLAGS
18095    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18096
18097    save_LDFLAGS=$LDFLAGS
18098    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18099
18100    save_LIBS=$LIBS
18101    LIBS="$lt_cv_dlopen_libs $LIBS"
18102
18103    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18104$as_echo_n "checking whether a program can dlopen itself... " >&6; }
18105if ${lt_cv_dlopen_self+:} false; then :
18106  $as_echo_n "(cached) " >&6
18107else
18108  	  if test yes = "$cross_compiling"; then :
18109  lt_cv_dlopen_self=cross
18110else
18111  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18112  lt_status=$lt_dlunknown
18113  cat > conftest.$ac_ext <<_LT_EOF
18114#line $LINENO "configure"
18115#include "confdefs.h"
18116
18117#if HAVE_DLFCN_H
18118#include <dlfcn.h>
18119#endif
18120
18121#include <stdio.h>
18122
18123#ifdef RTLD_GLOBAL
18124#  define LT_DLGLOBAL		RTLD_GLOBAL
18125#else
18126#  ifdef DL_GLOBAL
18127#    define LT_DLGLOBAL		DL_GLOBAL
18128#  else
18129#    define LT_DLGLOBAL		0
18130#  endif
18131#endif
18132
18133/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18134   find out it does not work in some platform. */
18135#ifndef LT_DLLAZY_OR_NOW
18136#  ifdef RTLD_LAZY
18137#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18138#  else
18139#    ifdef DL_LAZY
18140#      define LT_DLLAZY_OR_NOW		DL_LAZY
18141#    else
18142#      ifdef RTLD_NOW
18143#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18144#      else
18145#        ifdef DL_NOW
18146#          define LT_DLLAZY_OR_NOW	DL_NOW
18147#        else
18148#          define LT_DLLAZY_OR_NOW	0
18149#        endif
18150#      endif
18151#    endif
18152#  endif
18153#endif
18154
18155/* When -fvisibility=hidden is used, assume the code has been annotated
18156   correspondingly for the symbols needed.  */
18157#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18158int fnord () __attribute__((visibility("default")));
18159#endif
18160
18161int fnord () { return 42; }
18162int main ()
18163{
18164  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18165  int status = $lt_dlunknown;
18166
18167  if (self)
18168    {
18169      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18170      else
18171        {
18172	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18173          else puts (dlerror ());
18174	}
18175      /* dlclose (self); */
18176    }
18177  else
18178    puts (dlerror ());
18179
18180  return status;
18181}
18182_LT_EOF
18183  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18184  (eval $ac_link) 2>&5
18185  ac_status=$?
18186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18187  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18188    (./conftest; exit; ) >&5 2>/dev/null
18189    lt_status=$?
18190    case x$lt_status in
18191      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18192      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18193      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18194    esac
18195  else :
18196    # compilation failed
18197    lt_cv_dlopen_self=no
18198  fi
18199fi
18200rm -fr conftest*
18201
18202
18203fi
18204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18205$as_echo "$lt_cv_dlopen_self" >&6; }
18206
18207    if test yes = "$lt_cv_dlopen_self"; then
18208      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18209      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18210$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18211if ${lt_cv_dlopen_self_static+:} false; then :
18212  $as_echo_n "(cached) " >&6
18213else
18214  	  if test yes = "$cross_compiling"; then :
18215  lt_cv_dlopen_self_static=cross
18216else
18217  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18218  lt_status=$lt_dlunknown
18219  cat > conftest.$ac_ext <<_LT_EOF
18220#line $LINENO "configure"
18221#include "confdefs.h"
18222
18223#if HAVE_DLFCN_H
18224#include <dlfcn.h>
18225#endif
18226
18227#include <stdio.h>
18228
18229#ifdef RTLD_GLOBAL
18230#  define LT_DLGLOBAL		RTLD_GLOBAL
18231#else
18232#  ifdef DL_GLOBAL
18233#    define LT_DLGLOBAL		DL_GLOBAL
18234#  else
18235#    define LT_DLGLOBAL		0
18236#  endif
18237#endif
18238
18239/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18240   find out it does not work in some platform. */
18241#ifndef LT_DLLAZY_OR_NOW
18242#  ifdef RTLD_LAZY
18243#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18244#  else
18245#    ifdef DL_LAZY
18246#      define LT_DLLAZY_OR_NOW		DL_LAZY
18247#    else
18248#      ifdef RTLD_NOW
18249#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18250#      else
18251#        ifdef DL_NOW
18252#          define LT_DLLAZY_OR_NOW	DL_NOW
18253#        else
18254#          define LT_DLLAZY_OR_NOW	0
18255#        endif
18256#      endif
18257#    endif
18258#  endif
18259#endif
18260
18261/* When -fvisibility=hidden is used, assume the code has been annotated
18262   correspondingly for the symbols needed.  */
18263#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18264int fnord () __attribute__((visibility("default")));
18265#endif
18266
18267int fnord () { return 42; }
18268int main ()
18269{
18270  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18271  int status = $lt_dlunknown;
18272
18273  if (self)
18274    {
18275      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18276      else
18277        {
18278	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18279          else puts (dlerror ());
18280	}
18281      /* dlclose (self); */
18282    }
18283  else
18284    puts (dlerror ());
18285
18286  return status;
18287}
18288_LT_EOF
18289  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18290  (eval $ac_link) 2>&5
18291  ac_status=$?
18292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18293  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18294    (./conftest; exit; ) >&5 2>/dev/null
18295    lt_status=$?
18296    case x$lt_status in
18297      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18298      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18299      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18300    esac
18301  else :
18302    # compilation failed
18303    lt_cv_dlopen_self_static=no
18304  fi
18305fi
18306rm -fr conftest*
18307
18308
18309fi
18310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18311$as_echo "$lt_cv_dlopen_self_static" >&6; }
18312    fi
18313
18314    CPPFLAGS=$save_CPPFLAGS
18315    LDFLAGS=$save_LDFLAGS
18316    LIBS=$save_LIBS
18317    ;;
18318  esac
18319
18320  case $lt_cv_dlopen_self in
18321  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18322  *) enable_dlopen_self=unknown ;;
18323  esac
18324
18325  case $lt_cv_dlopen_self_static in
18326  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18327  *) enable_dlopen_self_static=unknown ;;
18328  esac
18329fi
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347striplib=
18348old_striplib=
18349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18350$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18351if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18352  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18353  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18355$as_echo "yes" >&6; }
18356else
18357# FIXME - insert some real tests, host_os isn't really good enough
18358  case $host_os in
18359  darwin*)
18360    if test -n "$STRIP"; then
18361      striplib="$STRIP -x"
18362      old_striplib="$STRIP -S"
18363      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18364$as_echo "yes" >&6; }
18365    else
18366      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18367$as_echo "no" >&6; }
18368    fi
18369    ;;
18370  *)
18371    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18372$as_echo "no" >&6; }
18373    ;;
18374  esac
18375fi
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388  # Report what library types will actually be built
18389  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18390$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18392$as_echo "$can_build_shared" >&6; }
18393
18394  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18395$as_echo_n "checking whether to build shared libraries... " >&6; }
18396  test no = "$can_build_shared" && enable_shared=no
18397
18398  # On AIX, shared libraries and static libraries use the same namespace, and
18399  # are all built from PIC.
18400  case $host_os in
18401  aix3*)
18402    test yes = "$enable_shared" && enable_static=no
18403    if test -n "$RANLIB"; then
18404      archive_cmds="$archive_cmds~\$RANLIB \$lib"
18405      postinstall_cmds='$RANLIB $lib'
18406    fi
18407    ;;
18408
18409  aix[4-9]*)
18410    if test ia64 != "$host_cpu"; then
18411      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18412      yes,aix,yes) ;;			# shared object as lib.so file only
18413      yes,svr4,*) ;;			# shared object as lib.so archive member only
18414      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
18415      esac
18416    fi
18417    ;;
18418  esac
18419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18420$as_echo "$enable_shared" >&6; }
18421
18422  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18423$as_echo_n "checking whether to build static libraries... " >&6; }
18424  # Make sure either enable_shared or enable_static is yes.
18425  test yes = "$enable_shared" || enable_static=yes
18426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18427$as_echo "$enable_static" >&6; }
18428
18429
18430
18431
18432fi
18433ac_ext=c
18434ac_cpp='$CPP $CPPFLAGS'
18435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18437ac_compiler_gnu=$ac_cv_c_compiler_gnu
18438
18439CC=$lt_save_CC
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455        ac_config_commands="$ac_config_commands libtool"
18456
18457
18458
18459
18460# Only expand once:
18461
18462
18463ac_ext=c
18464ac_cpp='$CPP $CPPFLAGS'
18465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18467ac_compiler_gnu=$ac_cv_c_compiler_gnu
18468if test -n "$ac_tool_prefix"; then
18469  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18470set dummy ${ac_tool_prefix}gcc; ac_word=$2
18471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18472$as_echo_n "checking for $ac_word... " >&6; }
18473if ${ac_cv_prog_CC+:} false; then :
18474  $as_echo_n "(cached) " >&6
18475else
18476  if test -n "$CC"; then
18477  ac_cv_prog_CC="$CC" # Let the user override the test.
18478else
18479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18480for as_dir in $PATH
18481do
18482  IFS=$as_save_IFS
18483  test -z "$as_dir" && as_dir=.
18484    for ac_exec_ext in '' $ac_executable_extensions; do
18485  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18486    ac_cv_prog_CC="${ac_tool_prefix}gcc"
18487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18488    break 2
18489  fi
18490done
18491  done
18492IFS=$as_save_IFS
18493
18494fi
18495fi
18496CC=$ac_cv_prog_CC
18497if test -n "$CC"; then
18498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18499$as_echo "$CC" >&6; }
18500else
18501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18502$as_echo "no" >&6; }
18503fi
18504
18505
18506fi
18507if test -z "$ac_cv_prog_CC"; then
18508  ac_ct_CC=$CC
18509  # Extract the first word of "gcc", so it can be a program name with args.
18510set dummy gcc; ac_word=$2
18511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18512$as_echo_n "checking for $ac_word... " >&6; }
18513if ${ac_cv_prog_ac_ct_CC+:} false; then :
18514  $as_echo_n "(cached) " >&6
18515else
18516  if test -n "$ac_ct_CC"; then
18517  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18518else
18519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18520for as_dir in $PATH
18521do
18522  IFS=$as_save_IFS
18523  test -z "$as_dir" && as_dir=.
18524    for ac_exec_ext in '' $ac_executable_extensions; do
18525  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18526    ac_cv_prog_ac_ct_CC="gcc"
18527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18528    break 2
18529  fi
18530done
18531  done
18532IFS=$as_save_IFS
18533
18534fi
18535fi
18536ac_ct_CC=$ac_cv_prog_ac_ct_CC
18537if test -n "$ac_ct_CC"; then
18538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18539$as_echo "$ac_ct_CC" >&6; }
18540else
18541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18542$as_echo "no" >&6; }
18543fi
18544
18545  if test "x$ac_ct_CC" = x; then
18546    CC=""
18547  else
18548    case $cross_compiling:$ac_tool_warned in
18549yes:)
18550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18552ac_tool_warned=yes ;;
18553esac
18554    CC=$ac_ct_CC
18555  fi
18556else
18557  CC="$ac_cv_prog_CC"
18558fi
18559
18560if test -z "$CC"; then
18561          if test -n "$ac_tool_prefix"; then
18562    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18563set dummy ${ac_tool_prefix}cc; ac_word=$2
18564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18565$as_echo_n "checking for $ac_word... " >&6; }
18566if ${ac_cv_prog_CC+:} false; then :
18567  $as_echo_n "(cached) " >&6
18568else
18569  if test -n "$CC"; then
18570  ac_cv_prog_CC="$CC" # Let the user override the test.
18571else
18572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18573for as_dir in $PATH
18574do
18575  IFS=$as_save_IFS
18576  test -z "$as_dir" && as_dir=.
18577    for ac_exec_ext in '' $ac_executable_extensions; do
18578  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18579    ac_cv_prog_CC="${ac_tool_prefix}cc"
18580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18581    break 2
18582  fi
18583done
18584  done
18585IFS=$as_save_IFS
18586
18587fi
18588fi
18589CC=$ac_cv_prog_CC
18590if test -n "$CC"; then
18591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18592$as_echo "$CC" >&6; }
18593else
18594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18595$as_echo "no" >&6; }
18596fi
18597
18598
18599  fi
18600fi
18601if test -z "$CC"; then
18602  # Extract the first word of "cc", so it can be a program name with args.
18603set dummy cc; ac_word=$2
18604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18605$as_echo_n "checking for $ac_word... " >&6; }
18606if ${ac_cv_prog_CC+:} false; then :
18607  $as_echo_n "(cached) " >&6
18608else
18609  if test -n "$CC"; then
18610  ac_cv_prog_CC="$CC" # Let the user override the test.
18611else
18612  ac_prog_rejected=no
18613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18614for as_dir in $PATH
18615do
18616  IFS=$as_save_IFS
18617  test -z "$as_dir" && as_dir=.
18618    for ac_exec_ext in '' $ac_executable_extensions; do
18619  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18620    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18621       ac_prog_rejected=yes
18622       continue
18623     fi
18624    ac_cv_prog_CC="cc"
18625    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18626    break 2
18627  fi
18628done
18629  done
18630IFS=$as_save_IFS
18631
18632if test $ac_prog_rejected = yes; then
18633  # We found a bogon in the path, so make sure we never use it.
18634  set dummy $ac_cv_prog_CC
18635  shift
18636  if test $# != 0; then
18637    # We chose a different compiler from the bogus one.
18638    # However, it has the same basename, so the bogon will be chosen
18639    # first if we set CC to just the basename; use the full file name.
18640    shift
18641    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18642  fi
18643fi
18644fi
18645fi
18646CC=$ac_cv_prog_CC
18647if test -n "$CC"; then
18648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18649$as_echo "$CC" >&6; }
18650else
18651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18652$as_echo "no" >&6; }
18653fi
18654
18655
18656fi
18657if test -z "$CC"; then
18658  if test -n "$ac_tool_prefix"; then
18659  for ac_prog in cl.exe
18660  do
18661    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18662set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18664$as_echo_n "checking for $ac_word... " >&6; }
18665if ${ac_cv_prog_CC+:} false; then :
18666  $as_echo_n "(cached) " >&6
18667else
18668  if test -n "$CC"; then
18669  ac_cv_prog_CC="$CC" # Let the user override the test.
18670else
18671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18672for as_dir in $PATH
18673do
18674  IFS=$as_save_IFS
18675  test -z "$as_dir" && as_dir=.
18676    for ac_exec_ext in '' $ac_executable_extensions; do
18677  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18678    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18680    break 2
18681  fi
18682done
18683  done
18684IFS=$as_save_IFS
18685
18686fi
18687fi
18688CC=$ac_cv_prog_CC
18689if test -n "$CC"; then
18690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18691$as_echo "$CC" >&6; }
18692else
18693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18694$as_echo "no" >&6; }
18695fi
18696
18697
18698    test -n "$CC" && break
18699  done
18700fi
18701if test -z "$CC"; then
18702  ac_ct_CC=$CC
18703  for ac_prog in cl.exe
18704do
18705  # Extract the first word of "$ac_prog", so it can be a program name with args.
18706set dummy $ac_prog; ac_word=$2
18707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18708$as_echo_n "checking for $ac_word... " >&6; }
18709if ${ac_cv_prog_ac_ct_CC+:} false; then :
18710  $as_echo_n "(cached) " >&6
18711else
18712  if test -n "$ac_ct_CC"; then
18713  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18714else
18715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18716for as_dir in $PATH
18717do
18718  IFS=$as_save_IFS
18719  test -z "$as_dir" && as_dir=.
18720    for ac_exec_ext in '' $ac_executable_extensions; do
18721  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18722    ac_cv_prog_ac_ct_CC="$ac_prog"
18723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18724    break 2
18725  fi
18726done
18727  done
18728IFS=$as_save_IFS
18729
18730fi
18731fi
18732ac_ct_CC=$ac_cv_prog_ac_ct_CC
18733if test -n "$ac_ct_CC"; then
18734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18735$as_echo "$ac_ct_CC" >&6; }
18736else
18737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18738$as_echo "no" >&6; }
18739fi
18740
18741
18742  test -n "$ac_ct_CC" && break
18743done
18744
18745  if test "x$ac_ct_CC" = x; then
18746    CC=""
18747  else
18748    case $cross_compiling:$ac_tool_warned in
18749yes:)
18750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18752ac_tool_warned=yes ;;
18753esac
18754    CC=$ac_ct_CC
18755  fi
18756fi
18757
18758fi
18759
18760
18761test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18763as_fn_error $? "no acceptable C compiler found in \$PATH
18764See \`config.log' for more details" "$LINENO" 5; }
18765
18766# Provide some information about the compiler.
18767$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
18768set X $ac_compile
18769ac_compiler=$2
18770for ac_option in --version -v -V -qversion; do
18771  { { ac_try="$ac_compiler $ac_option >&5"
18772case "(($ac_try" in
18773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18774  *) ac_try_echo=$ac_try;;
18775esac
18776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18777$as_echo "$ac_try_echo"; } >&5
18778  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18779  ac_status=$?
18780  if test -s conftest.err; then
18781    sed '10a\
18782... rest of stderr output deleted ...
18783         10q' conftest.err >conftest.er1
18784    cat conftest.er1 >&5
18785  fi
18786  rm -f conftest.er1 conftest.err
18787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18788  test $ac_status = 0; }
18789done
18790
18791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
18792$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
18793if ${ac_cv_c_compiler_gnu+:} false; then :
18794  $as_echo_n "(cached) " >&6
18795else
18796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18797/* end confdefs.h.  */
18798
18799int
18800main ()
18801{
18802#ifndef __GNUC__
18803       choke me
18804#endif
18805
18806  ;
18807  return 0;
18808}
18809_ACEOF
18810if ac_fn_c_try_compile "$LINENO"; then :
18811  ac_compiler_gnu=yes
18812else
18813  ac_compiler_gnu=no
18814fi
18815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18816ac_cv_c_compiler_gnu=$ac_compiler_gnu
18817
18818fi
18819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
18820$as_echo "$ac_cv_c_compiler_gnu" >&6; }
18821if test $ac_compiler_gnu = yes; then
18822  GCC=yes
18823else
18824  GCC=
18825fi
18826ac_test_CFLAGS=${CFLAGS+set}
18827ac_save_CFLAGS=$CFLAGS
18828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
18829$as_echo_n "checking whether $CC accepts -g... " >&6; }
18830if ${ac_cv_prog_cc_g+:} false; then :
18831  $as_echo_n "(cached) " >&6
18832else
18833  ac_save_c_werror_flag=$ac_c_werror_flag
18834   ac_c_werror_flag=yes
18835   ac_cv_prog_cc_g=no
18836   CFLAGS="-g"
18837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18838/* end confdefs.h.  */
18839
18840int
18841main ()
18842{
18843
18844  ;
18845  return 0;
18846}
18847_ACEOF
18848if ac_fn_c_try_compile "$LINENO"; then :
18849  ac_cv_prog_cc_g=yes
18850else
18851  CFLAGS=""
18852      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18853/* end confdefs.h.  */
18854
18855int
18856main ()
18857{
18858
18859  ;
18860  return 0;
18861}
18862_ACEOF
18863if ac_fn_c_try_compile "$LINENO"; then :
18864
18865else
18866  ac_c_werror_flag=$ac_save_c_werror_flag
18867	 CFLAGS="-g"
18868	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18869/* end confdefs.h.  */
18870
18871int
18872main ()
18873{
18874
18875  ;
18876  return 0;
18877}
18878_ACEOF
18879if ac_fn_c_try_compile "$LINENO"; then :
18880  ac_cv_prog_cc_g=yes
18881fi
18882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18883fi
18884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18885fi
18886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18887   ac_c_werror_flag=$ac_save_c_werror_flag
18888fi
18889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
18890$as_echo "$ac_cv_prog_cc_g" >&6; }
18891if test "$ac_test_CFLAGS" = set; then
18892  CFLAGS=$ac_save_CFLAGS
18893elif test $ac_cv_prog_cc_g = yes; then
18894  if test "$GCC" = yes; then
18895    CFLAGS="-g -O2"
18896  else
18897    CFLAGS="-g"
18898  fi
18899else
18900  if test "$GCC" = yes; then
18901    CFLAGS="-O2"
18902  else
18903    CFLAGS=
18904  fi
18905fi
18906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
18907$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
18908if ${ac_cv_prog_cc_c89+:} false; then :
18909  $as_echo_n "(cached) " >&6
18910else
18911  ac_cv_prog_cc_c89=no
18912ac_save_CC=$CC
18913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18914/* end confdefs.h.  */
18915#include <stdarg.h>
18916#include <stdio.h>
18917struct stat;
18918/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
18919struct buf { int x; };
18920FILE * (*rcsopen) (struct buf *, struct stat *, int);
18921static char *e (p, i)
18922     char **p;
18923     int i;
18924{
18925  return p[i];
18926}
18927static char *f (char * (*g) (char **, int), char **p, ...)
18928{
18929  char *s;
18930  va_list v;
18931  va_start (v,p);
18932  s = g (p, va_arg (v,int));
18933  va_end (v);
18934  return s;
18935}
18936
18937/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
18938   function prototypes and stuff, but not '\xHH' hex character constants.
18939   These don't provoke an error unfortunately, instead are silently treated
18940   as 'x'.  The following induces an error, until -std is added to get
18941   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
18942   array size at least.  It's necessary to write '\x00'==0 to get something
18943   that's true only with -std.  */
18944int osf4_cc_array ['\x00' == 0 ? 1 : -1];
18945
18946/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
18947   inside strings and character constants.  */
18948#define FOO(x) 'x'
18949int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
18950
18951int test (int i, double x);
18952struct s1 {int (*f) (int a);};
18953struct s2 {int (*f) (double a);};
18954int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18955int argc;
18956char **argv;
18957int
18958main ()
18959{
18960return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
18961  ;
18962  return 0;
18963}
18964_ACEOF
18965for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
18966	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18967do
18968  CC="$ac_save_CC $ac_arg"
18969  if ac_fn_c_try_compile "$LINENO"; then :
18970  ac_cv_prog_cc_c89=$ac_arg
18971fi
18972rm -f core conftest.err conftest.$ac_objext
18973  test "x$ac_cv_prog_cc_c89" != "xno" && break
18974done
18975rm -f conftest.$ac_ext
18976CC=$ac_save_CC
18977
18978fi
18979# AC_CACHE_VAL
18980case "x$ac_cv_prog_cc_c89" in
18981  x)
18982    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18983$as_echo "none needed" >&6; } ;;
18984  xno)
18985    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18986$as_echo "unsupported" >&6; } ;;
18987  *)
18988    CC="$CC $ac_cv_prog_cc_c89"
18989    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
18990$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
18991esac
18992if test "x$ac_cv_prog_cc_c89" != xno; then :
18993
18994fi
18995
18996ac_ext=c
18997ac_cpp='$CPP $CPPFLAGS'
18998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19000ac_compiler_gnu=$ac_cv_c_compiler_gnu
19001
19002ac_ext=c
19003ac_cpp='$CPP $CPPFLAGS'
19004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19006ac_compiler_gnu=$ac_cv_c_compiler_gnu
19007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
19008$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
19009if ${am_cv_prog_cc_c_o+:} false; then :
19010  $as_echo_n "(cached) " >&6
19011else
19012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19013/* end confdefs.h.  */
19014
19015int
19016main ()
19017{
19018
19019  ;
19020  return 0;
19021}
19022_ACEOF
19023  # Make sure it works both with $CC and with simple cc.
19024  # Following AC_PROG_CC_C_O, we do the test twice because some
19025  # compilers refuse to overwrite an existing .o file with -o,
19026  # though they will create one.
19027  am_cv_prog_cc_c_o=yes
19028  for am_i in 1 2; do
19029    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
19030   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
19031   ac_status=$?
19032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033   (exit $ac_status); } \
19034         && test -f conftest2.$ac_objext; then
19035      : OK
19036    else
19037      am_cv_prog_cc_c_o=no
19038      break
19039    fi
19040  done
19041  rm -f core conftest*
19042  unset am_i
19043fi
19044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
19045$as_echo "$am_cv_prog_cc_c_o" >&6; }
19046if test "$am_cv_prog_cc_c_o" != yes; then
19047   # Losing compiler, so override with the script.
19048   # FIXME: It is wrong to rewrite CC.
19049   # But if we don't then we get into trouble of one sort or another.
19050   # A longer-term fix would be to have automake use am__CC in this case,
19051   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19052   CC="$am_aux_dir/compile $CC"
19053fi
19054ac_ext=c
19055ac_cpp='$CPP $CPPFLAGS'
19056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19058ac_compiler_gnu=$ac_cv_c_compiler_gnu
19059
19060
19061depcc="$CC"   am_compiler_list=
19062
19063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
19064$as_echo_n "checking dependency style of $depcc... " >&6; }
19065if ${am_cv_CC_dependencies_compiler_type+:} false; then :
19066  $as_echo_n "(cached) " >&6
19067else
19068  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19069  # We make a subdir and do the tests there.  Otherwise we can end up
19070  # making bogus files that we don't know about and never remove.  For
19071  # instance it was reported that on HP-UX the gcc test will end up
19072  # making a dummy file named 'D' -- because '-MD' means "put the output
19073  # in D".
19074  rm -rf conftest.dir
19075  mkdir conftest.dir
19076  # Copy depcomp to subdir because otherwise we won't find it if we're
19077  # using a relative directory.
19078  cp "$am_depcomp" conftest.dir
19079  cd conftest.dir
19080  # We will build objects and dependencies in a subdirectory because
19081  # it helps to detect inapplicable dependency modes.  For instance
19082  # both Tru64's cc and ICC support -MD to output dependencies as a
19083  # side effect of compilation, but ICC will put the dependencies in
19084  # the current directory while Tru64 will put them in the object
19085  # directory.
19086  mkdir sub
19087
19088  am_cv_CC_dependencies_compiler_type=none
19089  if test "$am_compiler_list" = ""; then
19090     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19091  fi
19092  am__universal=false
19093  case " $depcc " in #(
19094     *\ -arch\ *\ -arch\ *) am__universal=true ;;
19095     esac
19096
19097  for depmode in $am_compiler_list; do
19098    # Setup a source with many dependencies, because some compilers
19099    # like to wrap large dependency lists on column 80 (with \), and
19100    # we should not choose a depcomp mode which is confused by this.
19101    #
19102    # We need to recreate these files for each test, as the compiler may
19103    # overwrite some of them when testing with obscure command lines.
19104    # This happens at least with the AIX C compiler.
19105    : > sub/conftest.c
19106    for i in 1 2 3 4 5 6; do
19107      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19108      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
19109      # Solaris 10 /bin/sh.
19110      echo '/* dummy */' > sub/conftst$i.h
19111    done
19112    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19113
19114    # We check with '-c' and '-o' for the sake of the "dashmstdout"
19115    # mode.  It turns out that the SunPro C++ compiler does not properly
19116    # handle '-M -o', and we need to detect this.  Also, some Intel
19117    # versions had trouble with output in subdirs.
19118    am__obj=sub/conftest.${OBJEXT-o}
19119    am__minus_obj="-o $am__obj"
19120    case $depmode in
19121    gcc)
19122      # This depmode causes a compiler race in universal mode.
19123      test "$am__universal" = false || continue
19124      ;;
19125    nosideeffect)
19126      # After this tag, mechanisms are not by side-effect, so they'll
19127      # only be used when explicitly requested.
19128      if test "x$enable_dependency_tracking" = xyes; then
19129	continue
19130      else
19131	break
19132      fi
19133      ;;
19134    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
19135      # This compiler won't grok '-c -o', but also, the minuso test has
19136      # not run yet.  These depmodes are late enough in the game, and
19137      # so weak that their functioning should not be impacted.
19138      am__obj=conftest.${OBJEXT-o}
19139      am__minus_obj=
19140      ;;
19141    none) break ;;
19142    esac
19143    if depmode=$depmode \
19144       source=sub/conftest.c object=$am__obj \
19145       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19146       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
19147         >/dev/null 2>conftest.err &&
19148       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19149       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19150       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
19151       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19152      # icc doesn't choke on unknown options, it will just issue warnings
19153      # or remarks (even with -Werror).  So we grep stderr for any message
19154      # that says an option was ignored or not supported.
19155      # When given -MP, icc 7.0 and 7.1 complain thusly:
19156      #   icc: Command line warning: ignoring option '-M'; no argument required
19157      # The diagnosis changed in icc 8.0:
19158      #   icc: Command line remark: option '-MP' not supported
19159      if (grep 'ignoring option' conftest.err ||
19160          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19161        am_cv_CC_dependencies_compiler_type=$depmode
19162        break
19163      fi
19164    fi
19165  done
19166
19167  cd ..
19168  rm -rf conftest.dir
19169else
19170  am_cv_CC_dependencies_compiler_type=none
19171fi
19172
19173fi
19174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
19175$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
19176CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19177
19178 if
19179  test "x$enable_dependency_tracking" != xno \
19180  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19181  am__fastdepCC_TRUE=
19182  am__fastdepCC_FALSE='#'
19183else
19184  am__fastdepCC_TRUE='#'
19185  am__fastdepCC_FALSE=
19186fi
19187
19188
19189
19190
19191
19192
19193# Check whether --with-xorg-module-dir was given.
19194if test "${with_xorg_module_dir+set}" = set; then :
19195  withval=$with_xorg_module_dir; moduledir="$withval"
19196else
19197  moduledir="$libdir/xorg/modules"
19198fi
19199
19200
19201# Checks for extensions
19202
19203
19204	SAVE_CFLAGS="$CFLAGS"
19205	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19206	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19207/* end confdefs.h.  */
19208
19209#include "xorg-server.h"
19210#if !defined RANDR
19211#error RANDR not defined
19212#endif
19213
19214int
19215main ()
19216{
19217
19218  ;
19219  return 0;
19220}
19221_ACEOF
19222if ac_fn_c_try_compile "$LINENO"; then :
19223  _EXT_CHECK=yes
19224else
19225  _EXT_CHECK=no
19226fi
19227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19228	CFLAGS="$SAVE_CFLAGS"
19229	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19230$as_echo_n "checking if RANDR is defined... " >&6; }
19231	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19232$as_echo "$_EXT_CHECK" >&6; }
19233	if test "$_EXT_CHECK" != no; then
19234		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19235	fi
19236
19237
19238
19239	SAVE_CFLAGS="$CFLAGS"
19240	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19241	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19242/* end confdefs.h.  */
19243
19244#include "xorg-server.h"
19245#if !defined RENDER
19246#error RENDER not defined
19247#endif
19248
19249int
19250main ()
19251{
19252
19253  ;
19254  return 0;
19255}
19256_ACEOF
19257if ac_fn_c_try_compile "$LINENO"; then :
19258  _EXT_CHECK=yes
19259else
19260  _EXT_CHECK=no
19261fi
19262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19263	CFLAGS="$SAVE_CFLAGS"
19264	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
19265$as_echo_n "checking if RENDER is defined... " >&6; }
19266	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19267$as_echo "$_EXT_CHECK" >&6; }
19268	if test "$_EXT_CHECK" != no; then
19269		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19270	fi
19271
19272
19273
19274	SAVE_CFLAGS="$CFLAGS"
19275	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19276	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19277/* end confdefs.h.  */
19278
19279#include "xorg-server.h"
19280#if !defined XV
19281#error XV not defined
19282#endif
19283
19284int
19285main ()
19286{
19287
19288  ;
19289  return 0;
19290}
19291_ACEOF
19292if ac_fn_c_try_compile "$LINENO"; then :
19293  _EXT_CHECK=yes
19294else
19295  _EXT_CHECK=no
19296fi
19297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19298	CFLAGS="$SAVE_CFLAGS"
19299	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
19300$as_echo_n "checking if XV is defined... " >&6; }
19301	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19302$as_echo "$_EXT_CHECK" >&6; }
19303	if test "$_EXT_CHECK" != no; then
19304		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
19305	fi
19306
19307
19308
19309	SAVE_CFLAGS="$CFLAGS"
19310	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19311	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19312/* end confdefs.h.  */
19313
19314#include "xorg-server.h"
19315#if !defined DPMSExtension
19316#error DPMSExtension not defined
19317#endif
19318
19319int
19320main ()
19321{
19322
19323  ;
19324  return 0;
19325}
19326_ACEOF
19327if ac_fn_c_try_compile "$LINENO"; then :
19328  _EXT_CHECK=yes
19329else
19330  _EXT_CHECK=no
19331fi
19332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19333	CFLAGS="$SAVE_CFLAGS"
19334	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
19335$as_echo_n "checking if DPMSExtension is defined... " >&6; }
19336	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19337$as_echo "$_EXT_CHECK" >&6; }
19338	if test "$_EXT_CHECK" != no; then
19339		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19340	fi
19341
19342
19343
19344	SAVE_CFLAGS="$CFLAGS"
19345	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19346	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19347/* end confdefs.h.  */
19348
19349#include "xorg-server.h"
19350#if !defined DRI2
19351#error DRI2 not defined
19352#endif
19353
19354int
19355main ()
19356{
19357
19358  ;
19359  return 0;
19360}
19361_ACEOF
19362if ac_fn_c_try_compile "$LINENO"; then :
19363  _EXT_CHECK=yes
19364else
19365  _EXT_CHECK=no
19366fi
19367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19368	CFLAGS="$SAVE_CFLAGS"
19369	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DRI2 is defined" >&5
19370$as_echo_n "checking if DRI2 is defined... " >&6; }
19371	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19372$as_echo "$_EXT_CHECK" >&6; }
19373	if test "$_EXT_CHECK" != no; then
19374		REQUIRED_MODULES="$REQUIRED_MODULES dri2proto >= 2.6"
19375	fi
19376
19377
19378# Checks for pkg-config packages
19379
19380pkg_failed=no
19381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
19382$as_echo_n "checking for LIBDRM... " >&6; }
19383
19384if test -n "$LIBDRM_CFLAGS"; then
19385    pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
19386 elif test -n "$PKG_CONFIG"; then
19387    if test -n "$PKG_CONFIG" && \
19388    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.60\""; } >&5
19389  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.60") 2>&5
19390  ac_status=$?
19391  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19392  test $ac_status = 0; }; then
19393  pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.60" 2>/dev/null`
19394		      test "x$?" != "x0" && pkg_failed=yes
19395else
19396  pkg_failed=yes
19397fi
19398 else
19399    pkg_failed=untried
19400fi
19401if test -n "$LIBDRM_LIBS"; then
19402    pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
19403 elif test -n "$PKG_CONFIG"; then
19404    if test -n "$PKG_CONFIG" && \
19405    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.60\""; } >&5
19406  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.60") 2>&5
19407  ac_status=$?
19408  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19409  test $ac_status = 0; }; then
19410  pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.60" 2>/dev/null`
19411		      test "x$?" != "x0" && pkg_failed=yes
19412else
19413  pkg_failed=yes
19414fi
19415 else
19416    pkg_failed=untried
19417fi
19418
19419
19420
19421if test $pkg_failed = yes; then
19422   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19423$as_echo "no" >&6; }
19424
19425if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19426        _pkg_short_errors_supported=yes
19427else
19428        _pkg_short_errors_supported=no
19429fi
19430        if test $_pkg_short_errors_supported = yes; then
19431	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.60" 2>&1`
19432        else
19433	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.60" 2>&1`
19434        fi
19435	# Put the nasty error message in config.log where it belongs
19436	echo "$LIBDRM_PKG_ERRORS" >&5
19437
19438	as_fn_error $? "Package requirements (libdrm >= 2.4.60) were not met:
19439
19440$LIBDRM_PKG_ERRORS
19441
19442Consider adjusting the PKG_CONFIG_PATH environment variable if you
19443installed software in a non-standard prefix.
19444
19445Alternatively, you may set the environment variables LIBDRM_CFLAGS
19446and LIBDRM_LIBS to avoid the need to call pkg-config.
19447See the pkg-config man page for more details." "$LINENO" 5
19448elif test $pkg_failed = untried; then
19449     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19450$as_echo "no" >&6; }
19451	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19453as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19454is in your PATH or set the PKG_CONFIG environment variable to the full
19455path to pkg-config.
19456
19457Alternatively, you may set the environment variables LIBDRM_CFLAGS
19458and LIBDRM_LIBS to avoid the need to call pkg-config.
19459See the pkg-config man page for more details.
19460
19461To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19462See \`config.log' for more details" "$LINENO" 5; }
19463else
19464	LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
19465	LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
19466        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19467$as_echo "yes" >&6; }
19468
19469fi
19470
19471pkg_failed=no
19472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM_NOUVEAU" >&5
19473$as_echo_n "checking for LIBDRM_NOUVEAU... " >&6; }
19474
19475if test -n "$LIBDRM_NOUVEAU_CFLAGS"; then
19476    pkg_cv_LIBDRM_NOUVEAU_CFLAGS="$LIBDRM_NOUVEAU_CFLAGS"
19477 elif test -n "$PKG_CONFIG"; then
19478    if test -n "$PKG_CONFIG" && \
19479    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_nouveau >= 2.4.25\""; } >&5
19480  ($PKG_CONFIG --exists --print-errors "libdrm_nouveau >= 2.4.25") 2>&5
19481  ac_status=$?
19482  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19483  test $ac_status = 0; }; then
19484  pkg_cv_LIBDRM_NOUVEAU_CFLAGS=`$PKG_CONFIG --cflags "libdrm_nouveau >= 2.4.25" 2>/dev/null`
19485		      test "x$?" != "x0" && pkg_failed=yes
19486else
19487  pkg_failed=yes
19488fi
19489 else
19490    pkg_failed=untried
19491fi
19492if test -n "$LIBDRM_NOUVEAU_LIBS"; then
19493    pkg_cv_LIBDRM_NOUVEAU_LIBS="$LIBDRM_NOUVEAU_LIBS"
19494 elif test -n "$PKG_CONFIG"; then
19495    if test -n "$PKG_CONFIG" && \
19496    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_nouveau >= 2.4.25\""; } >&5
19497  ($PKG_CONFIG --exists --print-errors "libdrm_nouveau >= 2.4.25") 2>&5
19498  ac_status=$?
19499  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19500  test $ac_status = 0; }; then
19501  pkg_cv_LIBDRM_NOUVEAU_LIBS=`$PKG_CONFIG --libs "libdrm_nouveau >= 2.4.25" 2>/dev/null`
19502		      test "x$?" != "x0" && pkg_failed=yes
19503else
19504  pkg_failed=yes
19505fi
19506 else
19507    pkg_failed=untried
19508fi
19509
19510
19511
19512if test $pkg_failed = yes; then
19513   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19514$as_echo "no" >&6; }
19515
19516if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19517        _pkg_short_errors_supported=yes
19518else
19519        _pkg_short_errors_supported=no
19520fi
19521        if test $_pkg_short_errors_supported = yes; then
19522	        LIBDRM_NOUVEAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_nouveau >= 2.4.25" 2>&1`
19523        else
19524	        LIBDRM_NOUVEAU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_nouveau >= 2.4.25" 2>&1`
19525        fi
19526	# Put the nasty error message in config.log where it belongs
19527	echo "$LIBDRM_NOUVEAU_PKG_ERRORS" >&5
19528
19529	as_fn_error $? "Package requirements (libdrm_nouveau >= 2.4.25) were not met:
19530
19531$LIBDRM_NOUVEAU_PKG_ERRORS
19532
19533Consider adjusting the PKG_CONFIG_PATH environment variable if you
19534installed software in a non-standard prefix.
19535
19536Alternatively, you may set the environment variables LIBDRM_NOUVEAU_CFLAGS
19537and LIBDRM_NOUVEAU_LIBS to avoid the need to call pkg-config.
19538See the pkg-config man page for more details." "$LINENO" 5
19539elif test $pkg_failed = untried; then
19540     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19541$as_echo "no" >&6; }
19542	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19543$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19544as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19545is in your PATH or set the PKG_CONFIG environment variable to the full
19546path to pkg-config.
19547
19548Alternatively, you may set the environment variables LIBDRM_NOUVEAU_CFLAGS
19549and LIBDRM_NOUVEAU_LIBS to avoid the need to call pkg-config.
19550See the pkg-config man page for more details.
19551
19552To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19553See \`config.log' for more details" "$LINENO" 5; }
19554else
19555	LIBDRM_NOUVEAU_CFLAGS=$pkg_cv_LIBDRM_NOUVEAU_CFLAGS
19556	LIBDRM_NOUVEAU_LIBS=$pkg_cv_LIBDRM_NOUVEAU_LIBS
19557        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19558$as_echo "yes" >&6; }
19559
19560fi
19561
19562
19563
19564
19565pkg_failed=no
19566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19567$as_echo_n "checking for XORG... " >&6; }
19568
19569if test -n "$XORG_CFLAGS"; then
19570    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19571 elif test -n "$PKG_CONFIG"; then
19572    if test -n "$PKG_CONFIG" && \
19573    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.8 xproto fontsproto libdrm \$REQUIRED_MODULES\""; } >&5
19574  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES") 2>&5
19575  ac_status=$?
19576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19577  test $ac_status = 0; }; then
19578  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES" 2>/dev/null`
19579		      test "x$?" != "x0" && pkg_failed=yes
19580else
19581  pkg_failed=yes
19582fi
19583 else
19584    pkg_failed=untried
19585fi
19586if test -n "$XORG_LIBS"; then
19587    pkg_cv_XORG_LIBS="$XORG_LIBS"
19588 elif test -n "$PKG_CONFIG"; then
19589    if test -n "$PKG_CONFIG" && \
19590    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.8 xproto fontsproto libdrm \$REQUIRED_MODULES\""; } >&5
19591  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES") 2>&5
19592  ac_status=$?
19593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19594  test $ac_status = 0; }; then
19595  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES" 2>/dev/null`
19596		      test "x$?" != "x0" && pkg_failed=yes
19597else
19598  pkg_failed=yes
19599fi
19600 else
19601    pkg_failed=untried
19602fi
19603
19604
19605
19606if test $pkg_failed = yes; then
19607   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19608$as_echo "no" >&6; }
19609
19610if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19611        _pkg_short_errors_supported=yes
19612else
19613        _pkg_short_errors_supported=no
19614fi
19615        if test $_pkg_short_errors_supported = yes; then
19616	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES" 2>&1`
19617        else
19618	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES" 2>&1`
19619        fi
19620	# Put the nasty error message in config.log where it belongs
19621	echo "$XORG_PKG_ERRORS" >&5
19622
19623	as_fn_error $? "Package requirements (xorg-server >= 1.8 xproto fontsproto libdrm $REQUIRED_MODULES) were not met:
19624
19625$XORG_PKG_ERRORS
19626
19627Consider adjusting the PKG_CONFIG_PATH environment variable if you
19628installed software in a non-standard prefix.
19629
19630Alternatively, you may set the environment variables XORG_CFLAGS
19631and XORG_LIBS to avoid the need to call pkg-config.
19632See the pkg-config man page for more details." "$LINENO" 5
19633elif test $pkg_failed = untried; then
19634     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19635$as_echo "no" >&6; }
19636	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19638as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19639is in your PATH or set the PKG_CONFIG environment variable to the full
19640path to pkg-config.
19641
19642Alternatively, you may set the environment variables XORG_CFLAGS
19643and XORG_LIBS to avoid the need to call pkg-config.
19644See the pkg-config man page for more details.
19645
19646To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19647See \`config.log' for more details" "$LINENO" 5; }
19648else
19649	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19650	XORG_LIBS=$pkg_cv_XORG_LIBS
19651        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19652$as_echo "yes" >&6; }
19653
19654fi
19655
19656pkg_failed=no
19657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
19658$as_echo_n "checking for XEXT... " >&6; }
19659
19660if test -n "$XEXT_CFLAGS"; then
19661    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
19662 elif test -n "$PKG_CONFIG"; then
19663    if test -n "$PKG_CONFIG" && \
19664    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19665  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19666  ac_status=$?
19667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19668  test $ac_status = 0; }; then
19669  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
19670		      test "x$?" != "x0" && pkg_failed=yes
19671else
19672  pkg_failed=yes
19673fi
19674 else
19675    pkg_failed=untried
19676fi
19677if test -n "$XEXT_LIBS"; then
19678    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
19679 elif test -n "$PKG_CONFIG"; then
19680    if test -n "$PKG_CONFIG" && \
19681    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19682  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19683  ac_status=$?
19684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19685  test $ac_status = 0; }; then
19686  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
19687		      test "x$?" != "x0" && pkg_failed=yes
19688else
19689  pkg_failed=yes
19690fi
19691 else
19692    pkg_failed=untried
19693fi
19694
19695
19696
19697if test $pkg_failed = yes; then
19698   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19699$as_echo "no" >&6; }
19700
19701if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19702        _pkg_short_errors_supported=yes
19703else
19704        _pkg_short_errors_supported=no
19705fi
19706        if test $_pkg_short_errors_supported = yes; then
19707	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19708        else
19709	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19710        fi
19711	# Put the nasty error message in config.log where it belongs
19712	echo "$XEXT_PKG_ERRORS" >&5
19713
19714	HAVE_XEXTPROTO_71="no"
19715elif test $pkg_failed = untried; then
19716     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19717$as_echo "no" >&6; }
19718	HAVE_XEXTPROTO_71="no"
19719else
19720	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
19721	XEXT_LIBS=$pkg_cv_XEXT_LIBS
19722        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19723$as_echo "yes" >&6; }
19724	HAVE_XEXTPROTO_71="yes";
19725$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
19726
19727fi
19728 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
19729  HAVE_XEXTPROTO_71_TRUE=
19730  HAVE_XEXTPROTO_71_FALSE='#'
19731else
19732  HAVE_XEXTPROTO_71_TRUE='#'
19733  HAVE_XEXTPROTO_71_FALSE=
19734fi
19735
19736sdkdir=$(pkg-config --variable=sdkdir xorg-server)
19737
19738# Checks for libraries.
19739
19740pkg_failed=no
19741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19742$as_echo_n "checking for PCIACCESS... " >&6; }
19743
19744if test -n "$PCIACCESS_CFLAGS"; then
19745    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19746 elif test -n "$PKG_CONFIG"; then
19747    if test -n "$PKG_CONFIG" && \
19748    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
19749  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
19750  ac_status=$?
19751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19752  test $ac_status = 0; }; then
19753  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
19754		      test "x$?" != "x0" && pkg_failed=yes
19755else
19756  pkg_failed=yes
19757fi
19758 else
19759    pkg_failed=untried
19760fi
19761if test -n "$PCIACCESS_LIBS"; then
19762    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19763 elif test -n "$PKG_CONFIG"; then
19764    if test -n "$PKG_CONFIG" && \
19765    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
19766  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
19767  ac_status=$?
19768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19769  test $ac_status = 0; }; then
19770  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
19771		      test "x$?" != "x0" && pkg_failed=yes
19772else
19773  pkg_failed=yes
19774fi
19775 else
19776    pkg_failed=untried
19777fi
19778
19779
19780
19781if test $pkg_failed = yes; then
19782   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19783$as_echo "no" >&6; }
19784
19785if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19786        _pkg_short_errors_supported=yes
19787else
19788        _pkg_short_errors_supported=no
19789fi
19790        if test $_pkg_short_errors_supported = yes; then
19791	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
19792        else
19793	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
19794        fi
19795	# Put the nasty error message in config.log where it belongs
19796	echo "$PCIACCESS_PKG_ERRORS" >&5
19797
19798	as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met:
19799
19800$PCIACCESS_PKG_ERRORS
19801
19802Consider adjusting the PKG_CONFIG_PATH environment variable if you
19803installed software in a non-standard prefix.
19804
19805Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19806and PCIACCESS_LIBS to avoid the need to call pkg-config.
19807See the pkg-config man page for more details." "$LINENO" 5
19808elif test $pkg_failed = untried; then
19809     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19810$as_echo "no" >&6; }
19811	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19812$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19813as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19814is in your PATH or set the PKG_CONFIG environment variable to the full
19815path to pkg-config.
19816
19817Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19818and PCIACCESS_LIBS to avoid the need to call pkg-config.
19819See the pkg-config man page for more details.
19820
19821To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19822See \`config.log' for more details" "$LINENO" 5; }
19823else
19824	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19825	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19826        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19827$as_echo "yes" >&6; }
19828
19829fi
19830
19831
19832pkg_failed=no
19833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
19834$as_echo_n "checking for LIBUDEV... " >&6; }
19835
19836if test -n "$LIBUDEV_CFLAGS"; then
19837    pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
19838 elif test -n "$PKG_CONFIG"; then
19839    if test -n "$PKG_CONFIG" && \
19840    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19841  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19842  ac_status=$?
19843  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19844  test $ac_status = 0; }; then
19845  pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
19846		      test "x$?" != "x0" && pkg_failed=yes
19847else
19848  pkg_failed=yes
19849fi
19850 else
19851    pkg_failed=untried
19852fi
19853if test -n "$LIBUDEV_LIBS"; then
19854    pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
19855 elif test -n "$PKG_CONFIG"; then
19856    if test -n "$PKG_CONFIG" && \
19857    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19858  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19859  ac_status=$?
19860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19861  test $ac_status = 0; }; then
19862  pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
19863		      test "x$?" != "x0" && pkg_failed=yes
19864else
19865  pkg_failed=yes
19866fi
19867 else
19868    pkg_failed=untried
19869fi
19870
19871
19872
19873if test $pkg_failed = yes; then
19874   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19875$as_echo "no" >&6; }
19876
19877if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19878        _pkg_short_errors_supported=yes
19879else
19880        _pkg_short_errors_supported=no
19881fi
19882        if test $_pkg_short_errors_supported = yes; then
19883	        LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
19884        else
19885	        LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
19886        fi
19887	# Put the nasty error message in config.log where it belongs
19888	echo "$LIBUDEV_PKG_ERRORS" >&5
19889
19890	LIBUDEV=no
19891elif test $pkg_failed = untried; then
19892     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19893$as_echo "no" >&6; }
19894	LIBUDEV=no
19895else
19896	LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
19897	LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
19898        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19899$as_echo "yes" >&6; }
19900	LIBUDEV=yes
19901fi
19902if test "x$LIBUDEV" = xyes; then
19903
19904$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
19905
19906fi
19907 if  test "x$LIBUDEV" = "xyes"  ; then
19908  LIBUDEV_TRUE=
19909  LIBUDEV_FALSE='#'
19910else
19911  LIBUDEV_TRUE='#'
19912  LIBUDEV_FALSE=
19913fi
19914
19915
19916
19917
19918# Checks for header files.
19919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19920$as_echo_n "checking for ANSI C header files... " >&6; }
19921if ${ac_cv_header_stdc+:} false; then :
19922  $as_echo_n "(cached) " >&6
19923else
19924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19925/* end confdefs.h.  */
19926#include <stdlib.h>
19927#include <stdarg.h>
19928#include <string.h>
19929#include <float.h>
19930
19931int
19932main ()
19933{
19934
19935  ;
19936  return 0;
19937}
19938_ACEOF
19939if ac_fn_c_try_compile "$LINENO"; then :
19940  ac_cv_header_stdc=yes
19941else
19942  ac_cv_header_stdc=no
19943fi
19944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19945
19946if test $ac_cv_header_stdc = yes; then
19947  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19949/* end confdefs.h.  */
19950#include <string.h>
19951
19952_ACEOF
19953if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19954  $EGREP "memchr" >/dev/null 2>&1; then :
19955
19956else
19957  ac_cv_header_stdc=no
19958fi
19959rm -f conftest*
19960
19961fi
19962
19963if test $ac_cv_header_stdc = yes; then
19964  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19966/* end confdefs.h.  */
19967#include <stdlib.h>
19968
19969_ACEOF
19970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19971  $EGREP "free" >/dev/null 2>&1; then :
19972
19973else
19974  ac_cv_header_stdc=no
19975fi
19976rm -f conftest*
19977
19978fi
19979
19980if test $ac_cv_header_stdc = yes; then
19981  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19982  if test "$cross_compiling" = yes; then :
19983  :
19984else
19985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19986/* end confdefs.h.  */
19987#include <ctype.h>
19988#include <stdlib.h>
19989#if ((' ' & 0x0FF) == 0x020)
19990# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19991# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19992#else
19993# define ISLOWER(c) \
19994		   (('a' <= (c) && (c) <= 'i') \
19995		     || ('j' <= (c) && (c) <= 'r') \
19996		     || ('s' <= (c) && (c) <= 'z'))
19997# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19998#endif
19999
20000#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20001int
20002main ()
20003{
20004  int i;
20005  for (i = 0; i < 256; i++)
20006    if (XOR (islower (i), ISLOWER (i))
20007	|| toupper (i) != TOUPPER (i))
20008      return 2;
20009  return 0;
20010}
20011_ACEOF
20012if ac_fn_c_try_run "$LINENO"; then :
20013
20014else
20015  ac_cv_header_stdc=no
20016fi
20017rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20018  conftest.$ac_objext conftest.beam conftest.$ac_ext
20019fi
20020
20021fi
20022fi
20023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20024$as_echo "$ac_cv_header_stdc" >&6; }
20025if test $ac_cv_header_stdc = yes; then
20026
20027$as_echo "#define STDC_HEADERS 1" >>confdefs.h
20028
20029fi
20030
20031
20032# Use -Wall all the time
20033CFLAGS="$CFLAGS -Wall"
20034
20035# Check for -minline-all-stringops availabtility
20036OLD_CFLAGS="$CFLAGS"
20037CFLAGS="$CFLAGS -minline-all-stringops"
20038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20039/* end confdefs.h.  */
20040 #include <stdio.h>
20041int
20042main ()
20043{
20044
20045  ;
20046  return 0;
20047}
20048_ACEOF
20049if ac_fn_c_try_compile "$LINENO"; then :
20050   CFLAGS="$OLD_CFLAGS -minline-all-stringops"
20051else
20052  CFLAGS="$OLD_CFLAGS"
20053fi
20054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20055
20056# needed for the next test
20057CFLAGS="$CFLAGS $XORG_CFLAGS"
20058
20059
20060
20061
20062DRIVER_NAME=nouveau
20063
20064
20065
20066
20067
20068
20069if test x$APP_MAN_SUFFIX = x    ; then
20070    APP_MAN_SUFFIX=1
20071fi
20072if test x$APP_MAN_DIR = x    ; then
20073    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20074fi
20075
20076if test x$LIB_MAN_SUFFIX = x    ; then
20077    LIB_MAN_SUFFIX=3
20078fi
20079if test x$LIB_MAN_DIR = x    ; then
20080    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20081fi
20082
20083if test x$FILE_MAN_SUFFIX = x    ; then
20084    case $host_os in
20085	solaris*)	FILE_MAN_SUFFIX=4  ;;
20086	*)		FILE_MAN_SUFFIX=5  ;;
20087    esac
20088fi
20089if test x$FILE_MAN_DIR = x    ; then
20090    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20091fi
20092
20093if test x$MISC_MAN_SUFFIX = x    ; then
20094    case $host_os in
20095	solaris*)	MISC_MAN_SUFFIX=5  ;;
20096	*)		MISC_MAN_SUFFIX=7  ;;
20097    esac
20098fi
20099if test x$MISC_MAN_DIR = x    ; then
20100    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20101fi
20102
20103if test x$DRIVER_MAN_SUFFIX = x    ; then
20104    case $host_os in
20105	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
20106	*)		DRIVER_MAN_SUFFIX=4  ;;
20107    esac
20108fi
20109if test x$DRIVER_MAN_DIR = x    ; then
20110    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20111fi
20112
20113if test x$ADMIN_MAN_SUFFIX = x    ; then
20114    case $host_os in
20115	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
20116	*)		ADMIN_MAN_SUFFIX=8  ;;
20117    esac
20118fi
20119if test x$ADMIN_MAN_DIR = x    ; then
20120    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20121fi
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137XORG_MAN_PAGE="X Version 11"
20138
20139MAN_SUBSTS="\
20140	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20141	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20142	-e 's|__xservername__|Xorg|g' \
20143	-e 's|__xconfigfile__|xorg.conf|g' \
20144	-e 's|__projectroot__|\$(prefix)|g' \
20145	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
20146	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
20147	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
20148	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
20149	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
20150	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
20151	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
20152
20153
20154
20155
20156
20157cat >>confdefs.h <<_ACEOF
20158#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20159_ACEOF
20160
20161	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20162	if test "x$PVM" = "x"; then
20163		PVM="0"
20164	fi
20165
20166cat >>confdefs.h <<_ACEOF
20167#define PACKAGE_VERSION_MINOR $PVM
20168_ACEOF
20169
20170	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20171	if test "x$PVP" = "x"; then
20172		PVP="0"
20173	fi
20174
20175cat >>confdefs.h <<_ACEOF
20176#define PACKAGE_VERSION_PATCHLEVEL $PVP
20177_ACEOF
20178
20179
20180
20181for ac_header in list.h
20182do :
20183  ac_fn_c_check_header_compile "$LINENO" "list.h" "ac_cv_header_list_h" "#include <X11/Xdefs.h>
20184                  #include \"xorg-server.h\"
20185"
20186if test "x$ac_cv_header_list_h" = xyes; then :
20187  cat >>confdefs.h <<_ACEOF
20188#define HAVE_LIST_H 1
20189_ACEOF
20190 have_list_h="yes"
20191else
20192  have_list_h="no"
20193fi
20194
20195done
20196
20197
20198if test "x$have_list_h" = xyes; then
20199    ac_fn_c_check_decl "$LINENO" "xorg_list_init" "ac_cv_have_decl_xorg_list_init" "#include <X11/Xdefs.h>
20200                   #include \"xorg-server.h\"
20201                   #include \"list.h\"
20202"
20203if test "x$ac_cv_have_decl_xorg_list_init" = xyes; then :
20204
20205$as_echo "#define HAVE_XORG_LIST 1" >>confdefs.h
20206
20207fi
20208
20209fi
20210
20211ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
20212
20213cat >confcache <<\_ACEOF
20214# This file is a shell script that caches the results of configure
20215# tests run on this system so they can be shared between configure
20216# scripts and configure runs, see configure's option --config-cache.
20217# It is not useful on other systems.  If it contains results you don't
20218# want to keep, you may remove or edit it.
20219#
20220# config.status only pays attention to the cache file if you give it
20221# the --recheck option to rerun configure.
20222#
20223# `ac_cv_env_foo' variables (set or unset) will be overridden when
20224# loading this file, other *unset* `ac_cv_foo' will be assigned the
20225# following values.
20226
20227_ACEOF
20228
20229# The following way of writing the cache mishandles newlines in values,
20230# but we know of no workaround that is simple, portable, and efficient.
20231# So, we kill variables containing newlines.
20232# Ultrix sh set writes to stderr and can't be redirected directly,
20233# and sets the high bit in the cache file unless we assign to the vars.
20234(
20235  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20236    eval ac_val=\$$ac_var
20237    case $ac_val in #(
20238    *${as_nl}*)
20239      case $ac_var in #(
20240      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20241$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20242      esac
20243      case $ac_var in #(
20244      _ | IFS | as_nl) ;; #(
20245      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20246      *) { eval $ac_var=; unset $ac_var;} ;;
20247      esac ;;
20248    esac
20249  done
20250
20251  (set) 2>&1 |
20252    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20253    *${as_nl}ac_space=\ *)
20254      # `set' does not quote correctly, so add quotes: double-quote
20255      # substitution turns \\\\ into \\, and sed turns \\ into \.
20256      sed -n \
20257	"s/'/'\\\\''/g;
20258	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20259      ;; #(
20260    *)
20261      # `set' quotes correctly as required by POSIX, so do not add quotes.
20262      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20263      ;;
20264    esac |
20265    sort
20266) |
20267  sed '
20268     /^ac_cv_env_/b end
20269     t clear
20270     :clear
20271     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20272     t end
20273     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20274     :end' >>confcache
20275if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20276  if test -w "$cache_file"; then
20277    if test "x$cache_file" != "x/dev/null"; then
20278      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20279$as_echo "$as_me: updating cache $cache_file" >&6;}
20280      if test ! -f "$cache_file" || test -h "$cache_file"; then
20281	cat confcache >"$cache_file"
20282      else
20283        case $cache_file in #(
20284        */* | ?:*)
20285	  mv -f confcache "$cache_file"$$ &&
20286	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20287        *)
20288	  mv -f confcache "$cache_file" ;;
20289	esac
20290      fi
20291    fi
20292  else
20293    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20294$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20295  fi
20296fi
20297rm -f confcache
20298
20299test "x$prefix" = xNONE && prefix=$ac_default_prefix
20300# Let make expand exec_prefix.
20301test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20302
20303DEFS=-DHAVE_CONFIG_H
20304
20305ac_libobjs=
20306ac_ltlibobjs=
20307U=
20308for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20309  # 1. Remove the extension, and $U if already installed.
20310  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20311  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20312  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20313  #    will be set to the directory where LIBOBJS objects are built.
20314  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20315  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20316done
20317LIBOBJS=$ac_libobjs
20318
20319LTLIBOBJS=$ac_ltlibobjs
20320
20321
20322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20323$as_echo_n "checking that generated files are newer than configure... " >&6; }
20324   if test -n "$am_sleep_pid"; then
20325     # Hide warnings about reused PIDs.
20326     wait $am_sleep_pid 2>/dev/null
20327   fi
20328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20329$as_echo "done" >&6; }
20330 if test -n "$EXEEXT"; then
20331  am__EXEEXT_TRUE=
20332  am__EXEEXT_FALSE='#'
20333else
20334  am__EXEEXT_TRUE='#'
20335  am__EXEEXT_FALSE=
20336fi
20337
20338if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20339  as_fn_error $? "conditional \"AMDEP\" was never defined.
20340Usually this means the macro was only invoked conditionally." "$LINENO" 5
20341fi
20342if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20343  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20344Usually this means the macro was only invoked conditionally." "$LINENO" 5
20345fi
20346if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20347  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20348Usually this means the macro was only invoked conditionally." "$LINENO" 5
20349fi
20350if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
20351  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
20352Usually this means the macro was only invoked conditionally." "$LINENO" 5
20353fi
20354if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then
20355  as_fn_error $? "conditional \"LIBUDEV\" was never defined.
20356Usually this means the macro was only invoked conditionally." "$LINENO" 5
20357fi
20358
20359: "${CONFIG_STATUS=./config.status}"
20360ac_write_fail=0
20361ac_clean_files_save=$ac_clean_files
20362ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20363{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20364$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20365as_write_fail=0
20366cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20367#! $SHELL
20368# Generated by $as_me.
20369# Run this file to recreate the current configuration.
20370# Compiler output produced by configure, useful for debugging
20371# configure, is in config.log if it exists.
20372
20373debug=false
20374ac_cs_recheck=false
20375ac_cs_silent=false
20376
20377SHELL=\${CONFIG_SHELL-$SHELL}
20378export SHELL
20379_ASEOF
20380cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20381## -------------------- ##
20382## M4sh Initialization. ##
20383## -------------------- ##
20384
20385# Be more Bourne compatible
20386DUALCASE=1; export DUALCASE # for MKS sh
20387if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20388  emulate sh
20389  NULLCMD=:
20390  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20391  # is contrary to our usage.  Disable this feature.
20392  alias -g '${1+"$@"}'='"$@"'
20393  setopt NO_GLOB_SUBST
20394else
20395  case `(set -o) 2>/dev/null` in #(
20396  *posix*) :
20397    set -o posix ;; #(
20398  *) :
20399     ;;
20400esac
20401fi
20402
20403
20404as_nl='
20405'
20406export as_nl
20407# Printing a long string crashes Solaris 7 /usr/bin/printf.
20408as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20409as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20410as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20411# Prefer a ksh shell builtin over an external printf program on Solaris,
20412# but without wasting forks for bash or zsh.
20413if test -z "$BASH_VERSION$ZSH_VERSION" \
20414    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20415  as_echo='print -r --'
20416  as_echo_n='print -rn --'
20417elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20418  as_echo='printf %s\n'
20419  as_echo_n='printf %s'
20420else
20421  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20422    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20423    as_echo_n='/usr/ucb/echo -n'
20424  else
20425    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20426    as_echo_n_body='eval
20427      arg=$1;
20428      case $arg in #(
20429      *"$as_nl"*)
20430	expr "X$arg" : "X\\(.*\\)$as_nl";
20431	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20432      esac;
20433      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20434    '
20435    export as_echo_n_body
20436    as_echo_n='sh -c $as_echo_n_body as_echo'
20437  fi
20438  export as_echo_body
20439  as_echo='sh -c $as_echo_body as_echo'
20440fi
20441
20442# The user is always right.
20443if test "${PATH_SEPARATOR+set}" != set; then
20444  PATH_SEPARATOR=:
20445  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20446    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20447      PATH_SEPARATOR=';'
20448  }
20449fi
20450
20451
20452# IFS
20453# We need space, tab and new line, in precisely that order.  Quoting is
20454# there to prevent editors from complaining about space-tab.
20455# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20456# splitting by setting IFS to empty value.)
20457IFS=" ""	$as_nl"
20458
20459# Find who we are.  Look in the path if we contain no directory separator.
20460as_myself=
20461case $0 in #((
20462  *[\\/]* ) as_myself=$0 ;;
20463  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20464for as_dir in $PATH
20465do
20466  IFS=$as_save_IFS
20467  test -z "$as_dir" && as_dir=.
20468    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20469  done
20470IFS=$as_save_IFS
20471
20472     ;;
20473esac
20474# We did not find ourselves, most probably we were run as `sh COMMAND'
20475# in which case we are not to be found in the path.
20476if test "x$as_myself" = x; then
20477  as_myself=$0
20478fi
20479if test ! -f "$as_myself"; then
20480  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20481  exit 1
20482fi
20483
20484# Unset variables that we do not need and which cause bugs (e.g. in
20485# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20486# suppresses any "Segmentation fault" message there.  '((' could
20487# trigger a bug in pdksh 5.2.14.
20488for as_var in BASH_ENV ENV MAIL MAILPATH
20489do eval test x\${$as_var+set} = xset \
20490  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20491done
20492PS1='$ '
20493PS2='> '
20494PS4='+ '
20495
20496# NLS nuisances.
20497LC_ALL=C
20498export LC_ALL
20499LANGUAGE=C
20500export LANGUAGE
20501
20502# CDPATH.
20503(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20504
20505
20506# as_fn_error STATUS ERROR [LINENO LOG_FD]
20507# ----------------------------------------
20508# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20509# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20510# script with STATUS, using 1 if that was 0.
20511as_fn_error ()
20512{
20513  as_status=$1; test $as_status -eq 0 && as_status=1
20514  if test "$4"; then
20515    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20516    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20517  fi
20518  $as_echo "$as_me: error: $2" >&2
20519  as_fn_exit $as_status
20520} # as_fn_error
20521
20522
20523# as_fn_set_status STATUS
20524# -----------------------
20525# Set $? to STATUS, without forking.
20526as_fn_set_status ()
20527{
20528  return $1
20529} # as_fn_set_status
20530
20531# as_fn_exit STATUS
20532# -----------------
20533# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20534as_fn_exit ()
20535{
20536  set +e
20537  as_fn_set_status $1
20538  exit $1
20539} # as_fn_exit
20540
20541# as_fn_unset VAR
20542# ---------------
20543# Portably unset VAR.
20544as_fn_unset ()
20545{
20546  { eval $1=; unset $1;}
20547}
20548as_unset=as_fn_unset
20549# as_fn_append VAR VALUE
20550# ----------------------
20551# Append the text in VALUE to the end of the definition contained in VAR. Take
20552# advantage of any shell optimizations that allow amortized linear growth over
20553# repeated appends, instead of the typical quadratic growth present in naive
20554# implementations.
20555if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20556  eval 'as_fn_append ()
20557  {
20558    eval $1+=\$2
20559  }'
20560else
20561  as_fn_append ()
20562  {
20563    eval $1=\$$1\$2
20564  }
20565fi # as_fn_append
20566
20567# as_fn_arith ARG...
20568# ------------------
20569# Perform arithmetic evaluation on the ARGs, and store the result in the
20570# global $as_val. Take advantage of shells that can avoid forks. The arguments
20571# must be portable across $(()) and expr.
20572if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20573  eval 'as_fn_arith ()
20574  {
20575    as_val=$(( $* ))
20576  }'
20577else
20578  as_fn_arith ()
20579  {
20580    as_val=`expr "$@" || test $? -eq 1`
20581  }
20582fi # as_fn_arith
20583
20584
20585if expr a : '\(a\)' >/dev/null 2>&1 &&
20586   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20587  as_expr=expr
20588else
20589  as_expr=false
20590fi
20591
20592if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20593  as_basename=basename
20594else
20595  as_basename=false
20596fi
20597
20598if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20599  as_dirname=dirname
20600else
20601  as_dirname=false
20602fi
20603
20604as_me=`$as_basename -- "$0" ||
20605$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20606	 X"$0" : 'X\(//\)$' \| \
20607	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20608$as_echo X/"$0" |
20609    sed '/^.*\/\([^/][^/]*\)\/*$/{
20610	    s//\1/
20611	    q
20612	  }
20613	  /^X\/\(\/\/\)$/{
20614	    s//\1/
20615	    q
20616	  }
20617	  /^X\/\(\/\).*/{
20618	    s//\1/
20619	    q
20620	  }
20621	  s/.*/./; q'`
20622
20623# Avoid depending upon Character Ranges.
20624as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20625as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20626as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20627as_cr_digits='0123456789'
20628as_cr_alnum=$as_cr_Letters$as_cr_digits
20629
20630ECHO_C= ECHO_N= ECHO_T=
20631case `echo -n x` in #(((((
20632-n*)
20633  case `echo 'xy\c'` in
20634  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20635  xy)  ECHO_C='\c';;
20636  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20637       ECHO_T='	';;
20638  esac;;
20639*)
20640  ECHO_N='-n';;
20641esac
20642
20643rm -f conf$$ conf$$.exe conf$$.file
20644if test -d conf$$.dir; then
20645  rm -f conf$$.dir/conf$$.file
20646else
20647  rm -f conf$$.dir
20648  mkdir conf$$.dir 2>/dev/null
20649fi
20650if (echo >conf$$.file) 2>/dev/null; then
20651  if ln -s conf$$.file conf$$ 2>/dev/null; then
20652    as_ln_s='ln -s'
20653    # ... but there are two gotchas:
20654    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20655    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20656    # In both cases, we have to default to `cp -pR'.
20657    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20658      as_ln_s='cp -pR'
20659  elif ln conf$$.file conf$$ 2>/dev/null; then
20660    as_ln_s=ln
20661  else
20662    as_ln_s='cp -pR'
20663  fi
20664else
20665  as_ln_s='cp -pR'
20666fi
20667rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20668rmdir conf$$.dir 2>/dev/null
20669
20670
20671# as_fn_mkdir_p
20672# -------------
20673# Create "$as_dir" as a directory, including parents if necessary.
20674as_fn_mkdir_p ()
20675{
20676
20677  case $as_dir in #(
20678  -*) as_dir=./$as_dir;;
20679  esac
20680  test -d "$as_dir" || eval $as_mkdir_p || {
20681    as_dirs=
20682    while :; do
20683      case $as_dir in #(
20684      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20685      *) as_qdir=$as_dir;;
20686      esac
20687      as_dirs="'$as_qdir' $as_dirs"
20688      as_dir=`$as_dirname -- "$as_dir" ||
20689$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20690	 X"$as_dir" : 'X\(//\)[^/]' \| \
20691	 X"$as_dir" : 'X\(//\)$' \| \
20692	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20693$as_echo X"$as_dir" |
20694    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20695	    s//\1/
20696	    q
20697	  }
20698	  /^X\(\/\/\)[^/].*/{
20699	    s//\1/
20700	    q
20701	  }
20702	  /^X\(\/\/\)$/{
20703	    s//\1/
20704	    q
20705	  }
20706	  /^X\(\/\).*/{
20707	    s//\1/
20708	    q
20709	  }
20710	  s/.*/./; q'`
20711      test -d "$as_dir" && break
20712    done
20713    test -z "$as_dirs" || eval "mkdir $as_dirs"
20714  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20715
20716
20717} # as_fn_mkdir_p
20718if mkdir -p . 2>/dev/null; then
20719  as_mkdir_p='mkdir -p "$as_dir"'
20720else
20721  test -d ./-p && rmdir ./-p
20722  as_mkdir_p=false
20723fi
20724
20725
20726# as_fn_executable_p FILE
20727# -----------------------
20728# Test if FILE is an executable regular file.
20729as_fn_executable_p ()
20730{
20731  test -f "$1" && test -x "$1"
20732} # as_fn_executable_p
20733as_test_x='test -x'
20734as_executable_p=as_fn_executable_p
20735
20736# Sed expression to map a string onto a valid CPP name.
20737as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20738
20739# Sed expression to map a string onto a valid variable name.
20740as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20741
20742
20743exec 6>&1
20744## ----------------------------------- ##
20745## Main body of $CONFIG_STATUS script. ##
20746## ----------------------------------- ##
20747_ASEOF
20748test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20749
20750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20751# Save the log message, to keep $0 and so on meaningful, and to
20752# report actual input values of CONFIG_FILES etc. instead of their
20753# values after options handling.
20754ac_log="
20755This file was extended by xf86-video-nouveau $as_me 1.0.13, which was
20756generated by GNU Autoconf 2.69.  Invocation command line was
20757
20758  CONFIG_FILES    = $CONFIG_FILES
20759  CONFIG_HEADERS  = $CONFIG_HEADERS
20760  CONFIG_LINKS    = $CONFIG_LINKS
20761  CONFIG_COMMANDS = $CONFIG_COMMANDS
20762  $ $0 $@
20763
20764on `(hostname || uname -n) 2>/dev/null | sed 1q`
20765"
20766
20767_ACEOF
20768
20769case $ac_config_files in *"
20770"*) set x $ac_config_files; shift; ac_config_files=$*;;
20771esac
20772
20773case $ac_config_headers in *"
20774"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20775esac
20776
20777
20778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20779# Files that config.status was made for.
20780config_files="$ac_config_files"
20781config_headers="$ac_config_headers"
20782config_commands="$ac_config_commands"
20783
20784_ACEOF
20785
20786cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20787ac_cs_usage="\
20788\`$as_me' instantiates files and other configuration actions
20789from templates according to the current configuration.  Unless the files
20790and actions are specified as TAGs, all are instantiated by default.
20791
20792Usage: $0 [OPTION]... [TAG]...
20793
20794  -h, --help       print this help, then exit
20795  -V, --version    print version number and configuration settings, then exit
20796      --config     print configuration, then exit
20797  -q, --quiet, --silent
20798                   do not print progress messages
20799  -d, --debug      don't remove temporary files
20800      --recheck    update $as_me by reconfiguring in the same conditions
20801      --file=FILE[:TEMPLATE]
20802                   instantiate the configuration file FILE
20803      --header=FILE[:TEMPLATE]
20804                   instantiate the configuration header FILE
20805
20806Configuration files:
20807$config_files
20808
20809Configuration headers:
20810$config_headers
20811
20812Configuration commands:
20813$config_commands
20814
20815Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
20816
20817_ACEOF
20818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20819ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20820ac_cs_version="\\
20821xf86-video-nouveau config.status 1.0.13
20822configured by $0, generated by GNU Autoconf 2.69,
20823  with options \\"\$ac_cs_config\\"
20824
20825Copyright (C) 2012 Free Software Foundation, Inc.
20826This config.status script is free software; the Free Software Foundation
20827gives unlimited permission to copy, distribute and modify it."
20828
20829ac_pwd='$ac_pwd'
20830srcdir='$srcdir'
20831INSTALL='$INSTALL'
20832MKDIR_P='$MKDIR_P'
20833AWK='$AWK'
20834test -n "\$AWK" || AWK=awk
20835_ACEOF
20836
20837cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20838# The default lists apply if the user does not specify any file.
20839ac_need_defaults=:
20840while test $# != 0
20841do
20842  case $1 in
20843  --*=?*)
20844    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20845    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20846    ac_shift=:
20847    ;;
20848  --*=)
20849    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20850    ac_optarg=
20851    ac_shift=:
20852    ;;
20853  *)
20854    ac_option=$1
20855    ac_optarg=$2
20856    ac_shift=shift
20857    ;;
20858  esac
20859
20860  case $ac_option in
20861  # Handling of the options.
20862  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20863    ac_cs_recheck=: ;;
20864  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20865    $as_echo "$ac_cs_version"; exit ;;
20866  --config | --confi | --conf | --con | --co | --c )
20867    $as_echo "$ac_cs_config"; exit ;;
20868  --debug | --debu | --deb | --de | --d | -d )
20869    debug=: ;;
20870  --file | --fil | --fi | --f )
20871    $ac_shift
20872    case $ac_optarg in
20873    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20874    '') as_fn_error $? "missing file argument" ;;
20875    esac
20876    as_fn_append CONFIG_FILES " '$ac_optarg'"
20877    ac_need_defaults=false;;
20878  --header | --heade | --head | --hea )
20879    $ac_shift
20880    case $ac_optarg in
20881    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20882    esac
20883    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20884    ac_need_defaults=false;;
20885  --he | --h)
20886    # Conflict between --help and --header
20887    as_fn_error $? "ambiguous option: \`$1'
20888Try \`$0 --help' for more information.";;
20889  --help | --hel | -h )
20890    $as_echo "$ac_cs_usage"; exit ;;
20891  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20892  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20893    ac_cs_silent=: ;;
20894
20895  # This is an error.
20896  -*) as_fn_error $? "unrecognized option: \`$1'
20897Try \`$0 --help' for more information." ;;
20898
20899  *) as_fn_append ac_config_targets " $1"
20900     ac_need_defaults=false ;;
20901
20902  esac
20903  shift
20904done
20905
20906ac_configure_extra_args=
20907
20908if $ac_cs_silent; then
20909  exec 6>/dev/null
20910  ac_configure_extra_args="$ac_configure_extra_args --silent"
20911fi
20912
20913_ACEOF
20914cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20915if \$ac_cs_recheck; then
20916  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20917  shift
20918  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20919  CONFIG_SHELL='$SHELL'
20920  export CONFIG_SHELL
20921  exec "\$@"
20922fi
20923
20924_ACEOF
20925cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20926exec 5>>config.log
20927{
20928  echo
20929  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20930## Running $as_me. ##
20931_ASBOX
20932  $as_echo "$ac_log"
20933} >&5
20934
20935_ACEOF
20936cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20937#
20938# INIT-COMMANDS
20939#
20940AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20941
20942
20943# The HP-UX ksh and POSIX shell print the target directory to stdout
20944# if CDPATH is set.
20945(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20946
20947sed_quote_subst='$sed_quote_subst'
20948double_quote_subst='$double_quote_subst'
20949delay_variable_subst='$delay_variable_subst'
20950enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20951macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20952macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20953enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20954pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20955enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20956shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20957SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20958ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20959PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20960host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20961host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20962host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20963build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20964build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20965build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20966SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20967Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20968GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20969EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20970FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20971LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20972NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20973LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20974max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20975ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20976exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20977lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20978lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20979lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20980lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20981lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20982reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20983reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20984OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20985deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20986file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20987file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20988want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20989DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20990sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20991AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20992AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20993archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20994STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20995RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20996old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20997old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20998old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20999lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21000CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21001CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21002compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21003GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21004lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21005lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21006lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21007lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21008lt_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"`'
21009lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21010nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21011lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21012lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21013objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21014MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21015lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21016lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21017lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21018lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21019lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21020need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21021MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21022DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21023NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21024LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21025OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21026OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21027libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21028shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21029extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21030archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21031enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21032export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21033whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21034compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21035old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21036old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21037archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21038archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21039module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21040module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21041with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21042allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21043no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21044hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21045hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21046hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21047hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21048hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21049hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21050hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21051inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21052link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21053always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21054export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21055exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21056include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21057prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21058postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21059file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21060variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21061need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21062need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21063version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21064runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21065shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21066shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21067libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21068library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21069soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21070install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21071postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21072postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21073finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21074finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21075hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21076sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21077configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21078configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21079hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21080enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21081enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21082enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21083old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21084striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21085
21086LTCC='$LTCC'
21087LTCFLAGS='$LTCFLAGS'
21088compiler='$compiler_DEFAULT'
21089
21090# A function that is used when there is no print builtin or printf.
21091func_fallback_echo ()
21092{
21093  eval 'cat <<_LTECHO_EOF
21094\$1
21095_LTECHO_EOF'
21096}
21097
21098# Quote evaled strings.
21099for var in SHELL \
21100ECHO \
21101PATH_SEPARATOR \
21102SED \
21103GREP \
21104EGREP \
21105FGREP \
21106LD \
21107NM \
21108LN_S \
21109lt_SP2NL \
21110lt_NL2SP \
21111reload_flag \
21112OBJDUMP \
21113deplibs_check_method \
21114file_magic_cmd \
21115file_magic_glob \
21116want_nocaseglob \
21117DLLTOOL \
21118sharedlib_from_linklib_cmd \
21119AR \
21120AR_FLAGS \
21121archiver_list_spec \
21122STRIP \
21123RANLIB \
21124CC \
21125CFLAGS \
21126compiler \
21127lt_cv_sys_global_symbol_pipe \
21128lt_cv_sys_global_symbol_to_cdecl \
21129lt_cv_sys_global_symbol_to_import \
21130lt_cv_sys_global_symbol_to_c_name_address \
21131lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21132lt_cv_nm_interface \
21133nm_file_list_spec \
21134lt_cv_truncate_bin \
21135lt_prog_compiler_no_builtin_flag \
21136lt_prog_compiler_pic \
21137lt_prog_compiler_wl \
21138lt_prog_compiler_static \
21139lt_cv_prog_compiler_c_o \
21140need_locks \
21141MANIFEST_TOOL \
21142DSYMUTIL \
21143NMEDIT \
21144LIPO \
21145OTOOL \
21146OTOOL64 \
21147shrext_cmds \
21148export_dynamic_flag_spec \
21149whole_archive_flag_spec \
21150compiler_needs_object \
21151with_gnu_ld \
21152allow_undefined_flag \
21153no_undefined_flag \
21154hardcode_libdir_flag_spec \
21155hardcode_libdir_separator \
21156exclude_expsyms \
21157include_expsyms \
21158file_list_spec \
21159variables_saved_for_relink \
21160libname_spec \
21161library_names_spec \
21162soname_spec \
21163install_override_mode \
21164finish_eval \
21165old_striplib \
21166striplib; do
21167    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21168    *[\\\\\\\`\\"\\\$]*)
21169      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21170      ;;
21171    *)
21172      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21173      ;;
21174    esac
21175done
21176
21177# Double-quote double-evaled strings.
21178for var in reload_cmds \
21179old_postinstall_cmds \
21180old_postuninstall_cmds \
21181old_archive_cmds \
21182extract_expsyms_cmds \
21183old_archive_from_new_cmds \
21184old_archive_from_expsyms_cmds \
21185archive_cmds \
21186archive_expsym_cmds \
21187module_cmds \
21188module_expsym_cmds \
21189export_symbols_cmds \
21190prelink_cmds \
21191postlink_cmds \
21192postinstall_cmds \
21193postuninstall_cmds \
21194finish_cmds \
21195sys_lib_search_path_spec \
21196configure_time_dlsearch_path \
21197configure_time_lt_sys_library_path; do
21198    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21199    *[\\\\\\\`\\"\\\$]*)
21200      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21201      ;;
21202    *)
21203      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21204      ;;
21205    esac
21206done
21207
21208ac_aux_dir='$ac_aux_dir'
21209
21210# See if we are running on zsh, and set the options that allow our
21211# commands through without removal of \ escapes INIT.
21212if test -n "\${ZSH_VERSION+set}"; then
21213   setopt NO_GLOB_SUBST
21214fi
21215
21216
21217    PACKAGE='$PACKAGE'
21218    VERSION='$VERSION'
21219    RM='$RM'
21220    ofile='$ofile'
21221
21222
21223
21224
21225_ACEOF
21226
21227cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21228
21229# Handling of arguments.
21230for ac_config_target in $ac_config_targets
21231do
21232  case $ac_config_target in
21233    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21234    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21235    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21236    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21237    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21238    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21239
21240  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21241  esac
21242done
21243
21244
21245# If the user did not use the arguments to specify the items to instantiate,
21246# then the envvar interface is used.  Set only those that are not.
21247# We use the long form for the default assignment because of an extremely
21248# bizarre bug on SunOS 4.1.3.
21249if $ac_need_defaults; then
21250  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21251  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21252  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21253fi
21254
21255# Have a temporary directory for convenience.  Make it in the build tree
21256# simply because there is no reason against having it here, and in addition,
21257# creating and moving files from /tmp can sometimes cause problems.
21258# Hook for its removal unless debugging.
21259# Note that there is a small window in which the directory will not be cleaned:
21260# after its creation but before its name has been assigned to `$tmp'.
21261$debug ||
21262{
21263  tmp= ac_tmp=
21264  trap 'exit_status=$?
21265  : "${ac_tmp:=$tmp}"
21266  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21267' 0
21268  trap 'as_fn_exit 1' 1 2 13 15
21269}
21270# Create a (secure) tmp directory for tmp files.
21271
21272{
21273  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21274  test -d "$tmp"
21275}  ||
21276{
21277  tmp=./conf$$-$RANDOM
21278  (umask 077 && mkdir "$tmp")
21279} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21280ac_tmp=$tmp
21281
21282# Set up the scripts for CONFIG_FILES section.
21283# No need to generate them if there are no CONFIG_FILES.
21284# This happens for instance with `./config.status config.h'.
21285if test -n "$CONFIG_FILES"; then
21286
21287
21288ac_cr=`echo X | tr X '\015'`
21289# On cygwin, bash can eat \r inside `` if the user requested igncr.
21290# But we know of no other shell where ac_cr would be empty at this
21291# point, so we can use a bashism as a fallback.
21292if test "x$ac_cr" = x; then
21293  eval ac_cr=\$\'\\r\'
21294fi
21295ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21296if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21297  ac_cs_awk_cr='\\r'
21298else
21299  ac_cs_awk_cr=$ac_cr
21300fi
21301
21302echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21303_ACEOF
21304
21305
21306{
21307  echo "cat >conf$$subs.awk <<_ACEOF" &&
21308  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21309  echo "_ACEOF"
21310} >conf$$subs.sh ||
21311  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21312ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21313ac_delim='%!_!# '
21314for ac_last_try in false false false false false :; do
21315  . ./conf$$subs.sh ||
21316    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21317
21318  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21319  if test $ac_delim_n = $ac_delim_num; then
21320    break
21321  elif $ac_last_try; then
21322    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21323  else
21324    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21325  fi
21326done
21327rm -f conf$$subs.sh
21328
21329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21330cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21331_ACEOF
21332sed -n '
21333h
21334s/^/S["/; s/!.*/"]=/
21335p
21336g
21337s/^[^!]*!//
21338:repl
21339t repl
21340s/'"$ac_delim"'$//
21341t delim
21342:nl
21343h
21344s/\(.\{148\}\)..*/\1/
21345t more1
21346s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21347p
21348n
21349b repl
21350:more1
21351s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21352p
21353g
21354s/.\{148\}//
21355t nl
21356:delim
21357h
21358s/\(.\{148\}\)..*/\1/
21359t more2
21360s/["\\]/\\&/g; s/^/"/; s/$/"/
21361p
21362b
21363:more2
21364s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21365p
21366g
21367s/.\{148\}//
21368t delim
21369' <conf$$subs.awk | sed '
21370/^[^""]/{
21371  N
21372  s/\n//
21373}
21374' >>$CONFIG_STATUS || ac_write_fail=1
21375rm -f conf$$subs.awk
21376cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21377_ACAWK
21378cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21379  for (key in S) S_is_set[key] = 1
21380  FS = ""
21381
21382}
21383{
21384  line = $ 0
21385  nfields = split(line, field, "@")
21386  substed = 0
21387  len = length(field[1])
21388  for (i = 2; i < nfields; i++) {
21389    key = field[i]
21390    keylen = length(key)
21391    if (S_is_set[key]) {
21392      value = S[key]
21393      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21394      len += length(value) + length(field[++i])
21395      substed = 1
21396    } else
21397      len += 1 + keylen
21398  }
21399
21400  print line
21401}
21402
21403_ACAWK
21404_ACEOF
21405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21406if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21407  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21408else
21409  cat
21410fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21411  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21412_ACEOF
21413
21414# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21415# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21416# trailing colons and then remove the whole line if VPATH becomes empty
21417# (actually we leave an empty line to preserve line numbers).
21418if test "x$srcdir" = x.; then
21419  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21420h
21421s///
21422s/^/:/
21423s/[	 ]*$/:/
21424s/:\$(srcdir):/:/g
21425s/:\${srcdir}:/:/g
21426s/:@srcdir@:/:/g
21427s/^:*//
21428s/:*$//
21429x
21430s/\(=[	 ]*\).*/\1/
21431G
21432s/\n//
21433s/^[^=]*=[	 ]*$//
21434}'
21435fi
21436
21437cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21438fi # test -n "$CONFIG_FILES"
21439
21440# Set up the scripts for CONFIG_HEADERS section.
21441# No need to generate them if there are no CONFIG_HEADERS.
21442# This happens for instance with `./config.status Makefile'.
21443if test -n "$CONFIG_HEADERS"; then
21444cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21445BEGIN {
21446_ACEOF
21447
21448# Transform confdefs.h into an awk script `defines.awk', embedded as
21449# here-document in config.status, that substitutes the proper values into
21450# config.h.in to produce config.h.
21451
21452# Create a delimiter string that does not exist in confdefs.h, to ease
21453# handling of long lines.
21454ac_delim='%!_!# '
21455for ac_last_try in false false :; do
21456  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21457  if test -z "$ac_tt"; then
21458    break
21459  elif $ac_last_try; then
21460    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21461  else
21462    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21463  fi
21464done
21465
21466# For the awk script, D is an array of macro values keyed by name,
21467# likewise P contains macro parameters if any.  Preserve backslash
21468# newline sequences.
21469
21470ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21471sed -n '
21472s/.\{148\}/&'"$ac_delim"'/g
21473t rset
21474:rset
21475s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21476t def
21477d
21478:def
21479s/\\$//
21480t bsnl
21481s/["\\]/\\&/g
21482s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21483D["\1"]=" \3"/p
21484s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21485d
21486:bsnl
21487s/["\\]/\\&/g
21488s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21489D["\1"]=" \3\\\\\\n"\\/p
21490t cont
21491s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21492t cont
21493d
21494:cont
21495n
21496s/.\{148\}/&'"$ac_delim"'/g
21497t clear
21498:clear
21499s/\\$//
21500t bsnlc
21501s/["\\]/\\&/g; s/^/"/; s/$/"/p
21502d
21503:bsnlc
21504s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21505b cont
21506' <confdefs.h | sed '
21507s/'"$ac_delim"'/"\\\
21508"/g' >>$CONFIG_STATUS || ac_write_fail=1
21509
21510cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21511  for (key in D) D_is_set[key] = 1
21512  FS = ""
21513}
21514/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21515  line = \$ 0
21516  split(line, arg, " ")
21517  if (arg[1] == "#") {
21518    defundef = arg[2]
21519    mac1 = arg[3]
21520  } else {
21521    defundef = substr(arg[1], 2)
21522    mac1 = arg[2]
21523  }
21524  split(mac1, mac2, "(") #)
21525  macro = mac2[1]
21526  prefix = substr(line, 1, index(line, defundef) - 1)
21527  if (D_is_set[macro]) {
21528    # Preserve the white space surrounding the "#".
21529    print prefix "define", macro P[macro] D[macro]
21530    next
21531  } else {
21532    # Replace #undef with comments.  This is necessary, for example,
21533    # in the case of _POSIX_SOURCE, which is predefined and required
21534    # on some systems where configure will not decide to define it.
21535    if (defundef == "undef") {
21536      print "/*", prefix defundef, macro, "*/"
21537      next
21538    }
21539  }
21540}
21541{ print }
21542_ACAWK
21543_ACEOF
21544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21545  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21546fi # test -n "$CONFIG_HEADERS"
21547
21548
21549eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21550shift
21551for ac_tag
21552do
21553  case $ac_tag in
21554  :[FHLC]) ac_mode=$ac_tag; continue;;
21555  esac
21556  case $ac_mode$ac_tag in
21557  :[FHL]*:*);;
21558  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21559  :[FH]-) ac_tag=-:-;;
21560  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21561  esac
21562  ac_save_IFS=$IFS
21563  IFS=:
21564  set x $ac_tag
21565  IFS=$ac_save_IFS
21566  shift
21567  ac_file=$1
21568  shift
21569
21570  case $ac_mode in
21571  :L) ac_source=$1;;
21572  :[FH])
21573    ac_file_inputs=
21574    for ac_f
21575    do
21576      case $ac_f in
21577      -) ac_f="$ac_tmp/stdin";;
21578      *) # Look for the file first in the build tree, then in the source tree
21579	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21580	 # because $ac_f cannot contain `:'.
21581	 test -f "$ac_f" ||
21582	   case $ac_f in
21583	   [\\/$]*) false;;
21584	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21585	   esac ||
21586	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21587      esac
21588      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21589      as_fn_append ac_file_inputs " '$ac_f'"
21590    done
21591
21592    # Let's still pretend it is `configure' which instantiates (i.e., don't
21593    # use $as_me), people would be surprised to read:
21594    #    /* config.h.  Generated by config.status.  */
21595    configure_input='Generated from '`
21596	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21597	`' by configure.'
21598    if test x"$ac_file" != x-; then
21599      configure_input="$ac_file.  $configure_input"
21600      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21601$as_echo "$as_me: creating $ac_file" >&6;}
21602    fi
21603    # Neutralize special characters interpreted by sed in replacement strings.
21604    case $configure_input in #(
21605    *\&* | *\|* | *\\* )
21606       ac_sed_conf_input=`$as_echo "$configure_input" |
21607       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21608    *) ac_sed_conf_input=$configure_input;;
21609    esac
21610
21611    case $ac_tag in
21612    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21613      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21614    esac
21615    ;;
21616  esac
21617
21618  ac_dir=`$as_dirname -- "$ac_file" ||
21619$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21620	 X"$ac_file" : 'X\(//\)[^/]' \| \
21621	 X"$ac_file" : 'X\(//\)$' \| \
21622	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21623$as_echo X"$ac_file" |
21624    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21625	    s//\1/
21626	    q
21627	  }
21628	  /^X\(\/\/\)[^/].*/{
21629	    s//\1/
21630	    q
21631	  }
21632	  /^X\(\/\/\)$/{
21633	    s//\1/
21634	    q
21635	  }
21636	  /^X\(\/\).*/{
21637	    s//\1/
21638	    q
21639	  }
21640	  s/.*/./; q'`
21641  as_dir="$ac_dir"; as_fn_mkdir_p
21642  ac_builddir=.
21643
21644case "$ac_dir" in
21645.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21646*)
21647  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21648  # A ".." for each directory in $ac_dir_suffix.
21649  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21650  case $ac_top_builddir_sub in
21651  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21652  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21653  esac ;;
21654esac
21655ac_abs_top_builddir=$ac_pwd
21656ac_abs_builddir=$ac_pwd$ac_dir_suffix
21657# for backward compatibility:
21658ac_top_builddir=$ac_top_build_prefix
21659
21660case $srcdir in
21661  .)  # We are building in place.
21662    ac_srcdir=.
21663    ac_top_srcdir=$ac_top_builddir_sub
21664    ac_abs_top_srcdir=$ac_pwd ;;
21665  [\\/]* | ?:[\\/]* )  # Absolute name.
21666    ac_srcdir=$srcdir$ac_dir_suffix;
21667    ac_top_srcdir=$srcdir
21668    ac_abs_top_srcdir=$srcdir ;;
21669  *) # Relative name.
21670    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21671    ac_top_srcdir=$ac_top_build_prefix$srcdir
21672    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21673esac
21674ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21675
21676
21677  case $ac_mode in
21678  :F)
21679  #
21680  # CONFIG_FILE
21681  #
21682
21683  case $INSTALL in
21684  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21685  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21686  esac
21687  ac_MKDIR_P=$MKDIR_P
21688  case $MKDIR_P in
21689  [\\/$]* | ?:[\\/]* ) ;;
21690  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21691  esac
21692_ACEOF
21693
21694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21695# If the template does not know about datarootdir, expand it.
21696# FIXME: This hack should be removed a few years after 2.60.
21697ac_datarootdir_hack=; ac_datarootdir_seen=
21698ac_sed_dataroot='
21699/datarootdir/ {
21700  p
21701  q
21702}
21703/@datadir@/p
21704/@docdir@/p
21705/@infodir@/p
21706/@localedir@/p
21707/@mandir@/p'
21708case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21709*datarootdir*) ac_datarootdir_seen=yes;;
21710*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21711  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21712$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21713_ACEOF
21714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21715  ac_datarootdir_hack='
21716  s&@datadir@&$datadir&g
21717  s&@docdir@&$docdir&g
21718  s&@infodir@&$infodir&g
21719  s&@localedir@&$localedir&g
21720  s&@mandir@&$mandir&g
21721  s&\\\${datarootdir}&$datarootdir&g' ;;
21722esac
21723_ACEOF
21724
21725# Neutralize VPATH when `$srcdir' = `.'.
21726# Shell code in configure.ac might set extrasub.
21727# FIXME: do we really want to maintain this feature?
21728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21729ac_sed_extra="$ac_vpsub
21730$extrasub
21731_ACEOF
21732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21733:t
21734/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21735s|@configure_input@|$ac_sed_conf_input|;t t
21736s&@top_builddir@&$ac_top_builddir_sub&;t t
21737s&@top_build_prefix@&$ac_top_build_prefix&;t t
21738s&@srcdir@&$ac_srcdir&;t t
21739s&@abs_srcdir@&$ac_abs_srcdir&;t t
21740s&@top_srcdir@&$ac_top_srcdir&;t t
21741s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21742s&@builddir@&$ac_builddir&;t t
21743s&@abs_builddir@&$ac_abs_builddir&;t t
21744s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21745s&@INSTALL@&$ac_INSTALL&;t t
21746s&@MKDIR_P@&$ac_MKDIR_P&;t t
21747$ac_datarootdir_hack
21748"
21749eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21750  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21751
21752test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21753  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21754  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21755      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21756  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21757which seems to be undefined.  Please make sure it is defined" >&5
21758$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21759which seems to be undefined.  Please make sure it is defined" >&2;}
21760
21761  rm -f "$ac_tmp/stdin"
21762  case $ac_file in
21763  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21764  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21765  esac \
21766  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21767 ;;
21768  :H)
21769  #
21770  # CONFIG_HEADER
21771  #
21772  if test x"$ac_file" != x-; then
21773    {
21774      $as_echo "/* $configure_input  */" \
21775      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21776    } >"$ac_tmp/config.h" \
21777      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21778    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21779      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21780$as_echo "$as_me: $ac_file is unchanged" >&6;}
21781    else
21782      rm -f "$ac_file"
21783      mv "$ac_tmp/config.h" "$ac_file" \
21784	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21785    fi
21786  else
21787    $as_echo "/* $configure_input  */" \
21788      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21789      || as_fn_error $? "could not create -" "$LINENO" 5
21790  fi
21791# Compute "$ac_file"'s index in $config_headers.
21792_am_arg="$ac_file"
21793_am_stamp_count=1
21794for _am_header in $config_headers :; do
21795  case $_am_header in
21796    $_am_arg | $_am_arg:* )
21797      break ;;
21798    * )
21799      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21800  esac
21801done
21802echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21803$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21804	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21805	 X"$_am_arg" : 'X\(//\)$' \| \
21806	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21807$as_echo X"$_am_arg" |
21808    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21809	    s//\1/
21810	    q
21811	  }
21812	  /^X\(\/\/\)[^/].*/{
21813	    s//\1/
21814	    q
21815	  }
21816	  /^X\(\/\/\)$/{
21817	    s//\1/
21818	    q
21819	  }
21820	  /^X\(\/\).*/{
21821	    s//\1/
21822	    q
21823	  }
21824	  s/.*/./; q'`/stamp-h$_am_stamp_count
21825 ;;
21826
21827  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21828$as_echo "$as_me: executing $ac_file commands" >&6;}
21829 ;;
21830  esac
21831
21832
21833  case $ac_file$ac_mode in
21834    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21835  # Older Autoconf quotes --file arguments for eval, but not when files
21836  # are listed without --file.  Let's play safe and only enable the eval
21837  # if we detect the quoting.
21838  case $CONFIG_FILES in
21839  *\'*) eval set x "$CONFIG_FILES" ;;
21840  *)   set x $CONFIG_FILES ;;
21841  esac
21842  shift
21843  for mf
21844  do
21845    # Strip MF so we end up with the name of the file.
21846    mf=`echo "$mf" | sed -e 's/:.*$//'`
21847    # Check whether this is an Automake generated Makefile or not.
21848    # We used to match only the files named 'Makefile.in', but
21849    # some people rename them; so instead we look at the file content.
21850    # Grep'ing the first line is not enough: some people post-process
21851    # each Makefile.in and add a new line on top of each file to say so.
21852    # Grep'ing the whole file is not good either: AIX grep has a line
21853    # limit of 2048, but all sed's we know have understand at least 4000.
21854    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21855      dirpart=`$as_dirname -- "$mf" ||
21856$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21857	 X"$mf" : 'X\(//\)[^/]' \| \
21858	 X"$mf" : 'X\(//\)$' \| \
21859	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21860$as_echo X"$mf" |
21861    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21862	    s//\1/
21863	    q
21864	  }
21865	  /^X\(\/\/\)[^/].*/{
21866	    s//\1/
21867	    q
21868	  }
21869	  /^X\(\/\/\)$/{
21870	    s//\1/
21871	    q
21872	  }
21873	  /^X\(\/\).*/{
21874	    s//\1/
21875	    q
21876	  }
21877	  s/.*/./; q'`
21878    else
21879      continue
21880    fi
21881    # Extract the definition of DEPDIR, am__include, and am__quote
21882    # from the Makefile without running 'make'.
21883    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21884    test -z "$DEPDIR" && continue
21885    am__include=`sed -n 's/^am__include = //p' < "$mf"`
21886    test -z "$am__include" && continue
21887    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21888    # Find all dependency output files, they are included files with
21889    # $(DEPDIR) in their names.  We invoke sed twice because it is the
21890    # simplest approach to changing $(DEPDIR) to its actual value in the
21891    # expansion.
21892    for file in `sed -n "
21893      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21894	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21895      # Make sure the directory exists.
21896      test -f "$dirpart/$file" && continue
21897      fdir=`$as_dirname -- "$file" ||
21898$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21899	 X"$file" : 'X\(//\)[^/]' \| \
21900	 X"$file" : 'X\(//\)$' \| \
21901	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21902$as_echo X"$file" |
21903    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21904	    s//\1/
21905	    q
21906	  }
21907	  /^X\(\/\/\)[^/].*/{
21908	    s//\1/
21909	    q
21910	  }
21911	  /^X\(\/\/\)$/{
21912	    s//\1/
21913	    q
21914	  }
21915	  /^X\(\/\).*/{
21916	    s//\1/
21917	    q
21918	  }
21919	  s/.*/./; q'`
21920      as_dir=$dirpart/$fdir; as_fn_mkdir_p
21921      # echo "creating $dirpart/$file"
21922      echo '# dummy' > "$dirpart/$file"
21923    done
21924  done
21925}
21926 ;;
21927    "libtool":C)
21928
21929    # See if we are running on zsh, and set the options that allow our
21930    # commands through without removal of \ escapes.
21931    if test -n "${ZSH_VERSION+set}"; then
21932      setopt NO_GLOB_SUBST
21933    fi
21934
21935    cfgfile=${ofile}T
21936    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21937    $RM "$cfgfile"
21938
21939    cat <<_LT_EOF >> "$cfgfile"
21940#! $SHELL
21941# Generated automatically by $as_me ($PACKAGE) $VERSION
21942# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21943# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21944
21945# Provide generalized library-building support services.
21946# Written by Gordon Matzigkeit, 1996
21947
21948# Copyright (C) 2014 Free Software Foundation, Inc.
21949# This is free software; see the source for copying conditions.  There is NO
21950# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21951
21952# GNU Libtool is free software; you can redistribute it and/or modify
21953# it under the terms of the GNU General Public License as published by
21954# the Free Software Foundation; either version 2 of of the License, or
21955# (at your option) any later version.
21956#
21957# As a special exception to the GNU General Public License, if you
21958# distribute this file as part of a program or library that is built
21959# using GNU Libtool, you may include this file under the  same
21960# distribution terms that you use for the rest of that program.
21961#
21962# GNU Libtool is distributed in the hope that it will be useful, but
21963# WITHOUT ANY WARRANTY; without even the implied warranty of
21964# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21965# GNU General Public License for more details.
21966#
21967# You should have received a copy of the GNU General Public License
21968# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21969
21970
21971# The names of the tagged configurations supported by this script.
21972available_tags=''
21973
21974# Configured defaults for sys_lib_dlsearch_path munging.
21975: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21976
21977# ### BEGIN LIBTOOL CONFIG
21978
21979# Whether or not to build static libraries.
21980build_old_libs=$enable_static
21981
21982# Which release of libtool.m4 was used?
21983macro_version=$macro_version
21984macro_revision=$macro_revision
21985
21986# Whether or not to build shared libraries.
21987build_libtool_libs=$enable_shared
21988
21989# What type of objects to build.
21990pic_mode=$pic_mode
21991
21992# Whether or not to optimize for fast installation.
21993fast_install=$enable_fast_install
21994
21995# Shared archive member basename,for filename based shared library versioning on AIX.
21996shared_archive_member_spec=$shared_archive_member_spec
21997
21998# Shell to use when invoking shell scripts.
21999SHELL=$lt_SHELL
22000
22001# An echo program that protects backslashes.
22002ECHO=$lt_ECHO
22003
22004# The PATH separator for the build system.
22005PATH_SEPARATOR=$lt_PATH_SEPARATOR
22006
22007# The host system.
22008host_alias=$host_alias
22009host=$host
22010host_os=$host_os
22011
22012# The build system.
22013build_alias=$build_alias
22014build=$build
22015build_os=$build_os
22016
22017# A sed program that does not truncate output.
22018SED=$lt_SED
22019
22020# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22021Xsed="\$SED -e 1s/^X//"
22022
22023# A grep program that handles long lines.
22024GREP=$lt_GREP
22025
22026# An ERE matcher.
22027EGREP=$lt_EGREP
22028
22029# A literal string matcher.
22030FGREP=$lt_FGREP
22031
22032# A BSD- or MS-compatible name lister.
22033NM=$lt_NM
22034
22035# Whether we need soft or hard links.
22036LN_S=$lt_LN_S
22037
22038# What is the maximum length of a command?
22039max_cmd_len=$max_cmd_len
22040
22041# Object file suffix (normally "o").
22042objext=$ac_objext
22043
22044# Executable file suffix (normally "").
22045exeext=$exeext
22046
22047# whether the shell understands "unset".
22048lt_unset=$lt_unset
22049
22050# turn spaces into newlines.
22051SP2NL=$lt_lt_SP2NL
22052
22053# turn newlines into spaces.
22054NL2SP=$lt_lt_NL2SP
22055
22056# convert \$build file names to \$host format.
22057to_host_file_cmd=$lt_cv_to_host_file_cmd
22058
22059# convert \$build files to toolchain format.
22060to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22061
22062# An object symbol dumper.
22063OBJDUMP=$lt_OBJDUMP
22064
22065# Method to check whether dependent libraries are shared objects.
22066deplibs_check_method=$lt_deplibs_check_method
22067
22068# Command to use when deplibs_check_method = "file_magic".
22069file_magic_cmd=$lt_file_magic_cmd
22070
22071# How to find potential files when deplibs_check_method = "file_magic".
22072file_magic_glob=$lt_file_magic_glob
22073
22074# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22075want_nocaseglob=$lt_want_nocaseglob
22076
22077# DLL creation program.
22078DLLTOOL=$lt_DLLTOOL
22079
22080# Command to associate shared and link libraries.
22081sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22082
22083# The archiver.
22084AR=$lt_AR
22085
22086# Flags to create an archive.
22087AR_FLAGS=$lt_AR_FLAGS
22088
22089# How to feed a file listing to the archiver.
22090archiver_list_spec=$lt_archiver_list_spec
22091
22092# A symbol stripping program.
22093STRIP=$lt_STRIP
22094
22095# Commands used to install an old-style archive.
22096RANLIB=$lt_RANLIB
22097old_postinstall_cmds=$lt_old_postinstall_cmds
22098old_postuninstall_cmds=$lt_old_postuninstall_cmds
22099
22100# Whether to use a lock for old archive extraction.
22101lock_old_archive_extraction=$lock_old_archive_extraction
22102
22103# A C compiler.
22104LTCC=$lt_CC
22105
22106# LTCC compiler flags.
22107LTCFLAGS=$lt_CFLAGS
22108
22109# Take the output of nm and produce a listing of raw symbols and C names.
22110global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22111
22112# Transform the output of nm in a proper C declaration.
22113global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22114
22115# Transform the output of nm into a list of symbols to manually relocate.
22116global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22117
22118# Transform the output of nm in a C name address pair.
22119global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22120
22121# Transform the output of nm in a C name address pair when lib prefix is needed.
22122global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22123
22124# The name lister interface.
22125nm_interface=$lt_lt_cv_nm_interface
22126
22127# Specify filename containing input files for \$NM.
22128nm_file_list_spec=$lt_nm_file_list_spec
22129
22130# The root where to search for dependent libraries,and where our libraries should be installed.
22131lt_sysroot=$lt_sysroot
22132
22133# Command to truncate a binary pipe.
22134lt_truncate_bin=$lt_lt_cv_truncate_bin
22135
22136# The name of the directory that contains temporary libtool files.
22137objdir=$objdir
22138
22139# Used to examine libraries when file_magic_cmd begins with "file".
22140MAGIC_CMD=$MAGIC_CMD
22141
22142# Must we lock files when doing compilation?
22143need_locks=$lt_need_locks
22144
22145# Manifest tool.
22146MANIFEST_TOOL=$lt_MANIFEST_TOOL
22147
22148# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22149DSYMUTIL=$lt_DSYMUTIL
22150
22151# Tool to change global to local symbols on Mac OS X.
22152NMEDIT=$lt_NMEDIT
22153
22154# Tool to manipulate fat objects and archives on Mac OS X.
22155LIPO=$lt_LIPO
22156
22157# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22158OTOOL=$lt_OTOOL
22159
22160# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22161OTOOL64=$lt_OTOOL64
22162
22163# Old archive suffix (normally "a").
22164libext=$libext
22165
22166# Shared library suffix (normally ".so").
22167shrext_cmds=$lt_shrext_cmds
22168
22169# The commands to extract the exported symbol list from a shared archive.
22170extract_expsyms_cmds=$lt_extract_expsyms_cmds
22171
22172# Variables whose values should be saved in libtool wrapper scripts and
22173# restored at link time.
22174variables_saved_for_relink=$lt_variables_saved_for_relink
22175
22176# Do we need the "lib" prefix for modules?
22177need_lib_prefix=$need_lib_prefix
22178
22179# Do we need a version for libraries?
22180need_version=$need_version
22181
22182# Library versioning type.
22183version_type=$version_type
22184
22185# Shared library runtime path variable.
22186runpath_var=$runpath_var
22187
22188# Shared library path variable.
22189shlibpath_var=$shlibpath_var
22190
22191# Is shlibpath searched before the hard-coded library search path?
22192shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22193
22194# Format of library name prefix.
22195libname_spec=$lt_libname_spec
22196
22197# List of archive names.  First name is the real one, the rest are links.
22198# The last name is the one that the linker finds with -lNAME
22199library_names_spec=$lt_library_names_spec
22200
22201# The coded name of the library, if different from the real name.
22202soname_spec=$lt_soname_spec
22203
22204# Permission mode override for installation of shared libraries.
22205install_override_mode=$lt_install_override_mode
22206
22207# Command to use after installation of a shared archive.
22208postinstall_cmds=$lt_postinstall_cmds
22209
22210# Command to use after uninstallation of a shared archive.
22211postuninstall_cmds=$lt_postuninstall_cmds
22212
22213# Commands used to finish a libtool library installation in a directory.
22214finish_cmds=$lt_finish_cmds
22215
22216# As "finish_cmds", except a single script fragment to be evaled but
22217# not shown.
22218finish_eval=$lt_finish_eval
22219
22220# Whether we should hardcode library paths into libraries.
22221hardcode_into_libs=$hardcode_into_libs
22222
22223# Compile-time system search path for libraries.
22224sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22225
22226# Detected run-time system search path for libraries.
22227sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22228
22229# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22230configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22231
22232# Whether dlopen is supported.
22233dlopen_support=$enable_dlopen
22234
22235# Whether dlopen of programs is supported.
22236dlopen_self=$enable_dlopen_self
22237
22238# Whether dlopen of statically linked programs is supported.
22239dlopen_self_static=$enable_dlopen_self_static
22240
22241# Commands to strip libraries.
22242old_striplib=$lt_old_striplib
22243striplib=$lt_striplib
22244
22245
22246# The linker used to build libraries.
22247LD=$lt_LD
22248
22249# How to create reloadable object files.
22250reload_flag=$lt_reload_flag
22251reload_cmds=$lt_reload_cmds
22252
22253# Commands used to build an old-style archive.
22254old_archive_cmds=$lt_old_archive_cmds
22255
22256# A language specific compiler.
22257CC=$lt_compiler
22258
22259# Is the compiler the GNU compiler?
22260with_gcc=$GCC
22261
22262# Compiler flag to turn off builtin functions.
22263no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22264
22265# Additional compiler flags for building library objects.
22266pic_flag=$lt_lt_prog_compiler_pic
22267
22268# How to pass a linker flag through the compiler.
22269wl=$lt_lt_prog_compiler_wl
22270
22271# Compiler flag to prevent dynamic linking.
22272link_static_flag=$lt_lt_prog_compiler_static
22273
22274# Does compiler simultaneously support -c and -o options?
22275compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22276
22277# Whether or not to add -lc for building shared libraries.
22278build_libtool_need_lc=$archive_cmds_need_lc
22279
22280# Whether or not to disallow shared libs when runtime libs are static.
22281allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22282
22283# Compiler flag to allow reflexive dlopens.
22284export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22285
22286# Compiler flag to generate shared objects directly from archives.
22287whole_archive_flag_spec=$lt_whole_archive_flag_spec
22288
22289# Whether the compiler copes with passing no objects directly.
22290compiler_needs_object=$lt_compiler_needs_object
22291
22292# Create an old-style archive from a shared archive.
22293old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22294
22295# Create a temporary old-style archive to link instead of a shared archive.
22296old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22297
22298# Commands used to build a shared archive.
22299archive_cmds=$lt_archive_cmds
22300archive_expsym_cmds=$lt_archive_expsym_cmds
22301
22302# Commands used to build a loadable module if different from building
22303# a shared archive.
22304module_cmds=$lt_module_cmds
22305module_expsym_cmds=$lt_module_expsym_cmds
22306
22307# Whether we are building with GNU ld or not.
22308with_gnu_ld=$lt_with_gnu_ld
22309
22310# Flag that allows shared libraries with undefined symbols to be built.
22311allow_undefined_flag=$lt_allow_undefined_flag
22312
22313# Flag that enforces no undefined symbols.
22314no_undefined_flag=$lt_no_undefined_flag
22315
22316# Flag to hardcode \$libdir into a binary during linking.
22317# This must work even if \$libdir does not exist
22318hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22319
22320# Whether we need a single "-rpath" flag with a separated argument.
22321hardcode_libdir_separator=$lt_hardcode_libdir_separator
22322
22323# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22324# DIR into the resulting binary.
22325hardcode_direct=$hardcode_direct
22326
22327# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22328# DIR into the resulting binary and the resulting library dependency is
22329# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22330# library is relocated.
22331hardcode_direct_absolute=$hardcode_direct_absolute
22332
22333# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22334# into the resulting binary.
22335hardcode_minus_L=$hardcode_minus_L
22336
22337# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22338# into the resulting binary.
22339hardcode_shlibpath_var=$hardcode_shlibpath_var
22340
22341# Set to "yes" if building a shared library automatically hardcodes DIR
22342# into the library and all subsequent libraries and executables linked
22343# against it.
22344hardcode_automatic=$hardcode_automatic
22345
22346# Set to yes if linker adds runtime paths of dependent libraries
22347# to runtime path list.
22348inherit_rpath=$inherit_rpath
22349
22350# Whether libtool must link a program against all its dependency libraries.
22351link_all_deplibs=$link_all_deplibs
22352
22353# Set to "yes" if exported symbols are required.
22354always_export_symbols=$always_export_symbols
22355
22356# The commands to list exported symbols.
22357export_symbols_cmds=$lt_export_symbols_cmds
22358
22359# Symbols that should not be listed in the preloaded symbols.
22360exclude_expsyms=$lt_exclude_expsyms
22361
22362# Symbols that must always be exported.
22363include_expsyms=$lt_include_expsyms
22364
22365# Commands necessary for linking programs (against libraries) with templates.
22366prelink_cmds=$lt_prelink_cmds
22367
22368# Commands necessary for finishing linking programs.
22369postlink_cmds=$lt_postlink_cmds
22370
22371# Specify filename containing input files.
22372file_list_spec=$lt_file_list_spec
22373
22374# How to hardcode a shared library path into an executable.
22375hardcode_action=$hardcode_action
22376
22377# ### END LIBTOOL CONFIG
22378
22379_LT_EOF
22380
22381    cat <<'_LT_EOF' >> "$cfgfile"
22382
22383# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22384
22385# func_munge_path_list VARIABLE PATH
22386# -----------------------------------
22387# VARIABLE is name of variable containing _space_ separated list of
22388# directories to be munged by the contents of PATH, which is string
22389# having a format:
22390# "DIR[:DIR]:"
22391#       string "DIR[ DIR]" will be prepended to VARIABLE
22392# ":DIR[:DIR]"
22393#       string "DIR[ DIR]" will be appended to VARIABLE
22394# "DIRP[:DIRP]::[DIRA:]DIRA"
22395#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22396#       "DIRA[ DIRA]" will be appended to VARIABLE
22397# "DIR[:DIR]"
22398#       VARIABLE will be replaced by "DIR[ DIR]"
22399func_munge_path_list ()
22400{
22401    case x$2 in
22402    x)
22403        ;;
22404    *:)
22405        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22406        ;;
22407    x:*)
22408        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22409        ;;
22410    *::*)
22411        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22412        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22413        ;;
22414    *)
22415        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22416        ;;
22417    esac
22418}
22419
22420
22421# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22422func_cc_basename ()
22423{
22424    for cc_temp in $*""; do
22425      case $cc_temp in
22426        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22427        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22428        \-*) ;;
22429        *) break;;
22430      esac
22431    done
22432    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22433}
22434
22435
22436# ### END FUNCTIONS SHARED WITH CONFIGURE
22437
22438_LT_EOF
22439
22440  case $host_os in
22441  aix3*)
22442    cat <<\_LT_EOF >> "$cfgfile"
22443# AIX sometimes has problems with the GCC collect2 program.  For some
22444# reason, if we set the COLLECT_NAMES environment variable, the problems
22445# vanish in a puff of smoke.
22446if test set != "${COLLECT_NAMES+set}"; then
22447  COLLECT_NAMES=
22448  export COLLECT_NAMES
22449fi
22450_LT_EOF
22451    ;;
22452  esac
22453
22454
22455ltmain=$ac_aux_dir/ltmain.sh
22456
22457
22458  # We use sed instead of cat because bash on DJGPP gets confused if
22459  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22460  # text mode, it properly converts lines to CR/LF.  This bash problem
22461  # is reportedly fixed, but why not run on old versions too?
22462  sed '$q' "$ltmain" >> "$cfgfile" \
22463     || (rm -f "$cfgfile"; exit 1)
22464
22465   mv -f "$cfgfile" "$ofile" ||
22466    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22467  chmod +x "$ofile"
22468
22469 ;;
22470
22471  esac
22472done # for ac_tag
22473
22474
22475as_fn_exit 0
22476_ACEOF
22477ac_clean_files=$ac_clean_files_save
22478
22479test $ac_write_fail = 0 ||
22480  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22481
22482
22483# configure is writing to config.log, and then calls config.status.
22484# config.status does its own redirection, appending to config.log.
22485# Unfortunately, on DOS this fails, as config.log is still kept open
22486# by configure, so config.status won't be able to write to it; its
22487# output is simply discarded.  So we exec the FD to /dev/null,
22488# effectively closing config.log, so it can be properly (re)opened and
22489# appended to by config.status.  When coming back to configure, we
22490# need to make the FD available again.
22491if test "$no_create" != yes; then
22492  ac_cs_success=:
22493  ac_config_status_args=
22494  test "$silent" = yes &&
22495    ac_config_status_args="$ac_config_status_args --quiet"
22496  exec 5>/dev/null
22497  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22498  exec 5>>config.log
22499  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22500  # would make configure fail if this is the last instruction.
22501  $ac_cs_success || as_fn_exit 1
22502fi
22503if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22504  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22505$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22506fi
22507
22508
22509echo ""
22510echo "        prefix:              $prefix"
22511echo "        exec_prefix:         $exec_prefix"
22512echo "        libdir:              $libdir"
22513echo "        includedir:          $includedir"
22514
22515echo ""
22516echo "        CFLAGS:              $CFLAGS"
22517echo "        CXXFLAGS:            $CXXFLAGS"
22518echo "        Macros:              $DEFINES"
22519
22520echo ""
22521echo "        Run '${MAKE-make}' to build xf86-video-nouveau"
22522echo ""
22523