configure revision eca46af7
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-video-trident 1.3.7.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='xf86-video-trident'
593PACKAGE_TARNAME='xf86-video-trident'
594PACKAGE_VERSION='1.3.7'
595PACKAGE_STRING='xf86-video-trident 1.3.7'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597PACKAGE_URL=''
598
599ac_unique_file="Makefile.am"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640DRIVER_NAME
641moduledir
642XSERVER_LIBPCIACCESS_FALSE
643XSERVER_LIBPCIACCESS_TRUE
644PCIACCESS_LIBS
645PCIACCESS_CFLAGS
646XAA_FALSE
647XAA_TRUE
648HAVE_XEXTPROTO_71_FALSE
649HAVE_XEXTPROTO_71_TRUE
650XEXT_LIBS
651XEXT_CFLAGS
652XORG_LIBS
653XORG_CFLAGS
654OTOOL64
655OTOOL
656LIPO
657NMEDIT
658DSYMUTIL
659MANIFEST_TOOL
660RANLIB
661ac_ct_AR
662AR
663DLLTOOL
664OBJDUMP
665LN_S
666NM
667ac_ct_DUMPBIN
668DUMPBIN
669LD
670FGREP
671LIBTOOL
672MAN_SUBSTS
673XORG_MAN_PAGE
674ADMIN_MAN_DIR
675DRIVER_MAN_DIR
676MISC_MAN_DIR
677FILE_MAN_DIR
678LIB_MAN_DIR
679APP_MAN_DIR
680ADMIN_MAN_SUFFIX
681DRIVER_MAN_SUFFIX
682MISC_MAN_SUFFIX
683FILE_MAN_SUFFIX
684LIB_MAN_SUFFIX
685APP_MAN_SUFFIX
686SED
687host_os
688host_vendor
689host_cpu
690host
691build_os
692build_vendor
693build_cpu
694build
695INSTALL_CMD
696PKG_CONFIG_LIBDIR
697PKG_CONFIG_PATH
698PKG_CONFIG
699CHANGELOG_CMD
700STRICT_CFLAGS
701CWARNFLAGS
702BASE_CFLAGS
703EGREP
704GREP
705CPP
706am__fastdepCC_FALSE
707am__fastdepCC_TRUE
708CCDEPMODE
709am__nodep
710AMDEPBACKSLASH
711AMDEP_FALSE
712AMDEP_TRUE
713am__quote
714am__include
715DEPDIR
716OBJEXT
717EXEEXT
718ac_ct_CC
719CPPFLAGS
720LDFLAGS
721CFLAGS
722CC
723MAINT
724MAINTAINER_MODE_FALSE
725MAINTAINER_MODE_TRUE
726AM_BACKSLASH
727AM_DEFAULT_VERBOSITY
728AM_DEFAULT_V
729AM_V
730am__untar
731am__tar
732AMTAR
733am__leading_dot
734SET_MAKE
735AWK
736mkdir_p
737MKDIR_P
738INSTALL_STRIP_PROGRAM
739STRIP
740install_sh
741MAKEINFO
742AUTOHEADER
743AUTOMAKE
744AUTOCONF
745ACLOCAL
746VERSION
747PACKAGE
748CYGPATH_W
749am__isrc
750INSTALL_DATA
751INSTALL_SCRIPT
752INSTALL_PROGRAM
753target_alias
754host_alias
755build_alias
756LIBS
757ECHO_T
758ECHO_N
759ECHO_C
760DEFS
761mandir
762localedir
763libdir
764psdir
765pdfdir
766dvidir
767htmldir
768infodir
769docdir
770oldincludedir
771includedir
772localstatedir
773sharedstatedir
774sysconfdir
775datadir
776datarootdir
777libexecdir
778sbindir
779bindir
780program_transform_name
781prefix
782exec_prefix
783PACKAGE_URL
784PACKAGE_BUGREPORT
785PACKAGE_STRING
786PACKAGE_VERSION
787PACKAGE_TARNAME
788PACKAGE_NAME
789PATH_SEPARATOR
790SHELL'
791ac_subst_files=''
792ac_user_opts='
793enable_option_checking
794enable_silent_rules
795enable_maintainer_mode
796enable_dependency_tracking
797enable_selective_werror
798enable_strict_compilation
799enable_static
800enable_shared
801with_pic
802enable_fast_install
803with_aix_soname
804with_gnu_ld
805with_sysroot
806enable_libtool_lock
807with_xorg_module_dir
808enable_xaa
809'
810      ac_precious_vars='build_alias
811host_alias
812target_alias
813CC
814CFLAGS
815LDFLAGS
816LIBS
817CPPFLAGS
818CPP
819PKG_CONFIG
820PKG_CONFIG_PATH
821PKG_CONFIG_LIBDIR
822XORG_CFLAGS
823XORG_LIBS
824XEXT_CFLAGS
825XEXT_LIBS
826PCIACCESS_CFLAGS
827PCIACCESS_LIBS'
828
829
830# Initialize some variables set by options.
831ac_init_help=
832ac_init_version=false
833ac_unrecognized_opts=
834ac_unrecognized_sep=
835# The variables have the same names as the options, with
836# dashes changed to underlines.
837cache_file=/dev/null
838exec_prefix=NONE
839no_create=
840no_recursion=
841prefix=NONE
842program_prefix=NONE
843program_suffix=NONE
844program_transform_name=s,x,x,
845silent=
846site=
847srcdir=
848verbose=
849x_includes=NONE
850x_libraries=NONE
851
852# Installation directory options.
853# These are left unexpanded so users can "make install exec_prefix=/foo"
854# and all the variables that are supposed to be based on exec_prefix
855# by default will actually change.
856# Use braces instead of parens because sh, perl, etc. also accept them.
857# (The list follows the same order as the GNU Coding Standards.)
858bindir='${exec_prefix}/bin'
859sbindir='${exec_prefix}/sbin'
860libexecdir='${exec_prefix}/libexec'
861datarootdir='${prefix}/share'
862datadir='${datarootdir}'
863sysconfdir='${prefix}/etc'
864sharedstatedir='${prefix}/com'
865localstatedir='${prefix}/var'
866includedir='${prefix}/include'
867oldincludedir='/usr/include'
868docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869infodir='${datarootdir}/info'
870htmldir='${docdir}'
871dvidir='${docdir}'
872pdfdir='${docdir}'
873psdir='${docdir}'
874libdir='${exec_prefix}/lib'
875localedir='${datarootdir}/locale'
876mandir='${datarootdir}/man'
877
878ac_prev=
879ac_dashdash=
880for ac_option
881do
882  # If the previous option needs an argument, assign it.
883  if test -n "$ac_prev"; then
884    eval $ac_prev=\$ac_option
885    ac_prev=
886    continue
887  fi
888
889  case $ac_option in
890  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891  *=)   ac_optarg= ;;
892  *)    ac_optarg=yes ;;
893  esac
894
895  # Accept the important Cygnus configure options, so we can diagnose typos.
896
897  case $ac_dashdash$ac_option in
898  --)
899    ac_dashdash=yes ;;
900
901  -bindir | --bindir | --bindi | --bind | --bin | --bi)
902    ac_prev=bindir ;;
903  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904    bindir=$ac_optarg ;;
905
906  -build | --build | --buil | --bui | --bu)
907    ac_prev=build_alias ;;
908  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909    build_alias=$ac_optarg ;;
910
911  -cache-file | --cache-file | --cache-fil | --cache-fi \
912  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913    ac_prev=cache_file ;;
914  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916    cache_file=$ac_optarg ;;
917
918  --config-cache | -C)
919    cache_file=config.cache ;;
920
921  -datadir | --datadir | --datadi | --datad)
922    ac_prev=datadir ;;
923  -datadir=* | --datadir=* | --datadi=* | --datad=*)
924    datadir=$ac_optarg ;;
925
926  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927  | --dataroo | --dataro | --datar)
928    ac_prev=datarootdir ;;
929  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931    datarootdir=$ac_optarg ;;
932
933  -disable-* | --disable-*)
934    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935    # Reject names that are not valid shell variable names.
936    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937      as_fn_error $? "invalid feature name: $ac_useropt"
938    ac_useropt_orig=$ac_useropt
939    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940    case $ac_user_opts in
941      *"
942"enable_$ac_useropt"
943"*) ;;
944      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
945	 ac_unrecognized_sep=', ';;
946    esac
947    eval enable_$ac_useropt=no ;;
948
949  -docdir | --docdir | --docdi | --doc | --do)
950    ac_prev=docdir ;;
951  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952    docdir=$ac_optarg ;;
953
954  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
955    ac_prev=dvidir ;;
956  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957    dvidir=$ac_optarg ;;
958
959  -enable-* | --enable-*)
960    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
961    # Reject names that are not valid shell variable names.
962    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963      as_fn_error $? "invalid feature name: $ac_useropt"
964    ac_useropt_orig=$ac_useropt
965    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966    case $ac_user_opts in
967      *"
968"enable_$ac_useropt"
969"*) ;;
970      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
971	 ac_unrecognized_sep=', ';;
972    esac
973    eval enable_$ac_useropt=\$ac_optarg ;;
974
975  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
976  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
977  | --exec | --exe | --ex)
978    ac_prev=exec_prefix ;;
979  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
980  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
981  | --exec=* | --exe=* | --ex=*)
982    exec_prefix=$ac_optarg ;;
983
984  -gas | --gas | --ga | --g)
985    # Obsolete; use --with-gas.
986    with_gas=yes ;;
987
988  -help | --help | --hel | --he | -h)
989    ac_init_help=long ;;
990  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
991    ac_init_help=recursive ;;
992  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
993    ac_init_help=short ;;
994
995  -host | --host | --hos | --ho)
996    ac_prev=host_alias ;;
997  -host=* | --host=* | --hos=* | --ho=*)
998    host_alias=$ac_optarg ;;
999
1000  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001    ac_prev=htmldir ;;
1002  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003  | --ht=*)
1004    htmldir=$ac_optarg ;;
1005
1006  -includedir | --includedir | --includedi | --included | --include \
1007  | --includ | --inclu | --incl | --inc)
1008    ac_prev=includedir ;;
1009  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1010  | --includ=* | --inclu=* | --incl=* | --inc=*)
1011    includedir=$ac_optarg ;;
1012
1013  -infodir | --infodir | --infodi | --infod | --info | --inf)
1014    ac_prev=infodir ;;
1015  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1016    infodir=$ac_optarg ;;
1017
1018  -libdir | --libdir | --libdi | --libd)
1019    ac_prev=libdir ;;
1020  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1021    libdir=$ac_optarg ;;
1022
1023  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1024  | --libexe | --libex | --libe)
1025    ac_prev=libexecdir ;;
1026  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1027  | --libexe=* | --libex=* | --libe=*)
1028    libexecdir=$ac_optarg ;;
1029
1030  -localedir | --localedir | --localedi | --localed | --locale)
1031    ac_prev=localedir ;;
1032  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1033    localedir=$ac_optarg ;;
1034
1035  -localstatedir | --localstatedir | --localstatedi | --localstated \
1036  | --localstate | --localstat | --localsta | --localst | --locals)
1037    ac_prev=localstatedir ;;
1038  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1039  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1040    localstatedir=$ac_optarg ;;
1041
1042  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043    ac_prev=mandir ;;
1044  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1045    mandir=$ac_optarg ;;
1046
1047  -nfp | --nfp | --nf)
1048    # Obsolete; use --without-fp.
1049    with_fp=no ;;
1050
1051  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1052  | --no-cr | --no-c | -n)
1053    no_create=yes ;;
1054
1055  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1056  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1057    no_recursion=yes ;;
1058
1059  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1060  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1061  | --oldin | --oldi | --old | --ol | --o)
1062    ac_prev=oldincludedir ;;
1063  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1064  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1065  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1066    oldincludedir=$ac_optarg ;;
1067
1068  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069    ac_prev=prefix ;;
1070  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1071    prefix=$ac_optarg ;;
1072
1073  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1074  | --program-pre | --program-pr | --program-p)
1075    ac_prev=program_prefix ;;
1076  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1077  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1078    program_prefix=$ac_optarg ;;
1079
1080  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1081  | --program-suf | --program-su | --program-s)
1082    ac_prev=program_suffix ;;
1083  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1084  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1085    program_suffix=$ac_optarg ;;
1086
1087  -program-transform-name | --program-transform-name \
1088  | --program-transform-nam | --program-transform-na \
1089  | --program-transform-n | --program-transform- \
1090  | --program-transform | --program-transfor \
1091  | --program-transfo | --program-transf \
1092  | --program-trans | --program-tran \
1093  | --progr-tra | --program-tr | --program-t)
1094    ac_prev=program_transform_name ;;
1095  -program-transform-name=* | --program-transform-name=* \
1096  | --program-transform-nam=* | --program-transform-na=* \
1097  | --program-transform-n=* | --program-transform-=* \
1098  | --program-transform=* | --program-transfor=* \
1099  | --program-transfo=* | --program-transf=* \
1100  | --program-trans=* | --program-tran=* \
1101  | --progr-tra=* | --program-tr=* | --program-t=*)
1102    program_transform_name=$ac_optarg ;;
1103
1104  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105    ac_prev=pdfdir ;;
1106  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1107    pdfdir=$ac_optarg ;;
1108
1109  -psdir | --psdir | --psdi | --psd | --ps)
1110    ac_prev=psdir ;;
1111  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1112    psdir=$ac_optarg ;;
1113
1114  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115  | -silent | --silent | --silen | --sile | --sil)
1116    silent=yes ;;
1117
1118  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119    ac_prev=sbindir ;;
1120  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121  | --sbi=* | --sb=*)
1122    sbindir=$ac_optarg ;;
1123
1124  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1125  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1126  | --sharedst | --shareds | --shared | --share | --shar \
1127  | --sha | --sh)
1128    ac_prev=sharedstatedir ;;
1129  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1130  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132  | --sha=* | --sh=*)
1133    sharedstatedir=$ac_optarg ;;
1134
1135  -site | --site | --sit)
1136    ac_prev=site ;;
1137  -site=* | --site=* | --sit=*)
1138    site=$ac_optarg ;;
1139
1140  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141    ac_prev=srcdir ;;
1142  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1143    srcdir=$ac_optarg ;;
1144
1145  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1146  | --syscon | --sysco | --sysc | --sys | --sy)
1147    ac_prev=sysconfdir ;;
1148  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1149  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1150    sysconfdir=$ac_optarg ;;
1151
1152  -target | --target | --targe | --targ | --tar | --ta | --t)
1153    ac_prev=target_alias ;;
1154  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1155    target_alias=$ac_optarg ;;
1156
1157  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1158    verbose=yes ;;
1159
1160  -version | --version | --versio | --versi | --vers | -V)
1161    ac_init_version=: ;;
1162
1163  -with-* | --with-*)
1164    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1165    # Reject names that are not valid shell variable names.
1166    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167      as_fn_error $? "invalid package name: $ac_useropt"
1168    ac_useropt_orig=$ac_useropt
1169    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170    case $ac_user_opts in
1171      *"
1172"with_$ac_useropt"
1173"*) ;;
1174      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175	 ac_unrecognized_sep=', ';;
1176    esac
1177    eval with_$ac_useropt=\$ac_optarg ;;
1178
1179  -without-* | --without-*)
1180    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181    # Reject names that are not valid shell variable names.
1182    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183      as_fn_error $? "invalid package name: $ac_useropt"
1184    ac_useropt_orig=$ac_useropt
1185    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186    case $ac_user_opts in
1187      *"
1188"with_$ac_useropt"
1189"*) ;;
1190      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191	 ac_unrecognized_sep=', ';;
1192    esac
1193    eval with_$ac_useropt=no ;;
1194
1195  --x)
1196    # Obsolete; use --with-x.
1197    with_x=yes ;;
1198
1199  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1200  | --x-incl | --x-inc | --x-in | --x-i)
1201    ac_prev=x_includes ;;
1202  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1203  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1204    x_includes=$ac_optarg ;;
1205
1206  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1207  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1208    ac_prev=x_libraries ;;
1209  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1210  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1211    x_libraries=$ac_optarg ;;
1212
1213  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1214Try \`$0 --help' for more information"
1215    ;;
1216
1217  *=*)
1218    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1219    # Reject names that are not valid shell variable names.
1220    case $ac_envvar in #(
1221      '' | [0-9]* | *[!_$as_cr_alnum]* )
1222      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1223    esac
1224    eval $ac_envvar=\$ac_optarg
1225    export $ac_envvar ;;
1226
1227  *)
1228    # FIXME: should be removed in autoconf 3.0.
1229    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1230    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1232    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1233    ;;
1234
1235  esac
1236done
1237
1238if test -n "$ac_prev"; then
1239  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1240  as_fn_error $? "missing argument to $ac_option"
1241fi
1242
1243if test -n "$ac_unrecognized_opts"; then
1244  case $enable_option_checking in
1245    no) ;;
1246    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1247    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1248  esac
1249fi
1250
1251# Check all directory arguments for consistency.
1252for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253		datadir sysconfdir sharedstatedir localstatedir includedir \
1254		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255		libdir localedir mandir
1256do
1257  eval ac_val=\$$ac_var
1258  # Remove trailing slashes.
1259  case $ac_val in
1260    */ )
1261      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262      eval $ac_var=\$ac_val;;
1263  esac
1264  # Be sure to have absolute directory names.
1265  case $ac_val in
1266    [\\/$]* | ?:[\\/]* )  continue;;
1267    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1268  esac
1269  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1270done
1271
1272# There might be people who depend on the old broken behavior: `$host'
1273# used to hold the argument of --host etc.
1274# FIXME: To remove some day.
1275build=$build_alias
1276host=$host_alias
1277target=$target_alias
1278
1279# FIXME: To remove some day.
1280if test "x$host_alias" != x; then
1281  if test "x$build_alias" = x; then
1282    cross_compiling=maybe
1283  elif test "x$build_alias" != "x$host_alias"; then
1284    cross_compiling=yes
1285  fi
1286fi
1287
1288ac_tool_prefix=
1289test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290
1291test "$silent" = yes && exec 6>/dev/null
1292
1293
1294ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295ac_ls_di=`ls -di .` &&
1296ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297  as_fn_error $? "working directory cannot be determined"
1298test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1299  as_fn_error $? "pwd does not report name of working directory"
1300
1301
1302# Find the source files, if location was not specified.
1303if test -z "$srcdir"; then
1304  ac_srcdir_defaulted=yes
1305  # Try the directory containing this script, then the parent directory.
1306  ac_confdir=`$as_dirname -- "$as_myself" ||
1307$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1308	 X"$as_myself" : 'X\(//\)[^/]' \| \
1309	 X"$as_myself" : 'X\(//\)$' \| \
1310	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1311$as_echo X"$as_myself" |
1312    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1313	    s//\1/
1314	    q
1315	  }
1316	  /^X\(\/\/\)[^/].*/{
1317	    s//\1/
1318	    q
1319	  }
1320	  /^X\(\/\/\)$/{
1321	    s//\1/
1322	    q
1323	  }
1324	  /^X\(\/\).*/{
1325	    s//\1/
1326	    q
1327	  }
1328	  s/.*/./; q'`
1329  srcdir=$ac_confdir
1330  if test ! -r "$srcdir/$ac_unique_file"; then
1331    srcdir=..
1332  fi
1333else
1334  ac_srcdir_defaulted=no
1335fi
1336if test ! -r "$srcdir/$ac_unique_file"; then
1337  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1338  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1339fi
1340ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1341ac_abs_confdir=`(
1342	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1343	pwd)`
1344# When building in place, set srcdir=.
1345if test "$ac_abs_confdir" = "$ac_pwd"; then
1346  srcdir=.
1347fi
1348# Remove unnecessary trailing slashes from srcdir.
1349# Double slashes in file names in object file debugging info
1350# mess up M-x gdb in Emacs.
1351case $srcdir in
1352*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353esac
1354for ac_var in $ac_precious_vars; do
1355  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1356  eval ac_env_${ac_var}_value=\$${ac_var}
1357  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1358  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1359done
1360
1361#
1362# Report the --help message.
1363#
1364if test "$ac_init_help" = "long"; then
1365  # Omit some internal or obsolete options to make the list less imposing.
1366  # This message is too long to be a string in the A/UX 3.1 sh.
1367  cat <<_ACEOF
1368\`configure' configures xf86-video-trident 1.3.7 to adapt to many kinds of systems.
1369
1370Usage: $0 [OPTION]... [VAR=VALUE]...
1371
1372To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373VAR=VALUE.  See below for descriptions of some of the useful variables.
1374
1375Defaults for the options are specified in brackets.
1376
1377Configuration:
1378  -h, --help              display this help and exit
1379      --help=short        display options specific to this package
1380      --help=recursive    display the short help of all the included packages
1381  -V, --version           display version information and exit
1382  -q, --quiet, --silent   do not print \`checking ...' messages
1383      --cache-file=FILE   cache test results in FILE [disabled]
1384  -C, --config-cache      alias for \`--cache-file=config.cache'
1385  -n, --no-create         do not create output files
1386      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1387
1388Installation directories:
1389  --prefix=PREFIX         install architecture-independent files in PREFIX
1390                          [$ac_default_prefix]
1391  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1392                          [PREFIX]
1393
1394By default, \`make install' will install all the files in
1395\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1396an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1397for instance \`--prefix=\$HOME'.
1398
1399For better control, use the options below.
1400
1401Fine tuning of the installation directories:
1402  --bindir=DIR            user executables [EPREFIX/bin]
1403  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1404  --libexecdir=DIR        program executables [EPREFIX/libexec]
1405  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1406  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1407  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1408  --libdir=DIR            object code libraries [EPREFIX/lib]
1409  --includedir=DIR        C header files [PREFIX/include]
1410  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1411  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1412  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1413  --infodir=DIR           info documentation [DATAROOTDIR/info]
1414  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1415  --mandir=DIR            man documentation [DATAROOTDIR/man]
1416  --docdir=DIR            documentation root
1417                          [DATAROOTDIR/doc/xf86-video-trident]
1418  --htmldir=DIR           html documentation [DOCDIR]
1419  --dvidir=DIR            dvi documentation [DOCDIR]
1420  --pdfdir=DIR            pdf documentation [DOCDIR]
1421  --psdir=DIR             ps documentation [DOCDIR]
1422_ACEOF
1423
1424  cat <<\_ACEOF
1425
1426Program names:
1427  --program-prefix=PREFIX            prepend PREFIX to installed program names
1428  --program-suffix=SUFFIX            append SUFFIX to installed program names
1429  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1430
1431System types:
1432  --build=BUILD     configure for building on BUILD [guessed]
1433  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1434_ACEOF
1435fi
1436
1437if test -n "$ac_init_help"; then
1438  case $ac_init_help in
1439     short | recursive ) echo "Configuration of xf86-video-trident 1.3.7:";;
1440   esac
1441  cat <<\_ACEOF
1442
1443Optional Features:
1444  --disable-option-checking  ignore unrecognized --enable/--with options
1445  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1446  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1447  --enable-silent-rules   less verbose build output (undo: "make V=1")
1448  --disable-silent-rules  verbose build output (undo: "make V=0")
1449  --enable-maintainer-mode
1450                          enable make rules and dependencies not useful (and
1451                          sometimes confusing) to the casual installer
1452  --enable-dependency-tracking
1453                          do not reject slow dependency extractors
1454  --disable-dependency-tracking
1455                          speeds up one-time build
1456  --disable-selective-werror
1457                          Turn off selective compiler errors. (default:
1458                          enabled)
1459  --enable-strict-compilation
1460                          Enable all warnings from compiler and make them
1461                          errors (default: disabled)
1462  --enable-static[=PKGS]  build static libraries [default=no]
1463  --enable-shared[=PKGS]  build shared libraries [default=yes]
1464  --enable-fast-install[=PKGS]
1465                          optimize for fast installation [default=yes]
1466  --disable-libtool-lock  avoid locking (might break parallel builds)
1467  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1468                          [default=auto]
1469
1470Optional Packages:
1471  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1472  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1473  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1474                          both]
1475  --with-aix-soname=aix|svr4|both
1476                          shared library versioning (aka "SONAME") variant to
1477                          provide on AIX, [default=aix].
1478  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1479  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1480                          compiler's sysroot if not specified).
1481  --with-xorg-module-dir=DIR
1482                          Default xorg module directory
1483                          [[default=$libdir/xorg/modules]]
1484
1485Some influential environment variables:
1486  CC          C compiler command
1487  CFLAGS      C compiler flags
1488  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1489              nonstandard directory <lib dir>
1490  LIBS        libraries to pass to the linker, e.g. -l<library>
1491  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1492              you have headers in a nonstandard directory <include dir>
1493  CPP         C preprocessor
1494  PKG_CONFIG  path to pkg-config utility
1495  PKG_CONFIG_PATH
1496              directories to add to pkg-config's search path
1497  PKG_CONFIG_LIBDIR
1498              path overriding pkg-config's built-in search path
1499  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1500  XORG_LIBS   linker flags for XORG, overriding pkg-config
1501  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1502  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1503  PCIACCESS_CFLAGS
1504              C compiler flags for PCIACCESS, overriding pkg-config
1505  PCIACCESS_LIBS
1506              linker flags for PCIACCESS, overriding pkg-config
1507
1508Use these variables to override the choices made by `configure' or to help
1509it to find libraries and programs with nonstandard names/locations.
1510
1511Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1512_ACEOF
1513ac_status=$?
1514fi
1515
1516if test "$ac_init_help" = "recursive"; then
1517  # If there are subdirs, report their specific --help.
1518  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1519    test -d "$ac_dir" ||
1520      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1521      continue
1522    ac_builddir=.
1523
1524case "$ac_dir" in
1525.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526*)
1527  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1528  # A ".." for each directory in $ac_dir_suffix.
1529  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1530  case $ac_top_builddir_sub in
1531  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1533  esac ;;
1534esac
1535ac_abs_top_builddir=$ac_pwd
1536ac_abs_builddir=$ac_pwd$ac_dir_suffix
1537# for backward compatibility:
1538ac_top_builddir=$ac_top_build_prefix
1539
1540case $srcdir in
1541  .)  # We are building in place.
1542    ac_srcdir=.
1543    ac_top_srcdir=$ac_top_builddir_sub
1544    ac_abs_top_srcdir=$ac_pwd ;;
1545  [\\/]* | ?:[\\/]* )  # Absolute name.
1546    ac_srcdir=$srcdir$ac_dir_suffix;
1547    ac_top_srcdir=$srcdir
1548    ac_abs_top_srcdir=$srcdir ;;
1549  *) # Relative name.
1550    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1551    ac_top_srcdir=$ac_top_build_prefix$srcdir
1552    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1553esac
1554ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1555
1556    cd "$ac_dir" || { ac_status=$?; continue; }
1557    # Check for guested configure.
1558    if test -f "$ac_srcdir/configure.gnu"; then
1559      echo &&
1560      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1561    elif test -f "$ac_srcdir/configure"; then
1562      echo &&
1563      $SHELL "$ac_srcdir/configure" --help=recursive
1564    else
1565      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1566    fi || ac_status=$?
1567    cd "$ac_pwd" || { ac_status=$?; break; }
1568  done
1569fi
1570
1571test -n "$ac_init_help" && exit $ac_status
1572if $ac_init_version; then
1573  cat <<\_ACEOF
1574xf86-video-trident configure 1.3.7
1575generated by GNU Autoconf 2.69
1576
1577Copyright (C) 2012 Free Software Foundation, Inc.
1578This configure script is free software; the Free Software Foundation
1579gives unlimited permission to copy, distribute and modify it.
1580_ACEOF
1581  exit
1582fi
1583
1584## ------------------------ ##
1585## Autoconf initialization. ##
1586## ------------------------ ##
1587
1588# ac_fn_c_try_compile LINENO
1589# --------------------------
1590# Try to compile conftest.$ac_ext, and return whether this succeeded.
1591ac_fn_c_try_compile ()
1592{
1593  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594  rm -f conftest.$ac_objext
1595  if { { ac_try="$ac_compile"
1596case "(($ac_try" in
1597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598  *) ac_try_echo=$ac_try;;
1599esac
1600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601$as_echo "$ac_try_echo"; } >&5
1602  (eval "$ac_compile") 2>conftest.err
1603  ac_status=$?
1604  if test -s conftest.err; then
1605    grep -v '^ *+' conftest.err >conftest.er1
1606    cat conftest.er1 >&5
1607    mv -f conftest.er1 conftest.err
1608  fi
1609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610  test $ac_status = 0; } && {
1611	 test -z "$ac_c_werror_flag" ||
1612	 test ! -s conftest.err
1613       } && test -s conftest.$ac_objext; then :
1614  ac_retval=0
1615else
1616  $as_echo "$as_me: failed program was:" >&5
1617sed 's/^/| /' conftest.$ac_ext >&5
1618
1619	ac_retval=1
1620fi
1621  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622  as_fn_set_status $ac_retval
1623
1624} # ac_fn_c_try_compile
1625
1626# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1627# ---------------------------------------------
1628# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1629# accordingly.
1630ac_fn_c_check_decl ()
1631{
1632  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633  as_decl_name=`echo $2|sed 's/ *(.*//'`
1634  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1635  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1636$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1637if eval \${$3+:} false; then :
1638  $as_echo_n "(cached) " >&6
1639else
1640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641/* end confdefs.h.  */
1642$4
1643int
1644main ()
1645{
1646#ifndef $as_decl_name
1647#ifdef __cplusplus
1648  (void) $as_decl_use;
1649#else
1650  (void) $as_decl_name;
1651#endif
1652#endif
1653
1654  ;
1655  return 0;
1656}
1657_ACEOF
1658if ac_fn_c_try_compile "$LINENO"; then :
1659  eval "$3=yes"
1660else
1661  eval "$3=no"
1662fi
1663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664fi
1665eval ac_res=\$$3
1666	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667$as_echo "$ac_res" >&6; }
1668  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669
1670} # ac_fn_c_check_decl
1671
1672# ac_fn_c_try_cpp LINENO
1673# ----------------------
1674# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1675ac_fn_c_try_cpp ()
1676{
1677  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678  if { { ac_try="$ac_cpp conftest.$ac_ext"
1679case "(($ac_try" in
1680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681  *) ac_try_echo=$ac_try;;
1682esac
1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684$as_echo "$ac_try_echo"; } >&5
1685  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1686  ac_status=$?
1687  if test -s conftest.err; then
1688    grep -v '^ *+' conftest.err >conftest.er1
1689    cat conftest.er1 >&5
1690    mv -f conftest.er1 conftest.err
1691  fi
1692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693  test $ac_status = 0; } > conftest.i && {
1694	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1695	 test ! -s conftest.err
1696       }; then :
1697  ac_retval=0
1698else
1699  $as_echo "$as_me: failed program was:" >&5
1700sed 's/^/| /' conftest.$ac_ext >&5
1701
1702    ac_retval=1
1703fi
1704  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705  as_fn_set_status $ac_retval
1706
1707} # ac_fn_c_try_cpp
1708
1709# ac_fn_c_try_run LINENO
1710# ----------------------
1711# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1712# that executables *can* be run.
1713ac_fn_c_try_run ()
1714{
1715  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716  if { { ac_try="$ac_link"
1717case "(($ac_try" in
1718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719  *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723  (eval "$ac_link") 2>&5
1724  ac_status=$?
1725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1727  { { case "(($ac_try" in
1728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729  *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732$as_echo "$ac_try_echo"; } >&5
1733  (eval "$ac_try") 2>&5
1734  ac_status=$?
1735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736  test $ac_status = 0; }; }; then :
1737  ac_retval=0
1738else
1739  $as_echo "$as_me: program exited with status $ac_status" >&5
1740       $as_echo "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
1742
1743       ac_retval=$ac_status
1744fi
1745  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747  as_fn_set_status $ac_retval
1748
1749} # ac_fn_c_try_run
1750
1751# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1752# -------------------------------------------------------
1753# Tests whether HEADER exists and can be compiled using the include files in
1754# INCLUDES, setting the cache variable VAR accordingly.
1755ac_fn_c_check_header_compile ()
1756{
1757  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759$as_echo_n "checking for $2... " >&6; }
1760if eval \${$3+:} false; then :
1761  $as_echo_n "(cached) " >&6
1762else
1763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764/* end confdefs.h.  */
1765$4
1766#include <$2>
1767_ACEOF
1768if ac_fn_c_try_compile "$LINENO"; then :
1769  eval "$3=yes"
1770else
1771  eval "$3=no"
1772fi
1773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774fi
1775eval ac_res=\$$3
1776	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777$as_echo "$ac_res" >&6; }
1778  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779
1780} # ac_fn_c_check_header_compile
1781
1782# ac_fn_c_try_link LINENO
1783# -----------------------
1784# Try to link conftest.$ac_ext, and return whether this succeeded.
1785ac_fn_c_try_link ()
1786{
1787  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788  rm -f conftest.$ac_objext conftest$ac_exeext
1789  if { { ac_try="$ac_link"
1790case "(($ac_try" in
1791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792  *) ac_try_echo=$ac_try;;
1793esac
1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795$as_echo "$ac_try_echo"; } >&5
1796  (eval "$ac_link") 2>conftest.err
1797  ac_status=$?
1798  if test -s conftest.err; then
1799    grep -v '^ *+' conftest.err >conftest.er1
1800    cat conftest.er1 >&5
1801    mv -f conftest.er1 conftest.err
1802  fi
1803  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804  test $ac_status = 0; } && {
1805	 test -z "$ac_c_werror_flag" ||
1806	 test ! -s conftest.err
1807       } && test -s conftest$ac_exeext && {
1808	 test "$cross_compiling" = yes ||
1809	 test -x conftest$ac_exeext
1810       }; then :
1811  ac_retval=0
1812else
1813  $as_echo "$as_me: failed program was:" >&5
1814sed 's/^/| /' conftest.$ac_ext >&5
1815
1816	ac_retval=1
1817fi
1818  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1819  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1820  # interfere with the next link command; also delete a directory that is
1821  # left behind by Apple's compiler.  We do this before executing the actions.
1822  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1823  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824  as_fn_set_status $ac_retval
1825
1826} # ac_fn_c_try_link
1827
1828# ac_fn_c_check_func LINENO FUNC VAR
1829# ----------------------------------
1830# Tests whether FUNC exists, setting the cache variable VAR accordingly
1831ac_fn_c_check_func ()
1832{
1833  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835$as_echo_n "checking for $2... " >&6; }
1836if eval \${$3+:} false; then :
1837  $as_echo_n "(cached) " >&6
1838else
1839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840/* end confdefs.h.  */
1841/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1842   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1843#define $2 innocuous_$2
1844
1845/* System header to define __stub macros and hopefully few prototypes,
1846    which can conflict with char $2 (); below.
1847    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1848    <limits.h> exists even on freestanding compilers.  */
1849
1850#ifdef __STDC__
1851# include <limits.h>
1852#else
1853# include <assert.h>
1854#endif
1855
1856#undef $2
1857
1858/* Override any GCC internal prototype to avoid an error.
1859   Use char because int might match the return type of a GCC
1860   builtin and then its argument prototype would still apply.  */
1861#ifdef __cplusplus
1862extern "C"
1863#endif
1864char $2 ();
1865/* The GNU C library defines this for functions which it implements
1866    to always fail with ENOSYS.  Some functions are actually named
1867    something starting with __ and the normal name is an alias.  */
1868#if defined __stub_$2 || defined __stub___$2
1869choke me
1870#endif
1871
1872int
1873main ()
1874{
1875return $2 ();
1876  ;
1877  return 0;
1878}
1879_ACEOF
1880if ac_fn_c_try_link "$LINENO"; then :
1881  eval "$3=yes"
1882else
1883  eval "$3=no"
1884fi
1885rm -f core conftest.err conftest.$ac_objext \
1886    conftest$ac_exeext conftest.$ac_ext
1887fi
1888eval ac_res=\$$3
1889	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890$as_echo "$ac_res" >&6; }
1891  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892
1893} # ac_fn_c_check_func
1894
1895# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1896# -------------------------------------------------------
1897# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1898# the include files in INCLUDES and setting the cache variable VAR
1899# accordingly.
1900ac_fn_c_check_header_mongrel ()
1901{
1902  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903  if eval \${$3+:} false; then :
1904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905$as_echo_n "checking for $2... " >&6; }
1906if eval \${$3+:} false; then :
1907  $as_echo_n "(cached) " >&6
1908fi
1909eval ac_res=\$$3
1910	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911$as_echo "$ac_res" >&6; }
1912else
1913  # Is the header compilable?
1914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1915$as_echo_n "checking $2 usability... " >&6; }
1916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917/* end confdefs.h.  */
1918$4
1919#include <$2>
1920_ACEOF
1921if ac_fn_c_try_compile "$LINENO"; then :
1922  ac_header_compiler=yes
1923else
1924  ac_header_compiler=no
1925fi
1926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1928$as_echo "$ac_header_compiler" >&6; }
1929
1930# Is the header present?
1931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1932$as_echo_n "checking $2 presence... " >&6; }
1933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934/* end confdefs.h.  */
1935#include <$2>
1936_ACEOF
1937if ac_fn_c_try_cpp "$LINENO"; then :
1938  ac_header_preproc=yes
1939else
1940  ac_header_preproc=no
1941fi
1942rm -f conftest.err conftest.i conftest.$ac_ext
1943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1944$as_echo "$ac_header_preproc" >&6; }
1945
1946# So?  What about this header?
1947case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1948  yes:no: )
1949    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1950$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1951    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1952$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1953    ;;
1954  no:yes:* )
1955    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1956$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1957    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1958$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1959    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1960$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1961    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1962$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1963    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1964$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1965( $as_echo "## ---------------------------------------------------------------------- ##
1966## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1967## ---------------------------------------------------------------------- ##"
1968     ) | sed "s/^/$as_me: WARNING:     /" >&2
1969    ;;
1970esac
1971  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1972$as_echo_n "checking for $2... " >&6; }
1973if eval \${$3+:} false; then :
1974  $as_echo_n "(cached) " >&6
1975else
1976  eval "$3=\$ac_header_compiler"
1977fi
1978eval ac_res=\$$3
1979	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980$as_echo "$ac_res" >&6; }
1981fi
1982  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983
1984} # ac_fn_c_check_header_mongrel
1985cat >config.log <<_ACEOF
1986This file contains any messages produced by compilers while
1987running configure, to aid debugging if configure makes a mistake.
1988
1989It was created by xf86-video-trident $as_me 1.3.7, which was
1990generated by GNU Autoconf 2.69.  Invocation command line was
1991
1992  $ $0 $@
1993
1994_ACEOF
1995exec 5>>config.log
1996{
1997cat <<_ASUNAME
1998## --------- ##
1999## Platform. ##
2000## --------- ##
2001
2002hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2003uname -m = `(uname -m) 2>/dev/null || echo unknown`
2004uname -r = `(uname -r) 2>/dev/null || echo unknown`
2005uname -s = `(uname -s) 2>/dev/null || echo unknown`
2006uname -v = `(uname -v) 2>/dev/null || echo unknown`
2007
2008/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2009/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2010
2011/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2012/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2013/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2014/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2015/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2016/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2017/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2018
2019_ASUNAME
2020
2021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022for as_dir in $PATH
2023do
2024  IFS=$as_save_IFS
2025  test -z "$as_dir" && as_dir=.
2026    $as_echo "PATH: $as_dir"
2027  done
2028IFS=$as_save_IFS
2029
2030} >&5
2031
2032cat >&5 <<_ACEOF
2033
2034
2035## ----------- ##
2036## Core tests. ##
2037## ----------- ##
2038
2039_ACEOF
2040
2041
2042# Keep a trace of the command line.
2043# Strip out --no-create and --no-recursion so they do not pile up.
2044# Strip out --silent because we don't want to record it for future runs.
2045# Also quote any args containing shell meta-characters.
2046# Make two passes to allow for proper duplicate-argument suppression.
2047ac_configure_args=
2048ac_configure_args0=
2049ac_configure_args1=
2050ac_must_keep_next=false
2051for ac_pass in 1 2
2052do
2053  for ac_arg
2054  do
2055    case $ac_arg in
2056    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2057    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2058    | -silent | --silent | --silen | --sile | --sil)
2059      continue ;;
2060    *\'*)
2061      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2062    esac
2063    case $ac_pass in
2064    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2065    2)
2066      as_fn_append ac_configure_args1 " '$ac_arg'"
2067      if test $ac_must_keep_next = true; then
2068	ac_must_keep_next=false # Got value, back to normal.
2069      else
2070	case $ac_arg in
2071	  *=* | --config-cache | -C | -disable-* | --disable-* \
2072	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2073	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2074	  | -with-* | --with-* | -without-* | --without-* | --x)
2075	    case "$ac_configure_args0 " in
2076	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2077	    esac
2078	    ;;
2079	  -* ) ac_must_keep_next=true ;;
2080	esac
2081      fi
2082      as_fn_append ac_configure_args " '$ac_arg'"
2083      ;;
2084    esac
2085  done
2086done
2087{ ac_configure_args0=; unset ac_configure_args0;}
2088{ ac_configure_args1=; unset ac_configure_args1;}
2089
2090# When interrupted or exit'd, cleanup temporary files, and complete
2091# config.log.  We remove comments because anyway the quotes in there
2092# would cause problems or look ugly.
2093# WARNING: Use '\'' to represent an apostrophe within the trap.
2094# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2095trap 'exit_status=$?
2096  # Save into config.log some information that might help in debugging.
2097  {
2098    echo
2099
2100    $as_echo "## ---------------- ##
2101## Cache variables. ##
2102## ---------------- ##"
2103    echo
2104    # The following way of writing the cache mishandles newlines in values,
2105(
2106  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2107    eval ac_val=\$$ac_var
2108    case $ac_val in #(
2109    *${as_nl}*)
2110      case $ac_var in #(
2111      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2112$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2113      esac
2114      case $ac_var in #(
2115      _ | IFS | as_nl) ;; #(
2116      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2117      *) { eval $ac_var=; unset $ac_var;} ;;
2118      esac ;;
2119    esac
2120  done
2121  (set) 2>&1 |
2122    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2123    *${as_nl}ac_space=\ *)
2124      sed -n \
2125	"s/'\''/'\''\\\\'\'''\''/g;
2126	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2127      ;; #(
2128    *)
2129      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2130      ;;
2131    esac |
2132    sort
2133)
2134    echo
2135
2136    $as_echo "## ----------------- ##
2137## Output variables. ##
2138## ----------------- ##"
2139    echo
2140    for ac_var in $ac_subst_vars
2141    do
2142      eval ac_val=\$$ac_var
2143      case $ac_val in
2144      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2145      esac
2146      $as_echo "$ac_var='\''$ac_val'\''"
2147    done | sort
2148    echo
2149
2150    if test -n "$ac_subst_files"; then
2151      $as_echo "## ------------------- ##
2152## File substitutions. ##
2153## ------------------- ##"
2154      echo
2155      for ac_var in $ac_subst_files
2156      do
2157	eval ac_val=\$$ac_var
2158	case $ac_val in
2159	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2160	esac
2161	$as_echo "$ac_var='\''$ac_val'\''"
2162      done | sort
2163      echo
2164    fi
2165
2166    if test -s confdefs.h; then
2167      $as_echo "## ----------- ##
2168## confdefs.h. ##
2169## ----------- ##"
2170      echo
2171      cat confdefs.h
2172      echo
2173    fi
2174    test "$ac_signal" != 0 &&
2175      $as_echo "$as_me: caught signal $ac_signal"
2176    $as_echo "$as_me: exit $exit_status"
2177  } >&5
2178  rm -f core *.core core.conftest.* &&
2179    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2180    exit $exit_status
2181' 0
2182for ac_signal in 1 2 13 15; do
2183  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2184done
2185ac_signal=0
2186
2187# confdefs.h avoids OS command line length limits that DEFS can exceed.
2188rm -f -r conftest* confdefs.h
2189
2190$as_echo "/* confdefs.h */" > confdefs.h
2191
2192# Predefined preprocessor variables.
2193
2194cat >>confdefs.h <<_ACEOF
2195#define PACKAGE_NAME "$PACKAGE_NAME"
2196_ACEOF
2197
2198cat >>confdefs.h <<_ACEOF
2199#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2200_ACEOF
2201
2202cat >>confdefs.h <<_ACEOF
2203#define PACKAGE_VERSION "$PACKAGE_VERSION"
2204_ACEOF
2205
2206cat >>confdefs.h <<_ACEOF
2207#define PACKAGE_STRING "$PACKAGE_STRING"
2208_ACEOF
2209
2210cat >>confdefs.h <<_ACEOF
2211#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2212_ACEOF
2213
2214cat >>confdefs.h <<_ACEOF
2215#define PACKAGE_URL "$PACKAGE_URL"
2216_ACEOF
2217
2218
2219# Let the site file select an alternate cache file if it wants to.
2220# Prefer an explicitly selected file to automatically selected ones.
2221ac_site_file1=NONE
2222ac_site_file2=NONE
2223if test -n "$CONFIG_SITE"; then
2224  # We do not want a PATH search for config.site.
2225  case $CONFIG_SITE in #((
2226    -*)  ac_site_file1=./$CONFIG_SITE;;
2227    */*) ac_site_file1=$CONFIG_SITE;;
2228    *)   ac_site_file1=./$CONFIG_SITE;;
2229  esac
2230elif test "x$prefix" != xNONE; then
2231  ac_site_file1=$prefix/share/config.site
2232  ac_site_file2=$prefix/etc/config.site
2233else
2234  ac_site_file1=$ac_default_prefix/share/config.site
2235  ac_site_file2=$ac_default_prefix/etc/config.site
2236fi
2237for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2238do
2239  test "x$ac_site_file" = xNONE && continue
2240  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2241    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2242$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2243    sed 's/^/| /' "$ac_site_file" >&5
2244    . "$ac_site_file" \
2245      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2247as_fn_error $? "failed to load site script $ac_site_file
2248See \`config.log' for more details" "$LINENO" 5; }
2249  fi
2250done
2251
2252if test -r "$cache_file"; then
2253  # Some versions of bash will fail to source /dev/null (special files
2254  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2255  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2256    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2257$as_echo "$as_me: loading cache $cache_file" >&6;}
2258    case $cache_file in
2259      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2260      *)                      . "./$cache_file";;
2261    esac
2262  fi
2263else
2264  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2265$as_echo "$as_me: creating cache $cache_file" >&6;}
2266  >$cache_file
2267fi
2268
2269# Check that the precious variables saved in the cache have kept the same
2270# value.
2271ac_cache_corrupted=false
2272for ac_var in $ac_precious_vars; do
2273  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2274  eval ac_new_set=\$ac_env_${ac_var}_set
2275  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2276  eval ac_new_val=\$ac_env_${ac_var}_value
2277  case $ac_old_set,$ac_new_set in
2278    set,)
2279      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2280$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2281      ac_cache_corrupted=: ;;
2282    ,set)
2283      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2284$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2285      ac_cache_corrupted=: ;;
2286    ,);;
2287    *)
2288      if test "x$ac_old_val" != "x$ac_new_val"; then
2289	# differences in whitespace do not lead to failure.
2290	ac_old_val_w=`echo x $ac_old_val`
2291	ac_new_val_w=`echo x $ac_new_val`
2292	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2293	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2294$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2295	  ac_cache_corrupted=:
2296	else
2297	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2298$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2299	  eval $ac_var=\$ac_old_val
2300	fi
2301	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2302$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2303	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2304$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2305      fi;;
2306  esac
2307  # Pass precious variables to config.status.
2308  if test "$ac_new_set" = set; then
2309    case $ac_new_val in
2310    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2311    *) ac_arg=$ac_var=$ac_new_val ;;
2312    esac
2313    case " $ac_configure_args " in
2314      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2315      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2316    esac
2317  fi
2318done
2319if $ac_cache_corrupted; then
2320  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2322  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2323$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2324  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2325fi
2326## -------------------- ##
2327## Main body of script. ##
2328## -------------------- ##
2329
2330ac_ext=c
2331ac_cpp='$CPP $CPPFLAGS'
2332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2334ac_compiler_gnu=$ac_cv_c_compiler_gnu
2335
2336
2337
2338ac_config_headers="$ac_config_headers config.h"
2339
2340ac_aux_dir=
2341for ac_dir in . "$srcdir"/.; do
2342  if test -f "$ac_dir/install-sh"; then
2343    ac_aux_dir=$ac_dir
2344    ac_install_sh="$ac_aux_dir/install-sh -c"
2345    break
2346  elif test -f "$ac_dir/install.sh"; then
2347    ac_aux_dir=$ac_dir
2348    ac_install_sh="$ac_aux_dir/install.sh -c"
2349    break
2350  elif test -f "$ac_dir/shtool"; then
2351    ac_aux_dir=$ac_dir
2352    ac_install_sh="$ac_aux_dir/shtool install -c"
2353    break
2354  fi
2355done
2356if test -z "$ac_aux_dir"; then
2357  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2358fi
2359
2360# These three variables are undocumented and unsupported,
2361# and are intended to be withdrawn in a future Autoconf release.
2362# They can cause serious problems if a builder's source tree is in a directory
2363# whose full name contains unusual characters.
2364ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2365ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2366ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2367
2368
2369
2370# Initialize Automake
2371am__api_version='1.14'
2372
2373# Find a good install program.  We prefer a C program (faster),
2374# so one script is as good as another.  But avoid the broken or
2375# incompatible versions:
2376# SysV /etc/install, /usr/sbin/install
2377# SunOS /usr/etc/install
2378# IRIX /sbin/install
2379# AIX /bin/install
2380# AmigaOS /C/install, which installs bootblocks on floppy discs
2381# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2382# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2383# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2384# OS/2's system install, which has a completely different semantic
2385# ./install, which can be erroneously created by make from ./install.sh.
2386# Reject install programs that cannot install multiple files.
2387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2388$as_echo_n "checking for a BSD-compatible install... " >&6; }
2389if test -z "$INSTALL"; then
2390if ${ac_cv_path_install+:} false; then :
2391  $as_echo_n "(cached) " >&6
2392else
2393  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394for as_dir in $PATH
2395do
2396  IFS=$as_save_IFS
2397  test -z "$as_dir" && as_dir=.
2398    # Account for people who put trailing slashes in PATH elements.
2399case $as_dir/ in #((
2400  ./ | .// | /[cC]/* | \
2401  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2402  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2403  /usr/ucb/* ) ;;
2404  *)
2405    # OSF1 and SCO ODT 3.0 have their own names for install.
2406    # Don't use installbsd from OSF since it installs stuff as root
2407    # by default.
2408    for ac_prog in ginstall scoinst install; do
2409      for ac_exec_ext in '' $ac_executable_extensions; do
2410	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2411	  if test $ac_prog = install &&
2412	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2413	    # AIX install.  It has an incompatible calling convention.
2414	    :
2415	  elif test $ac_prog = install &&
2416	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2417	    # program-specific install script used by HP pwplus--don't use.
2418	    :
2419	  else
2420	    rm -rf conftest.one conftest.two conftest.dir
2421	    echo one > conftest.one
2422	    echo two > conftest.two
2423	    mkdir conftest.dir
2424	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2425	      test -s conftest.one && test -s conftest.two &&
2426	      test -s conftest.dir/conftest.one &&
2427	      test -s conftest.dir/conftest.two
2428	    then
2429	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2430	      break 3
2431	    fi
2432	  fi
2433	fi
2434      done
2435    done
2436    ;;
2437esac
2438
2439  done
2440IFS=$as_save_IFS
2441
2442rm -rf conftest.one conftest.two conftest.dir
2443
2444fi
2445  if test "${ac_cv_path_install+set}" = set; then
2446    INSTALL=$ac_cv_path_install
2447  else
2448    # As a last resort, use the slow shell script.  Don't cache a
2449    # value for INSTALL within a source directory, because that will
2450    # break other packages using the cache if that directory is
2451    # removed, or if the value is a relative name.
2452    INSTALL=$ac_install_sh
2453  fi
2454fi
2455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2456$as_echo "$INSTALL" >&6; }
2457
2458# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2459# It thinks the first close brace ends the variable substitution.
2460test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2461
2462test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2463
2464test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2465
2466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2467$as_echo_n "checking whether build environment is sane... " >&6; }
2468# Reject unsafe characters in $srcdir or the absolute working directory
2469# name.  Accept space and tab only in the latter.
2470am_lf='
2471'
2472case `pwd` in
2473  *[\\\"\#\$\&\'\`$am_lf]*)
2474    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2475esac
2476case $srcdir in
2477  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2478    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2479esac
2480
2481# Do 'set' in a subshell so we don't clobber the current shell's
2482# arguments.  Must try -L first in case configure is actually a
2483# symlink; some systems play weird games with the mod time of symlinks
2484# (eg FreeBSD returns the mod time of the symlink's containing
2485# directory).
2486if (
2487   am_has_slept=no
2488   for am_try in 1 2; do
2489     echo "timestamp, slept: $am_has_slept" > conftest.file
2490     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2491     if test "$*" = "X"; then
2492	# -L didn't work.
2493	set X `ls -t "$srcdir/configure" conftest.file`
2494     fi
2495     if test "$*" != "X $srcdir/configure conftest.file" \
2496	&& test "$*" != "X conftest.file $srcdir/configure"; then
2497
2498	# If neither matched, then we have a broken ls.  This can happen
2499	# if, for instance, CONFIG_SHELL is bash and it inherits a
2500	# broken ls alias from the environment.  This has actually
2501	# happened.  Such a system could not be considered "sane".
2502	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2503  alias in your environment" "$LINENO" 5
2504     fi
2505     if test "$2" = conftest.file || test $am_try -eq 2; then
2506       break
2507     fi
2508     # Just in case.
2509     sleep 1
2510     am_has_slept=yes
2511   done
2512   test "$2" = conftest.file
2513   )
2514then
2515   # Ok.
2516   :
2517else
2518   as_fn_error $? "newly created file is older than distributed files!
2519Check your system clock" "$LINENO" 5
2520fi
2521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2522$as_echo "yes" >&6; }
2523# If we didn't sleep, we still need to ensure time stamps of config.status and
2524# generated files are strictly newer.
2525am_sleep_pid=
2526if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2527  ( sleep 1 ) &
2528  am_sleep_pid=$!
2529fi
2530
2531rm -f conftest.file
2532
2533test "$program_prefix" != NONE &&
2534  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2535# Use a double $ so make ignores it.
2536test "$program_suffix" != NONE &&
2537  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2538# Double any \ or $.
2539# By default was `s,x,x', remove it if useless.
2540ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2541program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2542
2543# expand $ac_aux_dir to an absolute path
2544am_aux_dir=`cd $ac_aux_dir && pwd`
2545
2546if test x"${MISSING+set}" != xset; then
2547  case $am_aux_dir in
2548  *\ * | *\	*)
2549    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2550  *)
2551    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2552  esac
2553fi
2554# Use eval to expand $SHELL
2555if eval "$MISSING --is-lightweight"; then
2556  am_missing_run="$MISSING "
2557else
2558  am_missing_run=
2559  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2560$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2561fi
2562
2563if test x"${install_sh}" != xset; then
2564  case $am_aux_dir in
2565  *\ * | *\	*)
2566    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2567  *)
2568    install_sh="\${SHELL} $am_aux_dir/install-sh"
2569  esac
2570fi
2571
2572# Installed binaries are usually stripped using 'strip' when the user
2573# run "make install-strip".  However 'strip' might not be the right
2574# tool to use in cross-compilation environments, therefore Automake
2575# will honor the 'STRIP' environment variable to overrule this program.
2576if test "$cross_compiling" != no; then
2577  if test -n "$ac_tool_prefix"; then
2578  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2579set dummy ${ac_tool_prefix}strip; ac_word=$2
2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581$as_echo_n "checking for $ac_word... " >&6; }
2582if ${ac_cv_prog_STRIP+:} false; then :
2583  $as_echo_n "(cached) " >&6
2584else
2585  if test -n "$STRIP"; then
2586  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2587else
2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589for as_dir in $PATH
2590do
2591  IFS=$as_save_IFS
2592  test -z "$as_dir" && as_dir=.
2593    for ac_exec_ext in '' $ac_executable_extensions; do
2594  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2595    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597    break 2
2598  fi
2599done
2600  done
2601IFS=$as_save_IFS
2602
2603fi
2604fi
2605STRIP=$ac_cv_prog_STRIP
2606if test -n "$STRIP"; then
2607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2608$as_echo "$STRIP" >&6; }
2609else
2610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611$as_echo "no" >&6; }
2612fi
2613
2614
2615fi
2616if test -z "$ac_cv_prog_STRIP"; then
2617  ac_ct_STRIP=$STRIP
2618  # Extract the first word of "strip", so it can be a program name with args.
2619set dummy strip; ac_word=$2
2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621$as_echo_n "checking for $ac_word... " >&6; }
2622if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2623  $as_echo_n "(cached) " >&6
2624else
2625  if test -n "$ac_ct_STRIP"; then
2626  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2627else
2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629for as_dir in $PATH
2630do
2631  IFS=$as_save_IFS
2632  test -z "$as_dir" && as_dir=.
2633    for ac_exec_ext in '' $ac_executable_extensions; do
2634  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2635    ac_cv_prog_ac_ct_STRIP="strip"
2636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2637    break 2
2638  fi
2639done
2640  done
2641IFS=$as_save_IFS
2642
2643fi
2644fi
2645ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2646if test -n "$ac_ct_STRIP"; then
2647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2648$as_echo "$ac_ct_STRIP" >&6; }
2649else
2650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651$as_echo "no" >&6; }
2652fi
2653
2654  if test "x$ac_ct_STRIP" = x; then
2655    STRIP=":"
2656  else
2657    case $cross_compiling:$ac_tool_warned in
2658yes:)
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2661ac_tool_warned=yes ;;
2662esac
2663    STRIP=$ac_ct_STRIP
2664  fi
2665else
2666  STRIP="$ac_cv_prog_STRIP"
2667fi
2668
2669fi
2670INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2671
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2673$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2674if test -z "$MKDIR_P"; then
2675  if ${ac_cv_path_mkdir+:} false; then :
2676  $as_echo_n "(cached) " >&6
2677else
2678  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2680do
2681  IFS=$as_save_IFS
2682  test -z "$as_dir" && as_dir=.
2683    for ac_prog in mkdir gmkdir; do
2684	 for ac_exec_ext in '' $ac_executable_extensions; do
2685	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2686	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2687	     'mkdir (GNU coreutils) '* | \
2688	     'mkdir (coreutils) '* | \
2689	     'mkdir (fileutils) '4.1*)
2690	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2691	       break 3;;
2692	   esac
2693	 done
2694       done
2695  done
2696IFS=$as_save_IFS
2697
2698fi
2699
2700  test -d ./--version && rmdir ./--version
2701  if test "${ac_cv_path_mkdir+set}" = set; then
2702    MKDIR_P="$ac_cv_path_mkdir -p"
2703  else
2704    # As a last resort, use the slow shell script.  Don't cache a
2705    # value for MKDIR_P within a source directory, because that will
2706    # break other packages using the cache if that directory is
2707    # removed, or if the value is a relative name.
2708    MKDIR_P="$ac_install_sh -d"
2709  fi
2710fi
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2712$as_echo "$MKDIR_P" >&6; }
2713
2714for ac_prog in gawk mawk nawk awk
2715do
2716  # Extract the first word of "$ac_prog", so it can be a program name with args.
2717set dummy $ac_prog; ac_word=$2
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719$as_echo_n "checking for $ac_word... " >&6; }
2720if ${ac_cv_prog_AWK+:} false; then :
2721  $as_echo_n "(cached) " >&6
2722else
2723  if test -n "$AWK"; then
2724  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2725else
2726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727for as_dir in $PATH
2728do
2729  IFS=$as_save_IFS
2730  test -z "$as_dir" && as_dir=.
2731    for ac_exec_ext in '' $ac_executable_extensions; do
2732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733    ac_cv_prog_AWK="$ac_prog"
2734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735    break 2
2736  fi
2737done
2738  done
2739IFS=$as_save_IFS
2740
2741fi
2742fi
2743AWK=$ac_cv_prog_AWK
2744if test -n "$AWK"; then
2745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2746$as_echo "$AWK" >&6; }
2747else
2748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749$as_echo "no" >&6; }
2750fi
2751
2752
2753  test -n "$AWK" && break
2754done
2755
2756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2757$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2758set x ${MAKE-make}
2759ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2760if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2761  $as_echo_n "(cached) " >&6
2762else
2763  cat >conftest.make <<\_ACEOF
2764SHELL = /bin/sh
2765all:
2766	@echo '@@@%%%=$(MAKE)=@@@%%%'
2767_ACEOF
2768# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2769case `${MAKE-make} -f conftest.make 2>/dev/null` in
2770  *@@@%%%=?*=@@@%%%*)
2771    eval ac_cv_prog_make_${ac_make}_set=yes;;
2772  *)
2773    eval ac_cv_prog_make_${ac_make}_set=no;;
2774esac
2775rm -f conftest.make
2776fi
2777if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2779$as_echo "yes" >&6; }
2780  SET_MAKE=
2781else
2782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783$as_echo "no" >&6; }
2784  SET_MAKE="MAKE=${MAKE-make}"
2785fi
2786
2787rm -rf .tst 2>/dev/null
2788mkdir .tst 2>/dev/null
2789if test -d .tst; then
2790  am__leading_dot=.
2791else
2792  am__leading_dot=_
2793fi
2794rmdir .tst 2>/dev/null
2795
2796# Check whether --enable-silent-rules was given.
2797if test "${enable_silent_rules+set}" = set; then :
2798  enableval=$enable_silent_rules;
2799fi
2800
2801case $enable_silent_rules in # (((
2802  yes) AM_DEFAULT_VERBOSITY=0;;
2803   no) AM_DEFAULT_VERBOSITY=1;;
2804    *) AM_DEFAULT_VERBOSITY=1;;
2805esac
2806am_make=${MAKE-make}
2807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2808$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2809if ${am_cv_make_support_nested_variables+:} false; then :
2810  $as_echo_n "(cached) " >&6
2811else
2812  if $as_echo 'TRUE=$(BAR$(V))
2813BAR0=false
2814BAR1=true
2815V=1
2816am__doit:
2817	@$(TRUE)
2818.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2819  am_cv_make_support_nested_variables=yes
2820else
2821  am_cv_make_support_nested_variables=no
2822fi
2823fi
2824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2825$as_echo "$am_cv_make_support_nested_variables" >&6; }
2826if test $am_cv_make_support_nested_variables = yes; then
2827    AM_V='$(V)'
2828  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2829else
2830  AM_V=$AM_DEFAULT_VERBOSITY
2831  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2832fi
2833AM_BACKSLASH='\'
2834
2835if test "`cd $srcdir && pwd`" != "`pwd`"; then
2836  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2837  # is not polluted with repeated "-I."
2838  am__isrc=' -I$(srcdir)'
2839  # test to see if srcdir already configured
2840  if test -f $srcdir/config.status; then
2841    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2842  fi
2843fi
2844
2845# test whether we have cygpath
2846if test -z "$CYGPATH_W"; then
2847  if (cygpath --version) >/dev/null 2>/dev/null; then
2848    CYGPATH_W='cygpath -w'
2849  else
2850    CYGPATH_W=echo
2851  fi
2852fi
2853
2854
2855# Define the identity of the package.
2856 PACKAGE='xf86-video-trident'
2857 VERSION='1.3.7'
2858
2859
2860cat >>confdefs.h <<_ACEOF
2861#define PACKAGE "$PACKAGE"
2862_ACEOF
2863
2864
2865cat >>confdefs.h <<_ACEOF
2866#define VERSION "$VERSION"
2867_ACEOF
2868
2869# Some tools Automake needs.
2870
2871ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2872
2873
2874AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2875
2876
2877AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2878
2879
2880AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2881
2882
2883MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2884
2885# For better backward compatibility.  To be removed once Automake 1.9.x
2886# dies out for good.  For more background, see:
2887# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2888# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2889mkdir_p='$(MKDIR_P)'
2890
2891# We need awk for the "check" target.  The system "awk" is bad on
2892# some platforms.
2893# Always define AMTAR for backward compatibility.  Yes, it's still used
2894# in the wild :-(  We should find a proper way to deprecate it ...
2895AMTAR='$${TAR-tar}'
2896
2897
2898# We'll loop over all known methods to create a tar archive until one works.
2899_am_tools='gnutar  pax cpio none'
2900
2901am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2902
2903
2904
2905
2906
2907
2908# POSIX will say in a future version that running "rm -f" with no argument
2909# is OK; and we want to be able to make that assumption in our Makefile
2910# recipes.  So use an aggressive probe to check that the usage we want is
2911# actually supported "in the wild" to an acceptable degree.
2912# See automake bug#10828.
2913# To make any issue more visible, cause the running configure to be aborted
2914# by default if the 'rm' program in use doesn't match our expectations; the
2915# user can still override this though.
2916if rm -f && rm -fr && rm -rf; then : OK; else
2917  cat >&2 <<'END'
2918Oops!
2919
2920Your 'rm' program seems unable to run without file operands specified
2921on the command line, even when the '-f' option is present.  This is contrary
2922to the behaviour of most rm programs out there, and not conforming with
2923the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2924
2925Please tell bug-automake@gnu.org about your system, including the value
2926of your $PATH and any error possibly output before this message.  This
2927can help us improve future automake versions.
2928
2929END
2930  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2931    echo 'Configuration will proceed anyway, since you have set the' >&2
2932    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2933    echo >&2
2934  else
2935    cat >&2 <<'END'
2936Aborting the configuration process, to ensure you take notice of the issue.
2937
2938You can download and install GNU coreutils to get an 'rm' implementation
2939that behaves properly: <http://www.gnu.org/software/coreutils/>.
2940
2941If you want to complete the configuration process using your problematic
2942'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2943to "yes", and re-run configure.
2944
2945END
2946    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2947  fi
2948fi
2949
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2951$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2952    # Check whether --enable-maintainer-mode was given.
2953if test "${enable_maintainer_mode+set}" = set; then :
2954  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2955else
2956  USE_MAINTAINER_MODE=no
2957fi
2958
2959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2960$as_echo "$USE_MAINTAINER_MODE" >&6; }
2961   if test $USE_MAINTAINER_MODE = yes; then
2962  MAINTAINER_MODE_TRUE=
2963  MAINTAINER_MODE_FALSE='#'
2964else
2965  MAINTAINER_MODE_TRUE='#'
2966  MAINTAINER_MODE_FALSE=
2967fi
2968
2969  MAINT=$MAINTAINER_MODE_TRUE
2970
2971
2972
2973# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985DEPDIR="${am__leading_dot}deps"
2986
2987ac_config_commands="$ac_config_commands depfiles"
2988
2989
2990am_make=${MAKE-make}
2991cat > confinc << 'END'
2992am__doit:
2993	@echo this is the am__doit target
2994.PHONY: am__doit
2995END
2996# If we don't find an include directive, just comment out the code.
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2998$as_echo_n "checking for style of include used by $am_make... " >&6; }
2999am__include="#"
3000am__quote=
3001_am_result=none
3002# First try GNU make style include.
3003echo "include confinc" > confmf
3004# Ignore all kinds of additional output from 'make'.
3005case `$am_make -s -f confmf 2> /dev/null` in #(
3006*the\ am__doit\ target*)
3007  am__include=include
3008  am__quote=
3009  _am_result=GNU
3010  ;;
3011esac
3012# Now try BSD make style include.
3013if test "$am__include" = "#"; then
3014   echo '.include "confinc"' > confmf
3015   case `$am_make -s -f confmf 2> /dev/null` in #(
3016   *the\ am__doit\ target*)
3017     am__include=.include
3018     am__quote="\""
3019     _am_result=BSD
3020     ;;
3021   esac
3022fi
3023
3024
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3026$as_echo "$_am_result" >&6; }
3027rm -f confinc confmf
3028
3029# Check whether --enable-dependency-tracking was given.
3030if test "${enable_dependency_tracking+set}" = set; then :
3031  enableval=$enable_dependency_tracking;
3032fi
3033
3034if test "x$enable_dependency_tracking" != xno; then
3035  am_depcomp="$ac_aux_dir/depcomp"
3036  AMDEPBACKSLASH='\'
3037  am__nodep='_no'
3038fi
3039 if test "x$enable_dependency_tracking" != xno; then
3040  AMDEP_TRUE=
3041  AMDEP_FALSE='#'
3042else
3043  AMDEP_TRUE='#'
3044  AMDEP_FALSE=
3045fi
3046
3047
3048ac_ext=c
3049ac_cpp='$CPP $CPPFLAGS'
3050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052ac_compiler_gnu=$ac_cv_c_compiler_gnu
3053if test -n "$ac_tool_prefix"; then
3054  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3055set dummy ${ac_tool_prefix}gcc; ac_word=$2
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057$as_echo_n "checking for $ac_word... " >&6; }
3058if ${ac_cv_prog_CC+:} false; then :
3059  $as_echo_n "(cached) " >&6
3060else
3061  if test -n "$CC"; then
3062  ac_cv_prog_CC="$CC" # Let the user override the test.
3063else
3064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065for as_dir in $PATH
3066do
3067  IFS=$as_save_IFS
3068  test -z "$as_dir" && as_dir=.
3069    for ac_exec_ext in '' $ac_executable_extensions; do
3070  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3071    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073    break 2
3074  fi
3075done
3076  done
3077IFS=$as_save_IFS
3078
3079fi
3080fi
3081CC=$ac_cv_prog_CC
3082if test -n "$CC"; then
3083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3084$as_echo "$CC" >&6; }
3085else
3086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087$as_echo "no" >&6; }
3088fi
3089
3090
3091fi
3092if test -z "$ac_cv_prog_CC"; then
3093  ac_ct_CC=$CC
3094  # Extract the first word of "gcc", so it can be a program name with args.
3095set dummy gcc; ac_word=$2
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097$as_echo_n "checking for $ac_word... " >&6; }
3098if ${ac_cv_prog_ac_ct_CC+:} false; then :
3099  $as_echo_n "(cached) " >&6
3100else
3101  if test -n "$ac_ct_CC"; then
3102  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3103else
3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105for as_dir in $PATH
3106do
3107  IFS=$as_save_IFS
3108  test -z "$as_dir" && as_dir=.
3109    for ac_exec_ext in '' $ac_executable_extensions; do
3110  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111    ac_cv_prog_ac_ct_CC="gcc"
3112    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113    break 2
3114  fi
3115done
3116  done
3117IFS=$as_save_IFS
3118
3119fi
3120fi
3121ac_ct_CC=$ac_cv_prog_ac_ct_CC
3122if test -n "$ac_ct_CC"; then
3123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3124$as_echo "$ac_ct_CC" >&6; }
3125else
3126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127$as_echo "no" >&6; }
3128fi
3129
3130  if test "x$ac_ct_CC" = x; then
3131    CC=""
3132  else
3133    case $cross_compiling:$ac_tool_warned in
3134yes:)
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3137ac_tool_warned=yes ;;
3138esac
3139    CC=$ac_ct_CC
3140  fi
3141else
3142  CC="$ac_cv_prog_CC"
3143fi
3144
3145if test -z "$CC"; then
3146          if test -n "$ac_tool_prefix"; then
3147    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3148set dummy ${ac_tool_prefix}cc; ac_word=$2
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150$as_echo_n "checking for $ac_word... " >&6; }
3151if ${ac_cv_prog_CC+:} false; then :
3152  $as_echo_n "(cached) " >&6
3153else
3154  if test -n "$CC"; then
3155  ac_cv_prog_CC="$CC" # Let the user override the test.
3156else
3157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158for as_dir in $PATH
3159do
3160  IFS=$as_save_IFS
3161  test -z "$as_dir" && as_dir=.
3162    for ac_exec_ext in '' $ac_executable_extensions; do
3163  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3164    ac_cv_prog_CC="${ac_tool_prefix}cc"
3165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166    break 2
3167  fi
3168done
3169  done
3170IFS=$as_save_IFS
3171
3172fi
3173fi
3174CC=$ac_cv_prog_CC
3175if test -n "$CC"; then
3176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3177$as_echo "$CC" >&6; }
3178else
3179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180$as_echo "no" >&6; }
3181fi
3182
3183
3184  fi
3185fi
3186if test -z "$CC"; then
3187  # Extract the first word of "cc", so it can be a program name with args.
3188set dummy cc; ac_word=$2
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190$as_echo_n "checking for $ac_word... " >&6; }
3191if ${ac_cv_prog_CC+:} false; then :
3192  $as_echo_n "(cached) " >&6
3193else
3194  if test -n "$CC"; then
3195  ac_cv_prog_CC="$CC" # Let the user override the test.
3196else
3197  ac_prog_rejected=no
3198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199for as_dir in $PATH
3200do
3201  IFS=$as_save_IFS
3202  test -z "$as_dir" && as_dir=.
3203    for ac_exec_ext in '' $ac_executable_extensions; do
3204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3205    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3206       ac_prog_rejected=yes
3207       continue
3208     fi
3209    ac_cv_prog_CC="cc"
3210    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211    break 2
3212  fi
3213done
3214  done
3215IFS=$as_save_IFS
3216
3217if test $ac_prog_rejected = yes; then
3218  # We found a bogon in the path, so make sure we never use it.
3219  set dummy $ac_cv_prog_CC
3220  shift
3221  if test $# != 0; then
3222    # We chose a different compiler from the bogus one.
3223    # However, it has the same basename, so the bogon will be chosen
3224    # first if we set CC to just the basename; use the full file name.
3225    shift
3226    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3227  fi
3228fi
3229fi
3230fi
3231CC=$ac_cv_prog_CC
3232if test -n "$CC"; then
3233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3234$as_echo "$CC" >&6; }
3235else
3236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237$as_echo "no" >&6; }
3238fi
3239
3240
3241fi
3242if test -z "$CC"; then
3243  if test -n "$ac_tool_prefix"; then
3244  for ac_prog in cl.exe
3245  do
3246    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3247set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249$as_echo_n "checking for $ac_word... " >&6; }
3250if ${ac_cv_prog_CC+:} false; then :
3251  $as_echo_n "(cached) " >&6
3252else
3253  if test -n "$CC"; then
3254  ac_cv_prog_CC="$CC" # Let the user override the test.
3255else
3256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257for as_dir in $PATH
3258do
3259  IFS=$as_save_IFS
3260  test -z "$as_dir" && as_dir=.
3261    for ac_exec_ext in '' $ac_executable_extensions; do
3262  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3264    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265    break 2
3266  fi
3267done
3268  done
3269IFS=$as_save_IFS
3270
3271fi
3272fi
3273CC=$ac_cv_prog_CC
3274if test -n "$CC"; then
3275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3276$as_echo "$CC" >&6; }
3277else
3278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279$as_echo "no" >&6; }
3280fi
3281
3282
3283    test -n "$CC" && break
3284  done
3285fi
3286if test -z "$CC"; then
3287  ac_ct_CC=$CC
3288  for ac_prog in cl.exe
3289do
3290  # Extract the first word of "$ac_prog", so it can be a program name with args.
3291set dummy $ac_prog; ac_word=$2
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293$as_echo_n "checking for $ac_word... " >&6; }
3294if ${ac_cv_prog_ac_ct_CC+:} false; then :
3295  $as_echo_n "(cached) " >&6
3296else
3297  if test -n "$ac_ct_CC"; then
3298  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3299else
3300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301for as_dir in $PATH
3302do
3303  IFS=$as_save_IFS
3304  test -z "$as_dir" && as_dir=.
3305    for ac_exec_ext in '' $ac_executable_extensions; do
3306  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307    ac_cv_prog_ac_ct_CC="$ac_prog"
3308    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309    break 2
3310  fi
3311done
3312  done
3313IFS=$as_save_IFS
3314
3315fi
3316fi
3317ac_ct_CC=$ac_cv_prog_ac_ct_CC
3318if test -n "$ac_ct_CC"; then
3319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3320$as_echo "$ac_ct_CC" >&6; }
3321else
3322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323$as_echo "no" >&6; }
3324fi
3325
3326
3327  test -n "$ac_ct_CC" && break
3328done
3329
3330  if test "x$ac_ct_CC" = x; then
3331    CC=""
3332  else
3333    case $cross_compiling:$ac_tool_warned in
3334yes:)
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3337ac_tool_warned=yes ;;
3338esac
3339    CC=$ac_ct_CC
3340  fi
3341fi
3342
3343fi
3344
3345
3346test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348as_fn_error $? "no acceptable C compiler found in \$PATH
3349See \`config.log' for more details" "$LINENO" 5; }
3350
3351# Provide some information about the compiler.
3352$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3353set X $ac_compile
3354ac_compiler=$2
3355for ac_option in --version -v -V -qversion; do
3356  { { ac_try="$ac_compiler $ac_option >&5"
3357case "(($ac_try" in
3358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359  *) ac_try_echo=$ac_try;;
3360esac
3361eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362$as_echo "$ac_try_echo"; } >&5
3363  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3364  ac_status=$?
3365  if test -s conftest.err; then
3366    sed '10a\
3367... rest of stderr output deleted ...
3368         10q' conftest.err >conftest.er1
3369    cat conftest.er1 >&5
3370  fi
3371  rm -f conftest.er1 conftest.err
3372  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373  test $ac_status = 0; }
3374done
3375
3376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377/* end confdefs.h.  */
3378
3379int
3380main ()
3381{
3382
3383  ;
3384  return 0;
3385}
3386_ACEOF
3387ac_clean_files_save=$ac_clean_files
3388ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3389# Try to create an executable without -o first, disregard a.out.
3390# It will help us diagnose broken compilers, and finding out an intuition
3391# of exeext.
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3393$as_echo_n "checking whether the C compiler works... " >&6; }
3394ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3395
3396# The possible output files:
3397ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3398
3399ac_rmfiles=
3400for ac_file in $ac_files
3401do
3402  case $ac_file in
3403    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3404    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3405  esac
3406done
3407rm -f $ac_rmfiles
3408
3409if { { ac_try="$ac_link_default"
3410case "(($ac_try" in
3411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412  *) ac_try_echo=$ac_try;;
3413esac
3414eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3415$as_echo "$ac_try_echo"; } >&5
3416  (eval "$ac_link_default") 2>&5
3417  ac_status=$?
3418  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419  test $ac_status = 0; }; then :
3420  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3421# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3422# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3423# so that the user can short-circuit this test for compilers unknown to
3424# Autoconf.
3425for ac_file in $ac_files ''
3426do
3427  test -f "$ac_file" || continue
3428  case $ac_file in
3429    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3430	;;
3431    [ab].out )
3432	# We found the default executable, but exeext='' is most
3433	# certainly right.
3434	break;;
3435    *.* )
3436	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3437	then :; else
3438	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3439	fi
3440	# We set ac_cv_exeext here because the later test for it is not
3441	# safe: cross compilers may not add the suffix if given an `-o'
3442	# argument, so we may need to know it at that point already.
3443	# Even if this section looks crufty: it has the advantage of
3444	# actually working.
3445	break;;
3446    * )
3447	break;;
3448  esac
3449done
3450test "$ac_cv_exeext" = no && ac_cv_exeext=
3451
3452else
3453  ac_file=''
3454fi
3455if test -z "$ac_file"; then :
3456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3457$as_echo "no" >&6; }
3458$as_echo "$as_me: failed program was:" >&5
3459sed 's/^/| /' conftest.$ac_ext >&5
3460
3461{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3463as_fn_error 77 "C compiler cannot create executables
3464See \`config.log' for more details" "$LINENO" 5; }
3465else
3466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3467$as_echo "yes" >&6; }
3468fi
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3470$as_echo_n "checking for C compiler default output file name... " >&6; }
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3472$as_echo "$ac_file" >&6; }
3473ac_exeext=$ac_cv_exeext
3474
3475rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3476ac_clean_files=$ac_clean_files_save
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3478$as_echo_n "checking for suffix of executables... " >&6; }
3479if { { ac_try="$ac_link"
3480case "(($ac_try" in
3481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482  *) ac_try_echo=$ac_try;;
3483esac
3484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3485$as_echo "$ac_try_echo"; } >&5
3486  (eval "$ac_link") 2>&5
3487  ac_status=$?
3488  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489  test $ac_status = 0; }; then :
3490  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3491# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3492# work properly (i.e., refer to `conftest.exe'), while it won't with
3493# `rm'.
3494for ac_file in conftest.exe conftest conftest.*; do
3495  test -f "$ac_file" || continue
3496  case $ac_file in
3497    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3498    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3499	  break;;
3500    * ) break;;
3501  esac
3502done
3503else
3504  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3507See \`config.log' for more details" "$LINENO" 5; }
3508fi
3509rm -f conftest conftest$ac_cv_exeext
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3511$as_echo "$ac_cv_exeext" >&6; }
3512
3513rm -f conftest.$ac_ext
3514EXEEXT=$ac_cv_exeext
3515ac_exeext=$EXEEXT
3516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517/* end confdefs.h.  */
3518#include <stdio.h>
3519int
3520main ()
3521{
3522FILE *f = fopen ("conftest.out", "w");
3523 return ferror (f) || fclose (f) != 0;
3524
3525  ;
3526  return 0;
3527}
3528_ACEOF
3529ac_clean_files="$ac_clean_files conftest.out"
3530# Check that the compiler produces executables we can run.  If not, either
3531# the compiler is broken, or we cross compile.
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3533$as_echo_n "checking whether we are cross compiling... " >&6; }
3534if test "$cross_compiling" != yes; then
3535  { { ac_try="$ac_link"
3536case "(($ac_try" in
3537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538  *) ac_try_echo=$ac_try;;
3539esac
3540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541$as_echo "$ac_try_echo"; } >&5
3542  (eval "$ac_link") 2>&5
3543  ac_status=$?
3544  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545  test $ac_status = 0; }
3546  if { ac_try='./conftest$ac_cv_exeext'
3547  { { case "(($ac_try" in
3548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549  *) ac_try_echo=$ac_try;;
3550esac
3551eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3552$as_echo "$ac_try_echo"; } >&5
3553  (eval "$ac_try") 2>&5
3554  ac_status=$?
3555  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3556  test $ac_status = 0; }; }; then
3557    cross_compiling=no
3558  else
3559    if test "$cross_compiling" = maybe; then
3560	cross_compiling=yes
3561    else
3562	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564as_fn_error $? "cannot run C compiled programs.
3565If you meant to cross compile, use \`--host'.
3566See \`config.log' for more details" "$LINENO" 5; }
3567    fi
3568  fi
3569fi
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3571$as_echo "$cross_compiling" >&6; }
3572
3573rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3574ac_clean_files=$ac_clean_files_save
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3576$as_echo_n "checking for suffix of object files... " >&6; }
3577if ${ac_cv_objext+:} false; then :
3578  $as_echo_n "(cached) " >&6
3579else
3580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581/* end confdefs.h.  */
3582
3583int
3584main ()
3585{
3586
3587  ;
3588  return 0;
3589}
3590_ACEOF
3591rm -f conftest.o conftest.obj
3592if { { ac_try="$ac_compile"
3593case "(($ac_try" in
3594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595  *) ac_try_echo=$ac_try;;
3596esac
3597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598$as_echo "$ac_try_echo"; } >&5
3599  (eval "$ac_compile") 2>&5
3600  ac_status=$?
3601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3602  test $ac_status = 0; }; then :
3603  for ac_file in conftest.o conftest.obj conftest.*; do
3604  test -f "$ac_file" || continue;
3605  case $ac_file in
3606    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3607    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3608       break;;
3609  esac
3610done
3611else
3612  $as_echo "$as_me: failed program was:" >&5
3613sed 's/^/| /' conftest.$ac_ext >&5
3614
3615{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3617as_fn_error $? "cannot compute suffix of object files: cannot compile
3618See \`config.log' for more details" "$LINENO" 5; }
3619fi
3620rm -f conftest.$ac_cv_objext conftest.$ac_ext
3621fi
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3623$as_echo "$ac_cv_objext" >&6; }
3624OBJEXT=$ac_cv_objext
3625ac_objext=$OBJEXT
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3627$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3628if ${ac_cv_c_compiler_gnu+:} false; then :
3629  $as_echo_n "(cached) " >&6
3630else
3631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632/* end confdefs.h.  */
3633
3634int
3635main ()
3636{
3637#ifndef __GNUC__
3638       choke me
3639#endif
3640
3641  ;
3642  return 0;
3643}
3644_ACEOF
3645if ac_fn_c_try_compile "$LINENO"; then :
3646  ac_compiler_gnu=yes
3647else
3648  ac_compiler_gnu=no
3649fi
3650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651ac_cv_c_compiler_gnu=$ac_compiler_gnu
3652
3653fi
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3655$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3656if test $ac_compiler_gnu = yes; then
3657  GCC=yes
3658else
3659  GCC=
3660fi
3661ac_test_CFLAGS=${CFLAGS+set}
3662ac_save_CFLAGS=$CFLAGS
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3664$as_echo_n "checking whether $CC accepts -g... " >&6; }
3665if ${ac_cv_prog_cc_g+:} false; then :
3666  $as_echo_n "(cached) " >&6
3667else
3668  ac_save_c_werror_flag=$ac_c_werror_flag
3669   ac_c_werror_flag=yes
3670   ac_cv_prog_cc_g=no
3671   CFLAGS="-g"
3672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673/* end confdefs.h.  */
3674
3675int
3676main ()
3677{
3678
3679  ;
3680  return 0;
3681}
3682_ACEOF
3683if ac_fn_c_try_compile "$LINENO"; then :
3684  ac_cv_prog_cc_g=yes
3685else
3686  CFLAGS=""
3687      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688/* end confdefs.h.  */
3689
3690int
3691main ()
3692{
3693
3694  ;
3695  return 0;
3696}
3697_ACEOF
3698if ac_fn_c_try_compile "$LINENO"; then :
3699
3700else
3701  ac_c_werror_flag=$ac_save_c_werror_flag
3702	 CFLAGS="-g"
3703	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704/* end confdefs.h.  */
3705
3706int
3707main ()
3708{
3709
3710  ;
3711  return 0;
3712}
3713_ACEOF
3714if ac_fn_c_try_compile "$LINENO"; then :
3715  ac_cv_prog_cc_g=yes
3716fi
3717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718fi
3719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720fi
3721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722   ac_c_werror_flag=$ac_save_c_werror_flag
3723fi
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3725$as_echo "$ac_cv_prog_cc_g" >&6; }
3726if test "$ac_test_CFLAGS" = set; then
3727  CFLAGS=$ac_save_CFLAGS
3728elif test $ac_cv_prog_cc_g = yes; then
3729  if test "$GCC" = yes; then
3730    CFLAGS="-g -O2"
3731  else
3732    CFLAGS="-g"
3733  fi
3734else
3735  if test "$GCC" = yes; then
3736    CFLAGS="-O2"
3737  else
3738    CFLAGS=
3739  fi
3740fi
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3742$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3743if ${ac_cv_prog_cc_c89+:} false; then :
3744  $as_echo_n "(cached) " >&6
3745else
3746  ac_cv_prog_cc_c89=no
3747ac_save_CC=$CC
3748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749/* end confdefs.h.  */
3750#include <stdarg.h>
3751#include <stdio.h>
3752struct stat;
3753/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3754struct buf { int x; };
3755FILE * (*rcsopen) (struct buf *, struct stat *, int);
3756static char *e (p, i)
3757     char **p;
3758     int i;
3759{
3760  return p[i];
3761}
3762static char *f (char * (*g) (char **, int), char **p, ...)
3763{
3764  char *s;
3765  va_list v;
3766  va_start (v,p);
3767  s = g (p, va_arg (v,int));
3768  va_end (v);
3769  return s;
3770}
3771
3772/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3773   function prototypes and stuff, but not '\xHH' hex character constants.
3774   These don't provoke an error unfortunately, instead are silently treated
3775   as 'x'.  The following induces an error, until -std is added to get
3776   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3777   array size at least.  It's necessary to write '\x00'==0 to get something
3778   that's true only with -std.  */
3779int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3780
3781/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3782   inside strings and character constants.  */
3783#define FOO(x) 'x'
3784int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3785
3786int test (int i, double x);
3787struct s1 {int (*f) (int a);};
3788struct s2 {int (*f) (double a);};
3789int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3790int argc;
3791char **argv;
3792int
3793main ()
3794{
3795return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3796  ;
3797  return 0;
3798}
3799_ACEOF
3800for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3801	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3802do
3803  CC="$ac_save_CC $ac_arg"
3804  if ac_fn_c_try_compile "$LINENO"; then :
3805  ac_cv_prog_cc_c89=$ac_arg
3806fi
3807rm -f core conftest.err conftest.$ac_objext
3808  test "x$ac_cv_prog_cc_c89" != "xno" && break
3809done
3810rm -f conftest.$ac_ext
3811CC=$ac_save_CC
3812
3813fi
3814# AC_CACHE_VAL
3815case "x$ac_cv_prog_cc_c89" in
3816  x)
3817    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3818$as_echo "none needed" >&6; } ;;
3819  xno)
3820    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3821$as_echo "unsupported" >&6; } ;;
3822  *)
3823    CC="$CC $ac_cv_prog_cc_c89"
3824    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3825$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3826esac
3827if test "x$ac_cv_prog_cc_c89" != xno; then :
3828
3829fi
3830
3831ac_ext=c
3832ac_cpp='$CPP $CPPFLAGS'
3833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3835ac_compiler_gnu=$ac_cv_c_compiler_gnu
3836
3837ac_ext=c
3838ac_cpp='$CPP $CPPFLAGS'
3839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3843$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3844if ${am_cv_prog_cc_c_o+:} false; then :
3845  $as_echo_n "(cached) " >&6
3846else
3847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848/* end confdefs.h.  */
3849
3850int
3851main ()
3852{
3853
3854  ;
3855  return 0;
3856}
3857_ACEOF
3858  # Make sure it works both with $CC and with simple cc.
3859  # Following AC_PROG_CC_C_O, we do the test twice because some
3860  # compilers refuse to overwrite an existing .o file with -o,
3861  # though they will create one.
3862  am_cv_prog_cc_c_o=yes
3863  for am_i in 1 2; do
3864    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3865   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3866   ac_status=$?
3867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868   (exit $ac_status); } \
3869         && test -f conftest2.$ac_objext; then
3870      : OK
3871    else
3872      am_cv_prog_cc_c_o=no
3873      break
3874    fi
3875  done
3876  rm -f core conftest*
3877  unset am_i
3878fi
3879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3880$as_echo "$am_cv_prog_cc_c_o" >&6; }
3881if test "$am_cv_prog_cc_c_o" != yes; then
3882   # Losing compiler, so override with the script.
3883   # FIXME: It is wrong to rewrite CC.
3884   # But if we don't then we get into trouble of one sort or another.
3885   # A longer-term fix would be to have automake use am__CC in this case,
3886   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3887   CC="$am_aux_dir/compile $CC"
3888fi
3889ac_ext=c
3890ac_cpp='$CPP $CPPFLAGS'
3891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894
3895
3896depcc="$CC"   am_compiler_list=
3897
3898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3899$as_echo_n "checking dependency style of $depcc... " >&6; }
3900if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3901  $as_echo_n "(cached) " >&6
3902else
3903  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3904  # We make a subdir and do the tests there.  Otherwise we can end up
3905  # making bogus files that we don't know about and never remove.  For
3906  # instance it was reported that on HP-UX the gcc test will end up
3907  # making a dummy file named 'D' -- because '-MD' means "put the output
3908  # in D".
3909  rm -rf conftest.dir
3910  mkdir conftest.dir
3911  # Copy depcomp to subdir because otherwise we won't find it if we're
3912  # using a relative directory.
3913  cp "$am_depcomp" conftest.dir
3914  cd conftest.dir
3915  # We will build objects and dependencies in a subdirectory because
3916  # it helps to detect inapplicable dependency modes.  For instance
3917  # both Tru64's cc and ICC support -MD to output dependencies as a
3918  # side effect of compilation, but ICC will put the dependencies in
3919  # the current directory while Tru64 will put them in the object
3920  # directory.
3921  mkdir sub
3922
3923  am_cv_CC_dependencies_compiler_type=none
3924  if test "$am_compiler_list" = ""; then
3925     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3926  fi
3927  am__universal=false
3928  case " $depcc " in #(
3929     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3930     esac
3931
3932  for depmode in $am_compiler_list; do
3933    # Setup a source with many dependencies, because some compilers
3934    # like to wrap large dependency lists on column 80 (with \), and
3935    # we should not choose a depcomp mode which is confused by this.
3936    #
3937    # We need to recreate these files for each test, as the compiler may
3938    # overwrite some of them when testing with obscure command lines.
3939    # This happens at least with the AIX C compiler.
3940    : > sub/conftest.c
3941    for i in 1 2 3 4 5 6; do
3942      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3943      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3944      # Solaris 10 /bin/sh.
3945      echo '/* dummy */' > sub/conftst$i.h
3946    done
3947    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3948
3949    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3950    # mode.  It turns out that the SunPro C++ compiler does not properly
3951    # handle '-M -o', and we need to detect this.  Also, some Intel
3952    # versions had trouble with output in subdirs.
3953    am__obj=sub/conftest.${OBJEXT-o}
3954    am__minus_obj="-o $am__obj"
3955    case $depmode in
3956    gcc)
3957      # This depmode causes a compiler race in universal mode.
3958      test "$am__universal" = false || continue
3959      ;;
3960    nosideeffect)
3961      # After this tag, mechanisms are not by side-effect, so they'll
3962      # only be used when explicitly requested.
3963      if test "x$enable_dependency_tracking" = xyes; then
3964	continue
3965      else
3966	break
3967      fi
3968      ;;
3969    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3970      # This compiler won't grok '-c -o', but also, the minuso test has
3971      # not run yet.  These depmodes are late enough in the game, and
3972      # so weak that their functioning should not be impacted.
3973      am__obj=conftest.${OBJEXT-o}
3974      am__minus_obj=
3975      ;;
3976    none) break ;;
3977    esac
3978    if depmode=$depmode \
3979       source=sub/conftest.c object=$am__obj \
3980       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3981       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3982         >/dev/null 2>conftest.err &&
3983       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3984       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3985       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3986       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3987      # icc doesn't choke on unknown options, it will just issue warnings
3988      # or remarks (even with -Werror).  So we grep stderr for any message
3989      # that says an option was ignored or not supported.
3990      # When given -MP, icc 7.0 and 7.1 complain thusly:
3991      #   icc: Command line warning: ignoring option '-M'; no argument required
3992      # The diagnosis changed in icc 8.0:
3993      #   icc: Command line remark: option '-MP' not supported
3994      if (grep 'ignoring option' conftest.err ||
3995          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3996        am_cv_CC_dependencies_compiler_type=$depmode
3997        break
3998      fi
3999    fi
4000  done
4001
4002  cd ..
4003  rm -rf conftest.dir
4004else
4005  am_cv_CC_dependencies_compiler_type=none
4006fi
4007
4008fi
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4010$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4011CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4012
4013 if
4014  test "x$enable_dependency_tracking" != xno \
4015  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4016  am__fastdepCC_TRUE=
4017  am__fastdepCC_FALSE='#'
4018else
4019  am__fastdepCC_TRUE='#'
4020  am__fastdepCC_FALSE=
4021fi
4022
4023
4024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4025$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4026if ${ac_cv_prog_cc_c99+:} false; then :
4027  $as_echo_n "(cached) " >&6
4028else
4029  ac_cv_prog_cc_c99=no
4030ac_save_CC=$CC
4031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032/* end confdefs.h.  */
4033#include <stdarg.h>
4034#include <stdbool.h>
4035#include <stdlib.h>
4036#include <wchar.h>
4037#include <stdio.h>
4038
4039// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4040#define debug(...) fprintf (stderr, __VA_ARGS__)
4041#define showlist(...) puts (#__VA_ARGS__)
4042#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4043static void
4044test_varargs_macros (void)
4045{
4046  int x = 1234;
4047  int y = 5678;
4048  debug ("Flag");
4049  debug ("X = %d\n", x);
4050  showlist (The first, second, and third items.);
4051  report (x>y, "x is %d but y is %d", x, y);
4052}
4053
4054// Check long long types.
4055#define BIG64 18446744073709551615ull
4056#define BIG32 4294967295ul
4057#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4058#if !BIG_OK
4059  your preprocessor is broken;
4060#endif
4061#if BIG_OK
4062#else
4063  your preprocessor is broken;
4064#endif
4065static long long int bignum = -9223372036854775807LL;
4066static unsigned long long int ubignum = BIG64;
4067
4068struct incomplete_array
4069{
4070  int datasize;
4071  double data[];
4072};
4073
4074struct named_init {
4075  int number;
4076  const wchar_t *name;
4077  double average;
4078};
4079
4080typedef const char *ccp;
4081
4082static inline int
4083test_restrict (ccp restrict text)
4084{
4085  // See if C++-style comments work.
4086  // Iterate through items via the restricted pointer.
4087  // Also check for declarations in for loops.
4088  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4089    continue;
4090  return 0;
4091}
4092
4093// Check varargs and va_copy.
4094static void
4095test_varargs (const char *format, ...)
4096{
4097  va_list args;
4098  va_start (args, format);
4099  va_list args_copy;
4100  va_copy (args_copy, args);
4101
4102  const char *str;
4103  int number;
4104  float fnumber;
4105
4106  while (*format)
4107    {
4108      switch (*format++)
4109	{
4110	case 's': // string
4111	  str = va_arg (args_copy, const char *);
4112	  break;
4113	case 'd': // int
4114	  number = va_arg (args_copy, int);
4115	  break;
4116	case 'f': // float
4117	  fnumber = va_arg (args_copy, double);
4118	  break;
4119	default:
4120	  break;
4121	}
4122    }
4123  va_end (args_copy);
4124  va_end (args);
4125}
4126
4127int
4128main ()
4129{
4130
4131  // Check bool.
4132  _Bool success = false;
4133
4134  // Check restrict.
4135  if (test_restrict ("String literal") == 0)
4136    success = true;
4137  char *restrict newvar = "Another string";
4138
4139  // Check varargs.
4140  test_varargs ("s, d' f .", "string", 65, 34.234);
4141  test_varargs_macros ();
4142
4143  // Check flexible array members.
4144  struct incomplete_array *ia =
4145    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4146  ia->datasize = 10;
4147  for (int i = 0; i < ia->datasize; ++i)
4148    ia->data[i] = i * 1.234;
4149
4150  // Check named initializers.
4151  struct named_init ni = {
4152    .number = 34,
4153    .name = L"Test wide string",
4154    .average = 543.34343,
4155  };
4156
4157  ni.number = 58;
4158
4159  int dynamic_array[ni.number];
4160  dynamic_array[ni.number - 1] = 543;
4161
4162  // work around unused variable warnings
4163  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4164	  || dynamic_array[ni.number - 1] != 543);
4165
4166  ;
4167  return 0;
4168}
4169_ACEOF
4170for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4171do
4172  CC="$ac_save_CC $ac_arg"
4173  if ac_fn_c_try_compile "$LINENO"; then :
4174  ac_cv_prog_cc_c99=$ac_arg
4175fi
4176rm -f core conftest.err conftest.$ac_objext
4177  test "x$ac_cv_prog_cc_c99" != "xno" && break
4178done
4179rm -f conftest.$ac_ext
4180CC=$ac_save_CC
4181
4182fi
4183# AC_CACHE_VAL
4184case "x$ac_cv_prog_cc_c99" in
4185  x)
4186    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4187$as_echo "none needed" >&6; } ;;
4188  xno)
4189    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4190$as_echo "unsupported" >&6; } ;;
4191  *)
4192    CC="$CC $ac_cv_prog_cc_c99"
4193    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4194$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4195esac
4196if test "x$ac_cv_prog_cc_c99" != xno; then :
4197
4198fi
4199
4200
4201
4202ac_ext=c
4203ac_cpp='$CPP $CPPFLAGS'
4204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4208$as_echo_n "checking how to run the C preprocessor... " >&6; }
4209# On Suns, sometimes $CPP names a directory.
4210if test -n "$CPP" && test -d "$CPP"; then
4211  CPP=
4212fi
4213if test -z "$CPP"; then
4214  if ${ac_cv_prog_CPP+:} false; then :
4215  $as_echo_n "(cached) " >&6
4216else
4217      # Double quotes because CPP needs to be expanded
4218    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4219    do
4220      ac_preproc_ok=false
4221for ac_c_preproc_warn_flag in '' yes
4222do
4223  # Use a header file that comes with gcc, so configuring glibc
4224  # with a fresh cross-compiler works.
4225  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4226  # <limits.h> exists even on freestanding compilers.
4227  # On the NeXT, cc -E runs the code through the compiler's parser,
4228  # not just through cpp. "Syntax error" is here to catch this case.
4229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230/* end confdefs.h.  */
4231#ifdef __STDC__
4232# include <limits.h>
4233#else
4234# include <assert.h>
4235#endif
4236		     Syntax error
4237_ACEOF
4238if ac_fn_c_try_cpp "$LINENO"; then :
4239
4240else
4241  # Broken: fails on valid input.
4242continue
4243fi
4244rm -f conftest.err conftest.i conftest.$ac_ext
4245
4246  # OK, works on sane cases.  Now check whether nonexistent headers
4247  # can be detected and how.
4248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249/* end confdefs.h.  */
4250#include <ac_nonexistent.h>
4251_ACEOF
4252if ac_fn_c_try_cpp "$LINENO"; then :
4253  # Broken: success on invalid input.
4254continue
4255else
4256  # Passes both tests.
4257ac_preproc_ok=:
4258break
4259fi
4260rm -f conftest.err conftest.i conftest.$ac_ext
4261
4262done
4263# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4264rm -f conftest.i conftest.err conftest.$ac_ext
4265if $ac_preproc_ok; then :
4266  break
4267fi
4268
4269    done
4270    ac_cv_prog_CPP=$CPP
4271
4272fi
4273  CPP=$ac_cv_prog_CPP
4274else
4275  ac_cv_prog_CPP=$CPP
4276fi
4277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4278$as_echo "$CPP" >&6; }
4279ac_preproc_ok=false
4280for ac_c_preproc_warn_flag in '' yes
4281do
4282  # Use a header file that comes with gcc, so configuring glibc
4283  # with a fresh cross-compiler works.
4284  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4285  # <limits.h> exists even on freestanding compilers.
4286  # On the NeXT, cc -E runs the code through the compiler's parser,
4287  # not just through cpp. "Syntax error" is here to catch this case.
4288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289/* end confdefs.h.  */
4290#ifdef __STDC__
4291# include <limits.h>
4292#else
4293# include <assert.h>
4294#endif
4295		     Syntax error
4296_ACEOF
4297if ac_fn_c_try_cpp "$LINENO"; then :
4298
4299else
4300  # Broken: fails on valid input.
4301continue
4302fi
4303rm -f conftest.err conftest.i conftest.$ac_ext
4304
4305  # OK, works on sane cases.  Now check whether nonexistent headers
4306  # can be detected and how.
4307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308/* end confdefs.h.  */
4309#include <ac_nonexistent.h>
4310_ACEOF
4311if ac_fn_c_try_cpp "$LINENO"; then :
4312  # Broken: success on invalid input.
4313continue
4314else
4315  # Passes both tests.
4316ac_preproc_ok=:
4317break
4318fi
4319rm -f conftest.err conftest.i conftest.$ac_ext
4320
4321done
4322# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4323rm -f conftest.i conftest.err conftest.$ac_ext
4324if $ac_preproc_ok; then :
4325
4326else
4327  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4329as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4330See \`config.log' for more details" "$LINENO" 5; }
4331fi
4332
4333ac_ext=c
4334ac_cpp='$CPP $CPPFLAGS'
4335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337ac_compiler_gnu=$ac_cv_c_compiler_gnu
4338
4339
4340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4341$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4342if ${ac_cv_path_GREP+:} false; then :
4343  $as_echo_n "(cached) " >&6
4344else
4345  if test -z "$GREP"; then
4346  ac_path_GREP_found=false
4347  # Loop through the user's path and test for each of PROGNAME-LIST
4348  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4350do
4351  IFS=$as_save_IFS
4352  test -z "$as_dir" && as_dir=.
4353    for ac_prog in grep ggrep; do
4354    for ac_exec_ext in '' $ac_executable_extensions; do
4355      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4356      as_fn_executable_p "$ac_path_GREP" || continue
4357# Check for GNU ac_path_GREP and select it if it is found.
4358  # Check for GNU $ac_path_GREP
4359case `"$ac_path_GREP" --version 2>&1` in
4360*GNU*)
4361  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4362*)
4363  ac_count=0
4364  $as_echo_n 0123456789 >"conftest.in"
4365  while :
4366  do
4367    cat "conftest.in" "conftest.in" >"conftest.tmp"
4368    mv "conftest.tmp" "conftest.in"
4369    cp "conftest.in" "conftest.nl"
4370    $as_echo 'GREP' >> "conftest.nl"
4371    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4372    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4373    as_fn_arith $ac_count + 1 && ac_count=$as_val
4374    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4375      # Best one so far, save it but keep looking for a better one
4376      ac_cv_path_GREP="$ac_path_GREP"
4377      ac_path_GREP_max=$ac_count
4378    fi
4379    # 10*(2^10) chars as input seems more than enough
4380    test $ac_count -gt 10 && break
4381  done
4382  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4383esac
4384
4385      $ac_path_GREP_found && break 3
4386    done
4387  done
4388  done
4389IFS=$as_save_IFS
4390  if test -z "$ac_cv_path_GREP"; then
4391    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4392  fi
4393else
4394  ac_cv_path_GREP=$GREP
4395fi
4396
4397fi
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4399$as_echo "$ac_cv_path_GREP" >&6; }
4400 GREP="$ac_cv_path_GREP"
4401
4402
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4404$as_echo_n "checking for egrep... " >&6; }
4405if ${ac_cv_path_EGREP+:} false; then :
4406  $as_echo_n "(cached) " >&6
4407else
4408  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4409   then ac_cv_path_EGREP="$GREP -E"
4410   else
4411     if test -z "$EGREP"; then
4412  ac_path_EGREP_found=false
4413  # Loop through the user's path and test for each of PROGNAME-LIST
4414  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4416do
4417  IFS=$as_save_IFS
4418  test -z "$as_dir" && as_dir=.
4419    for ac_prog in egrep; do
4420    for ac_exec_ext in '' $ac_executable_extensions; do
4421      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4422      as_fn_executable_p "$ac_path_EGREP" || continue
4423# Check for GNU ac_path_EGREP and select it if it is found.
4424  # Check for GNU $ac_path_EGREP
4425case `"$ac_path_EGREP" --version 2>&1` in
4426*GNU*)
4427  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4428*)
4429  ac_count=0
4430  $as_echo_n 0123456789 >"conftest.in"
4431  while :
4432  do
4433    cat "conftest.in" "conftest.in" >"conftest.tmp"
4434    mv "conftest.tmp" "conftest.in"
4435    cp "conftest.in" "conftest.nl"
4436    $as_echo 'EGREP' >> "conftest.nl"
4437    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4438    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4439    as_fn_arith $ac_count + 1 && ac_count=$as_val
4440    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4441      # Best one so far, save it but keep looking for a better one
4442      ac_cv_path_EGREP="$ac_path_EGREP"
4443      ac_path_EGREP_max=$ac_count
4444    fi
4445    # 10*(2^10) chars as input seems more than enough
4446    test $ac_count -gt 10 && break
4447  done
4448  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4449esac
4450
4451      $ac_path_EGREP_found && break 3
4452    done
4453  done
4454  done
4455IFS=$as_save_IFS
4456  if test -z "$ac_cv_path_EGREP"; then
4457    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4458  fi
4459else
4460  ac_cv_path_EGREP=$EGREP
4461fi
4462
4463   fi
4464fi
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4466$as_echo "$ac_cv_path_EGREP" >&6; }
4467 EGREP="$ac_cv_path_EGREP"
4468
4469
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4471$as_echo_n "checking for ANSI C header files... " >&6; }
4472if ${ac_cv_header_stdc+:} false; then :
4473  $as_echo_n "(cached) " >&6
4474else
4475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476/* end confdefs.h.  */
4477#include <stdlib.h>
4478#include <stdarg.h>
4479#include <string.h>
4480#include <float.h>
4481
4482int
4483main ()
4484{
4485
4486  ;
4487  return 0;
4488}
4489_ACEOF
4490if ac_fn_c_try_compile "$LINENO"; then :
4491  ac_cv_header_stdc=yes
4492else
4493  ac_cv_header_stdc=no
4494fi
4495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4496
4497if test $ac_cv_header_stdc = yes; then
4498  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500/* end confdefs.h.  */
4501#include <string.h>
4502
4503_ACEOF
4504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4505  $EGREP "memchr" >/dev/null 2>&1; then :
4506
4507else
4508  ac_cv_header_stdc=no
4509fi
4510rm -f conftest*
4511
4512fi
4513
4514if test $ac_cv_header_stdc = yes; then
4515  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517/* end confdefs.h.  */
4518#include <stdlib.h>
4519
4520_ACEOF
4521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4522  $EGREP "free" >/dev/null 2>&1; then :
4523
4524else
4525  ac_cv_header_stdc=no
4526fi
4527rm -f conftest*
4528
4529fi
4530
4531if test $ac_cv_header_stdc = yes; then
4532  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4533  if test "$cross_compiling" = yes; then :
4534  :
4535else
4536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537/* end confdefs.h.  */
4538#include <ctype.h>
4539#include <stdlib.h>
4540#if ((' ' & 0x0FF) == 0x020)
4541# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4542# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4543#else
4544# define ISLOWER(c) \
4545		   (('a' <= (c) && (c) <= 'i') \
4546		     || ('j' <= (c) && (c) <= 'r') \
4547		     || ('s' <= (c) && (c) <= 'z'))
4548# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4549#endif
4550
4551#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4552int
4553main ()
4554{
4555  int i;
4556  for (i = 0; i < 256; i++)
4557    if (XOR (islower (i), ISLOWER (i))
4558	|| toupper (i) != TOUPPER (i))
4559      return 2;
4560  return 0;
4561}
4562_ACEOF
4563if ac_fn_c_try_run "$LINENO"; then :
4564
4565else
4566  ac_cv_header_stdc=no
4567fi
4568rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4569  conftest.$ac_objext conftest.beam conftest.$ac_ext
4570fi
4571
4572fi
4573fi
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4575$as_echo "$ac_cv_header_stdc" >&6; }
4576if test $ac_cv_header_stdc = yes; then
4577
4578$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4579
4580fi
4581
4582# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4583for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4584		  inttypes.h stdint.h unistd.h
4585do :
4586  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4587ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4588"
4589if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4590  cat >>confdefs.h <<_ACEOF
4591#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4592_ACEOF
4593
4594fi
4595
4596done
4597
4598
4599
4600
4601
4602
4603ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4604if test "x$ac_cv_have_decl___clang__" = xyes; then :
4605  CLANGCC="yes"
4606else
4607  CLANGCC="no"
4608fi
4609
4610ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4611if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4612  INTELCC="yes"
4613else
4614  INTELCC="no"
4615fi
4616
4617ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4618if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4619  SUNCC="yes"
4620else
4621  SUNCC="no"
4622fi
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4633	if test -n "$ac_tool_prefix"; then
4634  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4635set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637$as_echo_n "checking for $ac_word... " >&6; }
4638if ${ac_cv_path_PKG_CONFIG+:} false; then :
4639  $as_echo_n "(cached) " >&6
4640else
4641  case $PKG_CONFIG in
4642  [\\/]* | ?:[\\/]*)
4643  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4644  ;;
4645  *)
4646  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH
4648do
4649  IFS=$as_save_IFS
4650  test -z "$as_dir" && as_dir=.
4651    for ac_exec_ext in '' $ac_executable_extensions; do
4652  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655    break 2
4656  fi
4657done
4658  done
4659IFS=$as_save_IFS
4660
4661  ;;
4662esac
4663fi
4664PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4665if test -n "$PKG_CONFIG"; then
4666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4667$as_echo "$PKG_CONFIG" >&6; }
4668else
4669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670$as_echo "no" >&6; }
4671fi
4672
4673
4674fi
4675if test -z "$ac_cv_path_PKG_CONFIG"; then
4676  ac_pt_PKG_CONFIG=$PKG_CONFIG
4677  # Extract the first word of "pkg-config", so it can be a program name with args.
4678set dummy pkg-config; ac_word=$2
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680$as_echo_n "checking for $ac_word... " >&6; }
4681if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4682  $as_echo_n "(cached) " >&6
4683else
4684  case $ac_pt_PKG_CONFIG in
4685  [\\/]* | ?:[\\/]*)
4686  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4687  ;;
4688  *)
4689  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690for as_dir in $PATH
4691do
4692  IFS=$as_save_IFS
4693  test -z "$as_dir" && as_dir=.
4694    for ac_exec_ext in '' $ac_executable_extensions; do
4695  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4696    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4697    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698    break 2
4699  fi
4700done
4701  done
4702IFS=$as_save_IFS
4703
4704  ;;
4705esac
4706fi
4707ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4708if test -n "$ac_pt_PKG_CONFIG"; then
4709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4710$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4711else
4712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713$as_echo "no" >&6; }
4714fi
4715
4716  if test "x$ac_pt_PKG_CONFIG" = x; then
4717    PKG_CONFIG=""
4718  else
4719    case $cross_compiling:$ac_tool_warned in
4720yes:)
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4723ac_tool_warned=yes ;;
4724esac
4725    PKG_CONFIG=$ac_pt_PKG_CONFIG
4726  fi
4727else
4728  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4729fi
4730
4731fi
4732if test -n "$PKG_CONFIG"; then
4733	_pkg_min_version=0.9.0
4734	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4735$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4736	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4737		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4738$as_echo "yes" >&6; }
4739	else
4740		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741$as_echo "no" >&6; }
4742		PKG_CONFIG=""
4743	fi
4744fi
4745# Make sure we can run config.sub.
4746$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4747  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4748
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4750$as_echo_n "checking build system type... " >&6; }
4751if ${ac_cv_build+:} false; then :
4752  $as_echo_n "(cached) " >&6
4753else
4754  ac_build_alias=$build_alias
4755test "x$ac_build_alias" = x &&
4756  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4757test "x$ac_build_alias" = x &&
4758  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4759ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4760  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4761
4762fi
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4764$as_echo "$ac_cv_build" >&6; }
4765case $ac_cv_build in
4766*-*-*) ;;
4767*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4768esac
4769build=$ac_cv_build
4770ac_save_IFS=$IFS; IFS='-'
4771set x $ac_cv_build
4772shift
4773build_cpu=$1
4774build_vendor=$2
4775shift; shift
4776# Remember, the first character of IFS is used to create $*,
4777# except with old shells:
4778build_os=$*
4779IFS=$ac_save_IFS
4780case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4781
4782
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4784$as_echo_n "checking host system type... " >&6; }
4785if ${ac_cv_host+:} false; then :
4786  $as_echo_n "(cached) " >&6
4787else
4788  if test "x$host_alias" = x; then
4789  ac_cv_host=$ac_cv_build
4790else
4791  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4792    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4793fi
4794
4795fi
4796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4797$as_echo "$ac_cv_host" >&6; }
4798case $ac_cv_host in
4799*-*-*) ;;
4800*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4801esac
4802host=$ac_cv_host
4803ac_save_IFS=$IFS; IFS='-'
4804set x $ac_cv_host
4805shift
4806host_cpu=$1
4807host_vendor=$2
4808shift; shift
4809# Remember, the first character of IFS is used to create $*,
4810# except with old shells:
4811host_os=$*
4812IFS=$ac_save_IFS
4813case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4814
4815
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4817$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4818if ${ac_cv_path_SED+:} false; then :
4819  $as_echo_n "(cached) " >&6
4820else
4821            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4822     for ac_i in 1 2 3 4 5 6 7; do
4823       ac_script="$ac_script$as_nl$ac_script"
4824     done
4825     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4826     { ac_script=; unset ac_script;}
4827     if test -z "$SED"; then
4828  ac_path_SED_found=false
4829  # Loop through the user's path and test for each of PROGNAME-LIST
4830  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831for as_dir in $PATH
4832do
4833  IFS=$as_save_IFS
4834  test -z "$as_dir" && as_dir=.
4835    for ac_prog in sed gsed; do
4836    for ac_exec_ext in '' $ac_executable_extensions; do
4837      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4838      as_fn_executable_p "$ac_path_SED" || continue
4839# Check for GNU ac_path_SED and select it if it is found.
4840  # Check for GNU $ac_path_SED
4841case `"$ac_path_SED" --version 2>&1` in
4842*GNU*)
4843  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4844*)
4845  ac_count=0
4846  $as_echo_n 0123456789 >"conftest.in"
4847  while :
4848  do
4849    cat "conftest.in" "conftest.in" >"conftest.tmp"
4850    mv "conftest.tmp" "conftest.in"
4851    cp "conftest.in" "conftest.nl"
4852    $as_echo '' >> "conftest.nl"
4853    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4854    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4855    as_fn_arith $ac_count + 1 && ac_count=$as_val
4856    if test $ac_count -gt ${ac_path_SED_max-0}; then
4857      # Best one so far, save it but keep looking for a better one
4858      ac_cv_path_SED="$ac_path_SED"
4859      ac_path_SED_max=$ac_count
4860    fi
4861    # 10*(2^10) chars as input seems more than enough
4862    test $ac_count -gt 10 && break
4863  done
4864  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4865esac
4866
4867      $ac_path_SED_found && break 3
4868    done
4869  done
4870  done
4871IFS=$as_save_IFS
4872  if test -z "$ac_cv_path_SED"; then
4873    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4874  fi
4875else
4876  ac_cv_path_SED=$SED
4877fi
4878
4879fi
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4881$as_echo "$ac_cv_path_SED" >&6; }
4882 SED="$ac_cv_path_SED"
4883  rm -f conftest.sed
4884
4885
4886
4887
4888
4889
4890# Check whether --enable-selective-werror was given.
4891if test "${enable_selective_werror+set}" = set; then :
4892  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4893else
4894  SELECTIVE_WERROR=yes
4895fi
4896
4897
4898
4899
4900
4901# -v is too short to test reliably with XORG_TESTSET_CFLAG
4902if test "x$SUNCC" = "xyes"; then
4903    BASE_CFLAGS="-v"
4904else
4905    BASE_CFLAGS=""
4906fi
4907
4908# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922xorg_testset_save_CFLAGS="$CFLAGS"
4923
4924if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4925	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4926	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4927$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4928if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4929  $as_echo_n "(cached) " >&6
4930else
4931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932/* end confdefs.h.  */
4933int i;
4934_ACEOF
4935if ac_fn_c_try_compile "$LINENO"; then :
4936  xorg_cv_cc_flag_unknown_warning_option=yes
4937else
4938  xorg_cv_cc_flag_unknown_warning_option=no
4939fi
4940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4941fi
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4943$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4944	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4945	CFLAGS="$xorg_testset_save_CFLAGS"
4946fi
4947
4948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4949	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4950		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4951	fi
4952	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4953	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4954$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4955if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4956  $as_echo_n "(cached) " >&6
4957else
4958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959/* end confdefs.h.  */
4960int i;
4961_ACEOF
4962if ac_fn_c_try_compile "$LINENO"; then :
4963  xorg_cv_cc_flag_unused_command_line_argument=yes
4964else
4965  xorg_cv_cc_flag_unused_command_line_argument=no
4966fi
4967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968fi
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4970$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4971	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4972	CFLAGS="$xorg_testset_save_CFLAGS"
4973fi
4974
4975found="no"
4976
4977	if test $found = "no" ; then
4978		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4979			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4980		fi
4981
4982		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4983			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4984		fi
4985
4986		CFLAGS="$CFLAGS -Wall"
4987
4988		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4989$as_echo_n "checking if $CC supports -Wall... " >&6; }
4990		cacheid=xorg_cv_cc_flag__Wall
4991		if eval \${$cacheid+:} false; then :
4992  $as_echo_n "(cached) " >&6
4993else
4994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995/* end confdefs.h.  */
4996int i;
4997int
4998main ()
4999{
5000
5001  ;
5002  return 0;
5003}
5004_ACEOF
5005if ac_fn_c_try_link "$LINENO"; then :
5006  eval $cacheid=yes
5007else
5008  eval $cacheid=no
5009fi
5010rm -f core conftest.err conftest.$ac_objext \
5011    conftest$ac_exeext conftest.$ac_ext
5012fi
5013
5014
5015		CFLAGS="$xorg_testset_save_CFLAGS"
5016
5017		eval supported=\$$cacheid
5018		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5019$as_echo "$supported" >&6; }
5020		if test "$supported" = "yes" ; then
5021			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5022			found="yes"
5023		fi
5024	fi
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040xorg_testset_save_CFLAGS="$CFLAGS"
5041
5042if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5043	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5044	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5045$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5046if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5047  $as_echo_n "(cached) " >&6
5048else
5049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050/* end confdefs.h.  */
5051int i;
5052_ACEOF
5053if ac_fn_c_try_compile "$LINENO"; then :
5054  xorg_cv_cc_flag_unknown_warning_option=yes
5055else
5056  xorg_cv_cc_flag_unknown_warning_option=no
5057fi
5058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5059fi
5060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5061$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5062	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5063	CFLAGS="$xorg_testset_save_CFLAGS"
5064fi
5065
5066if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5067	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5068		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5069	fi
5070	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5071	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5072$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5073if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5074  $as_echo_n "(cached) " >&6
5075else
5076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077/* end confdefs.h.  */
5078int i;
5079_ACEOF
5080if ac_fn_c_try_compile "$LINENO"; then :
5081  xorg_cv_cc_flag_unused_command_line_argument=yes
5082else
5083  xorg_cv_cc_flag_unused_command_line_argument=no
5084fi
5085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086fi
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5088$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5089	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5090	CFLAGS="$xorg_testset_save_CFLAGS"
5091fi
5092
5093found="no"
5094
5095	if test $found = "no" ; then
5096		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5097			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5098		fi
5099
5100		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5101			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5102		fi
5103
5104		CFLAGS="$CFLAGS -Wpointer-arith"
5105
5106		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5107$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5108		cacheid=xorg_cv_cc_flag__Wpointer_arith
5109		if eval \${$cacheid+:} false; then :
5110  $as_echo_n "(cached) " >&6
5111else
5112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113/* end confdefs.h.  */
5114int i;
5115int
5116main ()
5117{
5118
5119  ;
5120  return 0;
5121}
5122_ACEOF
5123if ac_fn_c_try_link "$LINENO"; then :
5124  eval $cacheid=yes
5125else
5126  eval $cacheid=no
5127fi
5128rm -f core conftest.err conftest.$ac_objext \
5129    conftest$ac_exeext conftest.$ac_ext
5130fi
5131
5132
5133		CFLAGS="$xorg_testset_save_CFLAGS"
5134
5135		eval supported=\$$cacheid
5136		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5137$as_echo "$supported" >&6; }
5138		if test "$supported" = "yes" ; then
5139			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5140			found="yes"
5141		fi
5142	fi
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158xorg_testset_save_CFLAGS="$CFLAGS"
5159
5160if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5161	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5162	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5163$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5164if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5165  $as_echo_n "(cached) " >&6
5166else
5167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168/* end confdefs.h.  */
5169int i;
5170_ACEOF
5171if ac_fn_c_try_compile "$LINENO"; then :
5172  xorg_cv_cc_flag_unknown_warning_option=yes
5173else
5174  xorg_cv_cc_flag_unknown_warning_option=no
5175fi
5176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177fi
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5179$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5180	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5181	CFLAGS="$xorg_testset_save_CFLAGS"
5182fi
5183
5184if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5185	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5186		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5187	fi
5188	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5189	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5190$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5191if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5192  $as_echo_n "(cached) " >&6
5193else
5194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195/* end confdefs.h.  */
5196int i;
5197_ACEOF
5198if ac_fn_c_try_compile "$LINENO"; then :
5199  xorg_cv_cc_flag_unused_command_line_argument=yes
5200else
5201  xorg_cv_cc_flag_unused_command_line_argument=no
5202fi
5203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5204fi
5205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5206$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5207	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5208	CFLAGS="$xorg_testset_save_CFLAGS"
5209fi
5210
5211found="no"
5212
5213	if test $found = "no" ; then
5214		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5215			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5216		fi
5217
5218		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5219			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5220		fi
5221
5222		CFLAGS="$CFLAGS -Wmissing-declarations"
5223
5224		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5225$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5226		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5227		if eval \${$cacheid+:} false; then :
5228  $as_echo_n "(cached) " >&6
5229else
5230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231/* end confdefs.h.  */
5232int i;
5233int
5234main ()
5235{
5236
5237  ;
5238  return 0;
5239}
5240_ACEOF
5241if ac_fn_c_try_link "$LINENO"; then :
5242  eval $cacheid=yes
5243else
5244  eval $cacheid=no
5245fi
5246rm -f core conftest.err conftest.$ac_objext \
5247    conftest$ac_exeext conftest.$ac_ext
5248fi
5249
5250
5251		CFLAGS="$xorg_testset_save_CFLAGS"
5252
5253		eval supported=\$$cacheid
5254		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5255$as_echo "$supported" >&6; }
5256		if test "$supported" = "yes" ; then
5257			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5258			found="yes"
5259		fi
5260	fi
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276xorg_testset_save_CFLAGS="$CFLAGS"
5277
5278if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5279	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5280	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5281$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5282if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5283  $as_echo_n "(cached) " >&6
5284else
5285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286/* end confdefs.h.  */
5287int i;
5288_ACEOF
5289if ac_fn_c_try_compile "$LINENO"; then :
5290  xorg_cv_cc_flag_unknown_warning_option=yes
5291else
5292  xorg_cv_cc_flag_unknown_warning_option=no
5293fi
5294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5295fi
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5297$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5298	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5299	CFLAGS="$xorg_testset_save_CFLAGS"
5300fi
5301
5302if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5303	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5304		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5305	fi
5306	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5307	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5308$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5309if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5310  $as_echo_n "(cached) " >&6
5311else
5312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313/* end confdefs.h.  */
5314int i;
5315_ACEOF
5316if ac_fn_c_try_compile "$LINENO"; then :
5317  xorg_cv_cc_flag_unused_command_line_argument=yes
5318else
5319  xorg_cv_cc_flag_unused_command_line_argument=no
5320fi
5321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322fi
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5324$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5325	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5326	CFLAGS="$xorg_testset_save_CFLAGS"
5327fi
5328
5329found="no"
5330
5331	if test $found = "no" ; then
5332		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5333			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5334		fi
5335
5336		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5337			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5338		fi
5339
5340		CFLAGS="$CFLAGS -Wformat=2"
5341
5342		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5343$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5344		cacheid=xorg_cv_cc_flag__Wformat_2
5345		if eval \${$cacheid+:} false; then :
5346  $as_echo_n "(cached) " >&6
5347else
5348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349/* end confdefs.h.  */
5350int i;
5351int
5352main ()
5353{
5354
5355  ;
5356  return 0;
5357}
5358_ACEOF
5359if ac_fn_c_try_link "$LINENO"; then :
5360  eval $cacheid=yes
5361else
5362  eval $cacheid=no
5363fi
5364rm -f core conftest.err conftest.$ac_objext \
5365    conftest$ac_exeext conftest.$ac_ext
5366fi
5367
5368
5369		CFLAGS="$xorg_testset_save_CFLAGS"
5370
5371		eval supported=\$$cacheid
5372		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5373$as_echo "$supported" >&6; }
5374		if test "$supported" = "yes" ; then
5375			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5376			found="yes"
5377		fi
5378	fi
5379
5380	if test $found = "no" ; then
5381		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5382			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5383		fi
5384
5385		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5386			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5387		fi
5388
5389		CFLAGS="$CFLAGS -Wformat"
5390
5391		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5392$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5393		cacheid=xorg_cv_cc_flag__Wformat
5394		if eval \${$cacheid+:} false; then :
5395  $as_echo_n "(cached) " >&6
5396else
5397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398/* end confdefs.h.  */
5399int i;
5400int
5401main ()
5402{
5403
5404  ;
5405  return 0;
5406}
5407_ACEOF
5408if ac_fn_c_try_link "$LINENO"; then :
5409  eval $cacheid=yes
5410else
5411  eval $cacheid=no
5412fi
5413rm -f core conftest.err conftest.$ac_objext \
5414    conftest$ac_exeext conftest.$ac_ext
5415fi
5416
5417
5418		CFLAGS="$xorg_testset_save_CFLAGS"
5419
5420		eval supported=\$$cacheid
5421		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5422$as_echo "$supported" >&6; }
5423		if test "$supported" = "yes" ; then
5424			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5425			found="yes"
5426		fi
5427	fi
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445xorg_testset_save_CFLAGS="$CFLAGS"
5446
5447if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5448	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5449	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5450$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5451if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5452  $as_echo_n "(cached) " >&6
5453else
5454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455/* end confdefs.h.  */
5456int i;
5457_ACEOF
5458if ac_fn_c_try_compile "$LINENO"; then :
5459  xorg_cv_cc_flag_unknown_warning_option=yes
5460else
5461  xorg_cv_cc_flag_unknown_warning_option=no
5462fi
5463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464fi
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5466$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5467	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5468	CFLAGS="$xorg_testset_save_CFLAGS"
5469fi
5470
5471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5472	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5473		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5474	fi
5475	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5476	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5477$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5478if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5479  $as_echo_n "(cached) " >&6
5480else
5481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482/* end confdefs.h.  */
5483int i;
5484_ACEOF
5485if ac_fn_c_try_compile "$LINENO"; then :
5486  xorg_cv_cc_flag_unused_command_line_argument=yes
5487else
5488  xorg_cv_cc_flag_unused_command_line_argument=no
5489fi
5490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491fi
5492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5493$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5494	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5495	CFLAGS="$xorg_testset_save_CFLAGS"
5496fi
5497
5498found="no"
5499
5500	if test $found = "no" ; then
5501		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5502			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5503		fi
5504
5505		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5506			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5507		fi
5508
5509		CFLAGS="$CFLAGS -Wstrict-prototypes"
5510
5511		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5512$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5513		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5514		if eval \${$cacheid+:} false; then :
5515  $as_echo_n "(cached) " >&6
5516else
5517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518/* end confdefs.h.  */
5519int i;
5520int
5521main ()
5522{
5523
5524  ;
5525  return 0;
5526}
5527_ACEOF
5528if ac_fn_c_try_link "$LINENO"; then :
5529  eval $cacheid=yes
5530else
5531  eval $cacheid=no
5532fi
5533rm -f core conftest.err conftest.$ac_objext \
5534    conftest$ac_exeext conftest.$ac_ext
5535fi
5536
5537
5538		CFLAGS="$xorg_testset_save_CFLAGS"
5539
5540		eval supported=\$$cacheid
5541		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5542$as_echo "$supported" >&6; }
5543		if test "$supported" = "yes" ; then
5544			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5545			found="yes"
5546		fi
5547	fi
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563xorg_testset_save_CFLAGS="$CFLAGS"
5564
5565if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5566	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5567	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5568$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5569if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5570  $as_echo_n "(cached) " >&6
5571else
5572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573/* end confdefs.h.  */
5574int i;
5575_ACEOF
5576if ac_fn_c_try_compile "$LINENO"; then :
5577  xorg_cv_cc_flag_unknown_warning_option=yes
5578else
5579  xorg_cv_cc_flag_unknown_warning_option=no
5580fi
5581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582fi
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5584$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5585	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5586	CFLAGS="$xorg_testset_save_CFLAGS"
5587fi
5588
5589if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5590	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5591		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5592	fi
5593	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5594	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5595$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5596if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5597  $as_echo_n "(cached) " >&6
5598else
5599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600/* end confdefs.h.  */
5601int i;
5602_ACEOF
5603if ac_fn_c_try_compile "$LINENO"; then :
5604  xorg_cv_cc_flag_unused_command_line_argument=yes
5605else
5606  xorg_cv_cc_flag_unused_command_line_argument=no
5607fi
5608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609fi
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5611$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5612	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5613	CFLAGS="$xorg_testset_save_CFLAGS"
5614fi
5615
5616found="no"
5617
5618	if test $found = "no" ; then
5619		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5620			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5621		fi
5622
5623		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5624			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5625		fi
5626
5627		CFLAGS="$CFLAGS -Wmissing-prototypes"
5628
5629		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5630$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5631		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5632		if eval \${$cacheid+:} false; then :
5633  $as_echo_n "(cached) " >&6
5634else
5635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636/* end confdefs.h.  */
5637int i;
5638int
5639main ()
5640{
5641
5642  ;
5643  return 0;
5644}
5645_ACEOF
5646if ac_fn_c_try_link "$LINENO"; then :
5647  eval $cacheid=yes
5648else
5649  eval $cacheid=no
5650fi
5651rm -f core conftest.err conftest.$ac_objext \
5652    conftest$ac_exeext conftest.$ac_ext
5653fi
5654
5655
5656		CFLAGS="$xorg_testset_save_CFLAGS"
5657
5658		eval supported=\$$cacheid
5659		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5660$as_echo "$supported" >&6; }
5661		if test "$supported" = "yes" ; then
5662			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5663			found="yes"
5664		fi
5665	fi
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681xorg_testset_save_CFLAGS="$CFLAGS"
5682
5683if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5684	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5685	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5686$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5687if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5688  $as_echo_n "(cached) " >&6
5689else
5690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691/* end confdefs.h.  */
5692int i;
5693_ACEOF
5694if ac_fn_c_try_compile "$LINENO"; then :
5695  xorg_cv_cc_flag_unknown_warning_option=yes
5696else
5697  xorg_cv_cc_flag_unknown_warning_option=no
5698fi
5699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700fi
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5702$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5703	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5704	CFLAGS="$xorg_testset_save_CFLAGS"
5705fi
5706
5707if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5708	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5709		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5710	fi
5711	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5712	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5713$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5714if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5715  $as_echo_n "(cached) " >&6
5716else
5717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718/* end confdefs.h.  */
5719int i;
5720_ACEOF
5721if ac_fn_c_try_compile "$LINENO"; then :
5722  xorg_cv_cc_flag_unused_command_line_argument=yes
5723else
5724  xorg_cv_cc_flag_unused_command_line_argument=no
5725fi
5726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727fi
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5729$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5730	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5731	CFLAGS="$xorg_testset_save_CFLAGS"
5732fi
5733
5734found="no"
5735
5736	if test $found = "no" ; then
5737		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5738			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5739		fi
5740
5741		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5742			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5743		fi
5744
5745		CFLAGS="$CFLAGS -Wnested-externs"
5746
5747		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5748$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5749		cacheid=xorg_cv_cc_flag__Wnested_externs
5750		if eval \${$cacheid+:} false; then :
5751  $as_echo_n "(cached) " >&6
5752else
5753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754/* end confdefs.h.  */
5755int i;
5756int
5757main ()
5758{
5759
5760  ;
5761  return 0;
5762}
5763_ACEOF
5764if ac_fn_c_try_link "$LINENO"; then :
5765  eval $cacheid=yes
5766else
5767  eval $cacheid=no
5768fi
5769rm -f core conftest.err conftest.$ac_objext \
5770    conftest$ac_exeext conftest.$ac_ext
5771fi
5772
5773
5774		CFLAGS="$xorg_testset_save_CFLAGS"
5775
5776		eval supported=\$$cacheid
5777		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5778$as_echo "$supported" >&6; }
5779		if test "$supported" = "yes" ; then
5780			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5781			found="yes"
5782		fi
5783	fi
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799xorg_testset_save_CFLAGS="$CFLAGS"
5800
5801if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5802	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5803	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5804$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5805if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5806  $as_echo_n "(cached) " >&6
5807else
5808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809/* end confdefs.h.  */
5810int i;
5811_ACEOF
5812if ac_fn_c_try_compile "$LINENO"; then :
5813  xorg_cv_cc_flag_unknown_warning_option=yes
5814else
5815  xorg_cv_cc_flag_unknown_warning_option=no
5816fi
5817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818fi
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5820$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5821	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5822	CFLAGS="$xorg_testset_save_CFLAGS"
5823fi
5824
5825if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5826	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5827		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5828	fi
5829	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5830	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5831$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5832if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5833  $as_echo_n "(cached) " >&6
5834else
5835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836/* end confdefs.h.  */
5837int i;
5838_ACEOF
5839if ac_fn_c_try_compile "$LINENO"; then :
5840  xorg_cv_cc_flag_unused_command_line_argument=yes
5841else
5842  xorg_cv_cc_flag_unused_command_line_argument=no
5843fi
5844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845fi
5846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5847$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5848	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5849	CFLAGS="$xorg_testset_save_CFLAGS"
5850fi
5851
5852found="no"
5853
5854	if test $found = "no" ; then
5855		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5856			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5857		fi
5858
5859		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5860			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5861		fi
5862
5863		CFLAGS="$CFLAGS -Wbad-function-cast"
5864
5865		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5866$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5867		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5868		if eval \${$cacheid+:} false; then :
5869  $as_echo_n "(cached) " >&6
5870else
5871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872/* end confdefs.h.  */
5873int i;
5874int
5875main ()
5876{
5877
5878  ;
5879  return 0;
5880}
5881_ACEOF
5882if ac_fn_c_try_link "$LINENO"; then :
5883  eval $cacheid=yes
5884else
5885  eval $cacheid=no
5886fi
5887rm -f core conftest.err conftest.$ac_objext \
5888    conftest$ac_exeext conftest.$ac_ext
5889fi
5890
5891
5892		CFLAGS="$xorg_testset_save_CFLAGS"
5893
5894		eval supported=\$$cacheid
5895		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5896$as_echo "$supported" >&6; }
5897		if test "$supported" = "yes" ; then
5898			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5899			found="yes"
5900		fi
5901	fi
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917xorg_testset_save_CFLAGS="$CFLAGS"
5918
5919if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5920	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5921	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5922$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5923if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5924  $as_echo_n "(cached) " >&6
5925else
5926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927/* end confdefs.h.  */
5928int i;
5929_ACEOF
5930if ac_fn_c_try_compile "$LINENO"; then :
5931  xorg_cv_cc_flag_unknown_warning_option=yes
5932else
5933  xorg_cv_cc_flag_unknown_warning_option=no
5934fi
5935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5936fi
5937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5938$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5939	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5940	CFLAGS="$xorg_testset_save_CFLAGS"
5941fi
5942
5943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5944	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5945		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5946	fi
5947	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5948	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5949$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5950if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5951  $as_echo_n "(cached) " >&6
5952else
5953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954/* end confdefs.h.  */
5955int i;
5956_ACEOF
5957if ac_fn_c_try_compile "$LINENO"; then :
5958  xorg_cv_cc_flag_unused_command_line_argument=yes
5959else
5960  xorg_cv_cc_flag_unused_command_line_argument=no
5961fi
5962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5963fi
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5965$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5966	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5967	CFLAGS="$xorg_testset_save_CFLAGS"
5968fi
5969
5970found="no"
5971
5972	if test $found = "no" ; then
5973		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5974			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5975		fi
5976
5977		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5978			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5979		fi
5980
5981		CFLAGS="$CFLAGS -Wold-style-definition"
5982
5983		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5984$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5985		cacheid=xorg_cv_cc_flag__Wold_style_definition
5986		if eval \${$cacheid+:} false; then :
5987  $as_echo_n "(cached) " >&6
5988else
5989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990/* end confdefs.h.  */
5991int i;
5992int
5993main ()
5994{
5995
5996  ;
5997  return 0;
5998}
5999_ACEOF
6000if ac_fn_c_try_link "$LINENO"; then :
6001  eval $cacheid=yes
6002else
6003  eval $cacheid=no
6004fi
6005rm -f core conftest.err conftest.$ac_objext \
6006    conftest$ac_exeext conftest.$ac_ext
6007fi
6008
6009
6010		CFLAGS="$xorg_testset_save_CFLAGS"
6011
6012		eval supported=\$$cacheid
6013		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6014$as_echo "$supported" >&6; }
6015		if test "$supported" = "yes" ; then
6016			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6017			found="yes"
6018		fi
6019	fi
6020
6021	if test $found = "no" ; then
6022		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6023			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6024		fi
6025
6026		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6027			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6028		fi
6029
6030		CFLAGS="$CFLAGS -fd"
6031
6032		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6033$as_echo_n "checking if $CC supports -fd... " >&6; }
6034		cacheid=xorg_cv_cc_flag__fd
6035		if eval \${$cacheid+:} false; then :
6036  $as_echo_n "(cached) " >&6
6037else
6038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039/* end confdefs.h.  */
6040int i;
6041int
6042main ()
6043{
6044
6045  ;
6046  return 0;
6047}
6048_ACEOF
6049if ac_fn_c_try_link "$LINENO"; then :
6050  eval $cacheid=yes
6051else
6052  eval $cacheid=no
6053fi
6054rm -f core conftest.err conftest.$ac_objext \
6055    conftest$ac_exeext conftest.$ac_ext
6056fi
6057
6058
6059		CFLAGS="$xorg_testset_save_CFLAGS"
6060
6061		eval supported=\$$cacheid
6062		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6063$as_echo "$supported" >&6; }
6064		if test "$supported" = "yes" ; then
6065			BASE_CFLAGS="$BASE_CFLAGS -fd"
6066			found="yes"
6067		fi
6068	fi
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084xorg_testset_save_CFLAGS="$CFLAGS"
6085
6086if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6087	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6088	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6089$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6090if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6091  $as_echo_n "(cached) " >&6
6092else
6093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094/* end confdefs.h.  */
6095int i;
6096_ACEOF
6097if ac_fn_c_try_compile "$LINENO"; then :
6098  xorg_cv_cc_flag_unknown_warning_option=yes
6099else
6100  xorg_cv_cc_flag_unknown_warning_option=no
6101fi
6102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103fi
6104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6105$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6106	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6107	CFLAGS="$xorg_testset_save_CFLAGS"
6108fi
6109
6110if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6111	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6112		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6113	fi
6114	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6115	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6116$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6117if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6118  $as_echo_n "(cached) " >&6
6119else
6120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121/* end confdefs.h.  */
6122int i;
6123_ACEOF
6124if ac_fn_c_try_compile "$LINENO"; then :
6125  xorg_cv_cc_flag_unused_command_line_argument=yes
6126else
6127  xorg_cv_cc_flag_unused_command_line_argument=no
6128fi
6129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130fi
6131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6132$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6133	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6134	CFLAGS="$xorg_testset_save_CFLAGS"
6135fi
6136
6137found="no"
6138
6139	if test $found = "no" ; then
6140		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6141			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6142		fi
6143
6144		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6145			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6146		fi
6147
6148		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6149
6150		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6151$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6152		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6153		if eval \${$cacheid+:} false; then :
6154  $as_echo_n "(cached) " >&6
6155else
6156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6157/* end confdefs.h.  */
6158int i;
6159int
6160main ()
6161{
6162
6163  ;
6164  return 0;
6165}
6166_ACEOF
6167if ac_fn_c_try_link "$LINENO"; then :
6168  eval $cacheid=yes
6169else
6170  eval $cacheid=no
6171fi
6172rm -f core conftest.err conftest.$ac_objext \
6173    conftest$ac_exeext conftest.$ac_ext
6174fi
6175
6176
6177		CFLAGS="$xorg_testset_save_CFLAGS"
6178
6179		eval supported=\$$cacheid
6180		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6181$as_echo "$supported" >&6; }
6182		if test "$supported" = "yes" ; then
6183			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6184			found="yes"
6185		fi
6186	fi
6187
6188
6189
6190
6191
6192# This chunk adds additional warnings that could catch undesired effects.
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206xorg_testset_save_CFLAGS="$CFLAGS"
6207
6208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6209	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6210	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6211$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6212if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6213  $as_echo_n "(cached) " >&6
6214else
6215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216/* end confdefs.h.  */
6217int i;
6218_ACEOF
6219if ac_fn_c_try_compile "$LINENO"; then :
6220  xorg_cv_cc_flag_unknown_warning_option=yes
6221else
6222  xorg_cv_cc_flag_unknown_warning_option=no
6223fi
6224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6225fi
6226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6227$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6228	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6229	CFLAGS="$xorg_testset_save_CFLAGS"
6230fi
6231
6232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6233	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6234		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6235	fi
6236	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6237	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6238$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6239if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6240  $as_echo_n "(cached) " >&6
6241else
6242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243/* end confdefs.h.  */
6244int i;
6245_ACEOF
6246if ac_fn_c_try_compile "$LINENO"; then :
6247  xorg_cv_cc_flag_unused_command_line_argument=yes
6248else
6249  xorg_cv_cc_flag_unused_command_line_argument=no
6250fi
6251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252fi
6253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6254$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6255	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6256	CFLAGS="$xorg_testset_save_CFLAGS"
6257fi
6258
6259found="no"
6260
6261	if test $found = "no" ; then
6262		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6263			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6264		fi
6265
6266		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6267			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6268		fi
6269
6270		CFLAGS="$CFLAGS -Wunused"
6271
6272		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6273$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6274		cacheid=xorg_cv_cc_flag__Wunused
6275		if eval \${$cacheid+:} false; then :
6276  $as_echo_n "(cached) " >&6
6277else
6278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279/* end confdefs.h.  */
6280int i;
6281int
6282main ()
6283{
6284
6285  ;
6286  return 0;
6287}
6288_ACEOF
6289if ac_fn_c_try_link "$LINENO"; then :
6290  eval $cacheid=yes
6291else
6292  eval $cacheid=no
6293fi
6294rm -f core conftest.err conftest.$ac_objext \
6295    conftest$ac_exeext conftest.$ac_ext
6296fi
6297
6298
6299		CFLAGS="$xorg_testset_save_CFLAGS"
6300
6301		eval supported=\$$cacheid
6302		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6303$as_echo "$supported" >&6; }
6304		if test "$supported" = "yes" ; then
6305			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6306			found="yes"
6307		fi
6308	fi
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324xorg_testset_save_CFLAGS="$CFLAGS"
6325
6326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6327	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6328	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6331  $as_echo_n "(cached) " >&6
6332else
6333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334/* end confdefs.h.  */
6335int i;
6336_ACEOF
6337if ac_fn_c_try_compile "$LINENO"; then :
6338  xorg_cv_cc_flag_unknown_warning_option=yes
6339else
6340  xorg_cv_cc_flag_unknown_warning_option=no
6341fi
6342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6343fi
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6346	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6347	CFLAGS="$xorg_testset_save_CFLAGS"
6348fi
6349
6350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6351	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6352		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6353	fi
6354	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6355	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6358  $as_echo_n "(cached) " >&6
6359else
6360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361/* end confdefs.h.  */
6362int i;
6363_ACEOF
6364if ac_fn_c_try_compile "$LINENO"; then :
6365  xorg_cv_cc_flag_unused_command_line_argument=yes
6366else
6367  xorg_cv_cc_flag_unused_command_line_argument=no
6368fi
6369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370fi
6371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6373	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6374	CFLAGS="$xorg_testset_save_CFLAGS"
6375fi
6376
6377found="no"
6378
6379	if test $found = "no" ; then
6380		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6381			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6382		fi
6383
6384		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6385			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6386		fi
6387
6388		CFLAGS="$CFLAGS -Wuninitialized"
6389
6390		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6391$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6392		cacheid=xorg_cv_cc_flag__Wuninitialized
6393		if eval \${$cacheid+:} false; then :
6394  $as_echo_n "(cached) " >&6
6395else
6396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397/* end confdefs.h.  */
6398int i;
6399int
6400main ()
6401{
6402
6403  ;
6404  return 0;
6405}
6406_ACEOF
6407if ac_fn_c_try_link "$LINENO"; then :
6408  eval $cacheid=yes
6409else
6410  eval $cacheid=no
6411fi
6412rm -f core conftest.err conftest.$ac_objext \
6413    conftest$ac_exeext conftest.$ac_ext
6414fi
6415
6416
6417		CFLAGS="$xorg_testset_save_CFLAGS"
6418
6419		eval supported=\$$cacheid
6420		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6421$as_echo "$supported" >&6; }
6422		if test "$supported" = "yes" ; then
6423			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6424			found="yes"
6425		fi
6426	fi
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442xorg_testset_save_CFLAGS="$CFLAGS"
6443
6444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6445	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6446	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6447$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6448if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6449  $as_echo_n "(cached) " >&6
6450else
6451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452/* end confdefs.h.  */
6453int i;
6454_ACEOF
6455if ac_fn_c_try_compile "$LINENO"; then :
6456  xorg_cv_cc_flag_unknown_warning_option=yes
6457else
6458  xorg_cv_cc_flag_unknown_warning_option=no
6459fi
6460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6461fi
6462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6463$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6464	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6465	CFLAGS="$xorg_testset_save_CFLAGS"
6466fi
6467
6468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6469	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6470		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6471	fi
6472	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6473	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6474$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6475if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6476  $as_echo_n "(cached) " >&6
6477else
6478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479/* end confdefs.h.  */
6480int i;
6481_ACEOF
6482if ac_fn_c_try_compile "$LINENO"; then :
6483  xorg_cv_cc_flag_unused_command_line_argument=yes
6484else
6485  xorg_cv_cc_flag_unused_command_line_argument=no
6486fi
6487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488fi
6489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6490$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6491	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6492	CFLAGS="$xorg_testset_save_CFLAGS"
6493fi
6494
6495found="no"
6496
6497	if test $found = "no" ; then
6498		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6499			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6500		fi
6501
6502		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6503			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6504		fi
6505
6506		CFLAGS="$CFLAGS -Wshadow"
6507
6508		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6509$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6510		cacheid=xorg_cv_cc_flag__Wshadow
6511		if eval \${$cacheid+:} false; then :
6512  $as_echo_n "(cached) " >&6
6513else
6514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515/* end confdefs.h.  */
6516int i;
6517int
6518main ()
6519{
6520
6521  ;
6522  return 0;
6523}
6524_ACEOF
6525if ac_fn_c_try_link "$LINENO"; then :
6526  eval $cacheid=yes
6527else
6528  eval $cacheid=no
6529fi
6530rm -f core conftest.err conftest.$ac_objext \
6531    conftest$ac_exeext conftest.$ac_ext
6532fi
6533
6534
6535		CFLAGS="$xorg_testset_save_CFLAGS"
6536
6537		eval supported=\$$cacheid
6538		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6539$as_echo "$supported" >&6; }
6540		if test "$supported" = "yes" ; then
6541			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6542			found="yes"
6543		fi
6544	fi
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560xorg_testset_save_CFLAGS="$CFLAGS"
6561
6562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6563	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6564	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6565$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6566if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6567  $as_echo_n "(cached) " >&6
6568else
6569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570/* end confdefs.h.  */
6571int i;
6572_ACEOF
6573if ac_fn_c_try_compile "$LINENO"; then :
6574  xorg_cv_cc_flag_unknown_warning_option=yes
6575else
6576  xorg_cv_cc_flag_unknown_warning_option=no
6577fi
6578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579fi
6580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6581$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6582	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6583	CFLAGS="$xorg_testset_save_CFLAGS"
6584fi
6585
6586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6587	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6588		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6589	fi
6590	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6591	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6592$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6593if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6594  $as_echo_n "(cached) " >&6
6595else
6596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597/* end confdefs.h.  */
6598int i;
6599_ACEOF
6600if ac_fn_c_try_compile "$LINENO"; then :
6601  xorg_cv_cc_flag_unused_command_line_argument=yes
6602else
6603  xorg_cv_cc_flag_unused_command_line_argument=no
6604fi
6605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606fi
6607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6608$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6609	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6610	CFLAGS="$xorg_testset_save_CFLAGS"
6611fi
6612
6613found="no"
6614
6615	if test $found = "no" ; then
6616		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6617			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6618		fi
6619
6620		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6621			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6622		fi
6623
6624		CFLAGS="$CFLAGS -Wmissing-noreturn"
6625
6626		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6627$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6628		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6629		if eval \${$cacheid+:} false; then :
6630  $as_echo_n "(cached) " >&6
6631else
6632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633/* end confdefs.h.  */
6634int i;
6635int
6636main ()
6637{
6638
6639  ;
6640  return 0;
6641}
6642_ACEOF
6643if ac_fn_c_try_link "$LINENO"; then :
6644  eval $cacheid=yes
6645else
6646  eval $cacheid=no
6647fi
6648rm -f core conftest.err conftest.$ac_objext \
6649    conftest$ac_exeext conftest.$ac_ext
6650fi
6651
6652
6653		CFLAGS="$xorg_testset_save_CFLAGS"
6654
6655		eval supported=\$$cacheid
6656		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6657$as_echo "$supported" >&6; }
6658		if test "$supported" = "yes" ; then
6659			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6660			found="yes"
6661		fi
6662	fi
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678xorg_testset_save_CFLAGS="$CFLAGS"
6679
6680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6681	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6683$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6684if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6685  $as_echo_n "(cached) " >&6
6686else
6687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688/* end confdefs.h.  */
6689int i;
6690_ACEOF
6691if ac_fn_c_try_compile "$LINENO"; then :
6692  xorg_cv_cc_flag_unknown_warning_option=yes
6693else
6694  xorg_cv_cc_flag_unknown_warning_option=no
6695fi
6696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6697fi
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6699$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6700	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6701	CFLAGS="$xorg_testset_save_CFLAGS"
6702fi
6703
6704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6705	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6706		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6707	fi
6708	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6709	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6710$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6711if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6712  $as_echo_n "(cached) " >&6
6713else
6714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715/* end confdefs.h.  */
6716int i;
6717_ACEOF
6718if ac_fn_c_try_compile "$LINENO"; then :
6719  xorg_cv_cc_flag_unused_command_line_argument=yes
6720else
6721  xorg_cv_cc_flag_unused_command_line_argument=no
6722fi
6723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724fi
6725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6726$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6727	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6728	CFLAGS="$xorg_testset_save_CFLAGS"
6729fi
6730
6731found="no"
6732
6733	if test $found = "no" ; then
6734		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6735			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6736		fi
6737
6738		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6739			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6740		fi
6741
6742		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6743
6744		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6745$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6746		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6747		if eval \${$cacheid+:} false; then :
6748  $as_echo_n "(cached) " >&6
6749else
6750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751/* end confdefs.h.  */
6752int i;
6753int
6754main ()
6755{
6756
6757  ;
6758  return 0;
6759}
6760_ACEOF
6761if ac_fn_c_try_link "$LINENO"; then :
6762  eval $cacheid=yes
6763else
6764  eval $cacheid=no
6765fi
6766rm -f core conftest.err conftest.$ac_objext \
6767    conftest$ac_exeext conftest.$ac_ext
6768fi
6769
6770
6771		CFLAGS="$xorg_testset_save_CFLAGS"
6772
6773		eval supported=\$$cacheid
6774		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6775$as_echo "$supported" >&6; }
6776		if test "$supported" = "yes" ; then
6777			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6778			found="yes"
6779		fi
6780	fi
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796xorg_testset_save_CFLAGS="$CFLAGS"
6797
6798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6799	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6800	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6801$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6802if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6803  $as_echo_n "(cached) " >&6
6804else
6805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806/* end confdefs.h.  */
6807int i;
6808_ACEOF
6809if ac_fn_c_try_compile "$LINENO"; then :
6810  xorg_cv_cc_flag_unknown_warning_option=yes
6811else
6812  xorg_cv_cc_flag_unknown_warning_option=no
6813fi
6814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6815fi
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6817$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6818	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6819	CFLAGS="$xorg_testset_save_CFLAGS"
6820fi
6821
6822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6823	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6824		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6825	fi
6826	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6828$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6829if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6830  $as_echo_n "(cached) " >&6
6831else
6832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833/* end confdefs.h.  */
6834int i;
6835_ACEOF
6836if ac_fn_c_try_compile "$LINENO"; then :
6837  xorg_cv_cc_flag_unused_command_line_argument=yes
6838else
6839  xorg_cv_cc_flag_unused_command_line_argument=no
6840fi
6841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6842fi
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6844$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6845	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6846	CFLAGS="$xorg_testset_save_CFLAGS"
6847fi
6848
6849found="no"
6850
6851	if test $found = "no" ; then
6852		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6853			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6854		fi
6855
6856		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6857			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6858		fi
6859
6860		CFLAGS="$CFLAGS -Wredundant-decls"
6861
6862		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6863$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6864		cacheid=xorg_cv_cc_flag__Wredundant_decls
6865		if eval \${$cacheid+:} false; then :
6866  $as_echo_n "(cached) " >&6
6867else
6868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869/* end confdefs.h.  */
6870int i;
6871int
6872main ()
6873{
6874
6875  ;
6876  return 0;
6877}
6878_ACEOF
6879if ac_fn_c_try_link "$LINENO"; then :
6880  eval $cacheid=yes
6881else
6882  eval $cacheid=no
6883fi
6884rm -f core conftest.err conftest.$ac_objext \
6885    conftest$ac_exeext conftest.$ac_ext
6886fi
6887
6888
6889		CFLAGS="$xorg_testset_save_CFLAGS"
6890
6891		eval supported=\$$cacheid
6892		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6893$as_echo "$supported" >&6; }
6894		if test "$supported" = "yes" ; then
6895			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6896			found="yes"
6897		fi
6898	fi
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914xorg_testset_save_CFLAGS="$CFLAGS"
6915
6916if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6917	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6918	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6919$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6920if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6921  $as_echo_n "(cached) " >&6
6922else
6923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924/* end confdefs.h.  */
6925int i;
6926_ACEOF
6927if ac_fn_c_try_compile "$LINENO"; then :
6928  xorg_cv_cc_flag_unknown_warning_option=yes
6929else
6930  xorg_cv_cc_flag_unknown_warning_option=no
6931fi
6932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933fi
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6935$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6936	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6937	CFLAGS="$xorg_testset_save_CFLAGS"
6938fi
6939
6940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6941	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6942		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6943	fi
6944	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6945	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6946$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6947if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6948  $as_echo_n "(cached) " >&6
6949else
6950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951/* end confdefs.h.  */
6952int i;
6953_ACEOF
6954if ac_fn_c_try_compile "$LINENO"; then :
6955  xorg_cv_cc_flag_unused_command_line_argument=yes
6956else
6957  xorg_cv_cc_flag_unused_command_line_argument=no
6958fi
6959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6960fi
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6962$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6963	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6964	CFLAGS="$xorg_testset_save_CFLAGS"
6965fi
6966
6967found="no"
6968
6969	if test $found = "no" ; then
6970		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6971			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6972		fi
6973
6974		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6975			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6976		fi
6977
6978		CFLAGS="$CFLAGS -Wlogical-op"
6979
6980		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6981$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6982		cacheid=xorg_cv_cc_flag__Wlogical_op
6983		if eval \${$cacheid+:} false; then :
6984  $as_echo_n "(cached) " >&6
6985else
6986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987/* end confdefs.h.  */
6988int i;
6989int
6990main ()
6991{
6992
6993  ;
6994  return 0;
6995}
6996_ACEOF
6997if ac_fn_c_try_link "$LINENO"; then :
6998  eval $cacheid=yes
6999else
7000  eval $cacheid=no
7001fi
7002rm -f core conftest.err conftest.$ac_objext \
7003    conftest$ac_exeext conftest.$ac_ext
7004fi
7005
7006
7007		CFLAGS="$xorg_testset_save_CFLAGS"
7008
7009		eval supported=\$$cacheid
7010		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7011$as_echo "$supported" >&6; }
7012		if test "$supported" = "yes" ; then
7013			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7014			found="yes"
7015		fi
7016	fi
7017
7018
7019
7020# These are currently disabled because they are noisy.  They will be enabled
7021# in the future once the codebase is sufficiently modernized to silence
7022# them.  For now, I don't want them to drown out the other warnings.
7023# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7024# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7025# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7026
7027# Turn some warnings into errors, so we don't accidently get successful builds
7028# when there are problems that should be fixed.
7029
7030if test "x$SELECTIVE_WERROR" = "xyes" ; then
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044xorg_testset_save_CFLAGS="$CFLAGS"
7045
7046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7047	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7048	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7049$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7050if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7051  $as_echo_n "(cached) " >&6
7052else
7053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054/* end confdefs.h.  */
7055int i;
7056_ACEOF
7057if ac_fn_c_try_compile "$LINENO"; then :
7058  xorg_cv_cc_flag_unknown_warning_option=yes
7059else
7060  xorg_cv_cc_flag_unknown_warning_option=no
7061fi
7062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7063fi
7064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7065$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7066	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7067	CFLAGS="$xorg_testset_save_CFLAGS"
7068fi
7069
7070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7071	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7072		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7073	fi
7074	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7075	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7076$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7077if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7078  $as_echo_n "(cached) " >&6
7079else
7080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081/* end confdefs.h.  */
7082int i;
7083_ACEOF
7084if ac_fn_c_try_compile "$LINENO"; then :
7085  xorg_cv_cc_flag_unused_command_line_argument=yes
7086else
7087  xorg_cv_cc_flag_unused_command_line_argument=no
7088fi
7089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090fi
7091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7092$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7093	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7094	CFLAGS="$xorg_testset_save_CFLAGS"
7095fi
7096
7097found="no"
7098
7099	if test $found = "no" ; then
7100		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7101			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7102		fi
7103
7104		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7105			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7106		fi
7107
7108		CFLAGS="$CFLAGS -Werror=implicit"
7109
7110		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7111$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7112		cacheid=xorg_cv_cc_flag__Werror_implicit
7113		if eval \${$cacheid+:} false; then :
7114  $as_echo_n "(cached) " >&6
7115else
7116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117/* end confdefs.h.  */
7118int i;
7119int
7120main ()
7121{
7122
7123  ;
7124  return 0;
7125}
7126_ACEOF
7127if ac_fn_c_try_link "$LINENO"; then :
7128  eval $cacheid=yes
7129else
7130  eval $cacheid=no
7131fi
7132rm -f core conftest.err conftest.$ac_objext \
7133    conftest$ac_exeext conftest.$ac_ext
7134fi
7135
7136
7137		CFLAGS="$xorg_testset_save_CFLAGS"
7138
7139		eval supported=\$$cacheid
7140		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7141$as_echo "$supported" >&6; }
7142		if test "$supported" = "yes" ; then
7143			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7144			found="yes"
7145		fi
7146	fi
7147
7148	if test $found = "no" ; then
7149		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7150			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7151		fi
7152
7153		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7154			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7155		fi
7156
7157		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7158
7159		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7160$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7161		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7162		if eval \${$cacheid+:} false; then :
7163  $as_echo_n "(cached) " >&6
7164else
7165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166/* end confdefs.h.  */
7167int i;
7168int
7169main ()
7170{
7171
7172  ;
7173  return 0;
7174}
7175_ACEOF
7176if ac_fn_c_try_link "$LINENO"; then :
7177  eval $cacheid=yes
7178else
7179  eval $cacheid=no
7180fi
7181rm -f core conftest.err conftest.$ac_objext \
7182    conftest$ac_exeext conftest.$ac_ext
7183fi
7184
7185
7186		CFLAGS="$xorg_testset_save_CFLAGS"
7187
7188		eval supported=\$$cacheid
7189		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7190$as_echo "$supported" >&6; }
7191		if test "$supported" = "yes" ; then
7192			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7193			found="yes"
7194		fi
7195	fi
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211xorg_testset_save_CFLAGS="$CFLAGS"
7212
7213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7214	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7215	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7216$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7217if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7218  $as_echo_n "(cached) " >&6
7219else
7220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221/* end confdefs.h.  */
7222int i;
7223_ACEOF
7224if ac_fn_c_try_compile "$LINENO"; then :
7225  xorg_cv_cc_flag_unknown_warning_option=yes
7226else
7227  xorg_cv_cc_flag_unknown_warning_option=no
7228fi
7229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230fi
7231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7232$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7233	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7234	CFLAGS="$xorg_testset_save_CFLAGS"
7235fi
7236
7237if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7238	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7239		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7240	fi
7241	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7242	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7243$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7244if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7245  $as_echo_n "(cached) " >&6
7246else
7247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248/* end confdefs.h.  */
7249int i;
7250_ACEOF
7251if ac_fn_c_try_compile "$LINENO"; then :
7252  xorg_cv_cc_flag_unused_command_line_argument=yes
7253else
7254  xorg_cv_cc_flag_unused_command_line_argument=no
7255fi
7256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257fi
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7259$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7260	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7261	CFLAGS="$xorg_testset_save_CFLAGS"
7262fi
7263
7264found="no"
7265
7266	if test $found = "no" ; then
7267		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7268			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7269		fi
7270
7271		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7272			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7273		fi
7274
7275		CFLAGS="$CFLAGS -Werror=nonnull"
7276
7277		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7278$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7279		cacheid=xorg_cv_cc_flag__Werror_nonnull
7280		if eval \${$cacheid+:} false; then :
7281  $as_echo_n "(cached) " >&6
7282else
7283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284/* end confdefs.h.  */
7285int i;
7286int
7287main ()
7288{
7289
7290  ;
7291  return 0;
7292}
7293_ACEOF
7294if ac_fn_c_try_link "$LINENO"; then :
7295  eval $cacheid=yes
7296else
7297  eval $cacheid=no
7298fi
7299rm -f core conftest.err conftest.$ac_objext \
7300    conftest$ac_exeext conftest.$ac_ext
7301fi
7302
7303
7304		CFLAGS="$xorg_testset_save_CFLAGS"
7305
7306		eval supported=\$$cacheid
7307		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7308$as_echo "$supported" >&6; }
7309		if test "$supported" = "yes" ; then
7310			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7311			found="yes"
7312		fi
7313	fi
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329xorg_testset_save_CFLAGS="$CFLAGS"
7330
7331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7332	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7333	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7334$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7335if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7336  $as_echo_n "(cached) " >&6
7337else
7338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339/* end confdefs.h.  */
7340int i;
7341_ACEOF
7342if ac_fn_c_try_compile "$LINENO"; then :
7343  xorg_cv_cc_flag_unknown_warning_option=yes
7344else
7345  xorg_cv_cc_flag_unknown_warning_option=no
7346fi
7347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7348fi
7349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7350$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7351	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7352	CFLAGS="$xorg_testset_save_CFLAGS"
7353fi
7354
7355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7356	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7357		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7358	fi
7359	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7360	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7361$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7362if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7363  $as_echo_n "(cached) " >&6
7364else
7365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366/* end confdefs.h.  */
7367int i;
7368_ACEOF
7369if ac_fn_c_try_compile "$LINENO"; then :
7370  xorg_cv_cc_flag_unused_command_line_argument=yes
7371else
7372  xorg_cv_cc_flag_unused_command_line_argument=no
7373fi
7374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375fi
7376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7377$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7378	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7379	CFLAGS="$xorg_testset_save_CFLAGS"
7380fi
7381
7382found="no"
7383
7384	if test $found = "no" ; then
7385		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7386			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7387		fi
7388
7389		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7390			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7391		fi
7392
7393		CFLAGS="$CFLAGS -Werror=init-self"
7394
7395		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7396$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7397		cacheid=xorg_cv_cc_flag__Werror_init_self
7398		if eval \${$cacheid+:} false; then :
7399  $as_echo_n "(cached) " >&6
7400else
7401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402/* end confdefs.h.  */
7403int i;
7404int
7405main ()
7406{
7407
7408  ;
7409  return 0;
7410}
7411_ACEOF
7412if ac_fn_c_try_link "$LINENO"; then :
7413  eval $cacheid=yes
7414else
7415  eval $cacheid=no
7416fi
7417rm -f core conftest.err conftest.$ac_objext \
7418    conftest$ac_exeext conftest.$ac_ext
7419fi
7420
7421
7422		CFLAGS="$xorg_testset_save_CFLAGS"
7423
7424		eval supported=\$$cacheid
7425		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7426$as_echo "$supported" >&6; }
7427		if test "$supported" = "yes" ; then
7428			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7429			found="yes"
7430		fi
7431	fi
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447xorg_testset_save_CFLAGS="$CFLAGS"
7448
7449if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7450	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7451	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7452$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7453if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7454  $as_echo_n "(cached) " >&6
7455else
7456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457/* end confdefs.h.  */
7458int i;
7459_ACEOF
7460if ac_fn_c_try_compile "$LINENO"; then :
7461  xorg_cv_cc_flag_unknown_warning_option=yes
7462else
7463  xorg_cv_cc_flag_unknown_warning_option=no
7464fi
7465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7466fi
7467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7468$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7469	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7470	CFLAGS="$xorg_testset_save_CFLAGS"
7471fi
7472
7473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7474	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7475		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7476	fi
7477	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7478	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7479$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7480if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7481  $as_echo_n "(cached) " >&6
7482else
7483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484/* end confdefs.h.  */
7485int i;
7486_ACEOF
7487if ac_fn_c_try_compile "$LINENO"; then :
7488  xorg_cv_cc_flag_unused_command_line_argument=yes
7489else
7490  xorg_cv_cc_flag_unused_command_line_argument=no
7491fi
7492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493fi
7494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7495$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7496	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7497	CFLAGS="$xorg_testset_save_CFLAGS"
7498fi
7499
7500found="no"
7501
7502	if test $found = "no" ; then
7503		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7504			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7505		fi
7506
7507		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7508			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7509		fi
7510
7511		CFLAGS="$CFLAGS -Werror=main"
7512
7513		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7514$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7515		cacheid=xorg_cv_cc_flag__Werror_main
7516		if eval \${$cacheid+:} false; then :
7517  $as_echo_n "(cached) " >&6
7518else
7519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520/* end confdefs.h.  */
7521int i;
7522int
7523main ()
7524{
7525
7526  ;
7527  return 0;
7528}
7529_ACEOF
7530if ac_fn_c_try_link "$LINENO"; then :
7531  eval $cacheid=yes
7532else
7533  eval $cacheid=no
7534fi
7535rm -f core conftest.err conftest.$ac_objext \
7536    conftest$ac_exeext conftest.$ac_ext
7537fi
7538
7539
7540		CFLAGS="$xorg_testset_save_CFLAGS"
7541
7542		eval supported=\$$cacheid
7543		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7544$as_echo "$supported" >&6; }
7545		if test "$supported" = "yes" ; then
7546			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7547			found="yes"
7548		fi
7549	fi
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565xorg_testset_save_CFLAGS="$CFLAGS"
7566
7567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7568	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7569	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7570$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7571if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7572  $as_echo_n "(cached) " >&6
7573else
7574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575/* end confdefs.h.  */
7576int i;
7577_ACEOF
7578if ac_fn_c_try_compile "$LINENO"; then :
7579  xorg_cv_cc_flag_unknown_warning_option=yes
7580else
7581  xorg_cv_cc_flag_unknown_warning_option=no
7582fi
7583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7584fi
7585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7586$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7587	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7588	CFLAGS="$xorg_testset_save_CFLAGS"
7589fi
7590
7591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7592	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7593		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7594	fi
7595	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7596	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7597$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7598if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7599  $as_echo_n "(cached) " >&6
7600else
7601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602/* end confdefs.h.  */
7603int i;
7604_ACEOF
7605if ac_fn_c_try_compile "$LINENO"; then :
7606  xorg_cv_cc_flag_unused_command_line_argument=yes
7607else
7608  xorg_cv_cc_flag_unused_command_line_argument=no
7609fi
7610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7611fi
7612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7613$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7614	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7615	CFLAGS="$xorg_testset_save_CFLAGS"
7616fi
7617
7618found="no"
7619
7620	if test $found = "no" ; then
7621		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7622			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7623		fi
7624
7625		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7626			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7627		fi
7628
7629		CFLAGS="$CFLAGS -Werror=missing-braces"
7630
7631		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7632$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7633		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7634		if eval \${$cacheid+:} false; then :
7635  $as_echo_n "(cached) " >&6
7636else
7637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638/* end confdefs.h.  */
7639int i;
7640int
7641main ()
7642{
7643
7644  ;
7645  return 0;
7646}
7647_ACEOF
7648if ac_fn_c_try_link "$LINENO"; then :
7649  eval $cacheid=yes
7650else
7651  eval $cacheid=no
7652fi
7653rm -f core conftest.err conftest.$ac_objext \
7654    conftest$ac_exeext conftest.$ac_ext
7655fi
7656
7657
7658		CFLAGS="$xorg_testset_save_CFLAGS"
7659
7660		eval supported=\$$cacheid
7661		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7662$as_echo "$supported" >&6; }
7663		if test "$supported" = "yes" ; then
7664			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7665			found="yes"
7666		fi
7667	fi
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683xorg_testset_save_CFLAGS="$CFLAGS"
7684
7685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7686	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7687	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7688$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7689if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7690  $as_echo_n "(cached) " >&6
7691else
7692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693/* end confdefs.h.  */
7694int i;
7695_ACEOF
7696if ac_fn_c_try_compile "$LINENO"; then :
7697  xorg_cv_cc_flag_unknown_warning_option=yes
7698else
7699  xorg_cv_cc_flag_unknown_warning_option=no
7700fi
7701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7702fi
7703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7704$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7705	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7706	CFLAGS="$xorg_testset_save_CFLAGS"
7707fi
7708
7709if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7710	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7711		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7712	fi
7713	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7714	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7715$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7716if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7717  $as_echo_n "(cached) " >&6
7718else
7719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720/* end confdefs.h.  */
7721int i;
7722_ACEOF
7723if ac_fn_c_try_compile "$LINENO"; then :
7724  xorg_cv_cc_flag_unused_command_line_argument=yes
7725else
7726  xorg_cv_cc_flag_unused_command_line_argument=no
7727fi
7728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7729fi
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7731$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7732	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7733	CFLAGS="$xorg_testset_save_CFLAGS"
7734fi
7735
7736found="no"
7737
7738	if test $found = "no" ; then
7739		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7740			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7741		fi
7742
7743		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7744			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7745		fi
7746
7747		CFLAGS="$CFLAGS -Werror=sequence-point"
7748
7749		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7750$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7751		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7752		if eval \${$cacheid+:} false; then :
7753  $as_echo_n "(cached) " >&6
7754else
7755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756/* end confdefs.h.  */
7757int i;
7758int
7759main ()
7760{
7761
7762  ;
7763  return 0;
7764}
7765_ACEOF
7766if ac_fn_c_try_link "$LINENO"; then :
7767  eval $cacheid=yes
7768else
7769  eval $cacheid=no
7770fi
7771rm -f core conftest.err conftest.$ac_objext \
7772    conftest$ac_exeext conftest.$ac_ext
7773fi
7774
7775
7776		CFLAGS="$xorg_testset_save_CFLAGS"
7777
7778		eval supported=\$$cacheid
7779		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7780$as_echo "$supported" >&6; }
7781		if test "$supported" = "yes" ; then
7782			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7783			found="yes"
7784		fi
7785	fi
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801xorg_testset_save_CFLAGS="$CFLAGS"
7802
7803if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7804	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7805	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7806$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7807if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7808  $as_echo_n "(cached) " >&6
7809else
7810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811/* end confdefs.h.  */
7812int i;
7813_ACEOF
7814if ac_fn_c_try_compile "$LINENO"; then :
7815  xorg_cv_cc_flag_unknown_warning_option=yes
7816else
7817  xorg_cv_cc_flag_unknown_warning_option=no
7818fi
7819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820fi
7821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7822$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7823	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7824	CFLAGS="$xorg_testset_save_CFLAGS"
7825fi
7826
7827if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7828	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7829		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7830	fi
7831	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7832	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7833$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7834if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7835  $as_echo_n "(cached) " >&6
7836else
7837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838/* end confdefs.h.  */
7839int i;
7840_ACEOF
7841if ac_fn_c_try_compile "$LINENO"; then :
7842  xorg_cv_cc_flag_unused_command_line_argument=yes
7843else
7844  xorg_cv_cc_flag_unused_command_line_argument=no
7845fi
7846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7847fi
7848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7849$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7850	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7851	CFLAGS="$xorg_testset_save_CFLAGS"
7852fi
7853
7854found="no"
7855
7856	if test $found = "no" ; then
7857		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7858			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7859		fi
7860
7861		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7862			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7863		fi
7864
7865		CFLAGS="$CFLAGS -Werror=return-type"
7866
7867		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7868$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7869		cacheid=xorg_cv_cc_flag__Werror_return_type
7870		if eval \${$cacheid+:} false; then :
7871  $as_echo_n "(cached) " >&6
7872else
7873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874/* end confdefs.h.  */
7875int i;
7876int
7877main ()
7878{
7879
7880  ;
7881  return 0;
7882}
7883_ACEOF
7884if ac_fn_c_try_link "$LINENO"; then :
7885  eval $cacheid=yes
7886else
7887  eval $cacheid=no
7888fi
7889rm -f core conftest.err conftest.$ac_objext \
7890    conftest$ac_exeext conftest.$ac_ext
7891fi
7892
7893
7894		CFLAGS="$xorg_testset_save_CFLAGS"
7895
7896		eval supported=\$$cacheid
7897		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7898$as_echo "$supported" >&6; }
7899		if test "$supported" = "yes" ; then
7900			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7901			found="yes"
7902		fi
7903	fi
7904
7905	if test $found = "no" ; then
7906		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7907			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7908		fi
7909
7910		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7911			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7912		fi
7913
7914		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7915
7916		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7917$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7918		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7919		if eval \${$cacheid+:} false; then :
7920  $as_echo_n "(cached) " >&6
7921else
7922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923/* end confdefs.h.  */
7924int i;
7925int
7926main ()
7927{
7928
7929  ;
7930  return 0;
7931}
7932_ACEOF
7933if ac_fn_c_try_link "$LINENO"; then :
7934  eval $cacheid=yes
7935else
7936  eval $cacheid=no
7937fi
7938rm -f core conftest.err conftest.$ac_objext \
7939    conftest$ac_exeext conftest.$ac_ext
7940fi
7941
7942
7943		CFLAGS="$xorg_testset_save_CFLAGS"
7944
7945		eval supported=\$$cacheid
7946		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7947$as_echo "$supported" >&6; }
7948		if test "$supported" = "yes" ; then
7949			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7950			found="yes"
7951		fi
7952	fi
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968xorg_testset_save_CFLAGS="$CFLAGS"
7969
7970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7971	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7972	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7973$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7974if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7975  $as_echo_n "(cached) " >&6
7976else
7977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978/* end confdefs.h.  */
7979int i;
7980_ACEOF
7981if ac_fn_c_try_compile "$LINENO"; then :
7982  xorg_cv_cc_flag_unknown_warning_option=yes
7983else
7984  xorg_cv_cc_flag_unknown_warning_option=no
7985fi
7986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7987fi
7988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7989$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7990	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7991	CFLAGS="$xorg_testset_save_CFLAGS"
7992fi
7993
7994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7995	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7996		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7997	fi
7998	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7999	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8000$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8001if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8002  $as_echo_n "(cached) " >&6
8003else
8004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005/* end confdefs.h.  */
8006int i;
8007_ACEOF
8008if ac_fn_c_try_compile "$LINENO"; then :
8009  xorg_cv_cc_flag_unused_command_line_argument=yes
8010else
8011  xorg_cv_cc_flag_unused_command_line_argument=no
8012fi
8013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014fi
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8016$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8017	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8018	CFLAGS="$xorg_testset_save_CFLAGS"
8019fi
8020
8021found="no"
8022
8023	if test $found = "no" ; then
8024		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8025			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8026		fi
8027
8028		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8029			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8030		fi
8031
8032		CFLAGS="$CFLAGS -Werror=trigraphs"
8033
8034		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8035$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8036		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8037		if eval \${$cacheid+:} false; then :
8038  $as_echo_n "(cached) " >&6
8039else
8040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041/* end confdefs.h.  */
8042int i;
8043int
8044main ()
8045{
8046
8047  ;
8048  return 0;
8049}
8050_ACEOF
8051if ac_fn_c_try_link "$LINENO"; then :
8052  eval $cacheid=yes
8053else
8054  eval $cacheid=no
8055fi
8056rm -f core conftest.err conftest.$ac_objext \
8057    conftest$ac_exeext conftest.$ac_ext
8058fi
8059
8060
8061		CFLAGS="$xorg_testset_save_CFLAGS"
8062
8063		eval supported=\$$cacheid
8064		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8065$as_echo "$supported" >&6; }
8066		if test "$supported" = "yes" ; then
8067			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8068			found="yes"
8069		fi
8070	fi
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086xorg_testset_save_CFLAGS="$CFLAGS"
8087
8088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8089	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8090	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8091$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8092if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8093  $as_echo_n "(cached) " >&6
8094else
8095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8096/* end confdefs.h.  */
8097int i;
8098_ACEOF
8099if ac_fn_c_try_compile "$LINENO"; then :
8100  xorg_cv_cc_flag_unknown_warning_option=yes
8101else
8102  xorg_cv_cc_flag_unknown_warning_option=no
8103fi
8104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8105fi
8106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8107$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8108	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8109	CFLAGS="$xorg_testset_save_CFLAGS"
8110fi
8111
8112if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8113	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8114		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8115	fi
8116	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8117	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8118$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8119if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8120  $as_echo_n "(cached) " >&6
8121else
8122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123/* end confdefs.h.  */
8124int i;
8125_ACEOF
8126if ac_fn_c_try_compile "$LINENO"; then :
8127  xorg_cv_cc_flag_unused_command_line_argument=yes
8128else
8129  xorg_cv_cc_flag_unused_command_line_argument=no
8130fi
8131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132fi
8133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8134$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8135	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8136	CFLAGS="$xorg_testset_save_CFLAGS"
8137fi
8138
8139found="no"
8140
8141	if test $found = "no" ; then
8142		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8143			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8144		fi
8145
8146		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8147			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8148		fi
8149
8150		CFLAGS="$CFLAGS -Werror=array-bounds"
8151
8152		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8153$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8154		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8155		if eval \${$cacheid+:} false; then :
8156  $as_echo_n "(cached) " >&6
8157else
8158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159/* end confdefs.h.  */
8160int i;
8161int
8162main ()
8163{
8164
8165  ;
8166  return 0;
8167}
8168_ACEOF
8169if ac_fn_c_try_link "$LINENO"; then :
8170  eval $cacheid=yes
8171else
8172  eval $cacheid=no
8173fi
8174rm -f core conftest.err conftest.$ac_objext \
8175    conftest$ac_exeext conftest.$ac_ext
8176fi
8177
8178
8179		CFLAGS="$xorg_testset_save_CFLAGS"
8180
8181		eval supported=\$$cacheid
8182		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8183$as_echo "$supported" >&6; }
8184		if test "$supported" = "yes" ; then
8185			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8186			found="yes"
8187		fi
8188	fi
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204xorg_testset_save_CFLAGS="$CFLAGS"
8205
8206if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8207	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8208	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8209$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8210if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8211  $as_echo_n "(cached) " >&6
8212else
8213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214/* end confdefs.h.  */
8215int i;
8216_ACEOF
8217if ac_fn_c_try_compile "$LINENO"; then :
8218  xorg_cv_cc_flag_unknown_warning_option=yes
8219else
8220  xorg_cv_cc_flag_unknown_warning_option=no
8221fi
8222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223fi
8224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8225$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8226	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8227	CFLAGS="$xorg_testset_save_CFLAGS"
8228fi
8229
8230if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8231	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8232		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8233	fi
8234	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8235	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8236$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8237if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8238  $as_echo_n "(cached) " >&6
8239else
8240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241/* end confdefs.h.  */
8242int i;
8243_ACEOF
8244if ac_fn_c_try_compile "$LINENO"; then :
8245  xorg_cv_cc_flag_unused_command_line_argument=yes
8246else
8247  xorg_cv_cc_flag_unused_command_line_argument=no
8248fi
8249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8250fi
8251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8252$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8253	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8254	CFLAGS="$xorg_testset_save_CFLAGS"
8255fi
8256
8257found="no"
8258
8259	if test $found = "no" ; then
8260		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8261			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8262		fi
8263
8264		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8265			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8266		fi
8267
8268		CFLAGS="$CFLAGS -Werror=write-strings"
8269
8270		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8271$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8272		cacheid=xorg_cv_cc_flag__Werror_write_strings
8273		if eval \${$cacheid+:} false; then :
8274  $as_echo_n "(cached) " >&6
8275else
8276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277/* end confdefs.h.  */
8278int i;
8279int
8280main ()
8281{
8282
8283  ;
8284  return 0;
8285}
8286_ACEOF
8287if ac_fn_c_try_link "$LINENO"; then :
8288  eval $cacheid=yes
8289else
8290  eval $cacheid=no
8291fi
8292rm -f core conftest.err conftest.$ac_objext \
8293    conftest$ac_exeext conftest.$ac_ext
8294fi
8295
8296
8297		CFLAGS="$xorg_testset_save_CFLAGS"
8298
8299		eval supported=\$$cacheid
8300		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8301$as_echo "$supported" >&6; }
8302		if test "$supported" = "yes" ; then
8303			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8304			found="yes"
8305		fi
8306	fi
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322xorg_testset_save_CFLAGS="$CFLAGS"
8323
8324if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8325	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8326	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8327$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8328if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8329  $as_echo_n "(cached) " >&6
8330else
8331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8332/* end confdefs.h.  */
8333int i;
8334_ACEOF
8335if ac_fn_c_try_compile "$LINENO"; then :
8336  xorg_cv_cc_flag_unknown_warning_option=yes
8337else
8338  xorg_cv_cc_flag_unknown_warning_option=no
8339fi
8340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8341fi
8342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8343$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8344	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8345	CFLAGS="$xorg_testset_save_CFLAGS"
8346fi
8347
8348if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8349	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8350		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8351	fi
8352	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8353	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8354$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8355if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8356  $as_echo_n "(cached) " >&6
8357else
8358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359/* end confdefs.h.  */
8360int i;
8361_ACEOF
8362if ac_fn_c_try_compile "$LINENO"; then :
8363  xorg_cv_cc_flag_unused_command_line_argument=yes
8364else
8365  xorg_cv_cc_flag_unused_command_line_argument=no
8366fi
8367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8368fi
8369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8370$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8371	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8372	CFLAGS="$xorg_testset_save_CFLAGS"
8373fi
8374
8375found="no"
8376
8377	if test $found = "no" ; then
8378		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8379			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8380		fi
8381
8382		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8383			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8384		fi
8385
8386		CFLAGS="$CFLAGS -Werror=address"
8387
8388		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8389$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8390		cacheid=xorg_cv_cc_flag__Werror_address
8391		if eval \${$cacheid+:} false; then :
8392  $as_echo_n "(cached) " >&6
8393else
8394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8395/* end confdefs.h.  */
8396int i;
8397int
8398main ()
8399{
8400
8401  ;
8402  return 0;
8403}
8404_ACEOF
8405if ac_fn_c_try_link "$LINENO"; then :
8406  eval $cacheid=yes
8407else
8408  eval $cacheid=no
8409fi
8410rm -f core conftest.err conftest.$ac_objext \
8411    conftest$ac_exeext conftest.$ac_ext
8412fi
8413
8414
8415		CFLAGS="$xorg_testset_save_CFLAGS"
8416
8417		eval supported=\$$cacheid
8418		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8419$as_echo "$supported" >&6; }
8420		if test "$supported" = "yes" ; then
8421			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8422			found="yes"
8423		fi
8424	fi
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440xorg_testset_save_CFLAGS="$CFLAGS"
8441
8442if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8443	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8444	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8445$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8446if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8447  $as_echo_n "(cached) " >&6
8448else
8449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8450/* end confdefs.h.  */
8451int i;
8452_ACEOF
8453if ac_fn_c_try_compile "$LINENO"; then :
8454  xorg_cv_cc_flag_unknown_warning_option=yes
8455else
8456  xorg_cv_cc_flag_unknown_warning_option=no
8457fi
8458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8459fi
8460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8461$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8462	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8463	CFLAGS="$xorg_testset_save_CFLAGS"
8464fi
8465
8466if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8467	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8468		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8469	fi
8470	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8471	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8472$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8473if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8474  $as_echo_n "(cached) " >&6
8475else
8476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477/* end confdefs.h.  */
8478int i;
8479_ACEOF
8480if ac_fn_c_try_compile "$LINENO"; then :
8481  xorg_cv_cc_flag_unused_command_line_argument=yes
8482else
8483  xorg_cv_cc_flag_unused_command_line_argument=no
8484fi
8485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8486fi
8487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8488$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8489	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8490	CFLAGS="$xorg_testset_save_CFLAGS"
8491fi
8492
8493found="no"
8494
8495	if test $found = "no" ; then
8496		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8497			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8498		fi
8499
8500		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8501			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8502		fi
8503
8504		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8505
8506		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8507$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8508		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8509		if eval \${$cacheid+:} false; then :
8510  $as_echo_n "(cached) " >&6
8511else
8512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513/* end confdefs.h.  */
8514int i;
8515int
8516main ()
8517{
8518
8519  ;
8520  return 0;
8521}
8522_ACEOF
8523if ac_fn_c_try_link "$LINENO"; then :
8524  eval $cacheid=yes
8525else
8526  eval $cacheid=no
8527fi
8528rm -f core conftest.err conftest.$ac_objext \
8529    conftest$ac_exeext conftest.$ac_ext
8530fi
8531
8532
8533		CFLAGS="$xorg_testset_save_CFLAGS"
8534
8535		eval supported=\$$cacheid
8536		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8537$as_echo "$supported" >&6; }
8538		if test "$supported" = "yes" ; then
8539			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8540			found="yes"
8541		fi
8542	fi
8543
8544	if test $found = "no" ; then
8545		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8546			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8547		fi
8548
8549		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8550			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8551		fi
8552
8553		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8554
8555		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8556$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8557		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8558		if eval \${$cacheid+:} false; then :
8559  $as_echo_n "(cached) " >&6
8560else
8561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562/* end confdefs.h.  */
8563int i;
8564int
8565main ()
8566{
8567
8568  ;
8569  return 0;
8570}
8571_ACEOF
8572if ac_fn_c_try_link "$LINENO"; then :
8573  eval $cacheid=yes
8574else
8575  eval $cacheid=no
8576fi
8577rm -f core conftest.err conftest.$ac_objext \
8578    conftest$ac_exeext conftest.$ac_ext
8579fi
8580
8581
8582		CFLAGS="$xorg_testset_save_CFLAGS"
8583
8584		eval supported=\$$cacheid
8585		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8586$as_echo "$supported" >&6; }
8587		if test "$supported" = "yes" ; then
8588			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8589			found="yes"
8590		fi
8591	fi
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607xorg_testset_save_CFLAGS="$CFLAGS"
8608
8609if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8610	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8611	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8612$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8613if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8614  $as_echo_n "(cached) " >&6
8615else
8616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617/* end confdefs.h.  */
8618int i;
8619_ACEOF
8620if ac_fn_c_try_compile "$LINENO"; then :
8621  xorg_cv_cc_flag_unknown_warning_option=yes
8622else
8623  xorg_cv_cc_flag_unknown_warning_option=no
8624fi
8625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8626fi
8627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8628$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8629	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8630	CFLAGS="$xorg_testset_save_CFLAGS"
8631fi
8632
8633if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8634	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8635		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8636	fi
8637	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8638	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8639$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8640if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8641  $as_echo_n "(cached) " >&6
8642else
8643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644/* end confdefs.h.  */
8645int i;
8646_ACEOF
8647if ac_fn_c_try_compile "$LINENO"; then :
8648  xorg_cv_cc_flag_unused_command_line_argument=yes
8649else
8650  xorg_cv_cc_flag_unused_command_line_argument=no
8651fi
8652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653fi
8654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8655$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8656	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8657	CFLAGS="$xorg_testset_save_CFLAGS"
8658fi
8659
8660found="no"
8661
8662	if test $found = "no" ; then
8663		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8664			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8665		fi
8666
8667		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8668			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8669		fi
8670
8671		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8672
8673		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8674$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8675		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8676		if eval \${$cacheid+:} false; then :
8677  $as_echo_n "(cached) " >&6
8678else
8679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680/* end confdefs.h.  */
8681int i;
8682int
8683main ()
8684{
8685
8686  ;
8687  return 0;
8688}
8689_ACEOF
8690if ac_fn_c_try_link "$LINENO"; then :
8691  eval $cacheid=yes
8692else
8693  eval $cacheid=no
8694fi
8695rm -f core conftest.err conftest.$ac_objext \
8696    conftest$ac_exeext conftest.$ac_ext
8697fi
8698
8699
8700		CFLAGS="$xorg_testset_save_CFLAGS"
8701
8702		eval supported=\$$cacheid
8703		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8704$as_echo "$supported" >&6; }
8705		if test "$supported" = "yes" ; then
8706			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8707			found="yes"
8708		fi
8709	fi
8710
8711 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8712else
8713{ $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
8714$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;}
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728xorg_testset_save_CFLAGS="$CFLAGS"
8729
8730if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8731	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8732	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8733$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8734if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8735  $as_echo_n "(cached) " >&6
8736else
8737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738/* end confdefs.h.  */
8739int i;
8740_ACEOF
8741if ac_fn_c_try_compile "$LINENO"; then :
8742  xorg_cv_cc_flag_unknown_warning_option=yes
8743else
8744  xorg_cv_cc_flag_unknown_warning_option=no
8745fi
8746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8747fi
8748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8749$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8750	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8751	CFLAGS="$xorg_testset_save_CFLAGS"
8752fi
8753
8754if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8755	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8756		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8757	fi
8758	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8759	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8760$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8761if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8762  $as_echo_n "(cached) " >&6
8763else
8764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8765/* end confdefs.h.  */
8766int i;
8767_ACEOF
8768if ac_fn_c_try_compile "$LINENO"; then :
8769  xorg_cv_cc_flag_unused_command_line_argument=yes
8770else
8771  xorg_cv_cc_flag_unused_command_line_argument=no
8772fi
8773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8774fi
8775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8776$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8777	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8778	CFLAGS="$xorg_testset_save_CFLAGS"
8779fi
8780
8781found="no"
8782
8783	if test $found = "no" ; then
8784		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8785			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8786		fi
8787
8788		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8789			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8790		fi
8791
8792		CFLAGS="$CFLAGS -Wimplicit"
8793
8794		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8795$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8796		cacheid=xorg_cv_cc_flag__Wimplicit
8797		if eval \${$cacheid+:} false; then :
8798  $as_echo_n "(cached) " >&6
8799else
8800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801/* end confdefs.h.  */
8802int i;
8803int
8804main ()
8805{
8806
8807  ;
8808  return 0;
8809}
8810_ACEOF
8811if ac_fn_c_try_link "$LINENO"; then :
8812  eval $cacheid=yes
8813else
8814  eval $cacheid=no
8815fi
8816rm -f core conftest.err conftest.$ac_objext \
8817    conftest$ac_exeext conftest.$ac_ext
8818fi
8819
8820
8821		CFLAGS="$xorg_testset_save_CFLAGS"
8822
8823		eval supported=\$$cacheid
8824		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8825$as_echo "$supported" >&6; }
8826		if test "$supported" = "yes" ; then
8827			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8828			found="yes"
8829		fi
8830	fi
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846xorg_testset_save_CFLAGS="$CFLAGS"
8847
8848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8849	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8850	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8851$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8852if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8853  $as_echo_n "(cached) " >&6
8854else
8855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856/* end confdefs.h.  */
8857int i;
8858_ACEOF
8859if ac_fn_c_try_compile "$LINENO"; then :
8860  xorg_cv_cc_flag_unknown_warning_option=yes
8861else
8862  xorg_cv_cc_flag_unknown_warning_option=no
8863fi
8864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8865fi
8866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8867$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8868	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8869	CFLAGS="$xorg_testset_save_CFLAGS"
8870fi
8871
8872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8873	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8874		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8875	fi
8876	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8877	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8878$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8879if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8880  $as_echo_n "(cached) " >&6
8881else
8882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883/* end confdefs.h.  */
8884int i;
8885_ACEOF
8886if ac_fn_c_try_compile "$LINENO"; then :
8887  xorg_cv_cc_flag_unused_command_line_argument=yes
8888else
8889  xorg_cv_cc_flag_unused_command_line_argument=no
8890fi
8891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8892fi
8893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8894$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8895	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8896	CFLAGS="$xorg_testset_save_CFLAGS"
8897fi
8898
8899found="no"
8900
8901	if test $found = "no" ; then
8902		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8903			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8904		fi
8905
8906		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8907			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8908		fi
8909
8910		CFLAGS="$CFLAGS -Wnonnull"
8911
8912		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8913$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8914		cacheid=xorg_cv_cc_flag__Wnonnull
8915		if eval \${$cacheid+:} false; then :
8916  $as_echo_n "(cached) " >&6
8917else
8918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919/* end confdefs.h.  */
8920int i;
8921int
8922main ()
8923{
8924
8925  ;
8926  return 0;
8927}
8928_ACEOF
8929if ac_fn_c_try_link "$LINENO"; then :
8930  eval $cacheid=yes
8931else
8932  eval $cacheid=no
8933fi
8934rm -f core conftest.err conftest.$ac_objext \
8935    conftest$ac_exeext conftest.$ac_ext
8936fi
8937
8938
8939		CFLAGS="$xorg_testset_save_CFLAGS"
8940
8941		eval supported=\$$cacheid
8942		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8943$as_echo "$supported" >&6; }
8944		if test "$supported" = "yes" ; then
8945			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8946			found="yes"
8947		fi
8948	fi
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964xorg_testset_save_CFLAGS="$CFLAGS"
8965
8966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8967	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8968	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8969$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8970if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8971  $as_echo_n "(cached) " >&6
8972else
8973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974/* end confdefs.h.  */
8975int i;
8976_ACEOF
8977if ac_fn_c_try_compile "$LINENO"; then :
8978  xorg_cv_cc_flag_unknown_warning_option=yes
8979else
8980  xorg_cv_cc_flag_unknown_warning_option=no
8981fi
8982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983fi
8984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8985$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8986	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8987	CFLAGS="$xorg_testset_save_CFLAGS"
8988fi
8989
8990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8991	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8992		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8993	fi
8994	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8995	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8996$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8997if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8998  $as_echo_n "(cached) " >&6
8999else
9000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001/* end confdefs.h.  */
9002int i;
9003_ACEOF
9004if ac_fn_c_try_compile "$LINENO"; then :
9005  xorg_cv_cc_flag_unused_command_line_argument=yes
9006else
9007  xorg_cv_cc_flag_unused_command_line_argument=no
9008fi
9009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9010fi
9011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9012$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9013	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9014	CFLAGS="$xorg_testset_save_CFLAGS"
9015fi
9016
9017found="no"
9018
9019	if test $found = "no" ; then
9020		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9021			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9022		fi
9023
9024		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9025			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9026		fi
9027
9028		CFLAGS="$CFLAGS -Winit-self"
9029
9030		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9031$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9032		cacheid=xorg_cv_cc_flag__Winit_self
9033		if eval \${$cacheid+:} false; then :
9034  $as_echo_n "(cached) " >&6
9035else
9036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037/* end confdefs.h.  */
9038int i;
9039int
9040main ()
9041{
9042
9043  ;
9044  return 0;
9045}
9046_ACEOF
9047if ac_fn_c_try_link "$LINENO"; then :
9048  eval $cacheid=yes
9049else
9050  eval $cacheid=no
9051fi
9052rm -f core conftest.err conftest.$ac_objext \
9053    conftest$ac_exeext conftest.$ac_ext
9054fi
9055
9056
9057		CFLAGS="$xorg_testset_save_CFLAGS"
9058
9059		eval supported=\$$cacheid
9060		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9061$as_echo "$supported" >&6; }
9062		if test "$supported" = "yes" ; then
9063			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9064			found="yes"
9065		fi
9066	fi
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082xorg_testset_save_CFLAGS="$CFLAGS"
9083
9084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9085	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9086	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9087$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9088if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9089  $as_echo_n "(cached) " >&6
9090else
9091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9092/* end confdefs.h.  */
9093int i;
9094_ACEOF
9095if ac_fn_c_try_compile "$LINENO"; then :
9096  xorg_cv_cc_flag_unknown_warning_option=yes
9097else
9098  xorg_cv_cc_flag_unknown_warning_option=no
9099fi
9100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9101fi
9102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9103$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9104	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9105	CFLAGS="$xorg_testset_save_CFLAGS"
9106fi
9107
9108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9109	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9110		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9111	fi
9112	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9113	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9114$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9115if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9116  $as_echo_n "(cached) " >&6
9117else
9118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119/* end confdefs.h.  */
9120int i;
9121_ACEOF
9122if ac_fn_c_try_compile "$LINENO"; then :
9123  xorg_cv_cc_flag_unused_command_line_argument=yes
9124else
9125  xorg_cv_cc_flag_unused_command_line_argument=no
9126fi
9127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9128fi
9129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9130$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9131	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9132	CFLAGS="$xorg_testset_save_CFLAGS"
9133fi
9134
9135found="no"
9136
9137	if test $found = "no" ; then
9138		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9139			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9140		fi
9141
9142		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9143			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9144		fi
9145
9146		CFLAGS="$CFLAGS -Wmain"
9147
9148		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9149$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9150		cacheid=xorg_cv_cc_flag__Wmain
9151		if eval \${$cacheid+:} false; then :
9152  $as_echo_n "(cached) " >&6
9153else
9154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155/* end confdefs.h.  */
9156int i;
9157int
9158main ()
9159{
9160
9161  ;
9162  return 0;
9163}
9164_ACEOF
9165if ac_fn_c_try_link "$LINENO"; then :
9166  eval $cacheid=yes
9167else
9168  eval $cacheid=no
9169fi
9170rm -f core conftest.err conftest.$ac_objext \
9171    conftest$ac_exeext conftest.$ac_ext
9172fi
9173
9174
9175		CFLAGS="$xorg_testset_save_CFLAGS"
9176
9177		eval supported=\$$cacheid
9178		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9179$as_echo "$supported" >&6; }
9180		if test "$supported" = "yes" ; then
9181			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9182			found="yes"
9183		fi
9184	fi
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200xorg_testset_save_CFLAGS="$CFLAGS"
9201
9202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9203	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9204	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9205$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9206if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9207  $as_echo_n "(cached) " >&6
9208else
9209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210/* end confdefs.h.  */
9211int i;
9212_ACEOF
9213if ac_fn_c_try_compile "$LINENO"; then :
9214  xorg_cv_cc_flag_unknown_warning_option=yes
9215else
9216  xorg_cv_cc_flag_unknown_warning_option=no
9217fi
9218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9219fi
9220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9221$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9222	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9223	CFLAGS="$xorg_testset_save_CFLAGS"
9224fi
9225
9226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9227	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9228		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9229	fi
9230	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9231	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9232$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9233if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9234  $as_echo_n "(cached) " >&6
9235else
9236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237/* end confdefs.h.  */
9238int i;
9239_ACEOF
9240if ac_fn_c_try_compile "$LINENO"; then :
9241  xorg_cv_cc_flag_unused_command_line_argument=yes
9242else
9243  xorg_cv_cc_flag_unused_command_line_argument=no
9244fi
9245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9246fi
9247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9248$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9249	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9250	CFLAGS="$xorg_testset_save_CFLAGS"
9251fi
9252
9253found="no"
9254
9255	if test $found = "no" ; then
9256		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9257			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9258		fi
9259
9260		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9261			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9262		fi
9263
9264		CFLAGS="$CFLAGS -Wmissing-braces"
9265
9266		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9267$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9268		cacheid=xorg_cv_cc_flag__Wmissing_braces
9269		if eval \${$cacheid+:} false; then :
9270  $as_echo_n "(cached) " >&6
9271else
9272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9273/* end confdefs.h.  */
9274int i;
9275int
9276main ()
9277{
9278
9279  ;
9280  return 0;
9281}
9282_ACEOF
9283if ac_fn_c_try_link "$LINENO"; then :
9284  eval $cacheid=yes
9285else
9286  eval $cacheid=no
9287fi
9288rm -f core conftest.err conftest.$ac_objext \
9289    conftest$ac_exeext conftest.$ac_ext
9290fi
9291
9292
9293		CFLAGS="$xorg_testset_save_CFLAGS"
9294
9295		eval supported=\$$cacheid
9296		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9297$as_echo "$supported" >&6; }
9298		if test "$supported" = "yes" ; then
9299			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9300			found="yes"
9301		fi
9302	fi
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318xorg_testset_save_CFLAGS="$CFLAGS"
9319
9320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9321	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9322	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9323$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9324if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9325  $as_echo_n "(cached) " >&6
9326else
9327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9328/* end confdefs.h.  */
9329int i;
9330_ACEOF
9331if ac_fn_c_try_compile "$LINENO"; then :
9332  xorg_cv_cc_flag_unknown_warning_option=yes
9333else
9334  xorg_cv_cc_flag_unknown_warning_option=no
9335fi
9336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9337fi
9338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9339$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9340	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9341	CFLAGS="$xorg_testset_save_CFLAGS"
9342fi
9343
9344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9345	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9346		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9347	fi
9348	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9349	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9350$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9351if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9352  $as_echo_n "(cached) " >&6
9353else
9354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355/* end confdefs.h.  */
9356int i;
9357_ACEOF
9358if ac_fn_c_try_compile "$LINENO"; then :
9359  xorg_cv_cc_flag_unused_command_line_argument=yes
9360else
9361  xorg_cv_cc_flag_unused_command_line_argument=no
9362fi
9363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9364fi
9365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9366$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9367	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9368	CFLAGS="$xorg_testset_save_CFLAGS"
9369fi
9370
9371found="no"
9372
9373	if test $found = "no" ; then
9374		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9375			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9376		fi
9377
9378		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9379			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9380		fi
9381
9382		CFLAGS="$CFLAGS -Wsequence-point"
9383
9384		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9385$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9386		cacheid=xorg_cv_cc_flag__Wsequence_point
9387		if eval \${$cacheid+:} false; then :
9388  $as_echo_n "(cached) " >&6
9389else
9390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9391/* end confdefs.h.  */
9392int i;
9393int
9394main ()
9395{
9396
9397  ;
9398  return 0;
9399}
9400_ACEOF
9401if ac_fn_c_try_link "$LINENO"; then :
9402  eval $cacheid=yes
9403else
9404  eval $cacheid=no
9405fi
9406rm -f core conftest.err conftest.$ac_objext \
9407    conftest$ac_exeext conftest.$ac_ext
9408fi
9409
9410
9411		CFLAGS="$xorg_testset_save_CFLAGS"
9412
9413		eval supported=\$$cacheid
9414		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9415$as_echo "$supported" >&6; }
9416		if test "$supported" = "yes" ; then
9417			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9418			found="yes"
9419		fi
9420	fi
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436xorg_testset_save_CFLAGS="$CFLAGS"
9437
9438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9439	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9440	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9441$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9442if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9443  $as_echo_n "(cached) " >&6
9444else
9445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446/* end confdefs.h.  */
9447int i;
9448_ACEOF
9449if ac_fn_c_try_compile "$LINENO"; then :
9450  xorg_cv_cc_flag_unknown_warning_option=yes
9451else
9452  xorg_cv_cc_flag_unknown_warning_option=no
9453fi
9454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9455fi
9456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9457$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9458	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9459	CFLAGS="$xorg_testset_save_CFLAGS"
9460fi
9461
9462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9463	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9464		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9465	fi
9466	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9467	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9468$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9469if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9470  $as_echo_n "(cached) " >&6
9471else
9472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473/* end confdefs.h.  */
9474int i;
9475_ACEOF
9476if ac_fn_c_try_compile "$LINENO"; then :
9477  xorg_cv_cc_flag_unused_command_line_argument=yes
9478else
9479  xorg_cv_cc_flag_unused_command_line_argument=no
9480fi
9481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9482fi
9483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9484$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9485	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9486	CFLAGS="$xorg_testset_save_CFLAGS"
9487fi
9488
9489found="no"
9490
9491	if test $found = "no" ; then
9492		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9493			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9494		fi
9495
9496		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9497			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9498		fi
9499
9500		CFLAGS="$CFLAGS -Wreturn-type"
9501
9502		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9503$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9504		cacheid=xorg_cv_cc_flag__Wreturn_type
9505		if eval \${$cacheid+:} false; then :
9506  $as_echo_n "(cached) " >&6
9507else
9508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9509/* end confdefs.h.  */
9510int i;
9511int
9512main ()
9513{
9514
9515  ;
9516  return 0;
9517}
9518_ACEOF
9519if ac_fn_c_try_link "$LINENO"; then :
9520  eval $cacheid=yes
9521else
9522  eval $cacheid=no
9523fi
9524rm -f core conftest.err conftest.$ac_objext \
9525    conftest$ac_exeext conftest.$ac_ext
9526fi
9527
9528
9529		CFLAGS="$xorg_testset_save_CFLAGS"
9530
9531		eval supported=\$$cacheid
9532		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9533$as_echo "$supported" >&6; }
9534		if test "$supported" = "yes" ; then
9535			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9536			found="yes"
9537		fi
9538	fi
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554xorg_testset_save_CFLAGS="$CFLAGS"
9555
9556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9557	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9558	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9559$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9560if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9561  $as_echo_n "(cached) " >&6
9562else
9563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564/* end confdefs.h.  */
9565int i;
9566_ACEOF
9567if ac_fn_c_try_compile "$LINENO"; then :
9568  xorg_cv_cc_flag_unknown_warning_option=yes
9569else
9570  xorg_cv_cc_flag_unknown_warning_option=no
9571fi
9572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9573fi
9574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9575$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9576	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9577	CFLAGS="$xorg_testset_save_CFLAGS"
9578fi
9579
9580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9581	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9582		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9583	fi
9584	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9585	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9586$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9587if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9588  $as_echo_n "(cached) " >&6
9589else
9590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591/* end confdefs.h.  */
9592int i;
9593_ACEOF
9594if ac_fn_c_try_compile "$LINENO"; then :
9595  xorg_cv_cc_flag_unused_command_line_argument=yes
9596else
9597  xorg_cv_cc_flag_unused_command_line_argument=no
9598fi
9599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9600fi
9601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9602$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9603	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9604	CFLAGS="$xorg_testset_save_CFLAGS"
9605fi
9606
9607found="no"
9608
9609	if test $found = "no" ; then
9610		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9611			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9612		fi
9613
9614		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9615			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9616		fi
9617
9618		CFLAGS="$CFLAGS -Wtrigraphs"
9619
9620		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9621$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9622		cacheid=xorg_cv_cc_flag__Wtrigraphs
9623		if eval \${$cacheid+:} false; then :
9624  $as_echo_n "(cached) " >&6
9625else
9626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627/* end confdefs.h.  */
9628int i;
9629int
9630main ()
9631{
9632
9633  ;
9634  return 0;
9635}
9636_ACEOF
9637if ac_fn_c_try_link "$LINENO"; then :
9638  eval $cacheid=yes
9639else
9640  eval $cacheid=no
9641fi
9642rm -f core conftest.err conftest.$ac_objext \
9643    conftest$ac_exeext conftest.$ac_ext
9644fi
9645
9646
9647		CFLAGS="$xorg_testset_save_CFLAGS"
9648
9649		eval supported=\$$cacheid
9650		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9651$as_echo "$supported" >&6; }
9652		if test "$supported" = "yes" ; then
9653			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9654			found="yes"
9655		fi
9656	fi
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672xorg_testset_save_CFLAGS="$CFLAGS"
9673
9674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9675	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9676	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9677$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9678if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9679  $as_echo_n "(cached) " >&6
9680else
9681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682/* end confdefs.h.  */
9683int i;
9684_ACEOF
9685if ac_fn_c_try_compile "$LINENO"; then :
9686  xorg_cv_cc_flag_unknown_warning_option=yes
9687else
9688  xorg_cv_cc_flag_unknown_warning_option=no
9689fi
9690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9691fi
9692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9693$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9694	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9695	CFLAGS="$xorg_testset_save_CFLAGS"
9696fi
9697
9698if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9699	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9700		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9701	fi
9702	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9703	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9704$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9705if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9706  $as_echo_n "(cached) " >&6
9707else
9708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709/* end confdefs.h.  */
9710int i;
9711_ACEOF
9712if ac_fn_c_try_compile "$LINENO"; then :
9713  xorg_cv_cc_flag_unused_command_line_argument=yes
9714else
9715  xorg_cv_cc_flag_unused_command_line_argument=no
9716fi
9717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9718fi
9719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9720$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9721	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9722	CFLAGS="$xorg_testset_save_CFLAGS"
9723fi
9724
9725found="no"
9726
9727	if test $found = "no" ; then
9728		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9729			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9730		fi
9731
9732		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9733			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9734		fi
9735
9736		CFLAGS="$CFLAGS -Warray-bounds"
9737
9738		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9739$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9740		cacheid=xorg_cv_cc_flag__Warray_bounds
9741		if eval \${$cacheid+:} false; then :
9742  $as_echo_n "(cached) " >&6
9743else
9744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745/* end confdefs.h.  */
9746int i;
9747int
9748main ()
9749{
9750
9751  ;
9752  return 0;
9753}
9754_ACEOF
9755if ac_fn_c_try_link "$LINENO"; then :
9756  eval $cacheid=yes
9757else
9758  eval $cacheid=no
9759fi
9760rm -f core conftest.err conftest.$ac_objext \
9761    conftest$ac_exeext conftest.$ac_ext
9762fi
9763
9764
9765		CFLAGS="$xorg_testset_save_CFLAGS"
9766
9767		eval supported=\$$cacheid
9768		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9769$as_echo "$supported" >&6; }
9770		if test "$supported" = "yes" ; then
9771			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9772			found="yes"
9773		fi
9774	fi
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790xorg_testset_save_CFLAGS="$CFLAGS"
9791
9792if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9793	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9794	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9795$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9796if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9797  $as_echo_n "(cached) " >&6
9798else
9799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9800/* end confdefs.h.  */
9801int i;
9802_ACEOF
9803if ac_fn_c_try_compile "$LINENO"; then :
9804  xorg_cv_cc_flag_unknown_warning_option=yes
9805else
9806  xorg_cv_cc_flag_unknown_warning_option=no
9807fi
9808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9809fi
9810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9811$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9812	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9813	CFLAGS="$xorg_testset_save_CFLAGS"
9814fi
9815
9816if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9817	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9818		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9819	fi
9820	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9821	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9822$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9823if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9824  $as_echo_n "(cached) " >&6
9825else
9826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827/* end confdefs.h.  */
9828int i;
9829_ACEOF
9830if ac_fn_c_try_compile "$LINENO"; then :
9831  xorg_cv_cc_flag_unused_command_line_argument=yes
9832else
9833  xorg_cv_cc_flag_unused_command_line_argument=no
9834fi
9835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9836fi
9837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9838$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9839	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9840	CFLAGS="$xorg_testset_save_CFLAGS"
9841fi
9842
9843found="no"
9844
9845	if test $found = "no" ; then
9846		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9847			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9848		fi
9849
9850		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9851			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9852		fi
9853
9854		CFLAGS="$CFLAGS -Wwrite-strings"
9855
9856		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9857$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9858		cacheid=xorg_cv_cc_flag__Wwrite_strings
9859		if eval \${$cacheid+:} false; then :
9860  $as_echo_n "(cached) " >&6
9861else
9862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9863/* end confdefs.h.  */
9864int i;
9865int
9866main ()
9867{
9868
9869  ;
9870  return 0;
9871}
9872_ACEOF
9873if ac_fn_c_try_link "$LINENO"; then :
9874  eval $cacheid=yes
9875else
9876  eval $cacheid=no
9877fi
9878rm -f core conftest.err conftest.$ac_objext \
9879    conftest$ac_exeext conftest.$ac_ext
9880fi
9881
9882
9883		CFLAGS="$xorg_testset_save_CFLAGS"
9884
9885		eval supported=\$$cacheid
9886		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9887$as_echo "$supported" >&6; }
9888		if test "$supported" = "yes" ; then
9889			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9890			found="yes"
9891		fi
9892	fi
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908xorg_testset_save_CFLAGS="$CFLAGS"
9909
9910if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9911	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9912	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9913$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9914if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9915  $as_echo_n "(cached) " >&6
9916else
9917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9918/* end confdefs.h.  */
9919int i;
9920_ACEOF
9921if ac_fn_c_try_compile "$LINENO"; then :
9922  xorg_cv_cc_flag_unknown_warning_option=yes
9923else
9924  xorg_cv_cc_flag_unknown_warning_option=no
9925fi
9926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9927fi
9928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9929$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9930	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9931	CFLAGS="$xorg_testset_save_CFLAGS"
9932fi
9933
9934if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9935	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9936		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9937	fi
9938	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9939	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9940$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9941if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9942  $as_echo_n "(cached) " >&6
9943else
9944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945/* end confdefs.h.  */
9946int i;
9947_ACEOF
9948if ac_fn_c_try_compile "$LINENO"; then :
9949  xorg_cv_cc_flag_unused_command_line_argument=yes
9950else
9951  xorg_cv_cc_flag_unused_command_line_argument=no
9952fi
9953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9954fi
9955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9956$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9957	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9958	CFLAGS="$xorg_testset_save_CFLAGS"
9959fi
9960
9961found="no"
9962
9963	if test $found = "no" ; then
9964		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9965			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9966		fi
9967
9968		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9969			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9970		fi
9971
9972		CFLAGS="$CFLAGS -Waddress"
9973
9974		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9975$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9976		cacheid=xorg_cv_cc_flag__Waddress
9977		if eval \${$cacheid+:} false; then :
9978  $as_echo_n "(cached) " >&6
9979else
9980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9981/* end confdefs.h.  */
9982int i;
9983int
9984main ()
9985{
9986
9987  ;
9988  return 0;
9989}
9990_ACEOF
9991if ac_fn_c_try_link "$LINENO"; then :
9992  eval $cacheid=yes
9993else
9994  eval $cacheid=no
9995fi
9996rm -f core conftest.err conftest.$ac_objext \
9997    conftest$ac_exeext conftest.$ac_ext
9998fi
9999
10000
10001		CFLAGS="$xorg_testset_save_CFLAGS"
10002
10003		eval supported=\$$cacheid
10004		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10005$as_echo "$supported" >&6; }
10006		if test "$supported" = "yes" ; then
10007			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10008			found="yes"
10009		fi
10010	fi
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026xorg_testset_save_CFLAGS="$CFLAGS"
10027
10028if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10029	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10030	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10031$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10032if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10033  $as_echo_n "(cached) " >&6
10034else
10035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036/* end confdefs.h.  */
10037int i;
10038_ACEOF
10039if ac_fn_c_try_compile "$LINENO"; then :
10040  xorg_cv_cc_flag_unknown_warning_option=yes
10041else
10042  xorg_cv_cc_flag_unknown_warning_option=no
10043fi
10044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10045fi
10046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10047$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10048	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10049	CFLAGS="$xorg_testset_save_CFLAGS"
10050fi
10051
10052if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10053	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10054		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10055	fi
10056	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10057	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10058$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10059if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10060  $as_echo_n "(cached) " >&6
10061else
10062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10063/* end confdefs.h.  */
10064int i;
10065_ACEOF
10066if ac_fn_c_try_compile "$LINENO"; then :
10067  xorg_cv_cc_flag_unused_command_line_argument=yes
10068else
10069  xorg_cv_cc_flag_unused_command_line_argument=no
10070fi
10071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10072fi
10073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10074$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10075	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10076	CFLAGS="$xorg_testset_save_CFLAGS"
10077fi
10078
10079found="no"
10080
10081	if test $found = "no" ; then
10082		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10083			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10084		fi
10085
10086		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10087			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10088		fi
10089
10090		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10091
10092		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10093$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10094		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10095		if eval \${$cacheid+:} false; then :
10096  $as_echo_n "(cached) " >&6
10097else
10098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10099/* end confdefs.h.  */
10100int i;
10101int
10102main ()
10103{
10104
10105  ;
10106  return 0;
10107}
10108_ACEOF
10109if ac_fn_c_try_link "$LINENO"; then :
10110  eval $cacheid=yes
10111else
10112  eval $cacheid=no
10113fi
10114rm -f core conftest.err conftest.$ac_objext \
10115    conftest$ac_exeext conftest.$ac_ext
10116fi
10117
10118
10119		CFLAGS="$xorg_testset_save_CFLAGS"
10120
10121		eval supported=\$$cacheid
10122		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10123$as_echo "$supported" >&6; }
10124		if test "$supported" = "yes" ; then
10125			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10126			found="yes"
10127		fi
10128	fi
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144xorg_testset_save_CFLAGS="$CFLAGS"
10145
10146if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10147	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10148	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10149$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10150if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10151  $as_echo_n "(cached) " >&6
10152else
10153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154/* end confdefs.h.  */
10155int i;
10156_ACEOF
10157if ac_fn_c_try_compile "$LINENO"; then :
10158  xorg_cv_cc_flag_unknown_warning_option=yes
10159else
10160  xorg_cv_cc_flag_unknown_warning_option=no
10161fi
10162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10163fi
10164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10165$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10166	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10167	CFLAGS="$xorg_testset_save_CFLAGS"
10168fi
10169
10170if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10171	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10172		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10173	fi
10174	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10175	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10176$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10177if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10178  $as_echo_n "(cached) " >&6
10179else
10180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181/* end confdefs.h.  */
10182int i;
10183_ACEOF
10184if ac_fn_c_try_compile "$LINENO"; then :
10185  xorg_cv_cc_flag_unused_command_line_argument=yes
10186else
10187  xorg_cv_cc_flag_unused_command_line_argument=no
10188fi
10189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10190fi
10191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10192$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10193	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10194	CFLAGS="$xorg_testset_save_CFLAGS"
10195fi
10196
10197found="no"
10198
10199	if test $found = "no" ; then
10200		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10201			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10202		fi
10203
10204		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10205			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10206		fi
10207
10208		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10209
10210		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10211$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10212		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10213		if eval \${$cacheid+:} false; then :
10214  $as_echo_n "(cached) " >&6
10215else
10216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217/* end confdefs.h.  */
10218int i;
10219int
10220main ()
10221{
10222
10223  ;
10224  return 0;
10225}
10226_ACEOF
10227if ac_fn_c_try_link "$LINENO"; then :
10228  eval $cacheid=yes
10229else
10230  eval $cacheid=no
10231fi
10232rm -f core conftest.err conftest.$ac_objext \
10233    conftest$ac_exeext conftest.$ac_ext
10234fi
10235
10236
10237		CFLAGS="$xorg_testset_save_CFLAGS"
10238
10239		eval supported=\$$cacheid
10240		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10241$as_echo "$supported" >&6; }
10242		if test "$supported" = "yes" ; then
10243			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10244			found="yes"
10245		fi
10246	fi
10247
10248
10249fi
10250
10251
10252
10253
10254
10255
10256
10257		CWARNFLAGS="$BASE_CFLAGS"
10258		if  test "x$GCC" = xyes ; then
10259		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10260		fi
10261
10262
10263
10264
10265
10266
10267
10268
10269# Check whether --enable-strict-compilation was given.
10270if test "${enable_strict_compilation+set}" = set; then :
10271  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10272else
10273  STRICT_COMPILE=no
10274fi
10275
10276
10277
10278
10279
10280
10281STRICT_CFLAGS=""
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295xorg_testset_save_CFLAGS="$CFLAGS"
10296
10297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10298	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10299	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10300$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10301if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10302  $as_echo_n "(cached) " >&6
10303else
10304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10305/* end confdefs.h.  */
10306int i;
10307_ACEOF
10308if ac_fn_c_try_compile "$LINENO"; then :
10309  xorg_cv_cc_flag_unknown_warning_option=yes
10310else
10311  xorg_cv_cc_flag_unknown_warning_option=no
10312fi
10313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10314fi
10315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10316$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10317	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10318	CFLAGS="$xorg_testset_save_CFLAGS"
10319fi
10320
10321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10322	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10323		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10324	fi
10325	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10326	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10327$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10328if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10329  $as_echo_n "(cached) " >&6
10330else
10331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332/* end confdefs.h.  */
10333int i;
10334_ACEOF
10335if ac_fn_c_try_compile "$LINENO"; then :
10336  xorg_cv_cc_flag_unused_command_line_argument=yes
10337else
10338  xorg_cv_cc_flag_unused_command_line_argument=no
10339fi
10340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10341fi
10342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10343$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10344	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10345	CFLAGS="$xorg_testset_save_CFLAGS"
10346fi
10347
10348found="no"
10349
10350	if test $found = "no" ; then
10351		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10352			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10353		fi
10354
10355		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10356			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10357		fi
10358
10359		CFLAGS="$CFLAGS -pedantic"
10360
10361		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10362$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10363		cacheid=xorg_cv_cc_flag__pedantic
10364		if eval \${$cacheid+:} false; then :
10365  $as_echo_n "(cached) " >&6
10366else
10367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10368/* end confdefs.h.  */
10369int i;
10370int
10371main ()
10372{
10373
10374  ;
10375  return 0;
10376}
10377_ACEOF
10378if ac_fn_c_try_link "$LINENO"; then :
10379  eval $cacheid=yes
10380else
10381  eval $cacheid=no
10382fi
10383rm -f core conftest.err conftest.$ac_objext \
10384    conftest$ac_exeext conftest.$ac_ext
10385fi
10386
10387
10388		CFLAGS="$xorg_testset_save_CFLAGS"
10389
10390		eval supported=\$$cacheid
10391		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10392$as_echo "$supported" >&6; }
10393		if test "$supported" = "yes" ; then
10394			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10395			found="yes"
10396		fi
10397	fi
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413xorg_testset_save_CFLAGS="$CFLAGS"
10414
10415if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10416	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10417	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10418$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10419if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10420  $as_echo_n "(cached) " >&6
10421else
10422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423/* end confdefs.h.  */
10424int i;
10425_ACEOF
10426if ac_fn_c_try_compile "$LINENO"; then :
10427  xorg_cv_cc_flag_unknown_warning_option=yes
10428else
10429  xorg_cv_cc_flag_unknown_warning_option=no
10430fi
10431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10432fi
10433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10434$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10435	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10436	CFLAGS="$xorg_testset_save_CFLAGS"
10437fi
10438
10439if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10440	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10441		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10442	fi
10443	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10444	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10445$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10446if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10447  $as_echo_n "(cached) " >&6
10448else
10449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450/* end confdefs.h.  */
10451int i;
10452_ACEOF
10453if ac_fn_c_try_compile "$LINENO"; then :
10454  xorg_cv_cc_flag_unused_command_line_argument=yes
10455else
10456  xorg_cv_cc_flag_unused_command_line_argument=no
10457fi
10458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10459fi
10460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10461$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10462	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10463	CFLAGS="$xorg_testset_save_CFLAGS"
10464fi
10465
10466found="no"
10467
10468	if test $found = "no" ; then
10469		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10470			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10471		fi
10472
10473		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10474			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10475		fi
10476
10477		CFLAGS="$CFLAGS -Werror"
10478
10479		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10480$as_echo_n "checking if $CC supports -Werror... " >&6; }
10481		cacheid=xorg_cv_cc_flag__Werror
10482		if eval \${$cacheid+:} false; then :
10483  $as_echo_n "(cached) " >&6
10484else
10485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486/* end confdefs.h.  */
10487int i;
10488int
10489main ()
10490{
10491
10492  ;
10493  return 0;
10494}
10495_ACEOF
10496if ac_fn_c_try_link "$LINENO"; then :
10497  eval $cacheid=yes
10498else
10499  eval $cacheid=no
10500fi
10501rm -f core conftest.err conftest.$ac_objext \
10502    conftest$ac_exeext conftest.$ac_ext
10503fi
10504
10505
10506		CFLAGS="$xorg_testset_save_CFLAGS"
10507
10508		eval supported=\$$cacheid
10509		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10510$as_echo "$supported" >&6; }
10511		if test "$supported" = "yes" ; then
10512			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10513			found="yes"
10514		fi
10515	fi
10516
10517	if test $found = "no" ; then
10518		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10519			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10520		fi
10521
10522		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10523			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10524		fi
10525
10526		CFLAGS="$CFLAGS -errwarn"
10527
10528		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10529$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10530		cacheid=xorg_cv_cc_flag__errwarn
10531		if eval \${$cacheid+:} false; then :
10532  $as_echo_n "(cached) " >&6
10533else
10534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10535/* end confdefs.h.  */
10536int i;
10537int
10538main ()
10539{
10540
10541  ;
10542  return 0;
10543}
10544_ACEOF
10545if ac_fn_c_try_link "$LINENO"; then :
10546  eval $cacheid=yes
10547else
10548  eval $cacheid=no
10549fi
10550rm -f core conftest.err conftest.$ac_objext \
10551    conftest$ac_exeext conftest.$ac_ext
10552fi
10553
10554
10555		CFLAGS="$xorg_testset_save_CFLAGS"
10556
10557		eval supported=\$$cacheid
10558		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10559$as_echo "$supported" >&6; }
10560		if test "$supported" = "yes" ; then
10561			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10562			found="yes"
10563		fi
10564	fi
10565
10566
10567
10568# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10569# activate it with -Werror, so we add it here explicitly.
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583xorg_testset_save_CFLAGS="$CFLAGS"
10584
10585if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10586	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10587	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10588$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10589if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10590  $as_echo_n "(cached) " >&6
10591else
10592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10593/* end confdefs.h.  */
10594int i;
10595_ACEOF
10596if ac_fn_c_try_compile "$LINENO"; then :
10597  xorg_cv_cc_flag_unknown_warning_option=yes
10598else
10599  xorg_cv_cc_flag_unknown_warning_option=no
10600fi
10601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10602fi
10603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10604$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10605	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10606	CFLAGS="$xorg_testset_save_CFLAGS"
10607fi
10608
10609if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10610	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10611		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10612	fi
10613	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10614	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10615$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10616if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10617  $as_echo_n "(cached) " >&6
10618else
10619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620/* end confdefs.h.  */
10621int i;
10622_ACEOF
10623if ac_fn_c_try_compile "$LINENO"; then :
10624  xorg_cv_cc_flag_unused_command_line_argument=yes
10625else
10626  xorg_cv_cc_flag_unused_command_line_argument=no
10627fi
10628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10629fi
10630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10631$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10632	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10633	CFLAGS="$xorg_testset_save_CFLAGS"
10634fi
10635
10636found="no"
10637
10638	if test $found = "no" ; then
10639		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10640			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10641		fi
10642
10643		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10644			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10645		fi
10646
10647		CFLAGS="$CFLAGS -Werror=attributes"
10648
10649		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10650$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10651		cacheid=xorg_cv_cc_flag__Werror_attributes
10652		if eval \${$cacheid+:} false; then :
10653  $as_echo_n "(cached) " >&6
10654else
10655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656/* end confdefs.h.  */
10657int i;
10658int
10659main ()
10660{
10661
10662  ;
10663  return 0;
10664}
10665_ACEOF
10666if ac_fn_c_try_link "$LINENO"; then :
10667  eval $cacheid=yes
10668else
10669  eval $cacheid=no
10670fi
10671rm -f core conftest.err conftest.$ac_objext \
10672    conftest$ac_exeext conftest.$ac_ext
10673fi
10674
10675
10676		CFLAGS="$xorg_testset_save_CFLAGS"
10677
10678		eval supported=\$$cacheid
10679		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10680$as_echo "$supported" >&6; }
10681		if test "$supported" = "yes" ; then
10682			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10683			found="yes"
10684		fi
10685	fi
10686
10687
10688
10689if test "x$STRICT_COMPILE" = "xyes"; then
10690    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10691    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10692fi
10693
10694
10695
10696
10697
10698
10699cat >>confdefs.h <<_ACEOF
10700#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10701_ACEOF
10702
10703	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10704	if test "x$PVM" = "x"; then
10705		PVM="0"
10706	fi
10707
10708cat >>confdefs.h <<_ACEOF
10709#define PACKAGE_VERSION_MINOR $PVM
10710_ACEOF
10711
10712	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10713	if test "x$PVP" = "x"; then
10714		PVP="0"
10715	fi
10716
10717cat >>confdefs.h <<_ACEOF
10718#define PACKAGE_VERSION_PATCHLEVEL $PVP
10719_ACEOF
10720
10721
10722
10723CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10724mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10725|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10726echo 'git directory not found: installing possibly empty changelog.' >&2)"
10727
10728
10729
10730
10731macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10732INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10733mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10734|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10735echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10736
10737
10738
10739
10740
10741
10742if test x$APP_MAN_SUFFIX = x    ; then
10743    APP_MAN_SUFFIX=1
10744fi
10745if test x$APP_MAN_DIR = x    ; then
10746    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10747fi
10748
10749if test x$LIB_MAN_SUFFIX = x    ; then
10750    LIB_MAN_SUFFIX=3
10751fi
10752if test x$LIB_MAN_DIR = x    ; then
10753    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10754fi
10755
10756if test x$FILE_MAN_SUFFIX = x    ; then
10757    case $host_os in
10758	solaris*)	FILE_MAN_SUFFIX=4  ;;
10759	*)		FILE_MAN_SUFFIX=5  ;;
10760    esac
10761fi
10762if test x$FILE_MAN_DIR = x    ; then
10763    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10764fi
10765
10766if test x$MISC_MAN_SUFFIX = x    ; then
10767    case $host_os in
10768	solaris*)	MISC_MAN_SUFFIX=5  ;;
10769	*)		MISC_MAN_SUFFIX=7  ;;
10770    esac
10771fi
10772if test x$MISC_MAN_DIR = x    ; then
10773    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10774fi
10775
10776if test x$DRIVER_MAN_SUFFIX = x    ; then
10777    case $host_os in
10778	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10779	*)		DRIVER_MAN_SUFFIX=4  ;;
10780    esac
10781fi
10782if test x$DRIVER_MAN_DIR = x    ; then
10783    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10784fi
10785
10786if test x$ADMIN_MAN_SUFFIX = x    ; then
10787    case $host_os in
10788	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10789	*)		ADMIN_MAN_SUFFIX=8  ;;
10790    esac
10791fi
10792if test x$ADMIN_MAN_DIR = x    ; then
10793    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10794fi
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810XORG_MAN_PAGE="X Version 11"
10811
10812MAN_SUBSTS="\
10813	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10814	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10815	-e 's|__xservername__|Xorg|g' \
10816	-e 's|__xconfigfile__|xorg.conf|g' \
10817	-e 's|__projectroot__|\$(prefix)|g' \
10818	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10819	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10820	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10821	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10822	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10823	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10824	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10825
10826
10827
10828# Check whether --enable-silent-rules was given.
10829if test "${enable_silent_rules+set}" = set; then :
10830  enableval=$enable_silent_rules;
10831fi
10832
10833case $enable_silent_rules in # (((
10834  yes) AM_DEFAULT_VERBOSITY=0;;
10835   no) AM_DEFAULT_VERBOSITY=1;;
10836    *) AM_DEFAULT_VERBOSITY=0;;
10837esac
10838am_make=${MAKE-make}
10839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10840$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10841if ${am_cv_make_support_nested_variables+:} false; then :
10842  $as_echo_n "(cached) " >&6
10843else
10844  if $as_echo 'TRUE=$(BAR$(V))
10845BAR0=false
10846BAR1=true
10847V=1
10848am__doit:
10849	@$(TRUE)
10850.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10851  am_cv_make_support_nested_variables=yes
10852else
10853  am_cv_make_support_nested_variables=no
10854fi
10855fi
10856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10857$as_echo "$am_cv_make_support_nested_variables" >&6; }
10858if test $am_cv_make_support_nested_variables = yes; then
10859    AM_V='$(V)'
10860  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10861else
10862  AM_V=$AM_DEFAULT_VERBOSITY
10863  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10864fi
10865AM_BACKSLASH='\'
10866
10867
10868
10869# Initialize libtool
10870# Check whether --enable-static was given.
10871if test "${enable_static+set}" = set; then :
10872  enableval=$enable_static; p=${PACKAGE-default}
10873    case $enableval in
10874    yes) enable_static=yes ;;
10875    no) enable_static=no ;;
10876    *)
10877     enable_static=no
10878      # Look at the argument we got.  We use all the common list separators.
10879      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10880      for pkg in $enableval; do
10881	IFS=$lt_save_ifs
10882	if test "X$pkg" = "X$p"; then
10883	  enable_static=yes
10884	fi
10885      done
10886      IFS=$lt_save_ifs
10887      ;;
10888    esac
10889else
10890  enable_static=no
10891fi
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901case `pwd` in
10902  *\ * | *\	*)
10903    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10904$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10905esac
10906
10907
10908
10909macro_version='2.4.4'
10910macro_revision='2.4.4'
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924ltmain=$ac_aux_dir/ltmain.sh
10925
10926# Backslashify metacharacters that are still active within
10927# double-quoted strings.
10928sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10929
10930# Same as above, but do not quote variable references.
10931double_quote_subst='s/\(["`\\]\)/\\\1/g'
10932
10933# Sed substitution to delay expansion of an escaped shell variable in a
10934# double_quote_subst'ed string.
10935delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10936
10937# Sed substitution to delay expansion of an escaped single quote.
10938delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10939
10940# Sed substitution to avoid accidental globbing in evaled expressions
10941no_glob_subst='s/\*/\\\*/g'
10942
10943ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10944ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10945ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10946
10947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10948$as_echo_n "checking how to print strings... " >&6; }
10949# Test print first, because it will be a builtin if present.
10950if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10951   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10952  ECHO='print -r --'
10953elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10954  ECHO='printf %s\n'
10955else
10956  # Use this function as a fallback that always works.
10957  func_fallback_echo ()
10958  {
10959    eval 'cat <<_LTECHO_EOF
10960$1
10961_LTECHO_EOF'
10962  }
10963  ECHO='func_fallback_echo'
10964fi
10965
10966# func_echo_all arg...
10967# Invoke $ECHO with all args, space-separated.
10968func_echo_all ()
10969{
10970    $ECHO ""
10971}
10972
10973case $ECHO in
10974  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10975$as_echo "printf" >&6; } ;;
10976  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10977$as_echo "print -r" >&6; } ;;
10978  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10979$as_echo "cat" >&6; } ;;
10980esac
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10996$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10997if ${ac_cv_path_SED+:} false; then :
10998  $as_echo_n "(cached) " >&6
10999else
11000            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11001     for ac_i in 1 2 3 4 5 6 7; do
11002       ac_script="$ac_script$as_nl$ac_script"
11003     done
11004     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11005     { ac_script=; unset ac_script;}
11006     if test -z "$SED"; then
11007  ac_path_SED_found=false
11008  # Loop through the user's path and test for each of PROGNAME-LIST
11009  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11010for as_dir in $PATH
11011do
11012  IFS=$as_save_IFS
11013  test -z "$as_dir" && as_dir=.
11014    for ac_prog in sed gsed; do
11015    for ac_exec_ext in '' $ac_executable_extensions; do
11016      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11017      as_fn_executable_p "$ac_path_SED" || continue
11018# Check for GNU ac_path_SED and select it if it is found.
11019  # Check for GNU $ac_path_SED
11020case `"$ac_path_SED" --version 2>&1` in
11021*GNU*)
11022  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11023*)
11024  ac_count=0
11025  $as_echo_n 0123456789 >"conftest.in"
11026  while :
11027  do
11028    cat "conftest.in" "conftest.in" >"conftest.tmp"
11029    mv "conftest.tmp" "conftest.in"
11030    cp "conftest.in" "conftest.nl"
11031    $as_echo '' >> "conftest.nl"
11032    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11033    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11034    as_fn_arith $ac_count + 1 && ac_count=$as_val
11035    if test $ac_count -gt ${ac_path_SED_max-0}; then
11036      # Best one so far, save it but keep looking for a better one
11037      ac_cv_path_SED="$ac_path_SED"
11038      ac_path_SED_max=$ac_count
11039    fi
11040    # 10*(2^10) chars as input seems more than enough
11041    test $ac_count -gt 10 && break
11042  done
11043  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11044esac
11045
11046      $ac_path_SED_found && break 3
11047    done
11048  done
11049  done
11050IFS=$as_save_IFS
11051  if test -z "$ac_cv_path_SED"; then
11052    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11053  fi
11054else
11055  ac_cv_path_SED=$SED
11056fi
11057
11058fi
11059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11060$as_echo "$ac_cv_path_SED" >&6; }
11061 SED="$ac_cv_path_SED"
11062  rm -f conftest.sed
11063
11064test -z "$SED" && SED=sed
11065Xsed="$SED -e 1s/^X//"
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11078$as_echo_n "checking for fgrep... " >&6; }
11079if ${ac_cv_path_FGREP+:} false; then :
11080  $as_echo_n "(cached) " >&6
11081else
11082  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11083   then ac_cv_path_FGREP="$GREP -F"
11084   else
11085     if test -z "$FGREP"; then
11086  ac_path_FGREP_found=false
11087  # Loop through the user's path and test for each of PROGNAME-LIST
11088  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11090do
11091  IFS=$as_save_IFS
11092  test -z "$as_dir" && as_dir=.
11093    for ac_prog in fgrep; do
11094    for ac_exec_ext in '' $ac_executable_extensions; do
11095      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11096      as_fn_executable_p "$ac_path_FGREP" || continue
11097# Check for GNU ac_path_FGREP and select it if it is found.
11098  # Check for GNU $ac_path_FGREP
11099case `"$ac_path_FGREP" --version 2>&1` in
11100*GNU*)
11101  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11102*)
11103  ac_count=0
11104  $as_echo_n 0123456789 >"conftest.in"
11105  while :
11106  do
11107    cat "conftest.in" "conftest.in" >"conftest.tmp"
11108    mv "conftest.tmp" "conftest.in"
11109    cp "conftest.in" "conftest.nl"
11110    $as_echo 'FGREP' >> "conftest.nl"
11111    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11112    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11113    as_fn_arith $ac_count + 1 && ac_count=$as_val
11114    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11115      # Best one so far, save it but keep looking for a better one
11116      ac_cv_path_FGREP="$ac_path_FGREP"
11117      ac_path_FGREP_max=$ac_count
11118    fi
11119    # 10*(2^10) chars as input seems more than enough
11120    test $ac_count -gt 10 && break
11121  done
11122  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11123esac
11124
11125      $ac_path_FGREP_found && break 3
11126    done
11127  done
11128  done
11129IFS=$as_save_IFS
11130  if test -z "$ac_cv_path_FGREP"; then
11131    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11132  fi
11133else
11134  ac_cv_path_FGREP=$FGREP
11135fi
11136
11137   fi
11138fi
11139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11140$as_echo "$ac_cv_path_FGREP" >&6; }
11141 FGREP="$ac_cv_path_FGREP"
11142
11143
11144test -z "$GREP" && GREP=grep
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164# Check whether --with-gnu-ld was given.
11165if test "${with_gnu_ld+set}" = set; then :
11166  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11167else
11168  with_gnu_ld=no
11169fi
11170
11171ac_prog=ld
11172if test yes = "$GCC"; then
11173  # Check if gcc -print-prog-name=ld gives a path.
11174  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11175$as_echo_n "checking for ld used by $CC... " >&6; }
11176  case $host in
11177  *-*-mingw*)
11178    # gcc leaves a trailing carriage return, which upsets mingw
11179    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11180  *)
11181    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11182  esac
11183  case $ac_prog in
11184    # Accept absolute paths.
11185    [\\/]* | ?:[\\/]*)
11186      re_direlt='/[^/][^/]*/\.\./'
11187      # Canonicalize the pathname of ld
11188      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11189      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11190	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11191      done
11192      test -z "$LD" && LD=$ac_prog
11193      ;;
11194  "")
11195    # If it fails, then pretend we aren't using GCC.
11196    ac_prog=ld
11197    ;;
11198  *)
11199    # If it is relative, then search for the first ld in PATH.
11200    with_gnu_ld=unknown
11201    ;;
11202  esac
11203elif test yes = "$with_gnu_ld"; then
11204  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11205$as_echo_n "checking for GNU ld... " >&6; }
11206else
11207  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11208$as_echo_n "checking for non-GNU ld... " >&6; }
11209fi
11210if ${lt_cv_path_LD+:} false; then :
11211  $as_echo_n "(cached) " >&6
11212else
11213  if test -z "$LD"; then
11214  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11215  for ac_dir in $PATH; do
11216    IFS=$lt_save_ifs
11217    test -z "$ac_dir" && ac_dir=.
11218    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11219      lt_cv_path_LD=$ac_dir/$ac_prog
11220      # Check to see if the program is GNU ld.  I'd rather use --version,
11221      # but apparently some variants of GNU ld only accept -v.
11222      # Break only if it was the GNU/non-GNU ld that we prefer.
11223      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11224      *GNU* | *'with BFD'*)
11225	test no != "$with_gnu_ld" && break
11226	;;
11227      *)
11228	test yes != "$with_gnu_ld" && break
11229	;;
11230      esac
11231    fi
11232  done
11233  IFS=$lt_save_ifs
11234else
11235  lt_cv_path_LD=$LD # Let the user override the test with a path.
11236fi
11237fi
11238
11239LD=$lt_cv_path_LD
11240if test -n "$LD"; then
11241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11242$as_echo "$LD" >&6; }
11243else
11244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11245$as_echo "no" >&6; }
11246fi
11247test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11249$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11250if ${lt_cv_prog_gnu_ld+:} false; then :
11251  $as_echo_n "(cached) " >&6
11252else
11253  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11254case `$LD -v 2>&1 </dev/null` in
11255*GNU* | *'with BFD'*)
11256  lt_cv_prog_gnu_ld=yes
11257  ;;
11258*)
11259  lt_cv_prog_gnu_ld=no
11260  ;;
11261esac
11262fi
11263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11264$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11265with_gnu_ld=$lt_cv_prog_gnu_ld
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11276$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11277if ${lt_cv_path_NM+:} false; then :
11278  $as_echo_n "(cached) " >&6
11279else
11280  if test -n "$NM"; then
11281  # Let the user override the test.
11282  lt_cv_path_NM=$NM
11283else
11284  lt_nm_to_check=${ac_tool_prefix}nm
11285  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11286    lt_nm_to_check="$lt_nm_to_check nm"
11287  fi
11288  for lt_tmp_nm in $lt_nm_to_check; do
11289    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11290    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11291      IFS=$lt_save_ifs
11292      test -z "$ac_dir" && ac_dir=.
11293      tmp_nm=$ac_dir/$lt_tmp_nm
11294      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11295	# Check to see if the nm accepts a BSD-compat flag.
11296	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11297	#   nm: unknown option "B" ignored
11298	# Tru64's nm complains that /dev/null is an invalid object file
11299	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11300	case $build_os in
11301	mingw*) lt_bad_file=conftest.nm/nofile ;;
11302	*) lt_bad_file=/dev/null ;;
11303	esac
11304	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11305	*$lt_bad_file* | *'Invalid file or object type'*)
11306	  lt_cv_path_NM="$tmp_nm -B"
11307	  break 2
11308	  ;;
11309	*)
11310	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11311	  */dev/null*)
11312	    lt_cv_path_NM="$tmp_nm -p"
11313	    break 2
11314	    ;;
11315	  *)
11316	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11317	    continue # so that we can try to find one that supports BSD flags
11318	    ;;
11319	  esac
11320	  ;;
11321	esac
11322      fi
11323    done
11324    IFS=$lt_save_ifs
11325  done
11326  : ${lt_cv_path_NM=no}
11327fi
11328fi
11329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11330$as_echo "$lt_cv_path_NM" >&6; }
11331if test no != "$lt_cv_path_NM"; then
11332  NM=$lt_cv_path_NM
11333else
11334  # Didn't find any BSD compatible name lister, look for dumpbin.
11335  if test -n "$DUMPBIN"; then :
11336    # Let the user override the test.
11337  else
11338    if test -n "$ac_tool_prefix"; then
11339  for ac_prog in dumpbin "link -dump"
11340  do
11341    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11342set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11344$as_echo_n "checking for $ac_word... " >&6; }
11345if ${ac_cv_prog_DUMPBIN+:} false; then :
11346  $as_echo_n "(cached) " >&6
11347else
11348  if test -n "$DUMPBIN"; then
11349  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11350else
11351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352for as_dir in $PATH
11353do
11354  IFS=$as_save_IFS
11355  test -z "$as_dir" && as_dir=.
11356    for ac_exec_ext in '' $ac_executable_extensions; do
11357  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11358    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11359    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11360    break 2
11361  fi
11362done
11363  done
11364IFS=$as_save_IFS
11365
11366fi
11367fi
11368DUMPBIN=$ac_cv_prog_DUMPBIN
11369if test -n "$DUMPBIN"; then
11370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11371$as_echo "$DUMPBIN" >&6; }
11372else
11373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374$as_echo "no" >&6; }
11375fi
11376
11377
11378    test -n "$DUMPBIN" && break
11379  done
11380fi
11381if test -z "$DUMPBIN"; then
11382  ac_ct_DUMPBIN=$DUMPBIN
11383  for ac_prog in dumpbin "link -dump"
11384do
11385  # Extract the first word of "$ac_prog", so it can be a program name with args.
11386set dummy $ac_prog; ac_word=$2
11387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11388$as_echo_n "checking for $ac_word... " >&6; }
11389if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11390  $as_echo_n "(cached) " >&6
11391else
11392  if test -n "$ac_ct_DUMPBIN"; then
11393  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11394else
11395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396for as_dir in $PATH
11397do
11398  IFS=$as_save_IFS
11399  test -z "$as_dir" && as_dir=.
11400    for ac_exec_ext in '' $ac_executable_extensions; do
11401  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11402    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11403    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11404    break 2
11405  fi
11406done
11407  done
11408IFS=$as_save_IFS
11409
11410fi
11411fi
11412ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11413if test -n "$ac_ct_DUMPBIN"; then
11414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11415$as_echo "$ac_ct_DUMPBIN" >&6; }
11416else
11417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418$as_echo "no" >&6; }
11419fi
11420
11421
11422  test -n "$ac_ct_DUMPBIN" && break
11423done
11424
11425  if test "x$ac_ct_DUMPBIN" = x; then
11426    DUMPBIN=":"
11427  else
11428    case $cross_compiling:$ac_tool_warned in
11429yes:)
11430{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11431$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11432ac_tool_warned=yes ;;
11433esac
11434    DUMPBIN=$ac_ct_DUMPBIN
11435  fi
11436fi
11437
11438    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11439    *COFF*)
11440      DUMPBIN="$DUMPBIN -symbols -headers"
11441      ;;
11442    *)
11443      DUMPBIN=:
11444      ;;
11445    esac
11446  fi
11447
11448  if test : != "$DUMPBIN"; then
11449    NM=$DUMPBIN
11450  fi
11451fi
11452test -z "$NM" && NM=nm
11453
11454
11455
11456
11457
11458
11459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11460$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11461if ${lt_cv_nm_interface+:} false; then :
11462  $as_echo_n "(cached) " >&6
11463else
11464  lt_cv_nm_interface="BSD nm"
11465  echo "int some_variable = 0;" > conftest.$ac_ext
11466  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11467  (eval "$ac_compile" 2>conftest.err)
11468  cat conftest.err >&5
11469  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11470  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11471  cat conftest.err >&5
11472  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11473  cat conftest.out >&5
11474  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11475    lt_cv_nm_interface="MS dumpbin"
11476  fi
11477  rm -f conftest*
11478fi
11479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11480$as_echo "$lt_cv_nm_interface" >&6; }
11481
11482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11483$as_echo_n "checking whether ln -s works... " >&6; }
11484LN_S=$as_ln_s
11485if test "$LN_S" = "ln -s"; then
11486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11487$as_echo "yes" >&6; }
11488else
11489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11490$as_echo "no, using $LN_S" >&6; }
11491fi
11492
11493# find the maximum length of command line arguments
11494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11495$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11496if ${lt_cv_sys_max_cmd_len+:} false; then :
11497  $as_echo_n "(cached) " >&6
11498else
11499    i=0
11500  teststring=ABCD
11501
11502  case $build_os in
11503  msdosdjgpp*)
11504    # On DJGPP, this test can blow up pretty badly due to problems in libc
11505    # (any single argument exceeding 2000 bytes causes a buffer overrun
11506    # during glob expansion).  Even if it were fixed, the result of this
11507    # check would be larger than it should be.
11508    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11509    ;;
11510
11511  gnu*)
11512    # Under GNU Hurd, this test is not required because there is
11513    # no limit to the length of command line arguments.
11514    # Libtool will interpret -1 as no limit whatsoever
11515    lt_cv_sys_max_cmd_len=-1;
11516    ;;
11517
11518  cygwin* | mingw* | cegcc*)
11519    # On Win9x/ME, this test blows up -- it succeeds, but takes
11520    # about 5 minutes as the teststring grows exponentially.
11521    # Worse, since 9x/ME are not pre-emptively multitasking,
11522    # you end up with a "frozen" computer, even though with patience
11523    # the test eventually succeeds (with a max line length of 256k).
11524    # Instead, let's just punt: use the minimum linelength reported by
11525    # all of the supported platforms: 8192 (on NT/2K/XP).
11526    lt_cv_sys_max_cmd_len=8192;
11527    ;;
11528
11529  mint*)
11530    # On MiNT this can take a long time and run out of memory.
11531    lt_cv_sys_max_cmd_len=8192;
11532    ;;
11533
11534  amigaos*)
11535    # On AmigaOS with pdksh, this test takes hours, literally.
11536    # So we just punt and use a minimum line length of 8192.
11537    lt_cv_sys_max_cmd_len=8192;
11538    ;;
11539
11540  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11541    # This has been around since 386BSD, at least.  Likely further.
11542    if test -x /sbin/sysctl; then
11543      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11544    elif test -x /usr/sbin/sysctl; then
11545      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11546    else
11547      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11548    fi
11549    # And add a safety zone
11550    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11551    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11552    ;;
11553
11554  interix*)
11555    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11556    lt_cv_sys_max_cmd_len=196608
11557    ;;
11558
11559  os2*)
11560    # The test takes a long time on OS/2.
11561    lt_cv_sys_max_cmd_len=8192
11562    ;;
11563
11564  osf*)
11565    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11566    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11567    # nice to cause kernel panics so lets avoid the loop below.
11568    # First set a reasonable default.
11569    lt_cv_sys_max_cmd_len=16384
11570    #
11571    if test -x /sbin/sysconfig; then
11572      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11573        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11574      esac
11575    fi
11576    ;;
11577  sco3.2v5*)
11578    lt_cv_sys_max_cmd_len=102400
11579    ;;
11580  sysv5* | sco5v6* | sysv4.2uw2*)
11581    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11582    if test -n "$kargmax"; then
11583      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11584    else
11585      lt_cv_sys_max_cmd_len=32768
11586    fi
11587    ;;
11588  *)
11589    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11590    if test -n "$lt_cv_sys_max_cmd_len" && \
11591       test undefined != "$lt_cv_sys_max_cmd_len"; then
11592      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11593      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11594    else
11595      # Make teststring a little bigger before we do anything with it.
11596      # a 1K string should be a reasonable start.
11597      for i in 1 2 3 4 5 6 7 8; do
11598        teststring=$teststring$teststring
11599      done
11600      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11601      # If test is not a shell built-in, we'll probably end up computing a
11602      # maximum length that is only half of the actual maximum length, but
11603      # we can't tell.
11604      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11605	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11606	      test 17 != "$i" # 1/2 MB should be enough
11607      do
11608        i=`expr $i + 1`
11609        teststring=$teststring$teststring
11610      done
11611      # Only check the string length outside the loop.
11612      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11613      teststring=
11614      # Add a significant safety factor because C++ compilers can tack on
11615      # massive amounts of additional arguments before passing them to the
11616      # linker.  It appears as though 1/2 is a usable value.
11617      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11618    fi
11619    ;;
11620  esac
11621
11622fi
11623
11624if test -n "$lt_cv_sys_max_cmd_len"; then
11625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11626$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11627else
11628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11629$as_echo "none" >&6; }
11630fi
11631max_cmd_len=$lt_cv_sys_max_cmd_len
11632
11633
11634
11635
11636
11637
11638: ${CP="cp -f"}
11639: ${MV="mv -f"}
11640: ${RM="rm -f"}
11641
11642if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11643  lt_unset=unset
11644else
11645  lt_unset=false
11646fi
11647
11648
11649
11650
11651
11652# test EBCDIC or ASCII
11653case `echo X|tr X '\101'` in
11654 A) # ASCII based system
11655    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11656  lt_SP2NL='tr \040 \012'
11657  lt_NL2SP='tr \015\012 \040\040'
11658  ;;
11659 *) # EBCDIC based system
11660  lt_SP2NL='tr \100 \n'
11661  lt_NL2SP='tr \r\n \100\100'
11662  ;;
11663esac
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11674$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11675if ${lt_cv_to_host_file_cmd+:} false; then :
11676  $as_echo_n "(cached) " >&6
11677else
11678  case $host in
11679  *-*-mingw* )
11680    case $build in
11681      *-*-mingw* ) # actually msys
11682        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11683        ;;
11684      *-*-cygwin* )
11685        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11686        ;;
11687      * ) # otherwise, assume *nix
11688        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11689        ;;
11690    esac
11691    ;;
11692  *-*-cygwin* )
11693    case $build in
11694      *-*-mingw* ) # actually msys
11695        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11696        ;;
11697      *-*-cygwin* )
11698        lt_cv_to_host_file_cmd=func_convert_file_noop
11699        ;;
11700      * ) # otherwise, assume *nix
11701        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11702        ;;
11703    esac
11704    ;;
11705  * ) # unhandled hosts (and "normal" native builds)
11706    lt_cv_to_host_file_cmd=func_convert_file_noop
11707    ;;
11708esac
11709
11710fi
11711
11712to_host_file_cmd=$lt_cv_to_host_file_cmd
11713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11714$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11715
11716
11717
11718
11719
11720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11721$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11722if ${lt_cv_to_tool_file_cmd+:} false; then :
11723  $as_echo_n "(cached) " >&6
11724else
11725  #assume ordinary cross tools, or native build.
11726lt_cv_to_tool_file_cmd=func_convert_file_noop
11727case $host in
11728  *-*-mingw* )
11729    case $build in
11730      *-*-mingw* ) # actually msys
11731        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11732        ;;
11733    esac
11734    ;;
11735esac
11736
11737fi
11738
11739to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11741$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11742
11743
11744
11745
11746
11747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11748$as_echo_n "checking for $LD option to reload object files... " >&6; }
11749if ${lt_cv_ld_reload_flag+:} false; then :
11750  $as_echo_n "(cached) " >&6
11751else
11752  lt_cv_ld_reload_flag='-r'
11753fi
11754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11755$as_echo "$lt_cv_ld_reload_flag" >&6; }
11756reload_flag=$lt_cv_ld_reload_flag
11757case $reload_flag in
11758"" | " "*) ;;
11759*) reload_flag=" $reload_flag" ;;
11760esac
11761reload_cmds='$LD$reload_flag -o $output$reload_objs'
11762case $host_os in
11763  cygwin* | mingw* | pw32* | cegcc*)
11764    if test yes != "$GCC"; then
11765      reload_cmds=false
11766    fi
11767    ;;
11768  darwin*)
11769    if test yes = "$GCC"; then
11770      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11771    else
11772      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11773    fi
11774    ;;
11775esac
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785if test -n "$ac_tool_prefix"; then
11786  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11787set dummy ${ac_tool_prefix}objdump; ac_word=$2
11788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11789$as_echo_n "checking for $ac_word... " >&6; }
11790if ${ac_cv_prog_OBJDUMP+:} false; then :
11791  $as_echo_n "(cached) " >&6
11792else
11793  if test -n "$OBJDUMP"; then
11794  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11795else
11796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797for as_dir in $PATH
11798do
11799  IFS=$as_save_IFS
11800  test -z "$as_dir" && as_dir=.
11801    for ac_exec_ext in '' $ac_executable_extensions; do
11802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11803    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11805    break 2
11806  fi
11807done
11808  done
11809IFS=$as_save_IFS
11810
11811fi
11812fi
11813OBJDUMP=$ac_cv_prog_OBJDUMP
11814if test -n "$OBJDUMP"; then
11815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11816$as_echo "$OBJDUMP" >&6; }
11817else
11818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819$as_echo "no" >&6; }
11820fi
11821
11822
11823fi
11824if test -z "$ac_cv_prog_OBJDUMP"; then
11825  ac_ct_OBJDUMP=$OBJDUMP
11826  # Extract the first word of "objdump", so it can be a program name with args.
11827set dummy objdump; ac_word=$2
11828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11829$as_echo_n "checking for $ac_word... " >&6; }
11830if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11831  $as_echo_n "(cached) " >&6
11832else
11833  if test -n "$ac_ct_OBJDUMP"; then
11834  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11835else
11836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11837for as_dir in $PATH
11838do
11839  IFS=$as_save_IFS
11840  test -z "$as_dir" && as_dir=.
11841    for ac_exec_ext in '' $ac_executable_extensions; do
11842  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11843    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11844    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11845    break 2
11846  fi
11847done
11848  done
11849IFS=$as_save_IFS
11850
11851fi
11852fi
11853ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11854if test -n "$ac_ct_OBJDUMP"; then
11855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11856$as_echo "$ac_ct_OBJDUMP" >&6; }
11857else
11858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11859$as_echo "no" >&6; }
11860fi
11861
11862  if test "x$ac_ct_OBJDUMP" = x; then
11863    OBJDUMP="false"
11864  else
11865    case $cross_compiling:$ac_tool_warned in
11866yes:)
11867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11869ac_tool_warned=yes ;;
11870esac
11871    OBJDUMP=$ac_ct_OBJDUMP
11872  fi
11873else
11874  OBJDUMP="$ac_cv_prog_OBJDUMP"
11875fi
11876
11877test -z "$OBJDUMP" && OBJDUMP=objdump
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11888$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11889if ${lt_cv_deplibs_check_method+:} false; then :
11890  $as_echo_n "(cached) " >&6
11891else
11892  lt_cv_file_magic_cmd='$MAGIC_CMD'
11893lt_cv_file_magic_test_file=
11894lt_cv_deplibs_check_method='unknown'
11895# Need to set the preceding variable on all platforms that support
11896# interlibrary dependencies.
11897# 'none' -- dependencies not supported.
11898# 'unknown' -- same as none, but documents that we really don't know.
11899# 'pass_all' -- all dependencies passed with no checks.
11900# 'test_compile' -- check by making test program.
11901# 'file_magic [[regex]]' -- check by looking for files in library path
11902# that responds to the $file_magic_cmd with a given extended regex.
11903# If you have 'file' or equivalent on your system and you're not sure
11904# whether 'pass_all' will *always* work, you probably want this one.
11905
11906case $host_os in
11907aix[4-9]*)
11908  lt_cv_deplibs_check_method=pass_all
11909  ;;
11910
11911beos*)
11912  lt_cv_deplibs_check_method=pass_all
11913  ;;
11914
11915bsdi[45]*)
11916  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11917  lt_cv_file_magic_cmd='/usr/bin/file -L'
11918  lt_cv_file_magic_test_file=/shlib/libc.so
11919  ;;
11920
11921cygwin*)
11922  # func_win32_libid is a shell function defined in ltmain.sh
11923  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11924  lt_cv_file_magic_cmd='func_win32_libid'
11925  ;;
11926
11927mingw* | pw32*)
11928  # Base MSYS/MinGW do not provide the 'file' command needed by
11929  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11930  # unless we find 'file', for example because we are cross-compiling.
11931  if ( file / ) >/dev/null 2>&1; then
11932    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11933    lt_cv_file_magic_cmd='func_win32_libid'
11934  else
11935    # Keep this pattern in sync with the one in func_win32_libid.
11936    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11937    lt_cv_file_magic_cmd='$OBJDUMP -f'
11938  fi
11939  ;;
11940
11941cegcc*)
11942  # use the weaker test based on 'objdump'. See mingw*.
11943  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11944  lt_cv_file_magic_cmd='$OBJDUMP -f'
11945  ;;
11946
11947darwin* | rhapsody*)
11948  lt_cv_deplibs_check_method=pass_all
11949  ;;
11950
11951freebsd* | dragonfly*)
11952  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11953    case $host_cpu in
11954    i*86 )
11955      # Not sure whether the presence of OpenBSD here was a mistake.
11956      # Let's accept both of them until this is cleared up.
11957      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11958      lt_cv_file_magic_cmd=/usr/bin/file
11959      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11960      ;;
11961    esac
11962  else
11963    lt_cv_deplibs_check_method=pass_all
11964  fi
11965  ;;
11966
11967haiku*)
11968  lt_cv_deplibs_check_method=pass_all
11969  ;;
11970
11971hpux10.20* | hpux11*)
11972  lt_cv_file_magic_cmd=/usr/bin/file
11973  case $host_cpu in
11974  ia64*)
11975    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11976    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11977    ;;
11978  hppa*64*)
11979    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]'
11980    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11981    ;;
11982  *)
11983    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11984    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11985    ;;
11986  esac
11987  ;;
11988
11989interix[3-9]*)
11990  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11991  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11992  ;;
11993
11994irix5* | irix6* | nonstopux*)
11995  case $LD in
11996  *-32|*"-32 ") libmagic=32-bit;;
11997  *-n32|*"-n32 ") libmagic=N32;;
11998  *-64|*"-64 ") libmagic=64-bit;;
11999  *) libmagic=never-match;;
12000  esac
12001  lt_cv_deplibs_check_method=pass_all
12002  ;;
12003
12004# This must be glibc/ELF.
12005linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12006  lt_cv_deplibs_check_method=pass_all
12007  ;;
12008
12009netbsd*)
12010  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12011    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12012  else
12013    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12014  fi
12015  ;;
12016
12017newos6*)
12018  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12019  lt_cv_file_magic_cmd=/usr/bin/file
12020  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12021  ;;
12022
12023*nto* | *qnx*)
12024  lt_cv_deplibs_check_method=pass_all
12025  ;;
12026
12027openbsd* | bitrig*)
12028  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12029    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12030  else
12031    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12032  fi
12033  ;;
12034
12035osf3* | osf4* | osf5*)
12036  lt_cv_deplibs_check_method=pass_all
12037  ;;
12038
12039rdos*)
12040  lt_cv_deplibs_check_method=pass_all
12041  ;;
12042
12043solaris*)
12044  lt_cv_deplibs_check_method=pass_all
12045  ;;
12046
12047sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12048  lt_cv_deplibs_check_method=pass_all
12049  ;;
12050
12051sysv4 | sysv4.3*)
12052  case $host_vendor in
12053  motorola)
12054    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]'
12055    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12056    ;;
12057  ncr)
12058    lt_cv_deplibs_check_method=pass_all
12059    ;;
12060  sequent)
12061    lt_cv_file_magic_cmd='/bin/file'
12062    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12063    ;;
12064  sni)
12065    lt_cv_file_magic_cmd='/bin/file'
12066    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12067    lt_cv_file_magic_test_file=/lib/libc.so
12068    ;;
12069  siemens)
12070    lt_cv_deplibs_check_method=pass_all
12071    ;;
12072  pc)
12073    lt_cv_deplibs_check_method=pass_all
12074    ;;
12075  esac
12076  ;;
12077
12078tpf*)
12079  lt_cv_deplibs_check_method=pass_all
12080  ;;
12081os2*)
12082  lt_cv_deplibs_check_method=pass_all
12083  ;;
12084esac
12085
12086fi
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12088$as_echo "$lt_cv_deplibs_check_method" >&6; }
12089
12090file_magic_glob=
12091want_nocaseglob=no
12092if test "$build" = "$host"; then
12093  case $host_os in
12094  mingw* | pw32*)
12095    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12096      want_nocaseglob=yes
12097    else
12098      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12099    fi
12100    ;;
12101  esac
12102fi
12103
12104file_magic_cmd=$lt_cv_file_magic_cmd
12105deplibs_check_method=$lt_cv_deplibs_check_method
12106test -z "$deplibs_check_method" && deplibs_check_method=unknown
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129if test -n "$ac_tool_prefix"; then
12130  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12131set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12133$as_echo_n "checking for $ac_word... " >&6; }
12134if ${ac_cv_prog_DLLTOOL+:} false; then :
12135  $as_echo_n "(cached) " >&6
12136else
12137  if test -n "$DLLTOOL"; then
12138  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12139else
12140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141for as_dir in $PATH
12142do
12143  IFS=$as_save_IFS
12144  test -z "$as_dir" && as_dir=.
12145    for ac_exec_ext in '' $ac_executable_extensions; do
12146  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12147    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12149    break 2
12150  fi
12151done
12152  done
12153IFS=$as_save_IFS
12154
12155fi
12156fi
12157DLLTOOL=$ac_cv_prog_DLLTOOL
12158if test -n "$DLLTOOL"; then
12159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12160$as_echo "$DLLTOOL" >&6; }
12161else
12162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163$as_echo "no" >&6; }
12164fi
12165
12166
12167fi
12168if test -z "$ac_cv_prog_DLLTOOL"; then
12169  ac_ct_DLLTOOL=$DLLTOOL
12170  # Extract the first word of "dlltool", so it can be a program name with args.
12171set dummy dlltool; ac_word=$2
12172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12173$as_echo_n "checking for $ac_word... " >&6; }
12174if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12175  $as_echo_n "(cached) " >&6
12176else
12177  if test -n "$ac_ct_DLLTOOL"; then
12178  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12179else
12180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12181for as_dir in $PATH
12182do
12183  IFS=$as_save_IFS
12184  test -z "$as_dir" && as_dir=.
12185    for ac_exec_ext in '' $ac_executable_extensions; do
12186  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12187    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12189    break 2
12190  fi
12191done
12192  done
12193IFS=$as_save_IFS
12194
12195fi
12196fi
12197ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12198if test -n "$ac_ct_DLLTOOL"; then
12199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12200$as_echo "$ac_ct_DLLTOOL" >&6; }
12201else
12202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203$as_echo "no" >&6; }
12204fi
12205
12206  if test "x$ac_ct_DLLTOOL" = x; then
12207    DLLTOOL="false"
12208  else
12209    case $cross_compiling:$ac_tool_warned in
12210yes:)
12211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12213ac_tool_warned=yes ;;
12214esac
12215    DLLTOOL=$ac_ct_DLLTOOL
12216  fi
12217else
12218  DLLTOOL="$ac_cv_prog_DLLTOOL"
12219fi
12220
12221test -z "$DLLTOOL" && DLLTOOL=dlltool
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12233$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12234if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12235  $as_echo_n "(cached) " >&6
12236else
12237  lt_cv_sharedlib_from_linklib_cmd='unknown'
12238
12239case $host_os in
12240cygwin* | mingw* | pw32* | cegcc*)
12241  # two different shell functions defined in ltmain.sh;
12242  # decide which one to use based on capabilities of $DLLTOOL
12243  case `$DLLTOOL --help 2>&1` in
12244  *--identify-strict*)
12245    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12246    ;;
12247  *)
12248    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12249    ;;
12250  esac
12251  ;;
12252*)
12253  # fallback: assume linklib IS sharedlib
12254  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12255  ;;
12256esac
12257
12258fi
12259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12260$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12261sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12262test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12263
12264
12265
12266
12267
12268
12269
12270if test -n "$ac_tool_prefix"; then
12271  for ac_prog in ar
12272  do
12273    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12274set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12276$as_echo_n "checking for $ac_word... " >&6; }
12277if ${ac_cv_prog_AR+:} false; then :
12278  $as_echo_n "(cached) " >&6
12279else
12280  if test -n "$AR"; then
12281  ac_cv_prog_AR="$AR" # Let the user override the test.
12282else
12283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12284for as_dir in $PATH
12285do
12286  IFS=$as_save_IFS
12287  test -z "$as_dir" && as_dir=.
12288    for ac_exec_ext in '' $ac_executable_extensions; do
12289  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12290    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12292    break 2
12293  fi
12294done
12295  done
12296IFS=$as_save_IFS
12297
12298fi
12299fi
12300AR=$ac_cv_prog_AR
12301if test -n "$AR"; then
12302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12303$as_echo "$AR" >&6; }
12304else
12305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306$as_echo "no" >&6; }
12307fi
12308
12309
12310    test -n "$AR" && break
12311  done
12312fi
12313if test -z "$AR"; then
12314  ac_ct_AR=$AR
12315  for ac_prog in ar
12316do
12317  # Extract the first word of "$ac_prog", so it can be a program name with args.
12318set dummy $ac_prog; ac_word=$2
12319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12320$as_echo_n "checking for $ac_word... " >&6; }
12321if ${ac_cv_prog_ac_ct_AR+:} false; then :
12322  $as_echo_n "(cached) " >&6
12323else
12324  if test -n "$ac_ct_AR"; then
12325  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12326else
12327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328for as_dir in $PATH
12329do
12330  IFS=$as_save_IFS
12331  test -z "$as_dir" && as_dir=.
12332    for ac_exec_ext in '' $ac_executable_extensions; do
12333  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12334    ac_cv_prog_ac_ct_AR="$ac_prog"
12335    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12336    break 2
12337  fi
12338done
12339  done
12340IFS=$as_save_IFS
12341
12342fi
12343fi
12344ac_ct_AR=$ac_cv_prog_ac_ct_AR
12345if test -n "$ac_ct_AR"; then
12346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12347$as_echo "$ac_ct_AR" >&6; }
12348else
12349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12350$as_echo "no" >&6; }
12351fi
12352
12353
12354  test -n "$ac_ct_AR" && break
12355done
12356
12357  if test "x$ac_ct_AR" = x; then
12358    AR="false"
12359  else
12360    case $cross_compiling:$ac_tool_warned in
12361yes:)
12362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12364ac_tool_warned=yes ;;
12365esac
12366    AR=$ac_ct_AR
12367  fi
12368fi
12369
12370: ${AR=ar}
12371: ${AR_FLAGS=cru}
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12384$as_echo_n "checking for archiver @FILE support... " >&6; }
12385if ${lt_cv_ar_at_file+:} false; then :
12386  $as_echo_n "(cached) " >&6
12387else
12388  lt_cv_ar_at_file=no
12389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390/* end confdefs.h.  */
12391
12392int
12393main ()
12394{
12395
12396  ;
12397  return 0;
12398}
12399_ACEOF
12400if ac_fn_c_try_compile "$LINENO"; then :
12401  echo conftest.$ac_objext > conftest.lst
12402      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12403      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12404  (eval $lt_ar_try) 2>&5
12405  ac_status=$?
12406  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12407  test $ac_status = 0; }
12408      if test 0 -eq "$ac_status"; then
12409	# Ensure the archiver fails upon bogus file names.
12410	rm -f conftest.$ac_objext libconftest.a
12411	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12412  (eval $lt_ar_try) 2>&5
12413  ac_status=$?
12414  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12415  test $ac_status = 0; }
12416	if test 0 -ne "$ac_status"; then
12417          lt_cv_ar_at_file=@
12418        fi
12419      fi
12420      rm -f conftest.* libconftest.a
12421
12422fi
12423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12424
12425fi
12426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12427$as_echo "$lt_cv_ar_at_file" >&6; }
12428
12429if test no = "$lt_cv_ar_at_file"; then
12430  archiver_list_spec=
12431else
12432  archiver_list_spec=$lt_cv_ar_at_file
12433fi
12434
12435
12436
12437
12438
12439
12440
12441if test -n "$ac_tool_prefix"; then
12442  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12443set dummy ${ac_tool_prefix}strip; ac_word=$2
12444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12445$as_echo_n "checking for $ac_word... " >&6; }
12446if ${ac_cv_prog_STRIP+:} false; then :
12447  $as_echo_n "(cached) " >&6
12448else
12449  if test -n "$STRIP"; then
12450  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12451else
12452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12453for as_dir in $PATH
12454do
12455  IFS=$as_save_IFS
12456  test -z "$as_dir" && as_dir=.
12457    for ac_exec_ext in '' $ac_executable_extensions; do
12458  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12459    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12460    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12461    break 2
12462  fi
12463done
12464  done
12465IFS=$as_save_IFS
12466
12467fi
12468fi
12469STRIP=$ac_cv_prog_STRIP
12470if test -n "$STRIP"; then
12471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12472$as_echo "$STRIP" >&6; }
12473else
12474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12475$as_echo "no" >&6; }
12476fi
12477
12478
12479fi
12480if test -z "$ac_cv_prog_STRIP"; then
12481  ac_ct_STRIP=$STRIP
12482  # Extract the first word of "strip", so it can be a program name with args.
12483set dummy strip; ac_word=$2
12484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12485$as_echo_n "checking for $ac_word... " >&6; }
12486if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12487  $as_echo_n "(cached) " >&6
12488else
12489  if test -n "$ac_ct_STRIP"; then
12490  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12491else
12492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493for as_dir in $PATH
12494do
12495  IFS=$as_save_IFS
12496  test -z "$as_dir" && as_dir=.
12497    for ac_exec_ext in '' $ac_executable_extensions; do
12498  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12499    ac_cv_prog_ac_ct_STRIP="strip"
12500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12501    break 2
12502  fi
12503done
12504  done
12505IFS=$as_save_IFS
12506
12507fi
12508fi
12509ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12510if test -n "$ac_ct_STRIP"; then
12511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12512$as_echo "$ac_ct_STRIP" >&6; }
12513else
12514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515$as_echo "no" >&6; }
12516fi
12517
12518  if test "x$ac_ct_STRIP" = x; then
12519    STRIP=":"
12520  else
12521    case $cross_compiling:$ac_tool_warned in
12522yes:)
12523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12525ac_tool_warned=yes ;;
12526esac
12527    STRIP=$ac_ct_STRIP
12528  fi
12529else
12530  STRIP="$ac_cv_prog_STRIP"
12531fi
12532
12533test -z "$STRIP" && STRIP=:
12534
12535
12536
12537
12538
12539
12540if test -n "$ac_tool_prefix"; then
12541  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12542set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12544$as_echo_n "checking for $ac_word... " >&6; }
12545if ${ac_cv_prog_RANLIB+:} false; then :
12546  $as_echo_n "(cached) " >&6
12547else
12548  if test -n "$RANLIB"; then
12549  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12550else
12551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552for as_dir in $PATH
12553do
12554  IFS=$as_save_IFS
12555  test -z "$as_dir" && as_dir=.
12556    for ac_exec_ext in '' $ac_executable_extensions; do
12557  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12558    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12559    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12560    break 2
12561  fi
12562done
12563  done
12564IFS=$as_save_IFS
12565
12566fi
12567fi
12568RANLIB=$ac_cv_prog_RANLIB
12569if test -n "$RANLIB"; then
12570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12571$as_echo "$RANLIB" >&6; }
12572else
12573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12574$as_echo "no" >&6; }
12575fi
12576
12577
12578fi
12579if test -z "$ac_cv_prog_RANLIB"; then
12580  ac_ct_RANLIB=$RANLIB
12581  # Extract the first word of "ranlib", so it can be a program name with args.
12582set dummy ranlib; ac_word=$2
12583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12584$as_echo_n "checking for $ac_word... " >&6; }
12585if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12586  $as_echo_n "(cached) " >&6
12587else
12588  if test -n "$ac_ct_RANLIB"; then
12589  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12590else
12591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12592for as_dir in $PATH
12593do
12594  IFS=$as_save_IFS
12595  test -z "$as_dir" && as_dir=.
12596    for ac_exec_ext in '' $ac_executable_extensions; do
12597  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12598    ac_cv_prog_ac_ct_RANLIB="ranlib"
12599    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12600    break 2
12601  fi
12602done
12603  done
12604IFS=$as_save_IFS
12605
12606fi
12607fi
12608ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12609if test -n "$ac_ct_RANLIB"; then
12610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12611$as_echo "$ac_ct_RANLIB" >&6; }
12612else
12613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614$as_echo "no" >&6; }
12615fi
12616
12617  if test "x$ac_ct_RANLIB" = x; then
12618    RANLIB=":"
12619  else
12620    case $cross_compiling:$ac_tool_warned in
12621yes:)
12622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12624ac_tool_warned=yes ;;
12625esac
12626    RANLIB=$ac_ct_RANLIB
12627  fi
12628else
12629  RANLIB="$ac_cv_prog_RANLIB"
12630fi
12631
12632test -z "$RANLIB" && RANLIB=:
12633
12634
12635
12636
12637
12638
12639# Determine commands to create old-style static archives.
12640old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12641old_postinstall_cmds='chmod 644 $oldlib'
12642old_postuninstall_cmds=
12643
12644if test -n "$RANLIB"; then
12645  case $host_os in
12646  bitrig* | openbsd*)
12647    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12648    ;;
12649  *)
12650    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12651    ;;
12652  esac
12653  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12654fi
12655
12656case $host_os in
12657  darwin*)
12658    lock_old_archive_extraction=yes ;;
12659  *)
12660    lock_old_archive_extraction=no ;;
12661esac
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701# If no C compiler was specified, use CC.
12702LTCC=${LTCC-"$CC"}
12703
12704# If no C compiler flags were specified, use CFLAGS.
12705LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12706
12707# Allow CC to be a program name with arguments.
12708compiler=$CC
12709
12710
12711# Check for command to grab the raw symbol name followed by C symbol from nm.
12712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12713$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12714if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12715  $as_echo_n "(cached) " >&6
12716else
12717
12718# These are sane defaults that work on at least a few old systems.
12719# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12720
12721# Character class describing NM global symbol codes.
12722symcode='[BCDEGRST]'
12723
12724# Regexp to match symbols that can be accessed directly from C.
12725sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12726
12727# Define system-specific variables.
12728case $host_os in
12729aix*)
12730  symcode='[BCDT]'
12731  ;;
12732cygwin* | mingw* | pw32* | cegcc*)
12733  symcode='[ABCDGISTW]'
12734  ;;
12735hpux*)
12736  if test ia64 = "$host_cpu"; then
12737    symcode='[ABCDEGRST]'
12738  fi
12739  ;;
12740irix* | nonstopux*)
12741  symcode='[BCDEGRST]'
12742  ;;
12743osf*)
12744  symcode='[BCDEGQRST]'
12745  ;;
12746solaris*)
12747  symcode='[BDRT]'
12748  ;;
12749sco3.2v5*)
12750  symcode='[DT]'
12751  ;;
12752sysv4.2uw2*)
12753  symcode='[DT]'
12754  ;;
12755sysv5* | sco5v6* | unixware* | OpenUNIX*)
12756  symcode='[ABDT]'
12757  ;;
12758sysv4)
12759  symcode='[DFNSTU]'
12760  ;;
12761esac
12762
12763# If we're using GNU nm, then use its standard symbol codes.
12764case `$NM -V 2>&1` in
12765*GNU* | *'with BFD'*)
12766  symcode='[ABCDGIRSTW]' ;;
12767esac
12768
12769if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12770  # Gets list of data symbols to import.
12771  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12772  # Adjust the below global symbol transforms to fixup imported variables.
12773  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12774  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
12775  lt_c_name_lib_hook="\
12776  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
12777  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
12778else
12779  # Disable hooks by default.
12780  lt_cv_sys_global_symbol_to_import=
12781  lt_cdecl_hook=
12782  lt_c_name_hook=
12783  lt_c_name_lib_hook=
12784fi
12785
12786# Transform an extracted symbol line into a proper C declaration.
12787# Some systems (esp. on ia64) link data and code symbols differently,
12788# so use this general approach.
12789lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12790$lt_cdecl_hook\
12791" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12792" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12793
12794# Transform an extracted symbol line into symbol name and symbol address
12795lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12796$lt_c_name_hook\
12797" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12798" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
12799
12800# Transform an extracted symbol line into symbol name with lib prefix and
12801# symbol address.
12802lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12803$lt_c_name_lib_hook\
12804" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12805" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
12806" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
12807
12808# Handle CRLF in mingw tool chain
12809opt_cr=
12810case $build_os in
12811mingw*)
12812  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12813  ;;
12814esac
12815
12816# Try without a prefix underscore, then with it.
12817for ac_symprfx in "" "_"; do
12818
12819  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12820  symxfrm="\\1 $ac_symprfx\\2 \\2"
12821
12822  # Write the raw and C identifiers.
12823  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12824    # Fake it for dumpbin and say T for any non-static function,
12825    # D for any global variable and I for any imported variable.
12826    # Also find C++ and __fastcall symbols from MSVC++,
12827    # which start with @ or ?.
12828    lt_cv_sys_global_symbol_pipe="$AWK '"\
12829"     {last_section=section; section=\$ 3};"\
12830"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12831"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12832"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12833"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12834"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12835"     \$ 0!~/External *\|/{next};"\
12836"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12837"     {if(hide[section]) next};"\
12838"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12839"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12840"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12841"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12842"     ' prfx=^$ac_symprfx"
12843  else
12844    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12845  fi
12846  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12847
12848  # Check to see that the pipe works correctly.
12849  pipe_works=no
12850
12851  rm -f conftest*
12852  cat > conftest.$ac_ext <<_LT_EOF
12853#ifdef __cplusplus
12854extern "C" {
12855#endif
12856char nm_test_var;
12857void nm_test_func(void);
12858void nm_test_func(void){}
12859#ifdef __cplusplus
12860}
12861#endif
12862int main(){nm_test_var='a';nm_test_func();return(0);}
12863_LT_EOF
12864
12865  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12866  (eval $ac_compile) 2>&5
12867  ac_status=$?
12868  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12869  test $ac_status = 0; }; then
12870    # Now try to grab the symbols.
12871    nlist=conftest.nm
12872    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12873  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12874  ac_status=$?
12875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12876  test $ac_status = 0; } && test -s "$nlist"; then
12877      # Try sorting and uniquifying the output.
12878      if sort "$nlist" | uniq > "$nlist"T; then
12879	mv -f "$nlist"T "$nlist"
12880      else
12881	rm -f "$nlist"T
12882      fi
12883
12884      # Make sure that we snagged all the symbols we need.
12885      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12886	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12887	  cat <<_LT_EOF > conftest.$ac_ext
12888/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12889#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12890/* DATA imports from DLLs on WIN32 can't be const, because runtime
12891   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12892# define LT_DLSYM_CONST
12893#elif defined __osf__
12894/* This system does not cope well with relocations in const data.  */
12895# define LT_DLSYM_CONST
12896#else
12897# define LT_DLSYM_CONST const
12898#endif
12899
12900#ifdef __cplusplus
12901extern "C" {
12902#endif
12903
12904_LT_EOF
12905	  # Now generate the symbol file.
12906	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12907
12908	  cat <<_LT_EOF >> conftest.$ac_ext
12909
12910/* The mapping between symbol names and symbols.  */
12911LT_DLSYM_CONST struct {
12912  const char *name;
12913  void       *address;
12914}
12915lt__PROGRAM__LTX_preloaded_symbols[] =
12916{
12917  { "@PROGRAM@", (void *) 0 },
12918_LT_EOF
12919	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12920	  cat <<\_LT_EOF >> conftest.$ac_ext
12921  {0, (void *) 0}
12922};
12923
12924/* This works around a problem in FreeBSD linker */
12925#ifdef FREEBSD_WORKAROUND
12926static const void *lt_preloaded_setup() {
12927  return lt__PROGRAM__LTX_preloaded_symbols;
12928}
12929#endif
12930
12931#ifdef __cplusplus
12932}
12933#endif
12934_LT_EOF
12935	  # Now try linking the two files.
12936	  mv conftest.$ac_objext conftstm.$ac_objext
12937	  lt_globsym_save_LIBS=$LIBS
12938	  lt_globsym_save_CFLAGS=$CFLAGS
12939	  LIBS=conftstm.$ac_objext
12940	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12941	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12942  (eval $ac_link) 2>&5
12943  ac_status=$?
12944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12945  test $ac_status = 0; } && test -s conftest$ac_exeext; then
12946	    pipe_works=yes
12947	  fi
12948	  LIBS=$lt_globsym_save_LIBS
12949	  CFLAGS=$lt_globsym_save_CFLAGS
12950	else
12951	  echo "cannot find nm_test_func in $nlist" >&5
12952	fi
12953      else
12954	echo "cannot find nm_test_var in $nlist" >&5
12955      fi
12956    else
12957      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12958    fi
12959  else
12960    echo "$progname: failed program was:" >&5
12961    cat conftest.$ac_ext >&5
12962  fi
12963  rm -rf conftest* conftst*
12964
12965  # Do not use the global_symbol_pipe unless it works.
12966  if test yes = "$pipe_works"; then
12967    break
12968  else
12969    lt_cv_sys_global_symbol_pipe=
12970  fi
12971done
12972
12973fi
12974
12975if test -z "$lt_cv_sys_global_symbol_pipe"; then
12976  lt_cv_sys_global_symbol_to_cdecl=
12977fi
12978if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12980$as_echo "failed" >&6; }
12981else
12982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12983$as_echo "ok" >&6; }
12984fi
12985
12986# Response file support.
12987if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12988  nm_file_list_spec='@'
12989elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12990  nm_file_list_spec='@'
12991fi
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13030$as_echo_n "checking for sysroot... " >&6; }
13031
13032# Check whether --with-sysroot was given.
13033if test "${with_sysroot+set}" = set; then :
13034  withval=$with_sysroot;
13035else
13036  with_sysroot=no
13037fi
13038
13039
13040lt_sysroot=
13041case $with_sysroot in #(
13042 yes)
13043   if test yes = "$GCC"; then
13044     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13045   fi
13046   ;; #(
13047 /*)
13048   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13049   ;; #(
13050 no|'')
13051   ;; #(
13052 *)
13053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13054$as_echo "$with_sysroot" >&6; }
13055   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13056   ;;
13057esac
13058
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13060$as_echo "${lt_sysroot:-no}" >&6; }
13061
13062
13063
13064
13065
13066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13067$as_echo_n "checking for a working dd... " >&6; }
13068if ${ac_cv_path_lt_DD+:} false; then :
13069  $as_echo_n "(cached) " >&6
13070else
13071  printf 0123456789abcdef0123456789abcdef >conftest.i
13072cat conftest.i conftest.i >conftest2.i
13073: ${lt_DD:=$DD}
13074if test -z "$lt_DD"; then
13075  ac_path_lt_DD_found=false
13076  # Loop through the user's path and test for each of PROGNAME-LIST
13077  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13078for as_dir in $PATH
13079do
13080  IFS=$as_save_IFS
13081  test -z "$as_dir" && as_dir=.
13082    for ac_prog in dd; do
13083    for ac_exec_ext in '' $ac_executable_extensions; do
13084      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13085      as_fn_executable_p "$ac_path_lt_DD" || continue
13086if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13087  cmp -s conftest.i conftest.out \
13088  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13089fi
13090      $ac_path_lt_DD_found && break 3
13091    done
13092  done
13093  done
13094IFS=$as_save_IFS
13095  if test -z "$ac_cv_path_lt_DD"; then
13096    :
13097  fi
13098else
13099  ac_cv_path_lt_DD=$lt_DD
13100fi
13101
13102rm -f conftest.i conftest2.i conftest.out
13103fi
13104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13105$as_echo "$ac_cv_path_lt_DD" >&6; }
13106
13107
13108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13109$as_echo_n "checking how to truncate binary pipes... " >&6; }
13110if ${lt_cv_truncate_bin+:} false; then :
13111  $as_echo_n "(cached) " >&6
13112else
13113  printf 0123456789abcdef0123456789abcdef >conftest.i
13114cat conftest.i conftest.i >conftest2.i
13115lt_cv_truncate_bin=
13116if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13117  cmp -s conftest.i conftest.out \
13118  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13119fi
13120rm -f conftest.i conftest2.i conftest.out
13121test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13122fi
13123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13124$as_echo "$lt_cv_truncate_bin" >&6; }
13125
13126
13127
13128
13129
13130
13131# Check whether --enable-libtool-lock was given.
13132if test "${enable_libtool_lock+set}" = set; then :
13133  enableval=$enable_libtool_lock;
13134fi
13135
13136test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13137
13138# Some flags need to be propagated to the compiler or linker for good
13139# libtool support.
13140case $host in
13141ia64-*-hpux*)
13142  # Find out what ABI is being produced by ac_compile, and set mode
13143  # options accordingly.
13144  echo 'int i;' > conftest.$ac_ext
13145  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13146  (eval $ac_compile) 2>&5
13147  ac_status=$?
13148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13149  test $ac_status = 0; }; then
13150    case `/usr/bin/file conftest.$ac_objext` in
13151      *ELF-32*)
13152	HPUX_IA64_MODE=32
13153	;;
13154      *ELF-64*)
13155	HPUX_IA64_MODE=64
13156	;;
13157    esac
13158  fi
13159  rm -rf conftest*
13160  ;;
13161*-*-irix6*)
13162  # Find out what ABI is being produced by ac_compile, and set linker
13163  # options accordingly.
13164  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13165  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13166  (eval $ac_compile) 2>&5
13167  ac_status=$?
13168  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13169  test $ac_status = 0; }; then
13170    if test yes = "$lt_cv_prog_gnu_ld"; then
13171      case `/usr/bin/file conftest.$ac_objext` in
13172	*32-bit*)
13173	  LD="${LD-ld} -melf32bsmip"
13174	  ;;
13175	*N32*)
13176	  LD="${LD-ld} -melf32bmipn32"
13177	  ;;
13178	*64-bit*)
13179	  LD="${LD-ld} -melf64bmip"
13180	;;
13181      esac
13182    else
13183      case `/usr/bin/file conftest.$ac_objext` in
13184	*32-bit*)
13185	  LD="${LD-ld} -32"
13186	  ;;
13187	*N32*)
13188	  LD="${LD-ld} -n32"
13189	  ;;
13190	*64-bit*)
13191	  LD="${LD-ld} -64"
13192	  ;;
13193      esac
13194    fi
13195  fi
13196  rm -rf conftest*
13197  ;;
13198
13199mips64*-*linux*)
13200  # Find out what ABI is being produced by ac_compile, and set linker
13201  # options accordingly.
13202  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13203  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13204  (eval $ac_compile) 2>&5
13205  ac_status=$?
13206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13207  test $ac_status = 0; }; then
13208    emul=elf
13209    case `/usr/bin/file conftest.$ac_objext` in
13210      *32-bit*)
13211	emul="${emul}32"
13212	;;
13213      *64-bit*)
13214	emul="${emul}64"
13215	;;
13216    esac
13217    case `/usr/bin/file conftest.$ac_objext` in
13218      *MSB*)
13219	emul="${emul}btsmip"
13220	;;
13221      *LSB*)
13222	emul="${emul}ltsmip"
13223	;;
13224    esac
13225    case `/usr/bin/file conftest.$ac_objext` in
13226      *N32*)
13227	emul="${emul}n32"
13228	;;
13229    esac
13230    LD="${LD-ld} -m $emul"
13231  fi
13232  rm -rf conftest*
13233  ;;
13234
13235x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13236s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13237  # Find out what ABI is being produced by ac_compile, and set linker
13238  # options accordingly.  Note that the listed cases only cover the
13239  # situations where additional linker options are needed (such as when
13240  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13241  # vice versa); the common cases where no linker options are needed do
13242  # not appear in the list.
13243  echo 'int i;' > conftest.$ac_ext
13244  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13245  (eval $ac_compile) 2>&5
13246  ac_status=$?
13247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13248  test $ac_status = 0; }; then
13249    case `/usr/bin/file conftest.o` in
13250      *32-bit*)
13251	case $host in
13252	  x86_64-*kfreebsd*-gnu)
13253	    LD="${LD-ld} -m elf_i386_fbsd"
13254	    ;;
13255	  x86_64-*linux*)
13256	    case `/usr/bin/file conftest.o` in
13257	      *x86-64*)
13258		LD="${LD-ld} -m elf32_x86_64"
13259		;;
13260	      *)
13261		LD="${LD-ld} -m elf_i386"
13262		;;
13263	    esac
13264	    ;;
13265	  powerpc64le-*linux*)
13266	    LD="${LD-ld} -m elf32lppclinux"
13267	    ;;
13268	  powerpc64-*linux*)
13269	    LD="${LD-ld} -m elf32ppclinux"
13270	    ;;
13271	  s390x-*linux*)
13272	    LD="${LD-ld} -m elf_s390"
13273	    ;;
13274	  sparc64-*linux*)
13275	    LD="${LD-ld} -m elf32_sparc"
13276	    ;;
13277	esac
13278	;;
13279      *64-bit*)
13280	case $host in
13281	  x86_64-*kfreebsd*-gnu)
13282	    LD="${LD-ld} -m elf_x86_64_fbsd"
13283	    ;;
13284	  x86_64-*linux*)
13285	    LD="${LD-ld} -m elf_x86_64"
13286	    ;;
13287	  powerpcle-*linux*)
13288	    LD="${LD-ld} -m elf64lppc"
13289	    ;;
13290	  powerpc-*linux*)
13291	    LD="${LD-ld} -m elf64ppc"
13292	    ;;
13293	  s390*-*linux*|s390*-*tpf*)
13294	    LD="${LD-ld} -m elf64_s390"
13295	    ;;
13296	  sparc*-*linux*)
13297	    LD="${LD-ld} -m elf64_sparc"
13298	    ;;
13299	esac
13300	;;
13301    esac
13302  fi
13303  rm -rf conftest*
13304  ;;
13305
13306*-*-sco3.2v5*)
13307  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13308  SAVE_CFLAGS=$CFLAGS
13309  CFLAGS="$CFLAGS -belf"
13310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13311$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13312if ${lt_cv_cc_needs_belf+:} false; then :
13313  $as_echo_n "(cached) " >&6
13314else
13315  ac_ext=c
13316ac_cpp='$CPP $CPPFLAGS'
13317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13319ac_compiler_gnu=$ac_cv_c_compiler_gnu
13320
13321     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322/* end confdefs.h.  */
13323
13324int
13325main ()
13326{
13327
13328  ;
13329  return 0;
13330}
13331_ACEOF
13332if ac_fn_c_try_link "$LINENO"; then :
13333  lt_cv_cc_needs_belf=yes
13334else
13335  lt_cv_cc_needs_belf=no
13336fi
13337rm -f core conftest.err conftest.$ac_objext \
13338    conftest$ac_exeext conftest.$ac_ext
13339     ac_ext=c
13340ac_cpp='$CPP $CPPFLAGS'
13341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13343ac_compiler_gnu=$ac_cv_c_compiler_gnu
13344
13345fi
13346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13347$as_echo "$lt_cv_cc_needs_belf" >&6; }
13348  if test yes != "$lt_cv_cc_needs_belf"; then
13349    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13350    CFLAGS=$SAVE_CFLAGS
13351  fi
13352  ;;
13353*-*solaris*)
13354  # Find out what ABI is being produced by ac_compile, and set linker
13355  # options accordingly.
13356  echo 'int i;' > conftest.$ac_ext
13357  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13358  (eval $ac_compile) 2>&5
13359  ac_status=$?
13360  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13361  test $ac_status = 0; }; then
13362    case `/usr/bin/file conftest.o` in
13363    *64-bit*)
13364      case $lt_cv_prog_gnu_ld in
13365      yes*)
13366        case $host in
13367        i?86-*-solaris*|x86_64-*-solaris*)
13368          LD="${LD-ld} -m elf_x86_64"
13369          ;;
13370        sparc*-*-solaris*)
13371          LD="${LD-ld} -m elf64_sparc"
13372          ;;
13373        esac
13374        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13375        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13376          LD=${LD-ld}_sol2
13377        fi
13378        ;;
13379      *)
13380	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13381	  LD="${LD-ld} -64"
13382	fi
13383	;;
13384      esac
13385      ;;
13386    esac
13387  fi
13388  rm -rf conftest*
13389  ;;
13390esac
13391
13392need_locks=$enable_libtool_lock
13393
13394if test -n "$ac_tool_prefix"; then
13395  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13396set dummy ${ac_tool_prefix}mt; ac_word=$2
13397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13398$as_echo_n "checking for $ac_word... " >&6; }
13399if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13400  $as_echo_n "(cached) " >&6
13401else
13402  if test -n "$MANIFEST_TOOL"; then
13403  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13404else
13405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13406for as_dir in $PATH
13407do
13408  IFS=$as_save_IFS
13409  test -z "$as_dir" && as_dir=.
13410    for ac_exec_ext in '' $ac_executable_extensions; do
13411  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13412    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13413    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13414    break 2
13415  fi
13416done
13417  done
13418IFS=$as_save_IFS
13419
13420fi
13421fi
13422MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13423if test -n "$MANIFEST_TOOL"; then
13424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13425$as_echo "$MANIFEST_TOOL" >&6; }
13426else
13427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13428$as_echo "no" >&6; }
13429fi
13430
13431
13432fi
13433if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13434  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13435  # Extract the first word of "mt", so it can be a program name with args.
13436set dummy mt; ac_word=$2
13437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13438$as_echo_n "checking for $ac_word... " >&6; }
13439if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13440  $as_echo_n "(cached) " >&6
13441else
13442  if test -n "$ac_ct_MANIFEST_TOOL"; then
13443  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13444else
13445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13446for as_dir in $PATH
13447do
13448  IFS=$as_save_IFS
13449  test -z "$as_dir" && as_dir=.
13450    for ac_exec_ext in '' $ac_executable_extensions; do
13451  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13452    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13453    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13454    break 2
13455  fi
13456done
13457  done
13458IFS=$as_save_IFS
13459
13460fi
13461fi
13462ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13463if test -n "$ac_ct_MANIFEST_TOOL"; then
13464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13465$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13466else
13467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13468$as_echo "no" >&6; }
13469fi
13470
13471  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13472    MANIFEST_TOOL=":"
13473  else
13474    case $cross_compiling:$ac_tool_warned in
13475yes:)
13476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13478ac_tool_warned=yes ;;
13479esac
13480    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13481  fi
13482else
13483  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13484fi
13485
13486test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13488$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13489if ${lt_cv_path_mainfest_tool+:} false; then :
13490  $as_echo_n "(cached) " >&6
13491else
13492  lt_cv_path_mainfest_tool=no
13493  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13494  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13495  cat conftest.err >&5
13496  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13497    lt_cv_path_mainfest_tool=yes
13498  fi
13499  rm -f conftest*
13500fi
13501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13502$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13503if test yes != "$lt_cv_path_mainfest_tool"; then
13504  MANIFEST_TOOL=:
13505fi
13506
13507
13508
13509
13510
13511
13512  case $host_os in
13513    rhapsody* | darwin*)
13514    if test -n "$ac_tool_prefix"; then
13515  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13516set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13518$as_echo_n "checking for $ac_word... " >&6; }
13519if ${ac_cv_prog_DSYMUTIL+:} false; then :
13520  $as_echo_n "(cached) " >&6
13521else
13522  if test -n "$DSYMUTIL"; then
13523  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13524else
13525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526for as_dir in $PATH
13527do
13528  IFS=$as_save_IFS
13529  test -z "$as_dir" && as_dir=.
13530    for ac_exec_ext in '' $ac_executable_extensions; do
13531  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13532    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13533    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13534    break 2
13535  fi
13536done
13537  done
13538IFS=$as_save_IFS
13539
13540fi
13541fi
13542DSYMUTIL=$ac_cv_prog_DSYMUTIL
13543if test -n "$DSYMUTIL"; then
13544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13545$as_echo "$DSYMUTIL" >&6; }
13546else
13547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13548$as_echo "no" >&6; }
13549fi
13550
13551
13552fi
13553if test -z "$ac_cv_prog_DSYMUTIL"; then
13554  ac_ct_DSYMUTIL=$DSYMUTIL
13555  # Extract the first word of "dsymutil", so it can be a program name with args.
13556set dummy dsymutil; ac_word=$2
13557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13558$as_echo_n "checking for $ac_word... " >&6; }
13559if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13560  $as_echo_n "(cached) " >&6
13561else
13562  if test -n "$ac_ct_DSYMUTIL"; then
13563  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13564else
13565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566for as_dir in $PATH
13567do
13568  IFS=$as_save_IFS
13569  test -z "$as_dir" && as_dir=.
13570    for ac_exec_ext in '' $ac_executable_extensions; do
13571  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13572    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13574    break 2
13575  fi
13576done
13577  done
13578IFS=$as_save_IFS
13579
13580fi
13581fi
13582ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13583if test -n "$ac_ct_DSYMUTIL"; then
13584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13585$as_echo "$ac_ct_DSYMUTIL" >&6; }
13586else
13587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13588$as_echo "no" >&6; }
13589fi
13590
13591  if test "x$ac_ct_DSYMUTIL" = x; then
13592    DSYMUTIL=":"
13593  else
13594    case $cross_compiling:$ac_tool_warned in
13595yes:)
13596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13598ac_tool_warned=yes ;;
13599esac
13600    DSYMUTIL=$ac_ct_DSYMUTIL
13601  fi
13602else
13603  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13604fi
13605
13606    if test -n "$ac_tool_prefix"; then
13607  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13608set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13610$as_echo_n "checking for $ac_word... " >&6; }
13611if ${ac_cv_prog_NMEDIT+:} false; then :
13612  $as_echo_n "(cached) " >&6
13613else
13614  if test -n "$NMEDIT"; then
13615  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13616else
13617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13618for as_dir in $PATH
13619do
13620  IFS=$as_save_IFS
13621  test -z "$as_dir" && as_dir=.
13622    for ac_exec_ext in '' $ac_executable_extensions; do
13623  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13624    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13625    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13626    break 2
13627  fi
13628done
13629  done
13630IFS=$as_save_IFS
13631
13632fi
13633fi
13634NMEDIT=$ac_cv_prog_NMEDIT
13635if test -n "$NMEDIT"; then
13636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13637$as_echo "$NMEDIT" >&6; }
13638else
13639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13640$as_echo "no" >&6; }
13641fi
13642
13643
13644fi
13645if test -z "$ac_cv_prog_NMEDIT"; then
13646  ac_ct_NMEDIT=$NMEDIT
13647  # Extract the first word of "nmedit", so it can be a program name with args.
13648set dummy nmedit; ac_word=$2
13649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13650$as_echo_n "checking for $ac_word... " >&6; }
13651if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13652  $as_echo_n "(cached) " >&6
13653else
13654  if test -n "$ac_ct_NMEDIT"; then
13655  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13656else
13657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13658for as_dir in $PATH
13659do
13660  IFS=$as_save_IFS
13661  test -z "$as_dir" && as_dir=.
13662    for ac_exec_ext in '' $ac_executable_extensions; do
13663  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13664    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13666    break 2
13667  fi
13668done
13669  done
13670IFS=$as_save_IFS
13671
13672fi
13673fi
13674ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13675if test -n "$ac_ct_NMEDIT"; then
13676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13677$as_echo "$ac_ct_NMEDIT" >&6; }
13678else
13679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13680$as_echo "no" >&6; }
13681fi
13682
13683  if test "x$ac_ct_NMEDIT" = x; then
13684    NMEDIT=":"
13685  else
13686    case $cross_compiling:$ac_tool_warned in
13687yes:)
13688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13690ac_tool_warned=yes ;;
13691esac
13692    NMEDIT=$ac_ct_NMEDIT
13693  fi
13694else
13695  NMEDIT="$ac_cv_prog_NMEDIT"
13696fi
13697
13698    if test -n "$ac_tool_prefix"; then
13699  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13700set dummy ${ac_tool_prefix}lipo; ac_word=$2
13701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13702$as_echo_n "checking for $ac_word... " >&6; }
13703if ${ac_cv_prog_LIPO+:} false; then :
13704  $as_echo_n "(cached) " >&6
13705else
13706  if test -n "$LIPO"; then
13707  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13708else
13709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13710for as_dir in $PATH
13711do
13712  IFS=$as_save_IFS
13713  test -z "$as_dir" && as_dir=.
13714    for ac_exec_ext in '' $ac_executable_extensions; do
13715  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13716    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13718    break 2
13719  fi
13720done
13721  done
13722IFS=$as_save_IFS
13723
13724fi
13725fi
13726LIPO=$ac_cv_prog_LIPO
13727if test -n "$LIPO"; then
13728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13729$as_echo "$LIPO" >&6; }
13730else
13731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13732$as_echo "no" >&6; }
13733fi
13734
13735
13736fi
13737if test -z "$ac_cv_prog_LIPO"; then
13738  ac_ct_LIPO=$LIPO
13739  # Extract the first word of "lipo", so it can be a program name with args.
13740set dummy lipo; ac_word=$2
13741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13742$as_echo_n "checking for $ac_word... " >&6; }
13743if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13744  $as_echo_n "(cached) " >&6
13745else
13746  if test -n "$ac_ct_LIPO"; then
13747  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13748else
13749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13750for as_dir in $PATH
13751do
13752  IFS=$as_save_IFS
13753  test -z "$as_dir" && as_dir=.
13754    for ac_exec_ext in '' $ac_executable_extensions; do
13755  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13756    ac_cv_prog_ac_ct_LIPO="lipo"
13757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13758    break 2
13759  fi
13760done
13761  done
13762IFS=$as_save_IFS
13763
13764fi
13765fi
13766ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13767if test -n "$ac_ct_LIPO"; then
13768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13769$as_echo "$ac_ct_LIPO" >&6; }
13770else
13771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13772$as_echo "no" >&6; }
13773fi
13774
13775  if test "x$ac_ct_LIPO" = x; then
13776    LIPO=":"
13777  else
13778    case $cross_compiling:$ac_tool_warned in
13779yes:)
13780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13782ac_tool_warned=yes ;;
13783esac
13784    LIPO=$ac_ct_LIPO
13785  fi
13786else
13787  LIPO="$ac_cv_prog_LIPO"
13788fi
13789
13790    if test -n "$ac_tool_prefix"; then
13791  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13792set dummy ${ac_tool_prefix}otool; ac_word=$2
13793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13794$as_echo_n "checking for $ac_word... " >&6; }
13795if ${ac_cv_prog_OTOOL+:} false; then :
13796  $as_echo_n "(cached) " >&6
13797else
13798  if test -n "$OTOOL"; then
13799  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13800else
13801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13802for as_dir in $PATH
13803do
13804  IFS=$as_save_IFS
13805  test -z "$as_dir" && as_dir=.
13806    for ac_exec_ext in '' $ac_executable_extensions; do
13807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13808    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13810    break 2
13811  fi
13812done
13813  done
13814IFS=$as_save_IFS
13815
13816fi
13817fi
13818OTOOL=$ac_cv_prog_OTOOL
13819if test -n "$OTOOL"; then
13820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13821$as_echo "$OTOOL" >&6; }
13822else
13823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13824$as_echo "no" >&6; }
13825fi
13826
13827
13828fi
13829if test -z "$ac_cv_prog_OTOOL"; then
13830  ac_ct_OTOOL=$OTOOL
13831  # Extract the first word of "otool", so it can be a program name with args.
13832set dummy otool; ac_word=$2
13833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13834$as_echo_n "checking for $ac_word... " >&6; }
13835if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13836  $as_echo_n "(cached) " >&6
13837else
13838  if test -n "$ac_ct_OTOOL"; then
13839  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13840else
13841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13842for as_dir in $PATH
13843do
13844  IFS=$as_save_IFS
13845  test -z "$as_dir" && as_dir=.
13846    for ac_exec_ext in '' $ac_executable_extensions; do
13847  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13848    ac_cv_prog_ac_ct_OTOOL="otool"
13849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13850    break 2
13851  fi
13852done
13853  done
13854IFS=$as_save_IFS
13855
13856fi
13857fi
13858ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13859if test -n "$ac_ct_OTOOL"; then
13860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13861$as_echo "$ac_ct_OTOOL" >&6; }
13862else
13863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13864$as_echo "no" >&6; }
13865fi
13866
13867  if test "x$ac_ct_OTOOL" = x; then
13868    OTOOL=":"
13869  else
13870    case $cross_compiling:$ac_tool_warned in
13871yes:)
13872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13874ac_tool_warned=yes ;;
13875esac
13876    OTOOL=$ac_ct_OTOOL
13877  fi
13878else
13879  OTOOL="$ac_cv_prog_OTOOL"
13880fi
13881
13882    if test -n "$ac_tool_prefix"; then
13883  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13884set dummy ${ac_tool_prefix}otool64; ac_word=$2
13885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13886$as_echo_n "checking for $ac_word... " >&6; }
13887if ${ac_cv_prog_OTOOL64+:} false; then :
13888  $as_echo_n "(cached) " >&6
13889else
13890  if test -n "$OTOOL64"; then
13891  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13892else
13893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13894for as_dir in $PATH
13895do
13896  IFS=$as_save_IFS
13897  test -z "$as_dir" && as_dir=.
13898    for ac_exec_ext in '' $ac_executable_extensions; do
13899  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13900    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13902    break 2
13903  fi
13904done
13905  done
13906IFS=$as_save_IFS
13907
13908fi
13909fi
13910OTOOL64=$ac_cv_prog_OTOOL64
13911if test -n "$OTOOL64"; then
13912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13913$as_echo "$OTOOL64" >&6; }
13914else
13915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13916$as_echo "no" >&6; }
13917fi
13918
13919
13920fi
13921if test -z "$ac_cv_prog_OTOOL64"; then
13922  ac_ct_OTOOL64=$OTOOL64
13923  # Extract the first word of "otool64", so it can be a program name with args.
13924set dummy otool64; ac_word=$2
13925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13926$as_echo_n "checking for $ac_word... " >&6; }
13927if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13928  $as_echo_n "(cached) " >&6
13929else
13930  if test -n "$ac_ct_OTOOL64"; then
13931  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13932else
13933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13934for as_dir in $PATH
13935do
13936  IFS=$as_save_IFS
13937  test -z "$as_dir" && as_dir=.
13938    for ac_exec_ext in '' $ac_executable_extensions; do
13939  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13940    ac_cv_prog_ac_ct_OTOOL64="otool64"
13941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13942    break 2
13943  fi
13944done
13945  done
13946IFS=$as_save_IFS
13947
13948fi
13949fi
13950ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13951if test -n "$ac_ct_OTOOL64"; then
13952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13953$as_echo "$ac_ct_OTOOL64" >&6; }
13954else
13955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13956$as_echo "no" >&6; }
13957fi
13958
13959  if test "x$ac_ct_OTOOL64" = x; then
13960    OTOOL64=":"
13961  else
13962    case $cross_compiling:$ac_tool_warned in
13963yes:)
13964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13966ac_tool_warned=yes ;;
13967esac
13968    OTOOL64=$ac_ct_OTOOL64
13969  fi
13970else
13971  OTOOL64="$ac_cv_prog_OTOOL64"
13972fi
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14001$as_echo_n "checking for -single_module linker flag... " >&6; }
14002if ${lt_cv_apple_cc_single_mod+:} false; then :
14003  $as_echo_n "(cached) " >&6
14004else
14005  lt_cv_apple_cc_single_mod=no
14006      if test -z "$LT_MULTI_MODULE"; then
14007	# By default we will add the -single_module flag. You can override
14008	# by either setting the environment variable LT_MULTI_MODULE
14009	# non-empty at configure time, or by adding -multi_module to the
14010	# link flags.
14011	rm -rf libconftest.dylib*
14012	echo "int foo(void){return 1;}" > conftest.c
14013	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14014-dynamiclib -Wl,-single_module conftest.c" >&5
14015	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14016	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14017        _lt_result=$?
14018	# If there is a non-empty error log, and "single_module"
14019	# appears in it, assume the flag caused a linker warning
14020        if test -s conftest.err && $GREP single_module conftest.err; then
14021	  cat conftest.err >&5
14022	# Otherwise, if the output was created with a 0 exit code from
14023	# the compiler, it worked.
14024	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14025	  lt_cv_apple_cc_single_mod=yes
14026	else
14027	  cat conftest.err >&5
14028	fi
14029	rm -rf libconftest.dylib*
14030	rm -f conftest.*
14031      fi
14032fi
14033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14034$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14035
14036    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14037$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14038if ${lt_cv_ld_exported_symbols_list+:} false; then :
14039  $as_echo_n "(cached) " >&6
14040else
14041  lt_cv_ld_exported_symbols_list=no
14042      save_LDFLAGS=$LDFLAGS
14043      echo "_main" > conftest.sym
14044      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14045      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14046/* end confdefs.h.  */
14047
14048int
14049main ()
14050{
14051
14052  ;
14053  return 0;
14054}
14055_ACEOF
14056if ac_fn_c_try_link "$LINENO"; then :
14057  lt_cv_ld_exported_symbols_list=yes
14058else
14059  lt_cv_ld_exported_symbols_list=no
14060fi
14061rm -f core conftest.err conftest.$ac_objext \
14062    conftest$ac_exeext conftest.$ac_ext
14063	LDFLAGS=$save_LDFLAGS
14064
14065fi
14066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14067$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14068
14069    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14070$as_echo_n "checking for -force_load linker flag... " >&6; }
14071if ${lt_cv_ld_force_load+:} false; then :
14072  $as_echo_n "(cached) " >&6
14073else
14074  lt_cv_ld_force_load=no
14075      cat > conftest.c << _LT_EOF
14076int forced_loaded() { return 2;}
14077_LT_EOF
14078      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14079      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14080      echo "$AR cru libconftest.a conftest.o" >&5
14081      $AR cru libconftest.a conftest.o 2>&5
14082      echo "$RANLIB libconftest.a" >&5
14083      $RANLIB libconftest.a 2>&5
14084      cat > conftest.c << _LT_EOF
14085int main() { return 0;}
14086_LT_EOF
14087      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14088      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14089      _lt_result=$?
14090      if test -s conftest.err && $GREP force_load conftest.err; then
14091	cat conftest.err >&5
14092      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14093	lt_cv_ld_force_load=yes
14094      else
14095	cat conftest.err >&5
14096      fi
14097        rm -f conftest.err libconftest.a conftest conftest.c
14098        rm -rf conftest.dSYM
14099
14100fi
14101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14102$as_echo "$lt_cv_ld_force_load" >&6; }
14103    case $host_os in
14104    rhapsody* | darwin1.[012])
14105      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14106    darwin1.*)
14107      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14108    darwin*) # darwin 5.x on
14109      # if running on 10.5 or later, the deployment target defaults
14110      # to the OS version, if on x86, and 10.4, the deployment
14111      # target defaults to 10.4. Don't you love it?
14112      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14113	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14114	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14115	10.[012][,.]*)
14116	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14117	10.*)
14118	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14119      esac
14120    ;;
14121  esac
14122    if test yes = "$lt_cv_apple_cc_single_mod"; then
14123      _lt_dar_single_mod='$single_module'
14124    fi
14125    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14126      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14127    else
14128      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14129    fi
14130    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14131      _lt_dsymutil='~$DSYMUTIL $lib || :'
14132    else
14133      _lt_dsymutil=
14134    fi
14135    ;;
14136  esac
14137
14138for ac_header in dlfcn.h
14139do :
14140  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14141"
14142if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14143  cat >>confdefs.h <<_ACEOF
14144#define HAVE_DLFCN_H 1
14145_ACEOF
14146
14147fi
14148
14149done
14150
14151
14152
14153
14154
14155# Set options
14156
14157
14158
14159        enable_dlopen=no
14160
14161
14162  enable_win32_dll=no
14163
14164
14165            # Check whether --enable-shared was given.
14166if test "${enable_shared+set}" = set; then :
14167  enableval=$enable_shared; p=${PACKAGE-default}
14168    case $enableval in
14169    yes) enable_shared=yes ;;
14170    no) enable_shared=no ;;
14171    *)
14172      enable_shared=no
14173      # Look at the argument we got.  We use all the common list separators.
14174      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14175      for pkg in $enableval; do
14176	IFS=$lt_save_ifs
14177	if test "X$pkg" = "X$p"; then
14178	  enable_shared=yes
14179	fi
14180      done
14181      IFS=$lt_save_ifs
14182      ;;
14183    esac
14184else
14185  enable_shared=yes
14186fi
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198# Check whether --with-pic was given.
14199if test "${with_pic+set}" = set; then :
14200  withval=$with_pic; lt_p=${PACKAGE-default}
14201    case $withval in
14202    yes|no) pic_mode=$withval ;;
14203    *)
14204      pic_mode=default
14205      # Look at the argument we got.  We use all the common list separators.
14206      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14207      for lt_pkg in $withval; do
14208	IFS=$lt_save_ifs
14209	if test "X$lt_pkg" = "X$lt_p"; then
14210	  pic_mode=yes
14211	fi
14212      done
14213      IFS=$lt_save_ifs
14214      ;;
14215    esac
14216else
14217  pic_mode=default
14218fi
14219
14220
14221
14222
14223
14224
14225
14226
14227  # Check whether --enable-fast-install was given.
14228if test "${enable_fast_install+set}" = set; then :
14229  enableval=$enable_fast_install; p=${PACKAGE-default}
14230    case $enableval in
14231    yes) enable_fast_install=yes ;;
14232    no) enable_fast_install=no ;;
14233    *)
14234      enable_fast_install=no
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 pkg in $enableval; do
14238	IFS=$lt_save_ifs
14239	if test "X$pkg" = "X$p"; then
14240	  enable_fast_install=yes
14241	fi
14242      done
14243      IFS=$lt_save_ifs
14244      ;;
14245    esac
14246else
14247  enable_fast_install=yes
14248fi
14249
14250
14251
14252
14253
14254
14255
14256
14257  shared_archive_member_spec=
14258case $host,$enable_shared in
14259power*-*-aix[5-9]*,yes)
14260  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14261$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14262
14263# Check whether --with-aix-soname was given.
14264if test "${with_aix_soname+set}" = set; then :
14265  withval=$with_aix_soname; case $withval in
14266    aix|svr4|both)
14267      ;;
14268    *)
14269      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14270      ;;
14271    esac
14272    lt_cv_with_aix_soname=$with_aix_soname
14273else
14274  if ${lt_cv_with_aix_soname+:} false; then :
14275  $as_echo_n "(cached) " >&6
14276else
14277  lt_cv_with_aix_soname=aix
14278fi
14279
14280    with_aix_soname=$lt_cv_with_aix_soname
14281fi
14282
14283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14284$as_echo "$with_aix_soname" >&6; }
14285  if test aix != "$with_aix_soname"; then
14286    # For the AIX way of multilib, we name the shared archive member
14287    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14288    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14289    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14290    # the AIX toolchain works better with OBJECT_MODE set (default 32).
14291    if test 64 = "${OBJECT_MODE-32}"; then
14292      shared_archive_member_spec=shr_64
14293    else
14294      shared_archive_member_spec=shr
14295    fi
14296  fi
14297  ;;
14298*)
14299  with_aix_soname=aix
14300  ;;
14301esac
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312# This can be used to rebuild libtool when needed
14313LIBTOOL_DEPS=$ltmain
14314
14315# Always use our own libtool.
14316LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347test -z "$LN_S" && LN_S="ln -s"
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362if test -n "${ZSH_VERSION+set}"; then
14363   setopt NO_GLOB_SUBST
14364fi
14365
14366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14367$as_echo_n "checking for objdir... " >&6; }
14368if ${lt_cv_objdir+:} false; then :
14369  $as_echo_n "(cached) " >&6
14370else
14371  rm -f .libs 2>/dev/null
14372mkdir .libs 2>/dev/null
14373if test -d .libs; then
14374  lt_cv_objdir=.libs
14375else
14376  # MS-DOS does not allow filenames that begin with a dot.
14377  lt_cv_objdir=_libs
14378fi
14379rmdir .libs 2>/dev/null
14380fi
14381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14382$as_echo "$lt_cv_objdir" >&6; }
14383objdir=$lt_cv_objdir
14384
14385
14386
14387
14388
14389cat >>confdefs.h <<_ACEOF
14390#define LT_OBJDIR "$lt_cv_objdir/"
14391_ACEOF
14392
14393
14394
14395
14396case $host_os in
14397aix3*)
14398  # AIX sometimes has problems with the GCC collect2 program.  For some
14399  # reason, if we set the COLLECT_NAMES environment variable, the problems
14400  # vanish in a puff of smoke.
14401  if test set != "${COLLECT_NAMES+set}"; then
14402    COLLECT_NAMES=
14403    export COLLECT_NAMES
14404  fi
14405  ;;
14406esac
14407
14408# Global variables:
14409ofile=libtool
14410can_build_shared=yes
14411
14412# All known linkers require a '.a' archive for static linking (except MSVC,
14413# which needs '.lib').
14414libext=a
14415
14416with_gnu_ld=$lt_cv_prog_gnu_ld
14417
14418old_CC=$CC
14419old_CFLAGS=$CFLAGS
14420
14421# Set sane defaults for various variables
14422test -z "$CC" && CC=cc
14423test -z "$LTCC" && LTCC=$CC
14424test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14425test -z "$LD" && LD=ld
14426test -z "$ac_objext" && ac_objext=o
14427
14428for cc_temp in $compiler""; do
14429  case $cc_temp in
14430    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14431    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14432    \-*) ;;
14433    *) break;;
14434  esac
14435done
14436cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14437
14438
14439# Only perform the check for file, if the check method requires it
14440test -z "$MAGIC_CMD" && MAGIC_CMD=file
14441case $deplibs_check_method in
14442file_magic*)
14443  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14444    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14445$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14446if ${lt_cv_path_MAGIC_CMD+:} false; then :
14447  $as_echo_n "(cached) " >&6
14448else
14449  case $MAGIC_CMD in
14450[\\/*] |  ?:[\\/]*)
14451  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14452  ;;
14453*)
14454  lt_save_MAGIC_CMD=$MAGIC_CMD
14455  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14456  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14457  for ac_dir in $ac_dummy; do
14458    IFS=$lt_save_ifs
14459    test -z "$ac_dir" && ac_dir=.
14460    if test -f "$ac_dir/${ac_tool_prefix}file"; then
14461      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14462      if test -n "$file_magic_test_file"; then
14463	case $deplibs_check_method in
14464	"file_magic "*)
14465	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14466	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14467	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14468	    $EGREP "$file_magic_regex" > /dev/null; then
14469	    :
14470	  else
14471	    cat <<_LT_EOF 1>&2
14472
14473*** Warning: the command libtool uses to detect shared libraries,
14474*** $file_magic_cmd, produces output that libtool cannot recognize.
14475*** The result is that libtool may fail to recognize shared libraries
14476*** as such.  This will affect the creation of libtool libraries that
14477*** depend on shared libraries, but programs linked with such libtool
14478*** libraries will work regardless of this problem.  Nevertheless, you
14479*** may want to report the problem to your system manager and/or to
14480*** bug-libtool@gnu.org
14481
14482_LT_EOF
14483	  fi ;;
14484	esac
14485      fi
14486      break
14487    fi
14488  done
14489  IFS=$lt_save_ifs
14490  MAGIC_CMD=$lt_save_MAGIC_CMD
14491  ;;
14492esac
14493fi
14494
14495MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14496if test -n "$MAGIC_CMD"; then
14497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14498$as_echo "$MAGIC_CMD" >&6; }
14499else
14500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14501$as_echo "no" >&6; }
14502fi
14503
14504
14505
14506
14507
14508if test -z "$lt_cv_path_MAGIC_CMD"; then
14509  if test -n "$ac_tool_prefix"; then
14510    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14511$as_echo_n "checking for file... " >&6; }
14512if ${lt_cv_path_MAGIC_CMD+:} false; then :
14513  $as_echo_n "(cached) " >&6
14514else
14515  case $MAGIC_CMD in
14516[\\/*] |  ?:[\\/]*)
14517  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14518  ;;
14519*)
14520  lt_save_MAGIC_CMD=$MAGIC_CMD
14521  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14522  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14523  for ac_dir in $ac_dummy; do
14524    IFS=$lt_save_ifs
14525    test -z "$ac_dir" && ac_dir=.
14526    if test -f "$ac_dir/file"; then
14527      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14528      if test -n "$file_magic_test_file"; then
14529	case $deplibs_check_method in
14530	"file_magic "*)
14531	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14532	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14533	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14534	    $EGREP "$file_magic_regex" > /dev/null; then
14535	    :
14536	  else
14537	    cat <<_LT_EOF 1>&2
14538
14539*** Warning: the command libtool uses to detect shared libraries,
14540*** $file_magic_cmd, produces output that libtool cannot recognize.
14541*** The result is that libtool may fail to recognize shared libraries
14542*** as such.  This will affect the creation of libtool libraries that
14543*** depend on shared libraries, but programs linked with such libtool
14544*** libraries will work regardless of this problem.  Nevertheless, you
14545*** may want to report the problem to your system manager and/or to
14546*** bug-libtool@gnu.org
14547
14548_LT_EOF
14549	  fi ;;
14550	esac
14551      fi
14552      break
14553    fi
14554  done
14555  IFS=$lt_save_ifs
14556  MAGIC_CMD=$lt_save_MAGIC_CMD
14557  ;;
14558esac
14559fi
14560
14561MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14562if test -n "$MAGIC_CMD"; then
14563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14564$as_echo "$MAGIC_CMD" >&6; }
14565else
14566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14567$as_echo "no" >&6; }
14568fi
14569
14570
14571  else
14572    MAGIC_CMD=:
14573  fi
14574fi
14575
14576  fi
14577  ;;
14578esac
14579
14580# Use C for the default configuration in the libtool script
14581
14582lt_save_CC=$CC
14583ac_ext=c
14584ac_cpp='$CPP $CPPFLAGS'
14585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14587ac_compiler_gnu=$ac_cv_c_compiler_gnu
14588
14589
14590# Source file extension for C test sources.
14591ac_ext=c
14592
14593# Object file extension for compiled C test sources.
14594objext=o
14595objext=$objext
14596
14597# Code to be used in simple compile tests
14598lt_simple_compile_test_code="int some_variable = 0;"
14599
14600# Code to be used in simple link tests
14601lt_simple_link_test_code='int main(){return(0);}'
14602
14603
14604
14605
14606
14607
14608
14609# If no C compiler was specified, use CC.
14610LTCC=${LTCC-"$CC"}
14611
14612# If no C compiler flags were specified, use CFLAGS.
14613LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14614
14615# Allow CC to be a program name with arguments.
14616compiler=$CC
14617
14618# Save the default compiler, since it gets overwritten when the other
14619# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14620compiler_DEFAULT=$CC
14621
14622# save warnings/boilerplate of simple test code
14623ac_outfile=conftest.$ac_objext
14624echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14625eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14626_lt_compiler_boilerplate=`cat conftest.err`
14627$RM conftest*
14628
14629ac_outfile=conftest.$ac_objext
14630echo "$lt_simple_link_test_code" >conftest.$ac_ext
14631eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14632_lt_linker_boilerplate=`cat conftest.err`
14633$RM -r conftest*
14634
14635
14636if test -n "$compiler"; then
14637
14638lt_prog_compiler_no_builtin_flag=
14639
14640if test yes = "$GCC"; then
14641  case $cc_basename in
14642  nvcc*)
14643    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14644  *)
14645    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14646  esac
14647
14648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14649$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14650if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14651  $as_echo_n "(cached) " >&6
14652else
14653  lt_cv_prog_compiler_rtti_exceptions=no
14654   ac_outfile=conftest.$ac_objext
14655   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14656   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
14657   # Insert the option either (1) after the last *FLAGS variable, or
14658   # (2) before a word containing "conftest.", or (3) at the end.
14659   # Note that $ac_compile itself does not contain backslashes and begins
14660   # with a dollar sign (not a hyphen), so the echo should work correctly.
14661   # The option is referenced via a variable to avoid confusing sed.
14662   lt_compile=`echo "$ac_compile" | $SED \
14663   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14664   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14665   -e 's:$: $lt_compiler_flag:'`
14666   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14667   (eval "$lt_compile" 2>conftest.err)
14668   ac_status=$?
14669   cat conftest.err >&5
14670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671   if (exit $ac_status) && test -s "$ac_outfile"; then
14672     # The compiler can only warn and ignore the option if not recognized
14673     # So say no if there are warnings other than the usual output.
14674     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14675     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14676     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14677       lt_cv_prog_compiler_rtti_exceptions=yes
14678     fi
14679   fi
14680   $RM conftest*
14681
14682fi
14683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14684$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14685
14686if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14687    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14688else
14689    :
14690fi
14691
14692fi
14693
14694
14695
14696
14697
14698
14699  lt_prog_compiler_wl=
14700lt_prog_compiler_pic=
14701lt_prog_compiler_static=
14702
14703
14704  if test yes = "$GCC"; then
14705    lt_prog_compiler_wl='-Wl,'
14706    lt_prog_compiler_static='-static'
14707
14708    case $host_os in
14709      aix*)
14710      # All AIX code is PIC.
14711      if test ia64 = "$host_cpu"; then
14712	# AIX 5 now supports IA64 processor
14713	lt_prog_compiler_static='-Bstatic'
14714      fi
14715      lt_prog_compiler_pic='-fPIC'
14716      ;;
14717
14718    amigaos*)
14719      case $host_cpu in
14720      powerpc)
14721            # see comment about AmigaOS4 .so support
14722            lt_prog_compiler_pic='-fPIC'
14723        ;;
14724      m68k)
14725            # FIXME: we need at least 68020 code to build shared libraries, but
14726            # adding the '-m68020' flag to GCC prevents building anything better,
14727            # like '-m68040'.
14728            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14729        ;;
14730      esac
14731      ;;
14732
14733    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14734      # PIC is the default for these OSes.
14735      ;;
14736
14737    mingw* | cygwin* | pw32* | os2* | cegcc*)
14738      # This hack is so that the source file can tell whether it is being
14739      # built for inclusion in a dll (and should export symbols for example).
14740      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14741      # (--disable-auto-import) libraries
14742      lt_prog_compiler_pic='-DDLL_EXPORT'
14743      case $host_os in
14744      os2*)
14745	lt_prog_compiler_static='$wl-static'
14746	;;
14747      esac
14748      ;;
14749
14750    darwin* | rhapsody*)
14751      # PIC is the default on this platform
14752      # Common symbols not allowed in MH_DYLIB files
14753      lt_prog_compiler_pic='-fno-common'
14754      ;;
14755
14756    haiku*)
14757      # PIC is the default for Haiku.
14758      # The "-static" flag exists, but is broken.
14759      lt_prog_compiler_static=
14760      ;;
14761
14762    hpux*)
14763      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14764      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14765      # sets the default TLS model and affects inlining.
14766      case $host_cpu in
14767      hppa*64*)
14768	# +Z the default
14769	;;
14770      *)
14771	lt_prog_compiler_pic='-fPIC'
14772	;;
14773      esac
14774      ;;
14775
14776    interix[3-9]*)
14777      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14778      # Instead, we relocate shared libraries at runtime.
14779      ;;
14780
14781    msdosdjgpp*)
14782      # Just because we use GCC doesn't mean we suddenly get shared libraries
14783      # on systems that don't support them.
14784      lt_prog_compiler_can_build_shared=no
14785      enable_shared=no
14786      ;;
14787
14788    *nto* | *qnx*)
14789      # QNX uses GNU C++, but need to define -shared option too, otherwise
14790      # it will coredump.
14791      lt_prog_compiler_pic='-fPIC -shared'
14792      ;;
14793
14794    sysv4*MP*)
14795      if test -d /usr/nec; then
14796	lt_prog_compiler_pic=-Kconform_pic
14797      fi
14798      ;;
14799
14800    *)
14801      lt_prog_compiler_pic='-fPIC'
14802      ;;
14803    esac
14804
14805    case $cc_basename in
14806    nvcc*) # Cuda Compiler Driver 2.2
14807      lt_prog_compiler_wl='-Xlinker '
14808      if test -n "$lt_prog_compiler_pic"; then
14809        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14810      fi
14811      ;;
14812    esac
14813  else
14814    # PORTME Check for flag to pass linker flags through the system compiler.
14815    case $host_os in
14816    aix*)
14817      lt_prog_compiler_wl='-Wl,'
14818      if test ia64 = "$host_cpu"; then
14819	# AIX 5 now supports IA64 processor
14820	lt_prog_compiler_static='-Bstatic'
14821      else
14822	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14823      fi
14824      ;;
14825
14826    darwin* | rhapsody*)
14827      # PIC is the default on this platform
14828      # Common symbols not allowed in MH_DYLIB files
14829      lt_prog_compiler_pic='-fno-common'
14830      case $cc_basename in
14831      nagfor*)
14832        # NAG Fortran compiler
14833        lt_prog_compiler_wl='-Wl,-Wl,,'
14834        lt_prog_compiler_pic='-PIC'
14835        lt_prog_compiler_static='-Bstatic'
14836        ;;
14837      esac
14838      ;;
14839
14840    mingw* | cygwin* | pw32* | os2* | cegcc*)
14841      # This hack is so that the source file can tell whether it is being
14842      # built for inclusion in a dll (and should export symbols for example).
14843      lt_prog_compiler_pic='-DDLL_EXPORT'
14844      case $host_os in
14845      os2*)
14846	lt_prog_compiler_static='$wl-static'
14847	;;
14848      esac
14849      ;;
14850
14851    hpux9* | hpux10* | hpux11*)
14852      lt_prog_compiler_wl='-Wl,'
14853      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14854      # not for PA HP-UX.
14855      case $host_cpu in
14856      hppa*64*|ia64*)
14857	# +Z the default
14858	;;
14859      *)
14860	lt_prog_compiler_pic='+Z'
14861	;;
14862      esac
14863      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14864      lt_prog_compiler_static='$wl-a ${wl}archive'
14865      ;;
14866
14867    irix5* | irix6* | nonstopux*)
14868      lt_prog_compiler_wl='-Wl,'
14869      # PIC (with -KPIC) is the default.
14870      lt_prog_compiler_static='-non_shared'
14871      ;;
14872
14873    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14874      case $cc_basename in
14875      # old Intel for x86_64, which still supported -KPIC.
14876      ecc*)
14877	lt_prog_compiler_wl='-Wl,'
14878	lt_prog_compiler_pic='-KPIC'
14879	lt_prog_compiler_static='-static'
14880        ;;
14881      # icc used to be incompatible with GCC.
14882      # ICC 10 doesn't accept -KPIC any more.
14883      icc* | ifort*)
14884	lt_prog_compiler_wl='-Wl,'
14885	lt_prog_compiler_pic='-fPIC'
14886	lt_prog_compiler_static='-static'
14887        ;;
14888      # Lahey Fortran 8.1.
14889      lf95*)
14890	lt_prog_compiler_wl='-Wl,'
14891	lt_prog_compiler_pic='--shared'
14892	lt_prog_compiler_static='--static'
14893	;;
14894      nagfor*)
14895	# NAG Fortran compiler
14896	lt_prog_compiler_wl='-Wl,-Wl,,'
14897	lt_prog_compiler_pic='-PIC'
14898	lt_prog_compiler_static='-Bstatic'
14899	;;
14900      tcc*)
14901	# Fabrice Bellard et al's Tiny C Compiler
14902	lt_prog_compiler_wl='-Wl,'
14903	lt_prog_compiler_pic='-fPIC'
14904	lt_prog_compiler_static='-static'
14905	;;
14906      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14907        # Portland Group compilers (*not* the Pentium gcc compiler,
14908	# which looks to be a dead project)
14909	lt_prog_compiler_wl='-Wl,'
14910	lt_prog_compiler_pic='-fpic'
14911	lt_prog_compiler_static='-Bstatic'
14912        ;;
14913      ccc*)
14914        lt_prog_compiler_wl='-Wl,'
14915        # All Alpha code is PIC.
14916        lt_prog_compiler_static='-non_shared'
14917        ;;
14918      xl* | bgxl* | bgf* | mpixl*)
14919	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14920	lt_prog_compiler_wl='-Wl,'
14921	lt_prog_compiler_pic='-qpic'
14922	lt_prog_compiler_static='-qstaticlink'
14923	;;
14924      *)
14925	case `$CC -V 2>&1 | sed 5q` in
14926	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14927	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14928	  lt_prog_compiler_pic='-KPIC'
14929	  lt_prog_compiler_static='-Bstatic'
14930	  lt_prog_compiler_wl=''
14931	  ;;
14932	*Sun\ F* | *Sun*Fortran*)
14933	  lt_prog_compiler_pic='-KPIC'
14934	  lt_prog_compiler_static='-Bstatic'
14935	  lt_prog_compiler_wl='-Qoption ld '
14936	  ;;
14937	*Sun\ C*)
14938	  # Sun C 5.9
14939	  lt_prog_compiler_pic='-KPIC'
14940	  lt_prog_compiler_static='-Bstatic'
14941	  lt_prog_compiler_wl='-Wl,'
14942	  ;;
14943        *Intel*\ [CF]*Compiler*)
14944	  lt_prog_compiler_wl='-Wl,'
14945	  lt_prog_compiler_pic='-fPIC'
14946	  lt_prog_compiler_static='-static'
14947	  ;;
14948	*Portland\ Group*)
14949	  lt_prog_compiler_wl='-Wl,'
14950	  lt_prog_compiler_pic='-fpic'
14951	  lt_prog_compiler_static='-Bstatic'
14952	  ;;
14953	esac
14954	;;
14955      esac
14956      ;;
14957
14958    newsos6)
14959      lt_prog_compiler_pic='-KPIC'
14960      lt_prog_compiler_static='-Bstatic'
14961      ;;
14962
14963    *nto* | *qnx*)
14964      # QNX uses GNU C++, but need to define -shared option too, otherwise
14965      # it will coredump.
14966      lt_prog_compiler_pic='-fPIC -shared'
14967      ;;
14968
14969    osf3* | osf4* | osf5*)
14970      lt_prog_compiler_wl='-Wl,'
14971      # All OSF/1 code is PIC.
14972      lt_prog_compiler_static='-non_shared'
14973      ;;
14974
14975    rdos*)
14976      lt_prog_compiler_static='-non_shared'
14977      ;;
14978
14979    solaris*)
14980      lt_prog_compiler_pic='-KPIC'
14981      lt_prog_compiler_static='-Bstatic'
14982      case $cc_basename in
14983      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14984	lt_prog_compiler_wl='-Qoption ld ';;
14985      *)
14986	lt_prog_compiler_wl='-Wl,';;
14987      esac
14988      ;;
14989
14990    sunos4*)
14991      lt_prog_compiler_wl='-Qoption ld '
14992      lt_prog_compiler_pic='-PIC'
14993      lt_prog_compiler_static='-Bstatic'
14994      ;;
14995
14996    sysv4 | sysv4.2uw2* | sysv4.3*)
14997      lt_prog_compiler_wl='-Wl,'
14998      lt_prog_compiler_pic='-KPIC'
14999      lt_prog_compiler_static='-Bstatic'
15000      ;;
15001
15002    sysv4*MP*)
15003      if test -d /usr/nec; then
15004	lt_prog_compiler_pic='-Kconform_pic'
15005	lt_prog_compiler_static='-Bstatic'
15006      fi
15007      ;;
15008
15009    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15010      lt_prog_compiler_wl='-Wl,'
15011      lt_prog_compiler_pic='-KPIC'
15012      lt_prog_compiler_static='-Bstatic'
15013      ;;
15014
15015    unicos*)
15016      lt_prog_compiler_wl='-Wl,'
15017      lt_prog_compiler_can_build_shared=no
15018      ;;
15019
15020    uts4*)
15021      lt_prog_compiler_pic='-pic'
15022      lt_prog_compiler_static='-Bstatic'
15023      ;;
15024
15025    *)
15026      lt_prog_compiler_can_build_shared=no
15027      ;;
15028    esac
15029  fi
15030
15031case $host_os in
15032  # For platforms that do not support PIC, -DPIC is meaningless:
15033  *djgpp*)
15034    lt_prog_compiler_pic=
15035    ;;
15036  *)
15037    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15038    ;;
15039esac
15040
15041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15042$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15043if ${lt_cv_prog_compiler_pic+:} false; then :
15044  $as_echo_n "(cached) " >&6
15045else
15046  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15047fi
15048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15049$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15050lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15051
15052#
15053# Check to make sure the PIC flag actually works.
15054#
15055if test -n "$lt_prog_compiler_pic"; then
15056  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15057$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15058if ${lt_cv_prog_compiler_pic_works+:} false; then :
15059  $as_echo_n "(cached) " >&6
15060else
15061  lt_cv_prog_compiler_pic_works=no
15062   ac_outfile=conftest.$ac_objext
15063   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15064   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15065   # Insert the option either (1) after the last *FLAGS variable, or
15066   # (2) before a word containing "conftest.", or (3) at the end.
15067   # Note that $ac_compile itself does not contain backslashes and begins
15068   # with a dollar sign (not a hyphen), so the echo should work correctly.
15069   # The option is referenced via a variable to avoid confusing sed.
15070   lt_compile=`echo "$ac_compile" | $SED \
15071   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15072   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15073   -e 's:$: $lt_compiler_flag:'`
15074   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15075   (eval "$lt_compile" 2>conftest.err)
15076   ac_status=$?
15077   cat conftest.err >&5
15078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079   if (exit $ac_status) && test -s "$ac_outfile"; then
15080     # The compiler can only warn and ignore the option if not recognized
15081     # So say no if there are warnings other than the usual output.
15082     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15083     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15084     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15085       lt_cv_prog_compiler_pic_works=yes
15086     fi
15087   fi
15088   $RM conftest*
15089
15090fi
15091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15092$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15093
15094if test yes = "$lt_cv_prog_compiler_pic_works"; then
15095    case $lt_prog_compiler_pic in
15096     "" | " "*) ;;
15097     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15098     esac
15099else
15100    lt_prog_compiler_pic=
15101     lt_prog_compiler_can_build_shared=no
15102fi
15103
15104fi
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116#
15117# Check to make sure the static flag actually works.
15118#
15119wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15121$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15122if ${lt_cv_prog_compiler_static_works+:} false; then :
15123  $as_echo_n "(cached) " >&6
15124else
15125  lt_cv_prog_compiler_static_works=no
15126   save_LDFLAGS=$LDFLAGS
15127   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15128   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15129   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15130     # The linker can only warn and ignore the option if not recognized
15131     # So say no if there are warnings
15132     if test -s conftest.err; then
15133       # Append any errors to the config.log.
15134       cat conftest.err 1>&5
15135       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15136       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15137       if diff conftest.exp conftest.er2 >/dev/null; then
15138         lt_cv_prog_compiler_static_works=yes
15139       fi
15140     else
15141       lt_cv_prog_compiler_static_works=yes
15142     fi
15143   fi
15144   $RM -r conftest*
15145   LDFLAGS=$save_LDFLAGS
15146
15147fi
15148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15149$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15150
15151if test yes = "$lt_cv_prog_compiler_static_works"; then
15152    :
15153else
15154    lt_prog_compiler_static=
15155fi
15156
15157
15158
15159
15160
15161
15162
15163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15164$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15165if ${lt_cv_prog_compiler_c_o+:} false; then :
15166  $as_echo_n "(cached) " >&6
15167else
15168  lt_cv_prog_compiler_c_o=no
15169   $RM -r conftest 2>/dev/null
15170   mkdir conftest
15171   cd conftest
15172   mkdir out
15173   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15174
15175   lt_compiler_flag="-o out/conftest2.$ac_objext"
15176   # Insert the option either (1) after the last *FLAGS variable, or
15177   # (2) before a word containing "conftest.", or (3) at the end.
15178   # Note that $ac_compile itself does not contain backslashes and begins
15179   # with a dollar sign (not a hyphen), so the echo should work correctly.
15180   lt_compile=`echo "$ac_compile" | $SED \
15181   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15182   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15183   -e 's:$: $lt_compiler_flag:'`
15184   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15185   (eval "$lt_compile" 2>out/conftest.err)
15186   ac_status=$?
15187   cat out/conftest.err >&5
15188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15190   then
15191     # The compiler can only warn and ignore the option if not recognized
15192     # So say no if there are warnings
15193     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15194     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15195     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15196       lt_cv_prog_compiler_c_o=yes
15197     fi
15198   fi
15199   chmod u+w . 2>&5
15200   $RM conftest*
15201   # SGI C++ compiler will create directory out/ii_files/ for
15202   # template instantiation
15203   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15204   $RM out/* && rmdir out
15205   cd ..
15206   $RM -r conftest
15207   $RM conftest*
15208
15209fi
15210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15211$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15212
15213
15214
15215
15216
15217
15218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15219$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15220if ${lt_cv_prog_compiler_c_o+:} false; then :
15221  $as_echo_n "(cached) " >&6
15222else
15223  lt_cv_prog_compiler_c_o=no
15224   $RM -r conftest 2>/dev/null
15225   mkdir conftest
15226   cd conftest
15227   mkdir out
15228   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15229
15230   lt_compiler_flag="-o out/conftest2.$ac_objext"
15231   # Insert the option either (1) after the last *FLAGS variable, or
15232   # (2) before a word containing "conftest.", or (3) at the end.
15233   # Note that $ac_compile itself does not contain backslashes and begins
15234   # with a dollar sign (not a hyphen), so the echo should work correctly.
15235   lt_compile=`echo "$ac_compile" | $SED \
15236   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15237   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15238   -e 's:$: $lt_compiler_flag:'`
15239   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15240   (eval "$lt_compile" 2>out/conftest.err)
15241   ac_status=$?
15242   cat out/conftest.err >&5
15243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15245   then
15246     # The compiler can only warn and ignore the option if not recognized
15247     # So say no if there are warnings
15248     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15249     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15250     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15251       lt_cv_prog_compiler_c_o=yes
15252     fi
15253   fi
15254   chmod u+w . 2>&5
15255   $RM conftest*
15256   # SGI C++ compiler will create directory out/ii_files/ for
15257   # template instantiation
15258   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15259   $RM out/* && rmdir out
15260   cd ..
15261   $RM -r conftest
15262   $RM conftest*
15263
15264fi
15265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15266$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15267
15268
15269
15270
15271hard_links=nottested
15272if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15273  # do not overwrite the value of need_locks provided by the user
15274  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15275$as_echo_n "checking if we can lock with hard links... " >&6; }
15276  hard_links=yes
15277  $RM conftest*
15278  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15279  touch conftest.a
15280  ln conftest.a conftest.b 2>&5 || hard_links=no
15281  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15283$as_echo "$hard_links" >&6; }
15284  if test no = "$hard_links"; then
15285    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15286$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15287    need_locks=warn
15288  fi
15289else
15290  need_locks=no
15291fi
15292
15293
15294
15295
15296
15297
15298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15299$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15300
15301  runpath_var=
15302  allow_undefined_flag=
15303  always_export_symbols=no
15304  archive_cmds=
15305  archive_expsym_cmds=
15306  compiler_needs_object=no
15307  enable_shared_with_static_runtimes=no
15308  export_dynamic_flag_spec=
15309  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15310  hardcode_automatic=no
15311  hardcode_direct=no
15312  hardcode_direct_absolute=no
15313  hardcode_libdir_flag_spec=
15314  hardcode_libdir_separator=
15315  hardcode_minus_L=no
15316  hardcode_shlibpath_var=unsupported
15317  inherit_rpath=no
15318  link_all_deplibs=unknown
15319  module_cmds=
15320  module_expsym_cmds=
15321  old_archive_from_new_cmds=
15322  old_archive_from_expsyms_cmds=
15323  thread_safe_flag_spec=
15324  whole_archive_flag_spec=
15325  # include_expsyms should be a list of space-separated symbols to be *always*
15326  # included in the symbol list
15327  include_expsyms=
15328  # exclude_expsyms can be an extended regexp of symbols to exclude
15329  # it will be wrapped by ' (' and ')$', so one must not match beginning or
15330  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15331  # as well as any symbol that contains 'd'.
15332  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15333  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15334  # platforms (ab)use it in PIC code, but their linkers get confused if
15335  # the symbol is explicitly referenced.  Since portable code cannot
15336  # rely on this symbol name, it's probably fine to never include it in
15337  # preloaded symbol tables.
15338  # Exclude shared library initialization/finalization symbols.
15339  extract_expsyms_cmds=
15340
15341  case $host_os in
15342  cygwin* | mingw* | pw32* | cegcc*)
15343    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15344    # When not using gcc, we currently assume that we are using
15345    # Microsoft Visual C++.
15346    if test yes != "$GCC"; then
15347      with_gnu_ld=no
15348    fi
15349    ;;
15350  interix*)
15351    # we just hope/assume this is gcc and not c89 (= MSVC++)
15352    with_gnu_ld=yes
15353    ;;
15354  openbsd* | bitrig*)
15355    with_gnu_ld=no
15356    ;;
15357  esac
15358
15359  ld_shlibs=yes
15360
15361  # On some targets, GNU ld is compatible enough with the native linker
15362  # that we're better off using the native interface for both.
15363  lt_use_gnu_ld_interface=no
15364  if test yes = "$with_gnu_ld"; then
15365    case $host_os in
15366      aix*)
15367	# The AIX port of GNU ld has always aspired to compatibility
15368	# with the native linker.  However, as the warning in the GNU ld
15369	# block says, versions before 2.19.5* couldn't really create working
15370	# shared libraries, regardless of the interface used.
15371	case `$LD -v 2>&1` in
15372	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15373	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15374	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15375	  *)
15376	    lt_use_gnu_ld_interface=yes
15377	    ;;
15378	esac
15379	;;
15380      *)
15381	lt_use_gnu_ld_interface=yes
15382	;;
15383    esac
15384  fi
15385
15386  if test yes = "$lt_use_gnu_ld_interface"; then
15387    # If archive_cmds runs LD, not CC, wlarc should be empty
15388    wlarc='$wl'
15389
15390    # Set some defaults for GNU ld with shared library support. These
15391    # are reset later if shared libraries are not supported. Putting them
15392    # here allows them to be overridden if necessary.
15393    runpath_var=LD_RUN_PATH
15394    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15395    export_dynamic_flag_spec='$wl--export-dynamic'
15396    # ancient GNU ld didn't support --whole-archive et. al.
15397    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15398      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15399    else
15400      whole_archive_flag_spec=
15401    fi
15402    supports_anon_versioning=no
15403    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15404      *GNU\ gold*) supports_anon_versioning=yes ;;
15405      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15406      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15407      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15408      *\ 2.11.*) ;; # other 2.11 versions
15409      *) supports_anon_versioning=yes ;;
15410    esac
15411
15412    # See if GNU ld supports shared libraries.
15413    case $host_os in
15414    aix[3-9]*)
15415      # On AIX/PPC, the GNU linker is very broken
15416      if test ia64 != "$host_cpu"; then
15417	ld_shlibs=no
15418	cat <<_LT_EOF 1>&2
15419
15420*** Warning: the GNU linker, at least up to release 2.19, is reported
15421*** to be unable to reliably create shared libraries on AIX.
15422*** Therefore, libtool is disabling shared libraries support.  If you
15423*** really care for shared libraries, you may want to install binutils
15424*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15425*** You will then need to restart the configuration process.
15426
15427_LT_EOF
15428      fi
15429      ;;
15430
15431    amigaos*)
15432      case $host_cpu in
15433      powerpc)
15434            # see comment about AmigaOS4 .so support
15435            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15436            archive_expsym_cmds=''
15437        ;;
15438      m68k)
15439            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)'
15440            hardcode_libdir_flag_spec='-L$libdir'
15441            hardcode_minus_L=yes
15442        ;;
15443      esac
15444      ;;
15445
15446    beos*)
15447      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15448	allow_undefined_flag=unsupported
15449	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15450	# support --undefined.  This deserves some investigation.  FIXME
15451	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15452      else
15453	ld_shlibs=no
15454      fi
15455      ;;
15456
15457    cygwin* | mingw* | pw32* | cegcc*)
15458      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15459      # as there is no search path for DLLs.
15460      hardcode_libdir_flag_spec='-L$libdir'
15461      export_dynamic_flag_spec='$wl--export-all-symbols'
15462      allow_undefined_flag=unsupported
15463      always_export_symbols=no
15464      enable_shared_with_static_runtimes=yes
15465      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'
15466      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15467
15468      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15469        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15470	# If the export-symbols file already is a .def file, use it as
15471	# is; otherwise, prepend EXPORTS...
15472	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15473          cp $export_symbols $output_objdir/$soname.def;
15474        else
15475          echo EXPORTS > $output_objdir/$soname.def;
15476          cat $export_symbols >> $output_objdir/$soname.def;
15477        fi~
15478        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15479      else
15480	ld_shlibs=no
15481      fi
15482      ;;
15483
15484    haiku*)
15485      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15486      link_all_deplibs=yes
15487      ;;
15488
15489    os2*)
15490      hardcode_libdir_flag_spec='-L$libdir'
15491      hardcode_minus_L=yes
15492      allow_undefined_flag=unsupported
15493      shrext_cmds=.dll
15494      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15495	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15496	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15497	$ECHO EXPORTS >> $output_objdir/$libname.def~
15498	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15499	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15500	emximp -o $lib $output_objdir/$libname.def'
15501      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15502	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15503	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15504	$ECHO EXPORTS >> $output_objdir/$libname.def~
15505	prefix_cmds="$SED"~
15506	if test EXPORTS = "`$SED 1q $export_symbols`"; then
15507	  prefix_cmds="$prefix_cmds -e 1d";
15508	fi~
15509	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15510	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15511	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15512	emximp -o $lib $output_objdir/$libname.def'
15513      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15514      enable_shared_with_static_runtimes=yes
15515      ;;
15516
15517    interix[3-9]*)
15518      hardcode_direct=no
15519      hardcode_shlibpath_var=no
15520      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15521      export_dynamic_flag_spec='$wl-E'
15522      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15523      # Instead, shared libraries are loaded at an image base (0x10000000 by
15524      # default) and relocated if they conflict, which is a slow very memory
15525      # consuming and fragmenting process.  To avoid this, we pick a random,
15526      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15527      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15528      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15529      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'
15530      ;;
15531
15532    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15533      tmp_diet=no
15534      if test linux-dietlibc = "$host_os"; then
15535	case $cc_basename in
15536	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15537	esac
15538      fi
15539      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15540	 && test no = "$tmp_diet"
15541      then
15542	tmp_addflag=' $pic_flag'
15543	tmp_sharedflag='-shared'
15544	case $cc_basename,$host_cpu in
15545        pgcc*)				# Portland Group C compiler
15546	  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'
15547	  tmp_addflag=' $pic_flag'
15548	  ;;
15549	pgf77* | pgf90* | pgf95* | pgfortran*)
15550					# Portland Group f77 and f90 compilers
15551	  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'
15552	  tmp_addflag=' $pic_flag -Mnomain' ;;
15553	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15554	  tmp_addflag=' -i_dynamic' ;;
15555	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15556	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15557	ifc* | ifort*)			# Intel Fortran compiler
15558	  tmp_addflag=' -nofor_main' ;;
15559	lf95*)				# Lahey Fortran 8.1
15560	  whole_archive_flag_spec=
15561	  tmp_sharedflag='--shared' ;;
15562        nagfor*)                        # NAGFOR 5.3
15563          tmp_sharedflag='-Wl,-shared' ;;
15564	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15565	  tmp_sharedflag='-qmkshrobj'
15566	  tmp_addflag= ;;
15567	nvcc*)	# Cuda Compiler Driver 2.2
15568	  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'
15569	  compiler_needs_object=yes
15570	  ;;
15571	esac
15572	case `$CC -V 2>&1 | sed 5q` in
15573	*Sun\ C*)			# Sun C 5.9
15574	  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'
15575	  compiler_needs_object=yes
15576	  tmp_sharedflag='-G' ;;
15577	*Sun\ F*)			# Sun Fortran 8.3
15578	  tmp_sharedflag='-G' ;;
15579	esac
15580	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15581
15582        if test yes = "$supports_anon_versioning"; then
15583          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15584            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15585            echo "local: *; };" >> $output_objdir/$libname.ver~
15586            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15587        fi
15588
15589	case $cc_basename in
15590	tcc*)
15591	  export_dynamic_flag_spec='-rdynamic'
15592	  ;;
15593	xlf* | bgf* | bgxlf* | mpixlf*)
15594	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15595	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15596	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15597	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15598	  if test yes = "$supports_anon_versioning"; then
15599	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15600              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15601              echo "local: *; };" >> $output_objdir/$libname.ver~
15602              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15603	  fi
15604	  ;;
15605	esac
15606      else
15607        ld_shlibs=no
15608      fi
15609      ;;
15610
15611    netbsd*)
15612      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15613	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15614	wlarc=
15615      else
15616	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15617	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15618      fi
15619      ;;
15620
15621    solaris*)
15622      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15623	ld_shlibs=no
15624	cat <<_LT_EOF 1>&2
15625
15626*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15627*** create shared libraries on Solaris systems.  Therefore, libtool
15628*** is disabling shared libraries support.  We urge you to upgrade GNU
15629*** binutils to release 2.9.1 or newer.  Another option is to modify
15630*** your PATH or compiler configuration so that the native linker is
15631*** used, and then restart.
15632
15633_LT_EOF
15634      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15635	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15636	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15637      else
15638	ld_shlibs=no
15639      fi
15640      ;;
15641
15642    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15643      case `$LD -v 2>&1` in
15644        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15645	ld_shlibs=no
15646	cat <<_LT_EOF 1>&2
15647
15648*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15649*** reliably create shared libraries on SCO systems.  Therefore, libtool
15650*** is disabling shared libraries support.  We urge you to upgrade GNU
15651*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15652*** your PATH or compiler configuration so that the native linker is
15653*** used, and then restart.
15654
15655_LT_EOF
15656	;;
15657	*)
15658	  # For security reasons, it is highly recommended that you always
15659	  # use absolute paths for naming shared libraries, and exclude the
15660	  # DT_RUNPATH tag from executables and libraries.  But doing so
15661	  # requires that you compile everything twice, which is a pain.
15662	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15663	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15664	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15665	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15666	  else
15667	    ld_shlibs=no
15668	  fi
15669	;;
15670      esac
15671      ;;
15672
15673    sunos4*)
15674      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15675      wlarc=
15676      hardcode_direct=yes
15677      hardcode_shlibpath_var=no
15678      ;;
15679
15680    *)
15681      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15682	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15683	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15684      else
15685	ld_shlibs=no
15686      fi
15687      ;;
15688    esac
15689
15690    if test no = "$ld_shlibs"; then
15691      runpath_var=
15692      hardcode_libdir_flag_spec=
15693      export_dynamic_flag_spec=
15694      whole_archive_flag_spec=
15695    fi
15696  else
15697    # PORTME fill in a description of your system's linker (not GNU ld)
15698    case $host_os in
15699    aix3*)
15700      allow_undefined_flag=unsupported
15701      always_export_symbols=yes
15702      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'
15703      # Note: this linker hardcodes the directories in LIBPATH if there
15704      # are no directories specified by -L.
15705      hardcode_minus_L=yes
15706      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15707	# Neither direct hardcoding nor static linking is supported with a
15708	# broken collect2.
15709	hardcode_direct=unsupported
15710      fi
15711      ;;
15712
15713    aix[4-9]*)
15714      if test ia64 = "$host_cpu"; then
15715	# On IA64, the linker does run time linking by default, so we don't
15716	# have to do anything special.
15717	aix_use_runtimelinking=no
15718	exp_sym_flag='-Bexport'
15719	no_entry_flag=
15720      else
15721	# If we're using GNU nm, then we don't want the "-C" option.
15722	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
15723	# Without the "-l" option, or with the "-B" option, AIX nm treats
15724	# weak defined symbols like other global defined symbols, whereas
15725	# GNU nm marks them as "W".
15726	# While the 'weak' keyword is ignored in the Export File, we need
15727	# it in the Import File for the 'aix-soname' feature, so we have
15728	# to replace the "-B" option with "-P" for AIX nm.
15729	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15730	  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'
15731	else
15732	  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'
15733	fi
15734	aix_use_runtimelinking=no
15735
15736	# Test if we are trying to use run time linking or normal
15737	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15738	# have runtime linking enabled, and use it for executables.
15739	# For shared libraries, we enable/disable runtime linking
15740	# depending on the kind of the shared library created -
15741	# when "with_aix_soname,aix_use_runtimelinking" is:
15742	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15743	# "aix,yes"  lib.so          shared, rtl:yes, for executables
15744	#            lib.a           static archive
15745	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
15746	#            lib.a(lib.so.V) shared, rtl:no,  for executables
15747	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15748	#            lib.a(lib.so.V) shared, rtl:no
15749	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15750	#            lib.a           static archive
15751	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15752	  for ld_flag in $LDFLAGS; do
15753	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15754	    aix_use_runtimelinking=yes
15755	    break
15756	  fi
15757	  done
15758	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15759	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
15760	    # so we don't have lib.a shared libs to link our executables.
15761	    # We have to force runtime linking in this case.
15762	    aix_use_runtimelinking=yes
15763	    LDFLAGS="$LDFLAGS -Wl,-brtl"
15764	  fi
15765	  ;;
15766	esac
15767
15768	exp_sym_flag='-bexport'
15769	no_entry_flag='-bnoentry'
15770      fi
15771
15772      # When large executables or shared objects are built, AIX ld can
15773      # have problems creating the table of contents.  If linking a library
15774      # or program results in "error TOC overflow" add -mminimal-toc to
15775      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15776      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15777
15778      archive_cmds=''
15779      hardcode_direct=yes
15780      hardcode_direct_absolute=yes
15781      hardcode_libdir_separator=':'
15782      link_all_deplibs=yes
15783      file_list_spec='$wl-f,'
15784      case $with_aix_soname,$aix_use_runtimelinking in
15785      aix,*) ;; # traditional, no import file
15786      svr4,* | *,yes) # use import file
15787	# The Import File defines what to hardcode.
15788	hardcode_direct=no
15789	hardcode_direct_absolute=no
15790	;;
15791      esac
15792
15793      if test yes = "$GCC"; then
15794	case $host_os in aix4.[012]|aix4.[012].*)
15795	# We only want to do this on AIX 4.2 and lower, the check
15796	# below for broken collect2 doesn't work under 4.3+
15797	  collect2name=`$CC -print-prog-name=collect2`
15798	  if test -f "$collect2name" &&
15799	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15800	  then
15801	  # We have reworked collect2
15802	  :
15803	  else
15804	  # We have old collect2
15805	  hardcode_direct=unsupported
15806	  # It fails to find uninstalled libraries when the uninstalled
15807	  # path is not listed in the libpath.  Setting hardcode_minus_L
15808	  # to unsupported forces relinking
15809	  hardcode_minus_L=yes
15810	  hardcode_libdir_flag_spec='-L$libdir'
15811	  hardcode_libdir_separator=
15812	  fi
15813	  ;;
15814	esac
15815	shared_flag='-shared'
15816	if test yes = "$aix_use_runtimelinking"; then
15817	  shared_flag="$shared_flag "'$wl-G'
15818	fi
15819	# Need to ensure runtime linking is disabled for the traditional
15820	# shared library, or the linker may eventually find shared libraries
15821	# /with/ Import File - we do not want to mix them.
15822	shared_flag_aix='-shared'
15823	shared_flag_svr4='-shared $wl-G'
15824      else
15825	# not using gcc
15826	if test ia64 = "$host_cpu"; then
15827	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15828	# chokes on -Wl,-G. The following line is correct:
15829	  shared_flag='-G'
15830	else
15831	  if test yes = "$aix_use_runtimelinking"; then
15832	    shared_flag='$wl-G'
15833	  else
15834	    shared_flag='$wl-bM:SRE'
15835	  fi
15836	  shared_flag_aix='$wl-bM:SRE'
15837	  shared_flag_svr4='$wl-G'
15838	fi
15839      fi
15840
15841      export_dynamic_flag_spec='$wl-bexpall'
15842      # It seems that -bexpall does not export symbols beginning with
15843      # underscore (_), so it is better to generate a list of symbols to export.
15844      always_export_symbols=yes
15845      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15846	# Warning - without using the other runtime loading flags (-brtl),
15847	# -berok will link without error, but may produce a broken library.
15848	allow_undefined_flag='-berok'
15849        # Determine the default libpath from the value encoded in an
15850        # empty executable.
15851        if test set = "${lt_cv_aix_libpath+set}"; then
15852  aix_libpath=$lt_cv_aix_libpath
15853else
15854  if ${lt_cv_aix_libpath_+:} false; then :
15855  $as_echo_n "(cached) " >&6
15856else
15857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15858/* end confdefs.h.  */
15859
15860int
15861main ()
15862{
15863
15864  ;
15865  return 0;
15866}
15867_ACEOF
15868if ac_fn_c_try_link "$LINENO"; then :
15869
15870  lt_aix_libpath_sed='
15871      /Import File Strings/,/^$/ {
15872	  /^0/ {
15873	      s/^0  *\([^ ]*\) *$/\1/
15874	      p
15875	  }
15876      }'
15877  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15878  # Check for a 64-bit object if we didn't find anything.
15879  if test -z "$lt_cv_aix_libpath_"; then
15880    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15881  fi
15882fi
15883rm -f core conftest.err conftest.$ac_objext \
15884    conftest$ac_exeext conftest.$ac_ext
15885  if test -z "$lt_cv_aix_libpath_"; then
15886    lt_cv_aix_libpath_=/usr/lib:/lib
15887  fi
15888
15889fi
15890
15891  aix_libpath=$lt_cv_aix_libpath_
15892fi
15893
15894        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15895        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
15896      else
15897	if test ia64 = "$host_cpu"; then
15898	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15899	  allow_undefined_flag="-z nodefs"
15900	  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"
15901	else
15902	 # Determine the default libpath from the value encoded in an
15903	 # empty executable.
15904	 if test set = "${lt_cv_aix_libpath+set}"; then
15905  aix_libpath=$lt_cv_aix_libpath
15906else
15907  if ${lt_cv_aix_libpath_+:} false; then :
15908  $as_echo_n "(cached) " >&6
15909else
15910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15911/* end confdefs.h.  */
15912
15913int
15914main ()
15915{
15916
15917  ;
15918  return 0;
15919}
15920_ACEOF
15921if ac_fn_c_try_link "$LINENO"; then :
15922
15923  lt_aix_libpath_sed='
15924      /Import File Strings/,/^$/ {
15925	  /^0/ {
15926	      s/^0  *\([^ ]*\) *$/\1/
15927	      p
15928	  }
15929      }'
15930  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15931  # Check for a 64-bit object if we didn't find anything.
15932  if test -z "$lt_cv_aix_libpath_"; then
15933    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15934  fi
15935fi
15936rm -f core conftest.err conftest.$ac_objext \
15937    conftest$ac_exeext conftest.$ac_ext
15938  if test -z "$lt_cv_aix_libpath_"; then
15939    lt_cv_aix_libpath_=/usr/lib:/lib
15940  fi
15941
15942fi
15943
15944  aix_libpath=$lt_cv_aix_libpath_
15945fi
15946
15947	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15948	  # Warning - without using the other run time loading flags,
15949	  # -berok will link without error, but may produce a broken library.
15950	  no_undefined_flag=' $wl-bernotok'
15951	  allow_undefined_flag=' $wl-berok'
15952	  if test yes = "$with_gnu_ld"; then
15953	    # We only use this code for GNU lds that support --whole-archive.
15954	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15955	  else
15956	    # Exported symbols can be pulled into shared objects from archives
15957	    whole_archive_flag_spec='$convenience'
15958	  fi
15959	  archive_cmds_need_lc=yes
15960	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15961	  # -brtl affects multiple linker settings, -berok does not and is overridden later
15962	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15963	  if test svr4 != "$with_aix_soname"; then
15964	    # This is similar to how AIX traditionally builds its shared libraries.
15965	    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'
15966	  fi
15967	  if test aix != "$with_aix_soname"; then
15968	    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'
15969	  else
15970	    # used by -dlpreopen to get the symbols
15971	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15972	  fi
15973	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
15974	fi
15975      fi
15976      ;;
15977
15978    amigaos*)
15979      case $host_cpu in
15980      powerpc)
15981            # see comment about AmigaOS4 .so support
15982            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15983            archive_expsym_cmds=''
15984        ;;
15985      m68k)
15986            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)'
15987            hardcode_libdir_flag_spec='-L$libdir'
15988            hardcode_minus_L=yes
15989        ;;
15990      esac
15991      ;;
15992
15993    bsdi[45]*)
15994      export_dynamic_flag_spec=-rdynamic
15995      ;;
15996
15997    cygwin* | mingw* | pw32* | cegcc*)
15998      # When not using gcc, we currently assume that we are using
15999      # Microsoft Visual C++.
16000      # hardcode_libdir_flag_spec is actually meaningless, as there is
16001      # no search path for DLLs.
16002      case $cc_basename in
16003      cl*)
16004	# Native MSVC
16005	hardcode_libdir_flag_spec=' '
16006	allow_undefined_flag=unsupported
16007	always_export_symbols=yes
16008	file_list_spec='@'
16009	# Tell ltmain to make .lib files, not .a files.
16010	libext=lib
16011	# Tell ltmain to make .dll files, not .so files.
16012	shrext_cmds=.dll
16013	# FIXME: Setting linknames here is a bad hack.
16014	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16015	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16016            cp "$export_symbols" "$output_objdir/$soname.def";
16017            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16018          else
16019            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16020          fi~
16021          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16022          linknames='
16023	# The linker will not automatically build a static lib if we build a DLL.
16024	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16025	enable_shared_with_static_runtimes=yes
16026	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16027	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16028	# Don't use ranlib
16029	old_postinstall_cmds='chmod 644 $oldlib'
16030	postlink_cmds='lt_outputfile="@OUTPUT@"~
16031          lt_tool_outputfile="@TOOL_OUTPUT@"~
16032          case $lt_outputfile in
16033            *.exe|*.EXE) ;;
16034            *)
16035              lt_outputfile=$lt_outputfile.exe
16036              lt_tool_outputfile=$lt_tool_outputfile.exe
16037              ;;
16038          esac~
16039          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16040            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16041            $RM "$lt_outputfile.manifest";
16042          fi'
16043	;;
16044      *)
16045	# Assume MSVC wrapper
16046	hardcode_libdir_flag_spec=' '
16047	allow_undefined_flag=unsupported
16048	# Tell ltmain to make .lib files, not .a files.
16049	libext=lib
16050	# Tell ltmain to make .dll files, not .so files.
16051	shrext_cmds=.dll
16052	# FIXME: Setting linknames here is a bad hack.
16053	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16054	# The linker will automatically build a .lib file if we build a DLL.
16055	old_archive_from_new_cmds='true'
16056	# FIXME: Should let the user specify the lib program.
16057	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16058	enable_shared_with_static_runtimes=yes
16059	;;
16060      esac
16061      ;;
16062
16063    darwin* | rhapsody*)
16064
16065
16066  archive_cmds_need_lc=no
16067  hardcode_direct=no
16068  hardcode_automatic=yes
16069  hardcode_shlibpath_var=unsupported
16070  if test yes = "$lt_cv_ld_force_load"; then
16071    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\"`'
16072
16073  else
16074    whole_archive_flag_spec=''
16075  fi
16076  link_all_deplibs=yes
16077  allow_undefined_flag=$_lt_dar_allow_undefined
16078  case $cc_basename in
16079     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16080     *) _lt_dar_can_shared=$GCC ;;
16081  esac
16082  if test yes = "$_lt_dar_can_shared"; then
16083    output_verbose_link_cmd=func_echo_all
16084    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16085    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16086    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"
16087    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"
16088
16089  else
16090  ld_shlibs=no
16091  fi
16092
16093      ;;
16094
16095    dgux*)
16096      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16097      hardcode_libdir_flag_spec='-L$libdir'
16098      hardcode_shlibpath_var=no
16099      ;;
16100
16101    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16102    # support.  Future versions do this automatically, but an explicit c++rt0.o
16103    # does not break anything, and helps significantly (at the cost of a little
16104    # extra space).
16105    freebsd2.2*)
16106      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16107      hardcode_libdir_flag_spec='-R$libdir'
16108      hardcode_direct=yes
16109      hardcode_shlibpath_var=no
16110      ;;
16111
16112    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16113    freebsd2.*)
16114      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16115      hardcode_direct=yes
16116      hardcode_minus_L=yes
16117      hardcode_shlibpath_var=no
16118      ;;
16119
16120    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16121    freebsd* | dragonfly*)
16122      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16123      hardcode_libdir_flag_spec='-R$libdir'
16124      hardcode_direct=yes
16125      hardcode_shlibpath_var=no
16126      ;;
16127
16128    hpux9*)
16129      if test yes = "$GCC"; then
16130	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'
16131      else
16132	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'
16133      fi
16134      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16135      hardcode_libdir_separator=:
16136      hardcode_direct=yes
16137
16138      # hardcode_minus_L: Not really in the search PATH,
16139      # but as the default location of the library.
16140      hardcode_minus_L=yes
16141      export_dynamic_flag_spec='$wl-E'
16142      ;;
16143
16144    hpux10*)
16145      if test yes,no = "$GCC,$with_gnu_ld"; then
16146	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16147      else
16148	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16149      fi
16150      if test no = "$with_gnu_ld"; then
16151	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16152	hardcode_libdir_separator=:
16153	hardcode_direct=yes
16154	hardcode_direct_absolute=yes
16155	export_dynamic_flag_spec='$wl-E'
16156	# hardcode_minus_L: Not really in the search PATH,
16157	# but as the default location of the library.
16158	hardcode_minus_L=yes
16159      fi
16160      ;;
16161
16162    hpux11*)
16163      if test yes,no = "$GCC,$with_gnu_ld"; then
16164	case $host_cpu in
16165	hppa*64*)
16166	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16167	  ;;
16168	ia64*)
16169	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16170	  ;;
16171	*)
16172	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16173	  ;;
16174	esac
16175      else
16176	case $host_cpu in
16177	hppa*64*)
16178	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16179	  ;;
16180	ia64*)
16181	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16182	  ;;
16183	*)
16184
16185	  # Older versions of the 11.00 compiler do not understand -b yet
16186	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16187	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16188$as_echo_n "checking if $CC understands -b... " >&6; }
16189if ${lt_cv_prog_compiler__b+:} false; then :
16190  $as_echo_n "(cached) " >&6
16191else
16192  lt_cv_prog_compiler__b=no
16193   save_LDFLAGS=$LDFLAGS
16194   LDFLAGS="$LDFLAGS -b"
16195   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16196   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16197     # The linker can only warn and ignore the option if not recognized
16198     # So say no if there are warnings
16199     if test -s conftest.err; then
16200       # Append any errors to the config.log.
16201       cat conftest.err 1>&5
16202       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16203       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16204       if diff conftest.exp conftest.er2 >/dev/null; then
16205         lt_cv_prog_compiler__b=yes
16206       fi
16207     else
16208       lt_cv_prog_compiler__b=yes
16209     fi
16210   fi
16211   $RM -r conftest*
16212   LDFLAGS=$save_LDFLAGS
16213
16214fi
16215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16216$as_echo "$lt_cv_prog_compiler__b" >&6; }
16217
16218if test yes = "$lt_cv_prog_compiler__b"; then
16219    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16220else
16221    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16222fi
16223
16224	  ;;
16225	esac
16226      fi
16227      if test no = "$with_gnu_ld"; then
16228	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16229	hardcode_libdir_separator=:
16230
16231	case $host_cpu in
16232	hppa*64*|ia64*)
16233	  hardcode_direct=no
16234	  hardcode_shlibpath_var=no
16235	  ;;
16236	*)
16237	  hardcode_direct=yes
16238	  hardcode_direct_absolute=yes
16239	  export_dynamic_flag_spec='$wl-E'
16240
16241	  # hardcode_minus_L: Not really in the search PATH,
16242	  # but as the default location of the library.
16243	  hardcode_minus_L=yes
16244	  ;;
16245	esac
16246      fi
16247      ;;
16248
16249    irix5* | irix6* | nonstopux*)
16250      if test yes = "$GCC"; then
16251	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'
16252	# Try to use the -exported_symbol ld option, if it does not
16253	# work, assume that -exports_file does not work either and
16254	# implicitly export all symbols.
16255	# This should be the same for all languages, so no per-tag cache variable.
16256	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16257$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16258if ${lt_cv_irix_exported_symbol+:} false; then :
16259  $as_echo_n "(cached) " >&6
16260else
16261  save_LDFLAGS=$LDFLAGS
16262	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16263	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16264/* end confdefs.h.  */
16265int foo (void) { return 0; }
16266_ACEOF
16267if ac_fn_c_try_link "$LINENO"; then :
16268  lt_cv_irix_exported_symbol=yes
16269else
16270  lt_cv_irix_exported_symbol=no
16271fi
16272rm -f core conftest.err conftest.$ac_objext \
16273    conftest$ac_exeext conftest.$ac_ext
16274           LDFLAGS=$save_LDFLAGS
16275fi
16276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16277$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16278	if test yes = "$lt_cv_irix_exported_symbol"; then
16279          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'
16280	fi
16281      else
16282	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'
16283	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'
16284      fi
16285      archive_cmds_need_lc='no'
16286      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16287      hardcode_libdir_separator=:
16288      inherit_rpath=yes
16289      link_all_deplibs=yes
16290      ;;
16291
16292    linux*)
16293      case $cc_basename in
16294      tcc*)
16295	# Fabrice Bellard et al's Tiny C Compiler
16296	ld_shlibs=yes
16297	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16298	;;
16299      esac
16300      ;;
16301
16302    netbsd*)
16303      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16304	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16305      else
16306	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16307      fi
16308      hardcode_libdir_flag_spec='-R$libdir'
16309      hardcode_direct=yes
16310      hardcode_shlibpath_var=no
16311      ;;
16312
16313    newsos6)
16314      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16315      hardcode_direct=yes
16316      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16317      hardcode_libdir_separator=:
16318      hardcode_shlibpath_var=no
16319      ;;
16320
16321    *nto* | *qnx*)
16322      ;;
16323
16324    openbsd* | bitrig*)
16325      if test -f /usr/libexec/ld.so; then
16326	hardcode_direct=yes
16327	hardcode_shlibpath_var=no
16328	hardcode_direct_absolute=yes
16329	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16330	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16331	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16332	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16333	  export_dynamic_flag_spec='$wl-E'
16334	else
16335	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16336	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16337	fi
16338      else
16339	ld_shlibs=no
16340      fi
16341      ;;
16342
16343    os2*)
16344      hardcode_libdir_flag_spec='-L$libdir'
16345      hardcode_minus_L=yes
16346      allow_undefined_flag=unsupported
16347      shrext_cmds=.dll
16348      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16349	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16350	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16351	$ECHO EXPORTS >> $output_objdir/$libname.def~
16352	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16353	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16354	emximp -o $lib $output_objdir/$libname.def'
16355      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16356	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16357	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16358	$ECHO EXPORTS >> $output_objdir/$libname.def~
16359	prefix_cmds="$SED"~
16360	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16361	  prefix_cmds="$prefix_cmds -e 1d";
16362	fi~
16363	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16364	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16365	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16366	emximp -o $lib $output_objdir/$libname.def'
16367      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16368      enable_shared_with_static_runtimes=yes
16369      ;;
16370
16371    osf3*)
16372      if test yes = "$GCC"; then
16373	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16374	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'
16375      else
16376	allow_undefined_flag=' -expect_unresolved \*'
16377	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'
16378      fi
16379      archive_cmds_need_lc='no'
16380      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16381      hardcode_libdir_separator=:
16382      ;;
16383
16384    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16385      if test yes = "$GCC"; then
16386	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16387	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'
16388	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16389      else
16390	allow_undefined_flag=' -expect_unresolved \*'
16391	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'
16392	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~
16393          $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'
16394
16395	# Both c and cxx compiler support -rpath directly
16396	hardcode_libdir_flag_spec='-rpath $libdir'
16397      fi
16398      archive_cmds_need_lc='no'
16399      hardcode_libdir_separator=:
16400      ;;
16401
16402    solaris*)
16403      no_undefined_flag=' -z defs'
16404      if test yes = "$GCC"; then
16405	wlarc='$wl'
16406	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16407	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16408          $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'
16409      else
16410	case `$CC -V 2>&1` in
16411	*"Compilers 5.0"*)
16412	  wlarc=''
16413	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16414	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16415            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16416	  ;;
16417	*)
16418	  wlarc='$wl'
16419	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16420	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16421            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16422	  ;;
16423	esac
16424      fi
16425      hardcode_libdir_flag_spec='-R$libdir'
16426      hardcode_shlibpath_var=no
16427      case $host_os in
16428      solaris2.[0-5] | solaris2.[0-5].*) ;;
16429      *)
16430	# The compiler driver will combine and reorder linker options,
16431	# but understands '-z linker_flag'.  GCC discards it without '$wl',
16432	# but is careful enough not to reorder.
16433	# Supported since Solaris 2.6 (maybe 2.5.1?)
16434	if test yes = "$GCC"; then
16435	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16436	else
16437	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16438	fi
16439	;;
16440      esac
16441      link_all_deplibs=yes
16442      ;;
16443
16444    sunos4*)
16445      if test sequent = "$host_vendor"; then
16446	# Use $CC to link under sequent, because it throws in some extra .o
16447	# files that make .init and .fini sections work.
16448	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16449      else
16450	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16451      fi
16452      hardcode_libdir_flag_spec='-L$libdir'
16453      hardcode_direct=yes
16454      hardcode_minus_L=yes
16455      hardcode_shlibpath_var=no
16456      ;;
16457
16458    sysv4)
16459      case $host_vendor in
16460	sni)
16461	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16462	  hardcode_direct=yes # is this really true???
16463	;;
16464	siemens)
16465	  ## LD is ld it makes a PLAMLIB
16466	  ## CC just makes a GrossModule.
16467	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16468	  reload_cmds='$CC -r -o $output$reload_objs'
16469	  hardcode_direct=no
16470        ;;
16471	motorola)
16472	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16473	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16474	;;
16475      esac
16476      runpath_var='LD_RUN_PATH'
16477      hardcode_shlibpath_var=no
16478      ;;
16479
16480    sysv4.3*)
16481      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16482      hardcode_shlibpath_var=no
16483      export_dynamic_flag_spec='-Bexport'
16484      ;;
16485
16486    sysv4*MP*)
16487      if test -d /usr/nec; then
16488	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16489	hardcode_shlibpath_var=no
16490	runpath_var=LD_RUN_PATH
16491	hardcode_runpath_var=yes
16492	ld_shlibs=yes
16493      fi
16494      ;;
16495
16496    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16497      no_undefined_flag='$wl-z,text'
16498      archive_cmds_need_lc=no
16499      hardcode_shlibpath_var=no
16500      runpath_var='LD_RUN_PATH'
16501
16502      if test yes = "$GCC"; then
16503	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16504	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16505      else
16506	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16507	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16508      fi
16509      ;;
16510
16511    sysv5* | sco3.2v5* | sco5v6*)
16512      # Note: We CANNOT use -z defs as we might desire, because we do not
16513      # link with -lc, and that would cause any symbols used from libc to
16514      # always be unresolved, which means just about no library would
16515      # ever link correctly.  If we're not using GNU ld we use -z text
16516      # though, which does catch some bad symbols but isn't as heavy-handed
16517      # as -z defs.
16518      no_undefined_flag='$wl-z,text'
16519      allow_undefined_flag='$wl-z,nodefs'
16520      archive_cmds_need_lc=no
16521      hardcode_shlibpath_var=no
16522      hardcode_libdir_flag_spec='$wl-R,$libdir'
16523      hardcode_libdir_separator=':'
16524      link_all_deplibs=yes
16525      export_dynamic_flag_spec='$wl-Bexport'
16526      runpath_var='LD_RUN_PATH'
16527
16528      if test yes = "$GCC"; then
16529	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16530	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16531      else
16532	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16533	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16534      fi
16535      ;;
16536
16537    uts4*)
16538      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16539      hardcode_libdir_flag_spec='-L$libdir'
16540      hardcode_shlibpath_var=no
16541      ;;
16542
16543    *)
16544      ld_shlibs=no
16545      ;;
16546    esac
16547
16548    if test sni = "$host_vendor"; then
16549      case $host in
16550      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16551	export_dynamic_flag_spec='$wl-Blargedynsym'
16552	;;
16553      esac
16554    fi
16555  fi
16556
16557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16558$as_echo "$ld_shlibs" >&6; }
16559test no = "$ld_shlibs" && can_build_shared=no
16560
16561with_gnu_ld=$with_gnu_ld
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577#
16578# Do we need to explicitly link libc?
16579#
16580case "x$archive_cmds_need_lc" in
16581x|xyes)
16582  # Assume -lc should be added
16583  archive_cmds_need_lc=yes
16584
16585  if test yes,yes = "$GCC,$enable_shared"; then
16586    case $archive_cmds in
16587    *'~'*)
16588      # FIXME: we may have to deal with multi-command sequences.
16589      ;;
16590    '$CC '*)
16591      # Test whether the compiler implicitly links with -lc since on some
16592      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16593      # to ld, don't add -lc before -lgcc.
16594      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16595$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16596if ${lt_cv_archive_cmds_need_lc+:} false; then :
16597  $as_echo_n "(cached) " >&6
16598else
16599  $RM conftest*
16600	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16601
16602	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16603  (eval $ac_compile) 2>&5
16604  ac_status=$?
16605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16606  test $ac_status = 0; } 2>conftest.err; then
16607	  soname=conftest
16608	  lib=conftest
16609	  libobjs=conftest.$ac_objext
16610	  deplibs=
16611	  wl=$lt_prog_compiler_wl
16612	  pic_flag=$lt_prog_compiler_pic
16613	  compiler_flags=-v
16614	  linker_flags=-v
16615	  verstring=
16616	  output_objdir=.
16617	  libname=conftest
16618	  lt_save_allow_undefined_flag=$allow_undefined_flag
16619	  allow_undefined_flag=
16620	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16621  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16622  ac_status=$?
16623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16624  test $ac_status = 0; }
16625	  then
16626	    lt_cv_archive_cmds_need_lc=no
16627	  else
16628	    lt_cv_archive_cmds_need_lc=yes
16629	  fi
16630	  allow_undefined_flag=$lt_save_allow_undefined_flag
16631	else
16632	  cat conftest.err 1>&5
16633	fi
16634	$RM conftest*
16635
16636fi
16637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16638$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16639      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16640      ;;
16641    esac
16642  fi
16643  ;;
16644esac
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16798$as_echo_n "checking dynamic linker characteristics... " >&6; }
16799
16800if test yes = "$GCC"; then
16801  case $host_os in
16802    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16803    *) lt_awk_arg='/^libraries:/' ;;
16804  esac
16805  case $host_os in
16806    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16807    *) lt_sed_strip_eq='s|=/|/|g' ;;
16808  esac
16809  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16810  case $lt_search_path_spec in
16811  *\;*)
16812    # if the path contains ";" then we assume it to be the separator
16813    # otherwise default to the standard path separator (i.e. ":") - it is
16814    # assumed that no part of a normal pathname contains ";" but that should
16815    # okay in the real world where ";" in dirpaths is itself problematic.
16816    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16817    ;;
16818  *)
16819    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16820    ;;
16821  esac
16822  # Ok, now we have the path, separated by spaces, we can step through it
16823  # and add multilib dir if necessary...
16824  lt_tmp_lt_search_path_spec=
16825  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16826  # ...but if some path component already ends with the multilib dir we assume
16827  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16828  case "$lt_multi_os_dir; $lt_search_path_spec " in
16829  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16830    lt_multi_os_dir=
16831    ;;
16832  esac
16833  for lt_sys_path in $lt_search_path_spec; do
16834    if test -d "$lt_sys_path$lt_multi_os_dir"; then
16835      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16836    elif test -n "$lt_multi_os_dir"; then
16837      test -d "$lt_sys_path" && \
16838	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16839    fi
16840  done
16841  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16842BEGIN {RS = " "; FS = "/|\n";} {
16843  lt_foo = "";
16844  lt_count = 0;
16845  for (lt_i = NF; lt_i > 0; lt_i--) {
16846    if ($lt_i != "" && $lt_i != ".") {
16847      if ($lt_i == "..") {
16848        lt_count++;
16849      } else {
16850        if (lt_count == 0) {
16851          lt_foo = "/" $lt_i lt_foo;
16852        } else {
16853          lt_count--;
16854        }
16855      }
16856    }
16857  }
16858  if (lt_foo != "") { lt_freq[lt_foo]++; }
16859  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16860}'`
16861  # AWK program above erroneously prepends '/' to C:/dos/paths
16862  # for these hosts.
16863  case $host_os in
16864    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16865      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16866  esac
16867  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16868else
16869  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16870fi
16871library_names_spec=
16872libname_spec='lib$name'
16873soname_spec=
16874shrext_cmds=.so
16875postinstall_cmds=
16876postuninstall_cmds=
16877finish_cmds=
16878finish_eval=
16879shlibpath_var=
16880shlibpath_overrides_runpath=unknown
16881version_type=none
16882dynamic_linker="$host_os ld.so"
16883sys_lib_dlsearch_path_spec="/lib /usr/lib"
16884need_lib_prefix=unknown
16885hardcode_into_libs=no
16886
16887# when you set need_version to no, make sure it does not cause -set_version
16888# flags to be left without arguments
16889need_version=unknown
16890
16891case $host_os in
16892aix3*)
16893  version_type=linux # correct to gnu/linux during the next big refactor
16894  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16895  shlibpath_var=LIBPATH
16896
16897  # AIX 3 has no versioning support, so we append a major version to the name.
16898  soname_spec='$libname$release$shared_ext$major'
16899  ;;
16900
16901aix[4-9]*)
16902  version_type=linux # correct to gnu/linux during the next big refactor
16903  need_lib_prefix=no
16904  need_version=no
16905  hardcode_into_libs=yes
16906  if test ia64 = "$host_cpu"; then
16907    # AIX 5 supports IA64
16908    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16909    shlibpath_var=LD_LIBRARY_PATH
16910  else
16911    # With GCC up to 2.95.x, collect2 would create an import file
16912    # for dependence libraries.  The import file would start with
16913    # the line '#! .'.  This would cause the generated library to
16914    # depend on '.', always an invalid library.  This was fixed in
16915    # development snapshots of GCC prior to 3.0.
16916    case $host_os in
16917      aix4 | aix4.[01] | aix4.[01].*)
16918      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16919	   echo ' yes '
16920	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16921	:
16922      else
16923	can_build_shared=no
16924      fi
16925      ;;
16926    esac
16927    # Using Import Files as archive members, it is possible to support
16928    # filename-based versioning of shared library archives on AIX. While
16929    # this would work for both with and without runtime linking, it will
16930    # prevent static linking of such archives. So we do filename-based
16931    # shared library versioning with .so extension only, which is used
16932    # when both runtime linking and shared linking is enabled.
16933    # Unfortunately, runtime linking may impact performance, so we do
16934    # not want this to be the default eventually. Also, we use the
16935    # versioned .so libs for executables only if there is the -brtl
16936    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16937    # To allow for filename-based versioning support, we need to create
16938    # libNAME.so.V as an archive file, containing:
16939    # *) an Import File, referring to the versioned filename of the
16940    #    archive as well as the shared archive member, telling the
16941    #    bitwidth (32 or 64) of that shared object, and providing the
16942    #    list of exported symbols of that shared object, eventually
16943    #    decorated with the 'weak' keyword
16944    # *) the shared object with the F_LOADONLY flag set, to really avoid
16945    #    it being seen by the linker.
16946    # At run time we better use the real file rather than another symlink,
16947    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16948
16949    case $with_aix_soname,$aix_use_runtimelinking in
16950    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16951    # soname into executable. Probably we can add versioning support to
16952    # collect2, so additional links can be useful in future.
16953    aix,yes) # traditional libtool
16954      dynamic_linker='AIX unversionable lib.so'
16955      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16956      # instead of lib<name>.a to let people know that these are not
16957      # typical AIX shared libraries.
16958      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16959      ;;
16960    aix,no) # traditional AIX only
16961      dynamic_linker='AIX lib.a(lib.so.V)'
16962      # We preserve .a as extension for shared libraries through AIX4.2
16963      # and later when we are not doing run time linking.
16964      library_names_spec='$libname$release.a $libname.a'
16965      soname_spec='$libname$release$shared_ext$major'
16966      ;;
16967    svr4,*) # full svr4 only
16968      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16969      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16970      # We do not specify a path in Import Files, so LIBPATH fires.
16971      shlibpath_overrides_runpath=yes
16972      ;;
16973    *,yes) # both, prefer svr4
16974      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16975      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16976      # unpreferred sharedlib libNAME.a needs extra handling
16977      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"'
16978      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"'
16979      # We do not specify a path in Import Files, so LIBPATH fires.
16980      shlibpath_overrides_runpath=yes
16981      ;;
16982    *,no) # both, prefer aix
16983      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16984      library_names_spec='$libname$release.a $libname.a'
16985      soname_spec='$libname$release$shared_ext$major'
16986      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16987      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)'
16988      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"'
16989      ;;
16990    esac
16991    shlibpath_var=LIBPATH
16992  fi
16993  ;;
16994
16995amigaos*)
16996  case $host_cpu in
16997  powerpc)
16998    # Since July 2007 AmigaOS4 officially supports .so libraries.
16999    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17000    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17001    ;;
17002  m68k)
17003    library_names_spec='$libname.ixlibrary $libname.a'
17004    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17005    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'
17006    ;;
17007  esac
17008  ;;
17009
17010beos*)
17011  library_names_spec='$libname$shared_ext'
17012  dynamic_linker="$host_os ld.so"
17013  shlibpath_var=LIBRARY_PATH
17014  ;;
17015
17016bsdi[45]*)
17017  version_type=linux # correct to gnu/linux during the next big refactor
17018  need_version=no
17019  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17020  soname_spec='$libname$release$shared_ext$major'
17021  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17022  shlibpath_var=LD_LIBRARY_PATH
17023  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17024  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17025  # the default ld.so.conf also contains /usr/contrib/lib and
17026  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17027  # libtool to hard-code these into programs
17028  ;;
17029
17030cygwin* | mingw* | pw32* | cegcc*)
17031  version_type=windows
17032  shrext_cmds=.dll
17033  need_version=no
17034  need_lib_prefix=no
17035
17036  case $GCC,$cc_basename in
17037  yes,*)
17038    # gcc
17039    library_names_spec='$libname.dll.a'
17040    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17041    postinstall_cmds='base_file=`basename \$file`~
17042      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17043      dldir=$destdir/`dirname \$dlpath`~
17044      test -d \$dldir || mkdir -p \$dldir~
17045      $install_prog $dir/$dlname \$dldir/$dlname~
17046      chmod a+x \$dldir/$dlname~
17047      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17048        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17049      fi'
17050    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17051      dlpath=$dir/\$dldll~
17052       $RM \$dlpath'
17053    shlibpath_overrides_runpath=yes
17054
17055    case $host_os in
17056    cygwin*)
17057      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17058      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17059
17060      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17061      ;;
17062    mingw* | cegcc*)
17063      # MinGW DLLs use traditional 'lib' prefix
17064      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17065      ;;
17066    pw32*)
17067      # pw32 DLLs use 'pw' prefix rather than 'lib'
17068      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17069      ;;
17070    esac
17071    dynamic_linker='Win32 ld.exe'
17072    ;;
17073
17074  *,cl*)
17075    # Native MSVC
17076    libname_spec='$name'
17077    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17078    library_names_spec='$libname.dll.lib'
17079
17080    case $build_os in
17081    mingw*)
17082      sys_lib_search_path_spec=
17083      lt_save_ifs=$IFS
17084      IFS=';'
17085      for lt_path in $LIB
17086      do
17087        IFS=$lt_save_ifs
17088        # Let DOS variable expansion print the short 8.3 style file name.
17089        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17090        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17091      done
17092      IFS=$lt_save_ifs
17093      # Convert to MSYS style.
17094      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17095      ;;
17096    cygwin*)
17097      # Convert to unix form, then to dos form, then back to unix form
17098      # but this time dos style (no spaces!) so that the unix form looks
17099      # like /cygdrive/c/PROGRA~1:/cygdr...
17100      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17101      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17102      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17103      ;;
17104    *)
17105      sys_lib_search_path_spec=$LIB
17106      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17107        # It is most probably a Windows format PATH.
17108        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17109      else
17110        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17111      fi
17112      # FIXME: find the short name or the path components, as spaces are
17113      # common. (e.g. "Program Files" -> "PROGRA~1")
17114      ;;
17115    esac
17116
17117    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17118    postinstall_cmds='base_file=`basename \$file`~
17119      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17120      dldir=$destdir/`dirname \$dlpath`~
17121      test -d \$dldir || mkdir -p \$dldir~
17122      $install_prog $dir/$dlname \$dldir/$dlname'
17123    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17124      dlpath=$dir/\$dldll~
17125       $RM \$dlpath'
17126    shlibpath_overrides_runpath=yes
17127    dynamic_linker='Win32 link.exe'
17128    ;;
17129
17130  *)
17131    # Assume MSVC wrapper
17132    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17133    dynamic_linker='Win32 ld.exe'
17134    ;;
17135  esac
17136  # FIXME: first we should search . and the directory the executable is in
17137  shlibpath_var=PATH
17138  ;;
17139
17140darwin* | rhapsody*)
17141  dynamic_linker="$host_os dyld"
17142  version_type=darwin
17143  need_lib_prefix=no
17144  need_version=no
17145  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17146  soname_spec='$libname$release$major$shared_ext'
17147  shlibpath_overrides_runpath=yes
17148  shlibpath_var=DYLD_LIBRARY_PATH
17149  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17150
17151  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17152  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17153  ;;
17154
17155dgux*)
17156  version_type=linux # correct to gnu/linux during the next big refactor
17157  need_lib_prefix=no
17158  need_version=no
17159  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17160  soname_spec='$libname$release$shared_ext$major'
17161  shlibpath_var=LD_LIBRARY_PATH
17162  ;;
17163
17164freebsd* | dragonfly*)
17165  # DragonFly does not have aout.  When/if they implement a new
17166  # versioning mechanism, adjust this.
17167  if test -x /usr/bin/objformat; then
17168    objformat=`/usr/bin/objformat`
17169  else
17170    case $host_os in
17171    freebsd[23].*) objformat=aout ;;
17172    *) objformat=elf ;;
17173    esac
17174  fi
17175  # Handle Gentoo/FreeBSD as it was Linux
17176  case $host_vendor in
17177    gentoo)
17178      version_type=linux ;;
17179    *)
17180      version_type=freebsd-$objformat ;;
17181  esac
17182
17183  case $version_type in
17184    freebsd-elf*)
17185      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17186      need_version=no
17187      need_lib_prefix=no
17188      ;;
17189    freebsd-*)
17190      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17191      need_version=yes
17192      ;;
17193    linux)
17194      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17195      soname_spec='${libname}${release}${shared_ext}$major'
17196      need_lib_prefix=no
17197      need_version=no
17198      ;;
17199  esac
17200  shlibpath_var=LD_LIBRARY_PATH
17201  case $host_os in
17202  freebsd2.*)
17203    shlibpath_overrides_runpath=yes
17204    ;;
17205  freebsd3.[01]* | freebsdelf3.[01]*)
17206    shlibpath_overrides_runpath=yes
17207    hardcode_into_libs=yes
17208    ;;
17209  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17210  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17211    shlibpath_overrides_runpath=no
17212    hardcode_into_libs=yes
17213    ;;
17214  *) # from 4.6 on, and DragonFly
17215    shlibpath_overrides_runpath=yes
17216    hardcode_into_libs=yes
17217    ;;
17218  esac
17219  ;;
17220
17221haiku*)
17222  version_type=linux # correct to gnu/linux during the next big refactor
17223  need_lib_prefix=no
17224  need_version=no
17225  dynamic_linker="$host_os runtime_loader"
17226  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17227  soname_spec='$libname$release$shared_ext$major'
17228  shlibpath_var=LIBRARY_PATH
17229  shlibpath_overrides_runpath=no
17230  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17231  hardcode_into_libs=yes
17232  ;;
17233
17234hpux9* | hpux10* | hpux11*)
17235  # Give a soname corresponding to the major version so that dld.sl refuses to
17236  # link against other versions.
17237  version_type=sunos
17238  need_lib_prefix=no
17239  need_version=no
17240  case $host_cpu in
17241  ia64*)
17242    shrext_cmds='.so'
17243    hardcode_into_libs=yes
17244    dynamic_linker="$host_os dld.so"
17245    shlibpath_var=LD_LIBRARY_PATH
17246    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17247    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17248    soname_spec='$libname$release$shared_ext$major'
17249    if test 32 = "$HPUX_IA64_MODE"; then
17250      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17251    else
17252      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17253    fi
17254    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17255    ;;
17256  hppa*64*)
17257    shrext_cmds='.sl'
17258    hardcode_into_libs=yes
17259    dynamic_linker="$host_os dld.sl"
17260    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17261    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17262    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17263    soname_spec='$libname$release$shared_ext$major'
17264    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17265    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17266    ;;
17267  *)
17268    shrext_cmds='.sl'
17269    dynamic_linker="$host_os dld.sl"
17270    shlibpath_var=SHLIB_PATH
17271    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17272    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17273    soname_spec='$libname$release$shared_ext$major'
17274    ;;
17275  esac
17276  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17277  postinstall_cmds='chmod 555 $lib'
17278  # or fails outright, so override atomically:
17279  install_override_mode=555
17280  ;;
17281
17282interix[3-9]*)
17283  version_type=linux # correct to gnu/linux during the next big refactor
17284  need_lib_prefix=no
17285  need_version=no
17286  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17287  soname_spec='$libname$release$shared_ext$major'
17288  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17289  shlibpath_var=LD_LIBRARY_PATH
17290  shlibpath_overrides_runpath=no
17291  hardcode_into_libs=yes
17292  ;;
17293
17294irix5* | irix6* | nonstopux*)
17295  case $host_os in
17296    nonstopux*) version_type=nonstopux ;;
17297    *)
17298	if test yes = "$lt_cv_prog_gnu_ld"; then
17299		version_type=linux # correct to gnu/linux during the next big refactor
17300	else
17301		version_type=irix
17302	fi ;;
17303  esac
17304  need_lib_prefix=no
17305  need_version=no
17306  soname_spec='$libname$release$shared_ext$major'
17307  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17308  case $host_os in
17309  irix5* | nonstopux*)
17310    libsuff= shlibsuff=
17311    ;;
17312  *)
17313    case $LD in # libtool.m4 will add one of these switches to LD
17314    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17315      libsuff= shlibsuff= libmagic=32-bit;;
17316    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17317      libsuff=32 shlibsuff=N32 libmagic=N32;;
17318    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17319      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17320    *) libsuff= shlibsuff= libmagic=never-match;;
17321    esac
17322    ;;
17323  esac
17324  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17325  shlibpath_overrides_runpath=no
17326  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17327  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17328  hardcode_into_libs=yes
17329  ;;
17330
17331# No shared lib support for Linux oldld, aout, or coff.
17332linux*oldld* | linux*aout* | linux*coff*)
17333  dynamic_linker=no
17334  ;;
17335
17336linux*android*)
17337  version_type=none # Android doesn't support versioned libraries.
17338  need_lib_prefix=no
17339  need_version=no
17340  library_names_spec='$libname$release$shared_ext'
17341  soname_spec='$libname$release$shared_ext'
17342  finish_cmds=
17343  shlibpath_var=LD_LIBRARY_PATH
17344  shlibpath_overrides_runpath=yes
17345
17346  # This implies no fast_install, which is unacceptable.
17347  # Some rework will be needed to allow for fast_install
17348  # before this can be enabled.
17349  hardcode_into_libs=yes
17350
17351  dynamic_linker='Android linker'
17352  # Don't embed -rpath directories since the linker doesn't support them.
17353  hardcode_libdir_flag_spec='-L$libdir'
17354  ;;
17355
17356# This must be glibc/ELF.
17357linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17358  version_type=linux # correct to gnu/linux during the next big refactor
17359  need_lib_prefix=no
17360  need_version=no
17361  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17362  soname_spec='$libname$release$shared_ext$major'
17363  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17364  shlibpath_var=LD_LIBRARY_PATH
17365  shlibpath_overrides_runpath=no
17366
17367  # Some binutils ld are patched to set DT_RUNPATH
17368  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17369  $as_echo_n "(cached) " >&6
17370else
17371  lt_cv_shlibpath_overrides_runpath=no
17372    save_LDFLAGS=$LDFLAGS
17373    save_libdir=$libdir
17374    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17375	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17376    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17377/* end confdefs.h.  */
17378
17379int
17380main ()
17381{
17382
17383  ;
17384  return 0;
17385}
17386_ACEOF
17387if ac_fn_c_try_link "$LINENO"; then :
17388  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17389  lt_cv_shlibpath_overrides_runpath=yes
17390fi
17391fi
17392rm -f core conftest.err conftest.$ac_objext \
17393    conftest$ac_exeext conftest.$ac_ext
17394    LDFLAGS=$save_LDFLAGS
17395    libdir=$save_libdir
17396
17397fi
17398
17399  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17400
17401  # This implies no fast_install, which is unacceptable.
17402  # Some rework will be needed to allow for fast_install
17403  # before this can be enabled.
17404  hardcode_into_libs=yes
17405
17406  # Append ld.so.conf contents to the search path
17407  if test -f /etc/ld.so.conf; then
17408    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' ' '`
17409    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17410  fi
17411
17412  # We used to test for /lib/ld.so.1 and disable shared libraries on
17413  # powerpc, because MkLinux only supported shared libraries with the
17414  # GNU dynamic linker.  Since this was broken with cross compilers,
17415  # most powerpc-linux boxes support dynamic linking these days and
17416  # people can always --disable-shared, the test was removed, and we
17417  # assume the GNU/Linux dynamic linker is in use.
17418  dynamic_linker='GNU/Linux ld.so'
17419  ;;
17420
17421netbsd*)
17422  version_type=sunos
17423  need_lib_prefix=no
17424  need_version=no
17425  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17426    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17427    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17428    dynamic_linker='NetBSD (a.out) ld.so'
17429  else
17430    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17431    soname_spec='$libname$release$shared_ext$major'
17432    dynamic_linker='NetBSD ld.elf_so'
17433  fi
17434  shlibpath_var=LD_LIBRARY_PATH
17435  shlibpath_overrides_runpath=yes
17436  hardcode_into_libs=yes
17437  ;;
17438
17439newsos6)
17440  version_type=linux # correct to gnu/linux during the next big refactor
17441  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17442  shlibpath_var=LD_LIBRARY_PATH
17443  shlibpath_overrides_runpath=yes
17444  ;;
17445
17446*nto* | *qnx*)
17447  version_type=qnx
17448  need_lib_prefix=no
17449  need_version=no
17450  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17451  soname_spec='$libname$release$shared_ext$major'
17452  shlibpath_var=LD_LIBRARY_PATH
17453  shlibpath_overrides_runpath=no
17454  hardcode_into_libs=yes
17455  dynamic_linker='ldqnx.so'
17456  ;;
17457
17458openbsd* | bitrig*)
17459  version_type=sunos
17460  sys_lib_dlsearch_path_spec=/usr/lib
17461  need_lib_prefix=no
17462  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17463    need_version=no
17464  else
17465    need_version=yes
17466  fi
17467  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17468  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17469  shlibpath_var=LD_LIBRARY_PATH
17470  shlibpath_overrides_runpath=yes
17471  ;;
17472
17473os2*)
17474  libname_spec='$name'
17475  version_type=windows
17476  shrext_cmds=.dll
17477  need_version=no
17478  need_lib_prefix=no
17479  # OS/2 can only load a DLL with a base name of 8 characters or less.
17480  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17481    v=$($ECHO $release$versuffix | tr -d .-);
17482    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17483    $ECHO $n$v`$shared_ext'
17484  library_names_spec='${libname}_dll.$libext'
17485  dynamic_linker='OS/2 ld.exe'
17486  shlibpath_var=BEGINLIBPATH
17487  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17488  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17489  postinstall_cmds='base_file=`basename \$file`~
17490    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17491    dldir=$destdir/`dirname \$dlpath`~
17492    test -d \$dldir || mkdir -p \$dldir~
17493    $install_prog $dir/$dlname \$dldir/$dlname~
17494    chmod a+x \$dldir/$dlname~
17495    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17496      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17497    fi'
17498  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17499    dlpath=$dir/\$dldll~
17500    $RM \$dlpath'
17501  ;;
17502
17503osf3* | osf4* | osf5*)
17504  version_type=osf
17505  need_lib_prefix=no
17506  need_version=no
17507  soname_spec='$libname$release$shared_ext$major'
17508  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17509  shlibpath_var=LD_LIBRARY_PATH
17510  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17511  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17512  ;;
17513
17514rdos*)
17515  dynamic_linker=no
17516  ;;
17517
17518solaris*)
17519  version_type=linux # correct to gnu/linux during the next big refactor
17520  need_lib_prefix=no
17521  need_version=no
17522  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17523  soname_spec='$libname$release$shared_ext$major'
17524  shlibpath_var=LD_LIBRARY_PATH
17525  shlibpath_overrides_runpath=yes
17526  hardcode_into_libs=yes
17527  # ldd complains unless libraries are executable
17528  postinstall_cmds='chmod +x $lib'
17529  ;;
17530
17531sunos4*)
17532  version_type=sunos
17533  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17534  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17535  shlibpath_var=LD_LIBRARY_PATH
17536  shlibpath_overrides_runpath=yes
17537  if test yes = "$with_gnu_ld"; then
17538    need_lib_prefix=no
17539  fi
17540  need_version=yes
17541  ;;
17542
17543sysv4 | sysv4.3*)
17544  version_type=linux # correct to gnu/linux during the next big refactor
17545  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17546  soname_spec='$libname$release$shared_ext$major'
17547  shlibpath_var=LD_LIBRARY_PATH
17548  case $host_vendor in
17549    sni)
17550      shlibpath_overrides_runpath=no
17551      need_lib_prefix=no
17552      runpath_var=LD_RUN_PATH
17553      ;;
17554    siemens)
17555      need_lib_prefix=no
17556      ;;
17557    motorola)
17558      need_lib_prefix=no
17559      need_version=no
17560      shlibpath_overrides_runpath=no
17561      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17562      ;;
17563  esac
17564  ;;
17565
17566sysv4*MP*)
17567  if test -d /usr/nec; then
17568    version_type=linux # correct to gnu/linux during the next big refactor
17569    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17570    soname_spec='$libname$shared_ext.$major'
17571    shlibpath_var=LD_LIBRARY_PATH
17572  fi
17573  ;;
17574
17575sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17576  version_type=sco
17577  need_lib_prefix=no
17578  need_version=no
17579  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17580  soname_spec='$libname$release$shared_ext$major'
17581  shlibpath_var=LD_LIBRARY_PATH
17582  shlibpath_overrides_runpath=yes
17583  hardcode_into_libs=yes
17584  if test yes = "$with_gnu_ld"; then
17585    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17586  else
17587    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17588    case $host_os in
17589      sco3.2v5*)
17590        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17591	;;
17592    esac
17593  fi
17594  sys_lib_dlsearch_path_spec='/usr/lib'
17595  ;;
17596
17597tpf*)
17598  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17599  version_type=linux # correct to gnu/linux during the next big refactor
17600  need_lib_prefix=no
17601  need_version=no
17602  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17603  shlibpath_var=LD_LIBRARY_PATH
17604  shlibpath_overrides_runpath=no
17605  hardcode_into_libs=yes
17606  ;;
17607
17608uts4*)
17609  version_type=linux # correct to gnu/linux during the next big refactor
17610  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17611  soname_spec='$libname$release$shared_ext$major'
17612  shlibpath_var=LD_LIBRARY_PATH
17613  ;;
17614
17615*)
17616  dynamic_linker=no
17617  ;;
17618esac
17619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17620$as_echo "$dynamic_linker" >&6; }
17621test no = "$dynamic_linker" && can_build_shared=no
17622
17623variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17624if test yes = "$GCC"; then
17625  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17626fi
17627
17628if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17629  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17630fi
17631if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17632  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17633fi
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17727$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17728hardcode_action=
17729if test -n "$hardcode_libdir_flag_spec" ||
17730   test -n "$runpath_var" ||
17731   test yes = "$hardcode_automatic"; then
17732
17733  # We can hardcode non-existent directories.
17734  if test no != "$hardcode_direct" &&
17735     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17736     # have to relink, otherwise we might link with an installed library
17737     # when we should be linking with a yet-to-be-installed one
17738     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17739     test no != "$hardcode_minus_L"; then
17740    # Linking always hardcodes the temporary library directory.
17741    hardcode_action=relink
17742  else
17743    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17744    hardcode_action=immediate
17745  fi
17746else
17747  # We cannot hardcode anything, or else we can only hardcode existing
17748  # directories.
17749  hardcode_action=unsupported
17750fi
17751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17752$as_echo "$hardcode_action" >&6; }
17753
17754if test relink = "$hardcode_action" ||
17755   test yes = "$inherit_rpath"; then
17756  # Fast installation is not supported
17757  enable_fast_install=no
17758elif test yes = "$shlibpath_overrides_runpath" ||
17759     test no = "$enable_shared"; then
17760  # Fast installation is not necessary
17761  enable_fast_install=needless
17762fi
17763
17764
17765
17766
17767
17768
17769  if test yes != "$enable_dlopen"; then
17770  enable_dlopen=unknown
17771  enable_dlopen_self=unknown
17772  enable_dlopen_self_static=unknown
17773else
17774  lt_cv_dlopen=no
17775  lt_cv_dlopen_libs=
17776
17777  case $host_os in
17778  beos*)
17779    lt_cv_dlopen=load_add_on
17780    lt_cv_dlopen_libs=
17781    lt_cv_dlopen_self=yes
17782    ;;
17783
17784  mingw* | pw32* | cegcc*)
17785    lt_cv_dlopen=LoadLibrary
17786    lt_cv_dlopen_libs=
17787    ;;
17788
17789  cygwin*)
17790    lt_cv_dlopen=dlopen
17791    lt_cv_dlopen_libs=
17792    ;;
17793
17794  darwin*)
17795    # if libdl is installed we need to link against it
17796    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17797$as_echo_n "checking for dlopen in -ldl... " >&6; }
17798if ${ac_cv_lib_dl_dlopen+:} false; then :
17799  $as_echo_n "(cached) " >&6
17800else
17801  ac_check_lib_save_LIBS=$LIBS
17802LIBS="-ldl  $LIBS"
17803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17804/* end confdefs.h.  */
17805
17806/* Override any GCC internal prototype to avoid an error.
17807   Use char because int might match the return type of a GCC
17808   builtin and then its argument prototype would still apply.  */
17809#ifdef __cplusplus
17810extern "C"
17811#endif
17812char dlopen ();
17813int
17814main ()
17815{
17816return dlopen ();
17817  ;
17818  return 0;
17819}
17820_ACEOF
17821if ac_fn_c_try_link "$LINENO"; then :
17822  ac_cv_lib_dl_dlopen=yes
17823else
17824  ac_cv_lib_dl_dlopen=no
17825fi
17826rm -f core conftest.err conftest.$ac_objext \
17827    conftest$ac_exeext conftest.$ac_ext
17828LIBS=$ac_check_lib_save_LIBS
17829fi
17830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17831$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17832if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17833  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17834else
17835
17836    lt_cv_dlopen=dyld
17837    lt_cv_dlopen_libs=
17838    lt_cv_dlopen_self=yes
17839
17840fi
17841
17842    ;;
17843
17844  tpf*)
17845    # Don't try to run any link tests for TPF.  We know it's impossible
17846    # because TPF is a cross-compiler, and we know how we open DSOs.
17847    lt_cv_dlopen=dlopen
17848    lt_cv_dlopen_libs=
17849    lt_cv_dlopen_self=no
17850    ;;
17851
17852  *)
17853    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17854if test "x$ac_cv_func_shl_load" = xyes; then :
17855  lt_cv_dlopen=shl_load
17856else
17857  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17858$as_echo_n "checking for shl_load in -ldld... " >&6; }
17859if ${ac_cv_lib_dld_shl_load+:} false; then :
17860  $as_echo_n "(cached) " >&6
17861else
17862  ac_check_lib_save_LIBS=$LIBS
17863LIBS="-ldld  $LIBS"
17864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17865/* end confdefs.h.  */
17866
17867/* Override any GCC internal prototype to avoid an error.
17868   Use char because int might match the return type of a GCC
17869   builtin and then its argument prototype would still apply.  */
17870#ifdef __cplusplus
17871extern "C"
17872#endif
17873char shl_load ();
17874int
17875main ()
17876{
17877return shl_load ();
17878  ;
17879  return 0;
17880}
17881_ACEOF
17882if ac_fn_c_try_link "$LINENO"; then :
17883  ac_cv_lib_dld_shl_load=yes
17884else
17885  ac_cv_lib_dld_shl_load=no
17886fi
17887rm -f core conftest.err conftest.$ac_objext \
17888    conftest$ac_exeext conftest.$ac_ext
17889LIBS=$ac_check_lib_save_LIBS
17890fi
17891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17892$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17893if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17894  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17895else
17896  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17897if test "x$ac_cv_func_dlopen" = xyes; then :
17898  lt_cv_dlopen=dlopen
17899else
17900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17901$as_echo_n "checking for dlopen in -ldl... " >&6; }
17902if ${ac_cv_lib_dl_dlopen+:} false; then :
17903  $as_echo_n "(cached) " >&6
17904else
17905  ac_check_lib_save_LIBS=$LIBS
17906LIBS="-ldl  $LIBS"
17907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17908/* end confdefs.h.  */
17909
17910/* Override any GCC internal prototype to avoid an error.
17911   Use char because int might match the return type of a GCC
17912   builtin and then its argument prototype would still apply.  */
17913#ifdef __cplusplus
17914extern "C"
17915#endif
17916char dlopen ();
17917int
17918main ()
17919{
17920return dlopen ();
17921  ;
17922  return 0;
17923}
17924_ACEOF
17925if ac_fn_c_try_link "$LINENO"; then :
17926  ac_cv_lib_dl_dlopen=yes
17927else
17928  ac_cv_lib_dl_dlopen=no
17929fi
17930rm -f core conftest.err conftest.$ac_objext \
17931    conftest$ac_exeext conftest.$ac_ext
17932LIBS=$ac_check_lib_save_LIBS
17933fi
17934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17935$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17936if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17937  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17938else
17939  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17940$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17941if ${ac_cv_lib_svld_dlopen+:} false; then :
17942  $as_echo_n "(cached) " >&6
17943else
17944  ac_check_lib_save_LIBS=$LIBS
17945LIBS="-lsvld  $LIBS"
17946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17947/* end confdefs.h.  */
17948
17949/* Override any GCC internal prototype to avoid an error.
17950   Use char because int might match the return type of a GCC
17951   builtin and then its argument prototype would still apply.  */
17952#ifdef __cplusplus
17953extern "C"
17954#endif
17955char dlopen ();
17956int
17957main ()
17958{
17959return dlopen ();
17960  ;
17961  return 0;
17962}
17963_ACEOF
17964if ac_fn_c_try_link "$LINENO"; then :
17965  ac_cv_lib_svld_dlopen=yes
17966else
17967  ac_cv_lib_svld_dlopen=no
17968fi
17969rm -f core conftest.err conftest.$ac_objext \
17970    conftest$ac_exeext conftest.$ac_ext
17971LIBS=$ac_check_lib_save_LIBS
17972fi
17973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17974$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17975if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17976  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
17977else
17978  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17979$as_echo_n "checking for dld_link in -ldld... " >&6; }
17980if ${ac_cv_lib_dld_dld_link+:} false; then :
17981  $as_echo_n "(cached) " >&6
17982else
17983  ac_check_lib_save_LIBS=$LIBS
17984LIBS="-ldld  $LIBS"
17985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17986/* end confdefs.h.  */
17987
17988/* Override any GCC internal prototype to avoid an error.
17989   Use char because int might match the return type of a GCC
17990   builtin and then its argument prototype would still apply.  */
17991#ifdef __cplusplus
17992extern "C"
17993#endif
17994char dld_link ();
17995int
17996main ()
17997{
17998return dld_link ();
17999  ;
18000  return 0;
18001}
18002_ACEOF
18003if ac_fn_c_try_link "$LINENO"; then :
18004  ac_cv_lib_dld_dld_link=yes
18005else
18006  ac_cv_lib_dld_dld_link=no
18007fi
18008rm -f core conftest.err conftest.$ac_objext \
18009    conftest$ac_exeext conftest.$ac_ext
18010LIBS=$ac_check_lib_save_LIBS
18011fi
18012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18013$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18014if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18015  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18016fi
18017
18018
18019fi
18020
18021
18022fi
18023
18024
18025fi
18026
18027
18028fi
18029
18030
18031fi
18032
18033    ;;
18034  esac
18035
18036  if test no = "$lt_cv_dlopen"; then
18037    enable_dlopen=no
18038  else
18039    enable_dlopen=yes
18040  fi
18041
18042  case $lt_cv_dlopen in
18043  dlopen)
18044    save_CPPFLAGS=$CPPFLAGS
18045    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18046
18047    save_LDFLAGS=$LDFLAGS
18048    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18049
18050    save_LIBS=$LIBS
18051    LIBS="$lt_cv_dlopen_libs $LIBS"
18052
18053    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18054$as_echo_n "checking whether a program can dlopen itself... " >&6; }
18055if ${lt_cv_dlopen_self+:} false; then :
18056  $as_echo_n "(cached) " >&6
18057else
18058  	  if test yes = "$cross_compiling"; then :
18059  lt_cv_dlopen_self=cross
18060else
18061  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18062  lt_status=$lt_dlunknown
18063  cat > conftest.$ac_ext <<_LT_EOF
18064#line $LINENO "configure"
18065#include "confdefs.h"
18066
18067#if HAVE_DLFCN_H
18068#include <dlfcn.h>
18069#endif
18070
18071#include <stdio.h>
18072
18073#ifdef RTLD_GLOBAL
18074#  define LT_DLGLOBAL		RTLD_GLOBAL
18075#else
18076#  ifdef DL_GLOBAL
18077#    define LT_DLGLOBAL		DL_GLOBAL
18078#  else
18079#    define LT_DLGLOBAL		0
18080#  endif
18081#endif
18082
18083/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18084   find out it does not work in some platform. */
18085#ifndef LT_DLLAZY_OR_NOW
18086#  ifdef RTLD_LAZY
18087#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18088#  else
18089#    ifdef DL_LAZY
18090#      define LT_DLLAZY_OR_NOW		DL_LAZY
18091#    else
18092#      ifdef RTLD_NOW
18093#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18094#      else
18095#        ifdef DL_NOW
18096#          define LT_DLLAZY_OR_NOW	DL_NOW
18097#        else
18098#          define LT_DLLAZY_OR_NOW	0
18099#        endif
18100#      endif
18101#    endif
18102#  endif
18103#endif
18104
18105/* When -fvisibility=hidden is used, assume the code has been annotated
18106   correspondingly for the symbols needed.  */
18107#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18108int fnord () __attribute__((visibility("default")));
18109#endif
18110
18111int fnord () { return 42; }
18112int main ()
18113{
18114  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18115  int status = $lt_dlunknown;
18116
18117  if (self)
18118    {
18119      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18120      else
18121        {
18122	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18123          else puts (dlerror ());
18124	}
18125      /* dlclose (self); */
18126    }
18127  else
18128    puts (dlerror ());
18129
18130  return status;
18131}
18132_LT_EOF
18133  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18134  (eval $ac_link) 2>&5
18135  ac_status=$?
18136  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18137  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18138    (./conftest; exit; ) >&5 2>/dev/null
18139    lt_status=$?
18140    case x$lt_status in
18141      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18142      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18143      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18144    esac
18145  else :
18146    # compilation failed
18147    lt_cv_dlopen_self=no
18148  fi
18149fi
18150rm -fr conftest*
18151
18152
18153fi
18154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18155$as_echo "$lt_cv_dlopen_self" >&6; }
18156
18157    if test yes = "$lt_cv_dlopen_self"; then
18158      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18159      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18160$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18161if ${lt_cv_dlopen_self_static+:} false; then :
18162  $as_echo_n "(cached) " >&6
18163else
18164  	  if test yes = "$cross_compiling"; then :
18165  lt_cv_dlopen_self_static=cross
18166else
18167  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18168  lt_status=$lt_dlunknown
18169  cat > conftest.$ac_ext <<_LT_EOF
18170#line $LINENO "configure"
18171#include "confdefs.h"
18172
18173#if HAVE_DLFCN_H
18174#include <dlfcn.h>
18175#endif
18176
18177#include <stdio.h>
18178
18179#ifdef RTLD_GLOBAL
18180#  define LT_DLGLOBAL		RTLD_GLOBAL
18181#else
18182#  ifdef DL_GLOBAL
18183#    define LT_DLGLOBAL		DL_GLOBAL
18184#  else
18185#    define LT_DLGLOBAL		0
18186#  endif
18187#endif
18188
18189/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18190   find out it does not work in some platform. */
18191#ifndef LT_DLLAZY_OR_NOW
18192#  ifdef RTLD_LAZY
18193#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18194#  else
18195#    ifdef DL_LAZY
18196#      define LT_DLLAZY_OR_NOW		DL_LAZY
18197#    else
18198#      ifdef RTLD_NOW
18199#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18200#      else
18201#        ifdef DL_NOW
18202#          define LT_DLLAZY_OR_NOW	DL_NOW
18203#        else
18204#          define LT_DLLAZY_OR_NOW	0
18205#        endif
18206#      endif
18207#    endif
18208#  endif
18209#endif
18210
18211/* When -fvisibility=hidden is used, assume the code has been annotated
18212   correspondingly for the symbols needed.  */
18213#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18214int fnord () __attribute__((visibility("default")));
18215#endif
18216
18217int fnord () { return 42; }
18218int main ()
18219{
18220  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18221  int status = $lt_dlunknown;
18222
18223  if (self)
18224    {
18225      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18226      else
18227        {
18228	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18229          else puts (dlerror ());
18230	}
18231      /* dlclose (self); */
18232    }
18233  else
18234    puts (dlerror ());
18235
18236  return status;
18237}
18238_LT_EOF
18239  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18240  (eval $ac_link) 2>&5
18241  ac_status=$?
18242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18243  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18244    (./conftest; exit; ) >&5 2>/dev/null
18245    lt_status=$?
18246    case x$lt_status in
18247      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18248      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18249      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18250    esac
18251  else :
18252    # compilation failed
18253    lt_cv_dlopen_self_static=no
18254  fi
18255fi
18256rm -fr conftest*
18257
18258
18259fi
18260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18261$as_echo "$lt_cv_dlopen_self_static" >&6; }
18262    fi
18263
18264    CPPFLAGS=$save_CPPFLAGS
18265    LDFLAGS=$save_LDFLAGS
18266    LIBS=$save_LIBS
18267    ;;
18268  esac
18269
18270  case $lt_cv_dlopen_self in
18271  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18272  *) enable_dlopen_self=unknown ;;
18273  esac
18274
18275  case $lt_cv_dlopen_self_static in
18276  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18277  *) enable_dlopen_self_static=unknown ;;
18278  esac
18279fi
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297striplib=
18298old_striplib=
18299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18300$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18301if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18302  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18303  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18305$as_echo "yes" >&6; }
18306else
18307# FIXME - insert some real tests, host_os isn't really good enough
18308  case $host_os in
18309  darwin*)
18310    if test -n "$STRIP"; then
18311      striplib="$STRIP -x"
18312      old_striplib="$STRIP -S"
18313      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18314$as_echo "yes" >&6; }
18315    else
18316      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18317$as_echo "no" >&6; }
18318    fi
18319    ;;
18320  *)
18321    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18322$as_echo "no" >&6; }
18323    ;;
18324  esac
18325fi
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338  # Report what library types will actually be built
18339  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18340$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18342$as_echo "$can_build_shared" >&6; }
18343
18344  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18345$as_echo_n "checking whether to build shared libraries... " >&6; }
18346  test no = "$can_build_shared" && enable_shared=no
18347
18348  # On AIX, shared libraries and static libraries use the same namespace, and
18349  # are all built from PIC.
18350  case $host_os in
18351  aix3*)
18352    test yes = "$enable_shared" && enable_static=no
18353    if test -n "$RANLIB"; then
18354      archive_cmds="$archive_cmds~\$RANLIB \$lib"
18355      postinstall_cmds='$RANLIB $lib'
18356    fi
18357    ;;
18358
18359  aix[4-9]*)
18360    if test ia64 != "$host_cpu"; then
18361      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18362      yes,aix,yes) ;;			# shared object as lib.so file only
18363      yes,svr4,*) ;;			# shared object as lib.so archive member only
18364      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
18365      esac
18366    fi
18367    ;;
18368  esac
18369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18370$as_echo "$enable_shared" >&6; }
18371
18372  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18373$as_echo_n "checking whether to build static libraries... " >&6; }
18374  # Make sure either enable_shared or enable_static is yes.
18375  test yes = "$enable_shared" || enable_static=yes
18376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18377$as_echo "$enable_static" >&6; }
18378
18379
18380
18381
18382fi
18383ac_ext=c
18384ac_cpp='$CPP $CPPFLAGS'
18385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18387ac_compiler_gnu=$ac_cv_c_compiler_gnu
18388
18389CC=$lt_save_CC
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405        ac_config_commands="$ac_config_commands libtool"
18406
18407
18408
18409
18410# Only expand once:
18411
18412
18413
18414
18415
18416# Define a configure option for an alternate module directory
18417
18418# Check whether --with-xorg-module-dir was given.
18419if test "${with_xorg_module_dir+set}" = set; then :
18420  withval=$with_xorg_module_dir; moduledir="$withval"
18421else
18422  moduledir="$libdir/xorg/modules"
18423fi
18424
18425
18426# Store the list of server defined optional extensions in REQUIRED_MODULES
18427
18428
18429	SAVE_CFLAGS="$CFLAGS"
18430	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18431	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18432/* end confdefs.h.  */
18433
18434#include "xorg-server.h"
18435#if !defined RANDR
18436#error RANDR not defined
18437#endif
18438
18439int
18440main ()
18441{
18442
18443  ;
18444  return 0;
18445}
18446_ACEOF
18447if ac_fn_c_try_compile "$LINENO"; then :
18448  _EXT_CHECK=yes
18449else
18450  _EXT_CHECK=no
18451fi
18452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18453	CFLAGS="$SAVE_CFLAGS"
18454	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18455$as_echo_n "checking if RANDR is defined... " >&6; }
18456	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18457$as_echo "$_EXT_CHECK" >&6; }
18458	if test "$_EXT_CHECK" != no; then
18459		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18460	fi
18461
18462
18463
18464	SAVE_CFLAGS="$CFLAGS"
18465	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18466	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18467/* end confdefs.h.  */
18468
18469#include "xorg-server.h"
18470#if !defined RENDER
18471#error RENDER not defined
18472#endif
18473
18474int
18475main ()
18476{
18477
18478  ;
18479  return 0;
18480}
18481_ACEOF
18482if ac_fn_c_try_compile "$LINENO"; then :
18483  _EXT_CHECK=yes
18484else
18485  _EXT_CHECK=no
18486fi
18487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18488	CFLAGS="$SAVE_CFLAGS"
18489	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18490$as_echo_n "checking if RENDER is defined... " >&6; }
18491	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18492$as_echo "$_EXT_CHECK" >&6; }
18493	if test "$_EXT_CHECK" != no; then
18494		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18495	fi
18496
18497
18498
18499	SAVE_CFLAGS="$CFLAGS"
18500	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18501	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18502/* end confdefs.h.  */
18503
18504#include "xorg-server.h"
18505#if !defined XV
18506#error XV not defined
18507#endif
18508
18509int
18510main ()
18511{
18512
18513  ;
18514  return 0;
18515}
18516_ACEOF
18517if ac_fn_c_try_compile "$LINENO"; then :
18518  _EXT_CHECK=yes
18519else
18520  _EXT_CHECK=no
18521fi
18522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18523	CFLAGS="$SAVE_CFLAGS"
18524	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18525$as_echo_n "checking if XV is defined... " >&6; }
18526	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18527$as_echo "$_EXT_CHECK" >&6; }
18528	if test "$_EXT_CHECK" != no; then
18529		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18530	fi
18531
18532
18533
18534	SAVE_CFLAGS="$CFLAGS"
18535	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18536	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18537/* end confdefs.h.  */
18538
18539#include "xorg-server.h"
18540#if !defined DPMSExtension
18541#error DPMSExtension not defined
18542#endif
18543
18544int
18545main ()
18546{
18547
18548  ;
18549  return 0;
18550}
18551_ACEOF
18552if ac_fn_c_try_compile "$LINENO"; then :
18553  _EXT_CHECK=yes
18554else
18555  _EXT_CHECK=no
18556fi
18557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18558	CFLAGS="$SAVE_CFLAGS"
18559	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18560$as_echo_n "checking if DPMSExtension is defined... " >&6; }
18561	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18562$as_echo "$_EXT_CHECK" >&6; }
18563	if test "$_EXT_CHECK" != no; then
18564		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18565	fi
18566
18567
18568
18569	SAVE_CFLAGS="$CFLAGS"
18570	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18571	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18572/* end confdefs.h.  */
18573
18574#include "xorg-server.h"
18575#if !defined XFreeXDGA
18576#error XFreeXDGA not defined
18577#endif
18578
18579int
18580main ()
18581{
18582
18583  ;
18584  return 0;
18585}
18586_ACEOF
18587if ac_fn_c_try_compile "$LINENO"; then :
18588  _EXT_CHECK=yes
18589else
18590  _EXT_CHECK=no
18591fi
18592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18593	CFLAGS="$SAVE_CFLAGS"
18594	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XFreeXDGA is defined" >&5
18595$as_echo_n "checking if XFreeXDGA is defined... " >&6; }
18596	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18597$as_echo "$_EXT_CHECK" >&6; }
18598	if test "$_EXT_CHECK" != no; then
18599		REQUIRED_MODULES="$REQUIRED_MODULES xf86dgaproto"
18600	fi
18601
18602
18603# Obtain compiler/linker options for the driver dependencies
18604
18605pkg_failed=no
18606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18607$as_echo_n "checking for XORG... " >&6; }
18608
18609if test -n "$XORG_CFLAGS"; then
18610    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18611 elif test -n "$PKG_CONFIG"; then
18612    if test -n "$PKG_CONFIG" && \
18613    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18614  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18615  ac_status=$?
18616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18617  test $ac_status = 0; }; then
18618  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18619		      test "x$?" != "x0" && pkg_failed=yes
18620else
18621  pkg_failed=yes
18622fi
18623 else
18624    pkg_failed=untried
18625fi
18626if test -n "$XORG_LIBS"; then
18627    pkg_cv_XORG_LIBS="$XORG_LIBS"
18628 elif test -n "$PKG_CONFIG"; then
18629    if test -n "$PKG_CONFIG" && \
18630    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18631  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18632  ac_status=$?
18633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18634  test $ac_status = 0; }; then
18635  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18636		      test "x$?" != "x0" && pkg_failed=yes
18637else
18638  pkg_failed=yes
18639fi
18640 else
18641    pkg_failed=untried
18642fi
18643
18644
18645
18646if test $pkg_failed = yes; then
18647   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18648$as_echo "no" >&6; }
18649
18650if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18651        _pkg_short_errors_supported=yes
18652else
18653        _pkg_short_errors_supported=no
18654fi
18655        if test $_pkg_short_errors_supported = yes; then
18656	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18657        else
18658	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18659        fi
18660	# Put the nasty error message in config.log where it belongs
18661	echo "$XORG_PKG_ERRORS" >&5
18662
18663	as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
18664
18665$XORG_PKG_ERRORS
18666
18667Consider adjusting the PKG_CONFIG_PATH environment variable if you
18668installed software in a non-standard prefix.
18669
18670Alternatively, you may set the environment variables XORG_CFLAGS
18671and XORG_LIBS to avoid the need to call pkg-config.
18672See the pkg-config man page for more details." "$LINENO" 5
18673elif test $pkg_failed = untried; then
18674     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18675$as_echo "no" >&6; }
18676	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18678as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18679is in your PATH or set the PKG_CONFIG environment variable to the full
18680path to pkg-config.
18681
18682Alternatively, you may set the environment variables XORG_CFLAGS
18683and XORG_LIBS to avoid the need to call pkg-config.
18684See the pkg-config man page for more details.
18685
18686To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18687See \`config.log' for more details" "$LINENO" 5; }
18688else
18689	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18690	XORG_LIBS=$pkg_cv_XORG_LIBS
18691        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18692$as_echo "yes" >&6; }
18693
18694fi
18695
18696pkg_failed=no
18697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18698$as_echo_n "checking for XEXT... " >&6; }
18699
18700if test -n "$XEXT_CFLAGS"; then
18701    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18702 elif test -n "$PKG_CONFIG"; then
18703    if test -n "$PKG_CONFIG" && \
18704    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18705  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18706  ac_status=$?
18707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18708  test $ac_status = 0; }; then
18709  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18710		      test "x$?" != "x0" && pkg_failed=yes
18711else
18712  pkg_failed=yes
18713fi
18714 else
18715    pkg_failed=untried
18716fi
18717if test -n "$XEXT_LIBS"; then
18718    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18719 elif test -n "$PKG_CONFIG"; then
18720    if test -n "$PKG_CONFIG" && \
18721    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18722  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18723  ac_status=$?
18724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18725  test $ac_status = 0; }; then
18726  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18727		      test "x$?" != "x0" && pkg_failed=yes
18728else
18729  pkg_failed=yes
18730fi
18731 else
18732    pkg_failed=untried
18733fi
18734
18735
18736
18737if test $pkg_failed = yes; then
18738   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18739$as_echo "no" >&6; }
18740
18741if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18742        _pkg_short_errors_supported=yes
18743else
18744        _pkg_short_errors_supported=no
18745fi
18746        if test $_pkg_short_errors_supported = yes; then
18747	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18748        else
18749	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18750        fi
18751	# Put the nasty error message in config.log where it belongs
18752	echo "$XEXT_PKG_ERRORS" >&5
18753
18754	HAVE_XEXTPROTO_71="no"
18755elif test $pkg_failed = untried; then
18756     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18757$as_echo "no" >&6; }
18758	HAVE_XEXTPROTO_71="no"
18759else
18760	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18761	XEXT_LIBS=$pkg_cv_XEXT_LIBS
18762        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18763$as_echo "yes" >&6; }
18764	HAVE_XEXTPROTO_71="yes";
18765$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18766
18767fi
18768 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
18769  HAVE_XEXTPROTO_71_TRUE=
18770  HAVE_XEXTPROTO_71_FALSE='#'
18771else
18772  HAVE_XEXTPROTO_71_TRUE='#'
18773  HAVE_XEXTPROTO_71_FALSE=
18774fi
18775
18776
18777save_CFLAGS="$CFLAGS"
18778CFLAGS="$XORG_CFLAGS"
18779ac_fn_c_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\"
18780"
18781if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes; then :
18782
18783$as_echo "#define HAVE_ISA 1" >>confdefs.h
18784
18785fi
18786
18787CFLAGS="$save_CFLAGS"
18788
18789SAVE_CPPFLAGS="$CPPFLAGS"
18790CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18791ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18792"
18793if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18794  XSERVER_LIBPCIACCESS=yes
18795else
18796  XSERVER_LIBPCIACCESS=no
18797fi
18798
18799CPPFLAGS="$SAVE_CPPFLAGS"
18800
18801# Check whether --enable-xaa was given.
18802if test "${enable_xaa+set}" = set; then :
18803  enableval=$enable_xaa; XAA="$enableval"
18804else
18805  XAA=auto
18806fi
18807
18808if test "x$XAA" != xno; then
18809        save_CFLAGS=$CFLAGS
18810        save_CPPFLAGS=$CPPFLAGS
18811        CFLAGS=$XORG_CFLAGS
18812        CPPFLAGS="$XORG_CFLAGS"
18813        for ac_header in xaa.h
18814do :
18815  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18816if test "x$ac_cv_header_xaa_h" = xyes; then :
18817  cat >>confdefs.h <<_ACEOF
18818#define HAVE_XAA_H 1
18819_ACEOF
18820 XAA=yes
18821else
18822  XAA=no
18823fi
18824
18825done
18826
18827        CFLAGS=$save_CFLAGS
18828        CPPFLAGS=$save_CPPFLAGS
18829fi
18830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18831$as_echo_n "checking whether to include XAA support... " >&6; }
18832 if test "x$XAA" = xyes; then
18833  XAA_TRUE=
18834  XAA_FALSE='#'
18835else
18836  XAA_TRUE='#'
18837  XAA_FALSE=
18838fi
18839
18840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18841$as_echo "$XAA" >&6; }
18842
18843if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18844
18845pkg_failed=no
18846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18847$as_echo_n "checking for PCIACCESS... " >&6; }
18848
18849if test -n "$PCIACCESS_CFLAGS"; then
18850    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18851 elif test -n "$PKG_CONFIG"; then
18852    if test -n "$PKG_CONFIG" && \
18853    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18854  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18855  ac_status=$?
18856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18857  test $ac_status = 0; }; then
18858  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18859		      test "x$?" != "x0" && pkg_failed=yes
18860else
18861  pkg_failed=yes
18862fi
18863 else
18864    pkg_failed=untried
18865fi
18866if test -n "$PCIACCESS_LIBS"; then
18867    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18868 elif test -n "$PKG_CONFIG"; then
18869    if test -n "$PKG_CONFIG" && \
18870    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18871  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18872  ac_status=$?
18873  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18874  test $ac_status = 0; }; then
18875  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18876		      test "x$?" != "x0" && pkg_failed=yes
18877else
18878  pkg_failed=yes
18879fi
18880 else
18881    pkg_failed=untried
18882fi
18883
18884
18885
18886if test $pkg_failed = yes; then
18887   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18888$as_echo "no" >&6; }
18889
18890if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18891        _pkg_short_errors_supported=yes
18892else
18893        _pkg_short_errors_supported=no
18894fi
18895        if test $_pkg_short_errors_supported = yes; then
18896	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18897        else
18898	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18899        fi
18900	# Put the nasty error message in config.log where it belongs
18901	echo "$PCIACCESS_PKG_ERRORS" >&5
18902
18903	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18904
18905$PCIACCESS_PKG_ERRORS
18906
18907Consider adjusting the PKG_CONFIG_PATH environment variable if you
18908installed software in a non-standard prefix.
18909
18910Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18911and PCIACCESS_LIBS to avoid the need to call pkg-config.
18912See the pkg-config man page for more details." "$LINENO" 5
18913elif test $pkg_failed = untried; then
18914     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18915$as_echo "no" >&6; }
18916	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18918as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18919is in your PATH or set the PKG_CONFIG environment variable to the full
18920path to pkg-config.
18921
18922Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18923and PCIACCESS_LIBS to avoid the need to call pkg-config.
18924See the pkg-config man page for more details.
18925
18926To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18927See \`config.log' for more details" "$LINENO" 5; }
18928else
18929	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18930	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18931        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18932$as_echo "yes" >&6; }
18933
18934fi
18935    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18936fi
18937 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18938  XSERVER_LIBPCIACCESS_TRUE=
18939  XSERVER_LIBPCIACCESS_FALSE='#'
18940else
18941  XSERVER_LIBPCIACCESS_TRUE='#'
18942  XSERVER_LIBPCIACCESS_FALSE=
18943fi
18944
18945
18946# Checks for libraries.
18947
18948
18949
18950DRIVER_NAME=trident
18951
18952
18953ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18954
18955cat >confcache <<\_ACEOF
18956# This file is a shell script that caches the results of configure
18957# tests run on this system so they can be shared between configure
18958# scripts and configure runs, see configure's option --config-cache.
18959# It is not useful on other systems.  If it contains results you don't
18960# want to keep, you may remove or edit it.
18961#
18962# config.status only pays attention to the cache file if you give it
18963# the --recheck option to rerun configure.
18964#
18965# `ac_cv_env_foo' variables (set or unset) will be overridden when
18966# loading this file, other *unset* `ac_cv_foo' will be assigned the
18967# following values.
18968
18969_ACEOF
18970
18971# The following way of writing the cache mishandles newlines in values,
18972# but we know of no workaround that is simple, portable, and efficient.
18973# So, we kill variables containing newlines.
18974# Ultrix sh set writes to stderr and can't be redirected directly,
18975# and sets the high bit in the cache file unless we assign to the vars.
18976(
18977  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18978    eval ac_val=\$$ac_var
18979    case $ac_val in #(
18980    *${as_nl}*)
18981      case $ac_var in #(
18982      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18983$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18984      esac
18985      case $ac_var in #(
18986      _ | IFS | as_nl) ;; #(
18987      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18988      *) { eval $ac_var=; unset $ac_var;} ;;
18989      esac ;;
18990    esac
18991  done
18992
18993  (set) 2>&1 |
18994    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18995    *${as_nl}ac_space=\ *)
18996      # `set' does not quote correctly, so add quotes: double-quote
18997      # substitution turns \\\\ into \\, and sed turns \\ into \.
18998      sed -n \
18999	"s/'/'\\\\''/g;
19000	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19001      ;; #(
19002    *)
19003      # `set' quotes correctly as required by POSIX, so do not add quotes.
19004      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19005      ;;
19006    esac |
19007    sort
19008) |
19009  sed '
19010     /^ac_cv_env_/b end
19011     t clear
19012     :clear
19013     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19014     t end
19015     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19016     :end' >>confcache
19017if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19018  if test -w "$cache_file"; then
19019    if test "x$cache_file" != "x/dev/null"; then
19020      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19021$as_echo "$as_me: updating cache $cache_file" >&6;}
19022      if test ! -f "$cache_file" || test -h "$cache_file"; then
19023	cat confcache >"$cache_file"
19024      else
19025        case $cache_file in #(
19026        */* | ?:*)
19027	  mv -f confcache "$cache_file"$$ &&
19028	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19029        *)
19030	  mv -f confcache "$cache_file" ;;
19031	esac
19032      fi
19033    fi
19034  else
19035    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19036$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19037  fi
19038fi
19039rm -f confcache
19040
19041test "x$prefix" = xNONE && prefix=$ac_default_prefix
19042# Let make expand exec_prefix.
19043test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19044
19045DEFS=-DHAVE_CONFIG_H
19046
19047ac_libobjs=
19048ac_ltlibobjs=
19049U=
19050for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19051  # 1. Remove the extension, and $U if already installed.
19052  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19053  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19054  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19055  #    will be set to the directory where LIBOBJS objects are built.
19056  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19057  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19058done
19059LIBOBJS=$ac_libobjs
19060
19061LTLIBOBJS=$ac_ltlibobjs
19062
19063
19064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19065$as_echo_n "checking that generated files are newer than configure... " >&6; }
19066   if test -n "$am_sleep_pid"; then
19067     # Hide warnings about reused PIDs.
19068     wait $am_sleep_pid 2>/dev/null
19069   fi
19070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19071$as_echo "done" >&6; }
19072 if test -n "$EXEEXT"; then
19073  am__EXEEXT_TRUE=
19074  am__EXEEXT_FALSE='#'
19075else
19076  am__EXEEXT_TRUE='#'
19077  am__EXEEXT_FALSE=
19078fi
19079
19080if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19081  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19082Usually this means the macro was only invoked conditionally." "$LINENO" 5
19083fi
19084if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19085  as_fn_error $? "conditional \"AMDEP\" was never defined.
19086Usually this means the macro was only invoked conditionally." "$LINENO" 5
19087fi
19088if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19089  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19090Usually this means the macro was only invoked conditionally." "$LINENO" 5
19091fi
19092if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
19093  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
19094Usually this means the macro was only invoked conditionally." "$LINENO" 5
19095fi
19096if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19097  as_fn_error $? "conditional \"XAA\" was never defined.
19098Usually this means the macro was only invoked conditionally." "$LINENO" 5
19099fi
19100if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19101  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19102Usually this means the macro was only invoked conditionally." "$LINENO" 5
19103fi
19104
19105: "${CONFIG_STATUS=./config.status}"
19106ac_write_fail=0
19107ac_clean_files_save=$ac_clean_files
19108ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19109{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19110$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19111as_write_fail=0
19112cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19113#! $SHELL
19114# Generated by $as_me.
19115# Run this file to recreate the current configuration.
19116# Compiler output produced by configure, useful for debugging
19117# configure, is in config.log if it exists.
19118
19119debug=false
19120ac_cs_recheck=false
19121ac_cs_silent=false
19122
19123SHELL=\${CONFIG_SHELL-$SHELL}
19124export SHELL
19125_ASEOF
19126cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19127## -------------------- ##
19128## M4sh Initialization. ##
19129## -------------------- ##
19130
19131# Be more Bourne compatible
19132DUALCASE=1; export DUALCASE # for MKS sh
19133if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19134  emulate sh
19135  NULLCMD=:
19136  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19137  # is contrary to our usage.  Disable this feature.
19138  alias -g '${1+"$@"}'='"$@"'
19139  setopt NO_GLOB_SUBST
19140else
19141  case `(set -o) 2>/dev/null` in #(
19142  *posix*) :
19143    set -o posix ;; #(
19144  *) :
19145     ;;
19146esac
19147fi
19148
19149
19150as_nl='
19151'
19152export as_nl
19153# Printing a long string crashes Solaris 7 /usr/bin/printf.
19154as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19155as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19156as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19157# Prefer a ksh shell builtin over an external printf program on Solaris,
19158# but without wasting forks for bash or zsh.
19159if test -z "$BASH_VERSION$ZSH_VERSION" \
19160    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19161  as_echo='print -r --'
19162  as_echo_n='print -rn --'
19163elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19164  as_echo='printf %s\n'
19165  as_echo_n='printf %s'
19166else
19167  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19168    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19169    as_echo_n='/usr/ucb/echo -n'
19170  else
19171    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19172    as_echo_n_body='eval
19173      arg=$1;
19174      case $arg in #(
19175      *"$as_nl"*)
19176	expr "X$arg" : "X\\(.*\\)$as_nl";
19177	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19178      esac;
19179      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19180    '
19181    export as_echo_n_body
19182    as_echo_n='sh -c $as_echo_n_body as_echo'
19183  fi
19184  export as_echo_body
19185  as_echo='sh -c $as_echo_body as_echo'
19186fi
19187
19188# The user is always right.
19189if test "${PATH_SEPARATOR+set}" != set; then
19190  PATH_SEPARATOR=:
19191  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19192    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19193      PATH_SEPARATOR=';'
19194  }
19195fi
19196
19197
19198# IFS
19199# We need space, tab and new line, in precisely that order.  Quoting is
19200# there to prevent editors from complaining about space-tab.
19201# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19202# splitting by setting IFS to empty value.)
19203IFS=" ""	$as_nl"
19204
19205# Find who we are.  Look in the path if we contain no directory separator.
19206as_myself=
19207case $0 in #((
19208  *[\\/]* ) as_myself=$0 ;;
19209  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19210for as_dir in $PATH
19211do
19212  IFS=$as_save_IFS
19213  test -z "$as_dir" && as_dir=.
19214    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19215  done
19216IFS=$as_save_IFS
19217
19218     ;;
19219esac
19220# We did not find ourselves, most probably we were run as `sh COMMAND'
19221# in which case we are not to be found in the path.
19222if test "x$as_myself" = x; then
19223  as_myself=$0
19224fi
19225if test ! -f "$as_myself"; then
19226  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19227  exit 1
19228fi
19229
19230# Unset variables that we do not need and which cause bugs (e.g. in
19231# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19232# suppresses any "Segmentation fault" message there.  '((' could
19233# trigger a bug in pdksh 5.2.14.
19234for as_var in BASH_ENV ENV MAIL MAILPATH
19235do eval test x\${$as_var+set} = xset \
19236  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19237done
19238PS1='$ '
19239PS2='> '
19240PS4='+ '
19241
19242# NLS nuisances.
19243LC_ALL=C
19244export LC_ALL
19245LANGUAGE=C
19246export LANGUAGE
19247
19248# CDPATH.
19249(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19250
19251
19252# as_fn_error STATUS ERROR [LINENO LOG_FD]
19253# ----------------------------------------
19254# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19255# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19256# script with STATUS, using 1 if that was 0.
19257as_fn_error ()
19258{
19259  as_status=$1; test $as_status -eq 0 && as_status=1
19260  if test "$4"; then
19261    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19262    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19263  fi
19264  $as_echo "$as_me: error: $2" >&2
19265  as_fn_exit $as_status
19266} # as_fn_error
19267
19268
19269# as_fn_set_status STATUS
19270# -----------------------
19271# Set $? to STATUS, without forking.
19272as_fn_set_status ()
19273{
19274  return $1
19275} # as_fn_set_status
19276
19277# as_fn_exit STATUS
19278# -----------------
19279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19280as_fn_exit ()
19281{
19282  set +e
19283  as_fn_set_status $1
19284  exit $1
19285} # as_fn_exit
19286
19287# as_fn_unset VAR
19288# ---------------
19289# Portably unset VAR.
19290as_fn_unset ()
19291{
19292  { eval $1=; unset $1;}
19293}
19294as_unset=as_fn_unset
19295# as_fn_append VAR VALUE
19296# ----------------------
19297# Append the text in VALUE to the end of the definition contained in VAR. Take
19298# advantage of any shell optimizations that allow amortized linear growth over
19299# repeated appends, instead of the typical quadratic growth present in naive
19300# implementations.
19301if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19302  eval 'as_fn_append ()
19303  {
19304    eval $1+=\$2
19305  }'
19306else
19307  as_fn_append ()
19308  {
19309    eval $1=\$$1\$2
19310  }
19311fi # as_fn_append
19312
19313# as_fn_arith ARG...
19314# ------------------
19315# Perform arithmetic evaluation on the ARGs, and store the result in the
19316# global $as_val. Take advantage of shells that can avoid forks. The arguments
19317# must be portable across $(()) and expr.
19318if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19319  eval 'as_fn_arith ()
19320  {
19321    as_val=$(( $* ))
19322  }'
19323else
19324  as_fn_arith ()
19325  {
19326    as_val=`expr "$@" || test $? -eq 1`
19327  }
19328fi # as_fn_arith
19329
19330
19331if expr a : '\(a\)' >/dev/null 2>&1 &&
19332   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19333  as_expr=expr
19334else
19335  as_expr=false
19336fi
19337
19338if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19339  as_basename=basename
19340else
19341  as_basename=false
19342fi
19343
19344if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19345  as_dirname=dirname
19346else
19347  as_dirname=false
19348fi
19349
19350as_me=`$as_basename -- "$0" ||
19351$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19352	 X"$0" : 'X\(//\)$' \| \
19353	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19354$as_echo X/"$0" |
19355    sed '/^.*\/\([^/][^/]*\)\/*$/{
19356	    s//\1/
19357	    q
19358	  }
19359	  /^X\/\(\/\/\)$/{
19360	    s//\1/
19361	    q
19362	  }
19363	  /^X\/\(\/\).*/{
19364	    s//\1/
19365	    q
19366	  }
19367	  s/.*/./; q'`
19368
19369# Avoid depending upon Character Ranges.
19370as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19371as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19372as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19373as_cr_digits='0123456789'
19374as_cr_alnum=$as_cr_Letters$as_cr_digits
19375
19376ECHO_C= ECHO_N= ECHO_T=
19377case `echo -n x` in #(((((
19378-n*)
19379  case `echo 'xy\c'` in
19380  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19381  xy)  ECHO_C='\c';;
19382  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19383       ECHO_T='	';;
19384  esac;;
19385*)
19386  ECHO_N='-n';;
19387esac
19388
19389rm -f conf$$ conf$$.exe conf$$.file
19390if test -d conf$$.dir; then
19391  rm -f conf$$.dir/conf$$.file
19392else
19393  rm -f conf$$.dir
19394  mkdir conf$$.dir 2>/dev/null
19395fi
19396if (echo >conf$$.file) 2>/dev/null; then
19397  if ln -s conf$$.file conf$$ 2>/dev/null; then
19398    as_ln_s='ln -s'
19399    # ... but there are two gotchas:
19400    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19401    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19402    # In both cases, we have to default to `cp -pR'.
19403    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19404      as_ln_s='cp -pR'
19405  elif ln conf$$.file conf$$ 2>/dev/null; then
19406    as_ln_s=ln
19407  else
19408    as_ln_s='cp -pR'
19409  fi
19410else
19411  as_ln_s='cp -pR'
19412fi
19413rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19414rmdir conf$$.dir 2>/dev/null
19415
19416
19417# as_fn_mkdir_p
19418# -------------
19419# Create "$as_dir" as a directory, including parents if necessary.
19420as_fn_mkdir_p ()
19421{
19422
19423  case $as_dir in #(
19424  -*) as_dir=./$as_dir;;
19425  esac
19426  test -d "$as_dir" || eval $as_mkdir_p || {
19427    as_dirs=
19428    while :; do
19429      case $as_dir in #(
19430      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19431      *) as_qdir=$as_dir;;
19432      esac
19433      as_dirs="'$as_qdir' $as_dirs"
19434      as_dir=`$as_dirname -- "$as_dir" ||
19435$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19436	 X"$as_dir" : 'X\(//\)[^/]' \| \
19437	 X"$as_dir" : 'X\(//\)$' \| \
19438	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19439$as_echo X"$as_dir" |
19440    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19441	    s//\1/
19442	    q
19443	  }
19444	  /^X\(\/\/\)[^/].*/{
19445	    s//\1/
19446	    q
19447	  }
19448	  /^X\(\/\/\)$/{
19449	    s//\1/
19450	    q
19451	  }
19452	  /^X\(\/\).*/{
19453	    s//\1/
19454	    q
19455	  }
19456	  s/.*/./; q'`
19457      test -d "$as_dir" && break
19458    done
19459    test -z "$as_dirs" || eval "mkdir $as_dirs"
19460  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19461
19462
19463} # as_fn_mkdir_p
19464if mkdir -p . 2>/dev/null; then
19465  as_mkdir_p='mkdir -p "$as_dir"'
19466else
19467  test -d ./-p && rmdir ./-p
19468  as_mkdir_p=false
19469fi
19470
19471
19472# as_fn_executable_p FILE
19473# -----------------------
19474# Test if FILE is an executable regular file.
19475as_fn_executable_p ()
19476{
19477  test -f "$1" && test -x "$1"
19478} # as_fn_executable_p
19479as_test_x='test -x'
19480as_executable_p=as_fn_executable_p
19481
19482# Sed expression to map a string onto a valid CPP name.
19483as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19484
19485# Sed expression to map a string onto a valid variable name.
19486as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19487
19488
19489exec 6>&1
19490## ----------------------------------- ##
19491## Main body of $CONFIG_STATUS script. ##
19492## ----------------------------------- ##
19493_ASEOF
19494test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19495
19496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19497# Save the log message, to keep $0 and so on meaningful, and to
19498# report actual input values of CONFIG_FILES etc. instead of their
19499# values after options handling.
19500ac_log="
19501This file was extended by xf86-video-trident $as_me 1.3.7, which was
19502generated by GNU Autoconf 2.69.  Invocation command line was
19503
19504  CONFIG_FILES    = $CONFIG_FILES
19505  CONFIG_HEADERS  = $CONFIG_HEADERS
19506  CONFIG_LINKS    = $CONFIG_LINKS
19507  CONFIG_COMMANDS = $CONFIG_COMMANDS
19508  $ $0 $@
19509
19510on `(hostname || uname -n) 2>/dev/null | sed 1q`
19511"
19512
19513_ACEOF
19514
19515case $ac_config_files in *"
19516"*) set x $ac_config_files; shift; ac_config_files=$*;;
19517esac
19518
19519case $ac_config_headers in *"
19520"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19521esac
19522
19523
19524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19525# Files that config.status was made for.
19526config_files="$ac_config_files"
19527config_headers="$ac_config_headers"
19528config_commands="$ac_config_commands"
19529
19530_ACEOF
19531
19532cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19533ac_cs_usage="\
19534\`$as_me' instantiates files and other configuration actions
19535from templates according to the current configuration.  Unless the files
19536and actions are specified as TAGs, all are instantiated by default.
19537
19538Usage: $0 [OPTION]... [TAG]...
19539
19540  -h, --help       print this help, then exit
19541  -V, --version    print version number and configuration settings, then exit
19542      --config     print configuration, then exit
19543  -q, --quiet, --silent
19544                   do not print progress messages
19545  -d, --debug      don't remove temporary files
19546      --recheck    update $as_me by reconfiguring in the same conditions
19547      --file=FILE[:TEMPLATE]
19548                   instantiate the configuration file FILE
19549      --header=FILE[:TEMPLATE]
19550                   instantiate the configuration header FILE
19551
19552Configuration files:
19553$config_files
19554
19555Configuration headers:
19556$config_headers
19557
19558Configuration commands:
19559$config_commands
19560
19561Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19562
19563_ACEOF
19564cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19565ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19566ac_cs_version="\\
19567xf86-video-trident config.status 1.3.7
19568configured by $0, generated by GNU Autoconf 2.69,
19569  with options \\"\$ac_cs_config\\"
19570
19571Copyright (C) 2012 Free Software Foundation, Inc.
19572This config.status script is free software; the Free Software Foundation
19573gives unlimited permission to copy, distribute and modify it."
19574
19575ac_pwd='$ac_pwd'
19576srcdir='$srcdir'
19577INSTALL='$INSTALL'
19578MKDIR_P='$MKDIR_P'
19579AWK='$AWK'
19580test -n "\$AWK" || AWK=awk
19581_ACEOF
19582
19583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19584# The default lists apply if the user does not specify any file.
19585ac_need_defaults=:
19586while test $# != 0
19587do
19588  case $1 in
19589  --*=?*)
19590    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19591    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19592    ac_shift=:
19593    ;;
19594  --*=)
19595    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19596    ac_optarg=
19597    ac_shift=:
19598    ;;
19599  *)
19600    ac_option=$1
19601    ac_optarg=$2
19602    ac_shift=shift
19603    ;;
19604  esac
19605
19606  case $ac_option in
19607  # Handling of the options.
19608  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19609    ac_cs_recheck=: ;;
19610  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19611    $as_echo "$ac_cs_version"; exit ;;
19612  --config | --confi | --conf | --con | --co | --c )
19613    $as_echo "$ac_cs_config"; exit ;;
19614  --debug | --debu | --deb | --de | --d | -d )
19615    debug=: ;;
19616  --file | --fil | --fi | --f )
19617    $ac_shift
19618    case $ac_optarg in
19619    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19620    '') as_fn_error $? "missing file argument" ;;
19621    esac
19622    as_fn_append CONFIG_FILES " '$ac_optarg'"
19623    ac_need_defaults=false;;
19624  --header | --heade | --head | --hea )
19625    $ac_shift
19626    case $ac_optarg in
19627    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19628    esac
19629    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19630    ac_need_defaults=false;;
19631  --he | --h)
19632    # Conflict between --help and --header
19633    as_fn_error $? "ambiguous option: \`$1'
19634Try \`$0 --help' for more information.";;
19635  --help | --hel | -h )
19636    $as_echo "$ac_cs_usage"; exit ;;
19637  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19638  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19639    ac_cs_silent=: ;;
19640
19641  # This is an error.
19642  -*) as_fn_error $? "unrecognized option: \`$1'
19643Try \`$0 --help' for more information." ;;
19644
19645  *) as_fn_append ac_config_targets " $1"
19646     ac_need_defaults=false ;;
19647
19648  esac
19649  shift
19650done
19651
19652ac_configure_extra_args=
19653
19654if $ac_cs_silent; then
19655  exec 6>/dev/null
19656  ac_configure_extra_args="$ac_configure_extra_args --silent"
19657fi
19658
19659_ACEOF
19660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19661if \$ac_cs_recheck; then
19662  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19663  shift
19664  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19665  CONFIG_SHELL='$SHELL'
19666  export CONFIG_SHELL
19667  exec "\$@"
19668fi
19669
19670_ACEOF
19671cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19672exec 5>>config.log
19673{
19674  echo
19675  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19676## Running $as_me. ##
19677_ASBOX
19678  $as_echo "$ac_log"
19679} >&5
19680
19681_ACEOF
19682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19683#
19684# INIT-COMMANDS
19685#
19686AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19687
19688
19689# The HP-UX ksh and POSIX shell print the target directory to stdout
19690# if CDPATH is set.
19691(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19692
19693sed_quote_subst='$sed_quote_subst'
19694double_quote_subst='$double_quote_subst'
19695delay_variable_subst='$delay_variable_subst'
19696enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19697macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19698macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19699enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19700pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19701enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19702shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19703SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19704ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19705PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19706host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19707host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19708host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19709build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19710build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19711build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19712SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19713Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19714GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19715EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19716FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19717LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19718NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19719LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19720max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19721ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19722exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19723lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19724lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19725lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19726lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19727lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19728reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19729reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19730OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19731deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19732file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19733file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19734want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19735DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19736sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19737AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19738AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19739archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19740STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19741RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19742old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19743old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19744old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19745lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19746CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19747CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19748compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19749GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19750lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19751lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19752lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19753lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19754lt_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"`'
19755lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19756nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19757lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19758lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19759objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19760MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19761lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19762lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19763lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19764lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19765lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19766need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19767MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19768DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19769NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19770LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19771OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19772OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19773libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19774shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19775extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19776archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19777enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19778export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19779whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19780compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19781old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19782old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19783archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19784archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19785module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19786module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19787with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19788allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19789no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19790hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19791hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19792hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19793hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19794hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19795hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19796hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19797inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19798link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19799always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19800export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19801exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19802include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19803prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19804postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19805file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19806variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19807need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19808need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19809version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19810runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19811shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19812shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19813libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19814library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19815soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19816install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19817postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19818postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19819finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19820finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19821hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19822sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19823sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19824hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19825enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19826enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19827enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19828old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19829striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19830
19831LTCC='$LTCC'
19832LTCFLAGS='$LTCFLAGS'
19833compiler='$compiler_DEFAULT'
19834
19835# A function that is used when there is no print builtin or printf.
19836func_fallback_echo ()
19837{
19838  eval 'cat <<_LTECHO_EOF
19839\$1
19840_LTECHO_EOF'
19841}
19842
19843# Quote evaled strings.
19844for var in SHELL \
19845ECHO \
19846PATH_SEPARATOR \
19847SED \
19848GREP \
19849EGREP \
19850FGREP \
19851LD \
19852NM \
19853LN_S \
19854lt_SP2NL \
19855lt_NL2SP \
19856reload_flag \
19857OBJDUMP \
19858deplibs_check_method \
19859file_magic_cmd \
19860file_magic_glob \
19861want_nocaseglob \
19862DLLTOOL \
19863sharedlib_from_linklib_cmd \
19864AR \
19865AR_FLAGS \
19866archiver_list_spec \
19867STRIP \
19868RANLIB \
19869CC \
19870CFLAGS \
19871compiler \
19872lt_cv_sys_global_symbol_pipe \
19873lt_cv_sys_global_symbol_to_cdecl \
19874lt_cv_sys_global_symbol_to_import \
19875lt_cv_sys_global_symbol_to_c_name_address \
19876lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19877lt_cv_nm_interface \
19878nm_file_list_spec \
19879lt_cv_truncate_bin \
19880lt_prog_compiler_no_builtin_flag \
19881lt_prog_compiler_pic \
19882lt_prog_compiler_wl \
19883lt_prog_compiler_static \
19884lt_cv_prog_compiler_c_o \
19885need_locks \
19886MANIFEST_TOOL \
19887DSYMUTIL \
19888NMEDIT \
19889LIPO \
19890OTOOL \
19891OTOOL64 \
19892shrext_cmds \
19893export_dynamic_flag_spec \
19894whole_archive_flag_spec \
19895compiler_needs_object \
19896with_gnu_ld \
19897allow_undefined_flag \
19898no_undefined_flag \
19899hardcode_libdir_flag_spec \
19900hardcode_libdir_separator \
19901exclude_expsyms \
19902include_expsyms \
19903file_list_spec \
19904variables_saved_for_relink \
19905libname_spec \
19906library_names_spec \
19907soname_spec \
19908install_override_mode \
19909finish_eval \
19910old_striplib \
19911striplib; do
19912    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19913    *[\\\\\\\`\\"\\\$]*)
19914      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19915      ;;
19916    *)
19917      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19918      ;;
19919    esac
19920done
19921
19922# Double-quote double-evaled strings.
19923for var in reload_cmds \
19924old_postinstall_cmds \
19925old_postuninstall_cmds \
19926old_archive_cmds \
19927extract_expsyms_cmds \
19928old_archive_from_new_cmds \
19929old_archive_from_expsyms_cmds \
19930archive_cmds \
19931archive_expsym_cmds \
19932module_cmds \
19933module_expsym_cmds \
19934export_symbols_cmds \
19935prelink_cmds \
19936postlink_cmds \
19937postinstall_cmds \
19938postuninstall_cmds \
19939finish_cmds \
19940sys_lib_search_path_spec \
19941sys_lib_dlsearch_path_spec; do
19942    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19943    *[\\\\\\\`\\"\\\$]*)
19944      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19945      ;;
19946    *)
19947      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19948      ;;
19949    esac
19950done
19951
19952ac_aux_dir='$ac_aux_dir'
19953
19954# See if we are running on zsh, and set the options that allow our
19955# commands through without removal of \ escapes INIT.
19956if test -n "\${ZSH_VERSION+set}"; then
19957   setopt NO_GLOB_SUBST
19958fi
19959
19960
19961    PACKAGE='$PACKAGE'
19962    VERSION='$VERSION'
19963    RM='$RM'
19964    ofile='$ofile'
19965
19966
19967
19968
19969_ACEOF
19970
19971cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19972
19973# Handling of arguments.
19974for ac_config_target in $ac_config_targets
19975do
19976  case $ac_config_target in
19977    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19978    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19979    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19980    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19981    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19982    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19983
19984  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19985  esac
19986done
19987
19988
19989# If the user did not use the arguments to specify the items to instantiate,
19990# then the envvar interface is used.  Set only those that are not.
19991# We use the long form for the default assignment because of an extremely
19992# bizarre bug on SunOS 4.1.3.
19993if $ac_need_defaults; then
19994  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19995  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19996  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19997fi
19998
19999# Have a temporary directory for convenience.  Make it in the build tree
20000# simply because there is no reason against having it here, and in addition,
20001# creating and moving files from /tmp can sometimes cause problems.
20002# Hook for its removal unless debugging.
20003# Note that there is a small window in which the directory will not be cleaned:
20004# after its creation but before its name has been assigned to `$tmp'.
20005$debug ||
20006{
20007  tmp= ac_tmp=
20008  trap 'exit_status=$?
20009  : "${ac_tmp:=$tmp}"
20010  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20011' 0
20012  trap 'as_fn_exit 1' 1 2 13 15
20013}
20014# Create a (secure) tmp directory for tmp files.
20015
20016{
20017  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20018  test -d "$tmp"
20019}  ||
20020{
20021  tmp=./conf$$-$RANDOM
20022  (umask 077 && mkdir "$tmp")
20023} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20024ac_tmp=$tmp
20025
20026# Set up the scripts for CONFIG_FILES section.
20027# No need to generate them if there are no CONFIG_FILES.
20028# This happens for instance with `./config.status config.h'.
20029if test -n "$CONFIG_FILES"; then
20030
20031
20032ac_cr=`echo X | tr X '\015'`
20033# On cygwin, bash can eat \r inside `` if the user requested igncr.
20034# But we know of no other shell where ac_cr would be empty at this
20035# point, so we can use a bashism as a fallback.
20036if test "x$ac_cr" = x; then
20037  eval ac_cr=\$\'\\r\'
20038fi
20039ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20040if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20041  ac_cs_awk_cr='\\r'
20042else
20043  ac_cs_awk_cr=$ac_cr
20044fi
20045
20046echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20047_ACEOF
20048
20049
20050{
20051  echo "cat >conf$$subs.awk <<_ACEOF" &&
20052  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20053  echo "_ACEOF"
20054} >conf$$subs.sh ||
20055  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20056ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20057ac_delim='%!_!# '
20058for ac_last_try in false false false false false :; do
20059  . ./conf$$subs.sh ||
20060    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20061
20062  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20063  if test $ac_delim_n = $ac_delim_num; then
20064    break
20065  elif $ac_last_try; then
20066    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20067  else
20068    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20069  fi
20070done
20071rm -f conf$$subs.sh
20072
20073cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20074cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20075_ACEOF
20076sed -n '
20077h
20078s/^/S["/; s/!.*/"]=/
20079p
20080g
20081s/^[^!]*!//
20082:repl
20083t repl
20084s/'"$ac_delim"'$//
20085t delim
20086:nl
20087h
20088s/\(.\{148\}\)..*/\1/
20089t more1
20090s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20091p
20092n
20093b repl
20094:more1
20095s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20096p
20097g
20098s/.\{148\}//
20099t nl
20100:delim
20101h
20102s/\(.\{148\}\)..*/\1/
20103t more2
20104s/["\\]/\\&/g; s/^/"/; s/$/"/
20105p
20106b
20107:more2
20108s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20109p
20110g
20111s/.\{148\}//
20112t delim
20113' <conf$$subs.awk | sed '
20114/^[^""]/{
20115  N
20116  s/\n//
20117}
20118' >>$CONFIG_STATUS || ac_write_fail=1
20119rm -f conf$$subs.awk
20120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20121_ACAWK
20122cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20123  for (key in S) S_is_set[key] = 1
20124  FS = ""
20125
20126}
20127{
20128  line = $ 0
20129  nfields = split(line, field, "@")
20130  substed = 0
20131  len = length(field[1])
20132  for (i = 2; i < nfields; i++) {
20133    key = field[i]
20134    keylen = length(key)
20135    if (S_is_set[key]) {
20136      value = S[key]
20137      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20138      len += length(value) + length(field[++i])
20139      substed = 1
20140    } else
20141      len += 1 + keylen
20142  }
20143
20144  print line
20145}
20146
20147_ACAWK
20148_ACEOF
20149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20150if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20151  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20152else
20153  cat
20154fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20155  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20156_ACEOF
20157
20158# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20159# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20160# trailing colons and then remove the whole line if VPATH becomes empty
20161# (actually we leave an empty line to preserve line numbers).
20162if test "x$srcdir" = x.; then
20163  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20164h
20165s///
20166s/^/:/
20167s/[	 ]*$/:/
20168s/:\$(srcdir):/:/g
20169s/:\${srcdir}:/:/g
20170s/:@srcdir@:/:/g
20171s/^:*//
20172s/:*$//
20173x
20174s/\(=[	 ]*\).*/\1/
20175G
20176s/\n//
20177s/^[^=]*=[	 ]*$//
20178}'
20179fi
20180
20181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20182fi # test -n "$CONFIG_FILES"
20183
20184# Set up the scripts for CONFIG_HEADERS section.
20185# No need to generate them if there are no CONFIG_HEADERS.
20186# This happens for instance with `./config.status Makefile'.
20187if test -n "$CONFIG_HEADERS"; then
20188cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20189BEGIN {
20190_ACEOF
20191
20192# Transform confdefs.h into an awk script `defines.awk', embedded as
20193# here-document in config.status, that substitutes the proper values into
20194# config.h.in to produce config.h.
20195
20196# Create a delimiter string that does not exist in confdefs.h, to ease
20197# handling of long lines.
20198ac_delim='%!_!# '
20199for ac_last_try in false false :; do
20200  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20201  if test -z "$ac_tt"; then
20202    break
20203  elif $ac_last_try; then
20204    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20205  else
20206    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20207  fi
20208done
20209
20210# For the awk script, D is an array of macro values keyed by name,
20211# likewise P contains macro parameters if any.  Preserve backslash
20212# newline sequences.
20213
20214ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20215sed -n '
20216s/.\{148\}/&'"$ac_delim"'/g
20217t rset
20218:rset
20219s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20220t def
20221d
20222:def
20223s/\\$//
20224t bsnl
20225s/["\\]/\\&/g
20226s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20227D["\1"]=" \3"/p
20228s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20229d
20230:bsnl
20231s/["\\]/\\&/g
20232s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20233D["\1"]=" \3\\\\\\n"\\/p
20234t cont
20235s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20236t cont
20237d
20238:cont
20239n
20240s/.\{148\}/&'"$ac_delim"'/g
20241t clear
20242:clear
20243s/\\$//
20244t bsnlc
20245s/["\\]/\\&/g; s/^/"/; s/$/"/p
20246d
20247:bsnlc
20248s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20249b cont
20250' <confdefs.h | sed '
20251s/'"$ac_delim"'/"\\\
20252"/g' >>$CONFIG_STATUS || ac_write_fail=1
20253
20254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20255  for (key in D) D_is_set[key] = 1
20256  FS = ""
20257}
20258/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20259  line = \$ 0
20260  split(line, arg, " ")
20261  if (arg[1] == "#") {
20262    defundef = arg[2]
20263    mac1 = arg[3]
20264  } else {
20265    defundef = substr(arg[1], 2)
20266    mac1 = arg[2]
20267  }
20268  split(mac1, mac2, "(") #)
20269  macro = mac2[1]
20270  prefix = substr(line, 1, index(line, defundef) - 1)
20271  if (D_is_set[macro]) {
20272    # Preserve the white space surrounding the "#".
20273    print prefix "define", macro P[macro] D[macro]
20274    next
20275  } else {
20276    # Replace #undef with comments.  This is necessary, for example,
20277    # in the case of _POSIX_SOURCE, which is predefined and required
20278    # on some systems where configure will not decide to define it.
20279    if (defundef == "undef") {
20280      print "/*", prefix defundef, macro, "*/"
20281      next
20282    }
20283  }
20284}
20285{ print }
20286_ACAWK
20287_ACEOF
20288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20289  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20290fi # test -n "$CONFIG_HEADERS"
20291
20292
20293eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20294shift
20295for ac_tag
20296do
20297  case $ac_tag in
20298  :[FHLC]) ac_mode=$ac_tag; continue;;
20299  esac
20300  case $ac_mode$ac_tag in
20301  :[FHL]*:*);;
20302  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20303  :[FH]-) ac_tag=-:-;;
20304  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20305  esac
20306  ac_save_IFS=$IFS
20307  IFS=:
20308  set x $ac_tag
20309  IFS=$ac_save_IFS
20310  shift
20311  ac_file=$1
20312  shift
20313
20314  case $ac_mode in
20315  :L) ac_source=$1;;
20316  :[FH])
20317    ac_file_inputs=
20318    for ac_f
20319    do
20320      case $ac_f in
20321      -) ac_f="$ac_tmp/stdin";;
20322      *) # Look for the file first in the build tree, then in the source tree
20323	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20324	 # because $ac_f cannot contain `:'.
20325	 test -f "$ac_f" ||
20326	   case $ac_f in
20327	   [\\/$]*) false;;
20328	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20329	   esac ||
20330	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20331      esac
20332      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20333      as_fn_append ac_file_inputs " '$ac_f'"
20334    done
20335
20336    # Let's still pretend it is `configure' which instantiates (i.e., don't
20337    # use $as_me), people would be surprised to read:
20338    #    /* config.h.  Generated by config.status.  */
20339    configure_input='Generated from '`
20340	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20341	`' by configure.'
20342    if test x"$ac_file" != x-; then
20343      configure_input="$ac_file.  $configure_input"
20344      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20345$as_echo "$as_me: creating $ac_file" >&6;}
20346    fi
20347    # Neutralize special characters interpreted by sed in replacement strings.
20348    case $configure_input in #(
20349    *\&* | *\|* | *\\* )
20350       ac_sed_conf_input=`$as_echo "$configure_input" |
20351       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20352    *) ac_sed_conf_input=$configure_input;;
20353    esac
20354
20355    case $ac_tag in
20356    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20357      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20358    esac
20359    ;;
20360  esac
20361
20362  ac_dir=`$as_dirname -- "$ac_file" ||
20363$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20364	 X"$ac_file" : 'X\(//\)[^/]' \| \
20365	 X"$ac_file" : 'X\(//\)$' \| \
20366	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20367$as_echo X"$ac_file" |
20368    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20369	    s//\1/
20370	    q
20371	  }
20372	  /^X\(\/\/\)[^/].*/{
20373	    s//\1/
20374	    q
20375	  }
20376	  /^X\(\/\/\)$/{
20377	    s//\1/
20378	    q
20379	  }
20380	  /^X\(\/\).*/{
20381	    s//\1/
20382	    q
20383	  }
20384	  s/.*/./; q'`
20385  as_dir="$ac_dir"; as_fn_mkdir_p
20386  ac_builddir=.
20387
20388case "$ac_dir" in
20389.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20390*)
20391  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20392  # A ".." for each directory in $ac_dir_suffix.
20393  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20394  case $ac_top_builddir_sub in
20395  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20396  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20397  esac ;;
20398esac
20399ac_abs_top_builddir=$ac_pwd
20400ac_abs_builddir=$ac_pwd$ac_dir_suffix
20401# for backward compatibility:
20402ac_top_builddir=$ac_top_build_prefix
20403
20404case $srcdir in
20405  .)  # We are building in place.
20406    ac_srcdir=.
20407    ac_top_srcdir=$ac_top_builddir_sub
20408    ac_abs_top_srcdir=$ac_pwd ;;
20409  [\\/]* | ?:[\\/]* )  # Absolute name.
20410    ac_srcdir=$srcdir$ac_dir_suffix;
20411    ac_top_srcdir=$srcdir
20412    ac_abs_top_srcdir=$srcdir ;;
20413  *) # Relative name.
20414    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20415    ac_top_srcdir=$ac_top_build_prefix$srcdir
20416    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20417esac
20418ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20419
20420
20421  case $ac_mode in
20422  :F)
20423  #
20424  # CONFIG_FILE
20425  #
20426
20427  case $INSTALL in
20428  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20429  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20430  esac
20431  ac_MKDIR_P=$MKDIR_P
20432  case $MKDIR_P in
20433  [\\/$]* | ?:[\\/]* ) ;;
20434  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20435  esac
20436_ACEOF
20437
20438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20439# If the template does not know about datarootdir, expand it.
20440# FIXME: This hack should be removed a few years after 2.60.
20441ac_datarootdir_hack=; ac_datarootdir_seen=
20442ac_sed_dataroot='
20443/datarootdir/ {
20444  p
20445  q
20446}
20447/@datadir@/p
20448/@docdir@/p
20449/@infodir@/p
20450/@localedir@/p
20451/@mandir@/p'
20452case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20453*datarootdir*) ac_datarootdir_seen=yes;;
20454*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20455  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20456$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20457_ACEOF
20458cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20459  ac_datarootdir_hack='
20460  s&@datadir@&$datadir&g
20461  s&@docdir@&$docdir&g
20462  s&@infodir@&$infodir&g
20463  s&@localedir@&$localedir&g
20464  s&@mandir@&$mandir&g
20465  s&\\\${datarootdir}&$datarootdir&g' ;;
20466esac
20467_ACEOF
20468
20469# Neutralize VPATH when `$srcdir' = `.'.
20470# Shell code in configure.ac might set extrasub.
20471# FIXME: do we really want to maintain this feature?
20472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20473ac_sed_extra="$ac_vpsub
20474$extrasub
20475_ACEOF
20476cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20477:t
20478/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20479s|@configure_input@|$ac_sed_conf_input|;t t
20480s&@top_builddir@&$ac_top_builddir_sub&;t t
20481s&@top_build_prefix@&$ac_top_build_prefix&;t t
20482s&@srcdir@&$ac_srcdir&;t t
20483s&@abs_srcdir@&$ac_abs_srcdir&;t t
20484s&@top_srcdir@&$ac_top_srcdir&;t t
20485s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20486s&@builddir@&$ac_builddir&;t t
20487s&@abs_builddir@&$ac_abs_builddir&;t t
20488s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20489s&@INSTALL@&$ac_INSTALL&;t t
20490s&@MKDIR_P@&$ac_MKDIR_P&;t t
20491$ac_datarootdir_hack
20492"
20493eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20494  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20495
20496test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20497  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20498  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20499      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20500  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20501which seems to be undefined.  Please make sure it is defined" >&5
20502$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20503which seems to be undefined.  Please make sure it is defined" >&2;}
20504
20505  rm -f "$ac_tmp/stdin"
20506  case $ac_file in
20507  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20508  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20509  esac \
20510  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20511 ;;
20512  :H)
20513  #
20514  # CONFIG_HEADER
20515  #
20516  if test x"$ac_file" != x-; then
20517    {
20518      $as_echo "/* $configure_input  */" \
20519      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20520    } >"$ac_tmp/config.h" \
20521      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20522    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20523      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20524$as_echo "$as_me: $ac_file is unchanged" >&6;}
20525    else
20526      rm -f "$ac_file"
20527      mv "$ac_tmp/config.h" "$ac_file" \
20528	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20529    fi
20530  else
20531    $as_echo "/* $configure_input  */" \
20532      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20533      || as_fn_error $? "could not create -" "$LINENO" 5
20534  fi
20535# Compute "$ac_file"'s index in $config_headers.
20536_am_arg="$ac_file"
20537_am_stamp_count=1
20538for _am_header in $config_headers :; do
20539  case $_am_header in
20540    $_am_arg | $_am_arg:* )
20541      break ;;
20542    * )
20543      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20544  esac
20545done
20546echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20547$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20548	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20549	 X"$_am_arg" : 'X\(//\)$' \| \
20550	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20551$as_echo X"$_am_arg" |
20552    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20553	    s//\1/
20554	    q
20555	  }
20556	  /^X\(\/\/\)[^/].*/{
20557	    s//\1/
20558	    q
20559	  }
20560	  /^X\(\/\/\)$/{
20561	    s//\1/
20562	    q
20563	  }
20564	  /^X\(\/\).*/{
20565	    s//\1/
20566	    q
20567	  }
20568	  s/.*/./; q'`/stamp-h$_am_stamp_count
20569 ;;
20570
20571  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20572$as_echo "$as_me: executing $ac_file commands" >&6;}
20573 ;;
20574  esac
20575
20576
20577  case $ac_file$ac_mode in
20578    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20579  # Older Autoconf quotes --file arguments for eval, but not when files
20580  # are listed without --file.  Let's play safe and only enable the eval
20581  # if we detect the quoting.
20582  case $CONFIG_FILES in
20583  *\'*) eval set x "$CONFIG_FILES" ;;
20584  *)   set x $CONFIG_FILES ;;
20585  esac
20586  shift
20587  for mf
20588  do
20589    # Strip MF so we end up with the name of the file.
20590    mf=`echo "$mf" | sed -e 's/:.*$//'`
20591    # Check whether this is an Automake generated Makefile or not.
20592    # We used to match only the files named 'Makefile.in', but
20593    # some people rename them; so instead we look at the file content.
20594    # Grep'ing the first line is not enough: some people post-process
20595    # each Makefile.in and add a new line on top of each file to say so.
20596    # Grep'ing the whole file is not good either: AIX grep has a line
20597    # limit of 2048, but all sed's we know have understand at least 4000.
20598    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20599      dirpart=`$as_dirname -- "$mf" ||
20600$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20601	 X"$mf" : 'X\(//\)[^/]' \| \
20602	 X"$mf" : 'X\(//\)$' \| \
20603	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20604$as_echo X"$mf" |
20605    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20606	    s//\1/
20607	    q
20608	  }
20609	  /^X\(\/\/\)[^/].*/{
20610	    s//\1/
20611	    q
20612	  }
20613	  /^X\(\/\/\)$/{
20614	    s//\1/
20615	    q
20616	  }
20617	  /^X\(\/\).*/{
20618	    s//\1/
20619	    q
20620	  }
20621	  s/.*/./; q'`
20622    else
20623      continue
20624    fi
20625    # Extract the definition of DEPDIR, am__include, and am__quote
20626    # from the Makefile without running 'make'.
20627    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20628    test -z "$DEPDIR" && continue
20629    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20630    test -z "$am__include" && continue
20631    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20632    # Find all dependency output files, they are included files with
20633    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20634    # simplest approach to changing $(DEPDIR) to its actual value in the
20635    # expansion.
20636    for file in `sed -n "
20637      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20638	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20639      # Make sure the directory exists.
20640      test -f "$dirpart/$file" && continue
20641      fdir=`$as_dirname -- "$file" ||
20642$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20643	 X"$file" : 'X\(//\)[^/]' \| \
20644	 X"$file" : 'X\(//\)$' \| \
20645	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20646$as_echo X"$file" |
20647    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20648	    s//\1/
20649	    q
20650	  }
20651	  /^X\(\/\/\)[^/].*/{
20652	    s//\1/
20653	    q
20654	  }
20655	  /^X\(\/\/\)$/{
20656	    s//\1/
20657	    q
20658	  }
20659	  /^X\(\/\).*/{
20660	    s//\1/
20661	    q
20662	  }
20663	  s/.*/./; q'`
20664      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20665      # echo "creating $dirpart/$file"
20666      echo '# dummy' > "$dirpart/$file"
20667    done
20668  done
20669}
20670 ;;
20671    "libtool":C)
20672
20673    # See if we are running on zsh, and set the options that allow our
20674    # commands through without removal of \ escapes.
20675    if test -n "${ZSH_VERSION+set}"; then
20676      setopt NO_GLOB_SUBST
20677    fi
20678
20679    cfgfile=${ofile}T
20680    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20681    $RM "$cfgfile"
20682
20683    cat <<_LT_EOF >> "$cfgfile"
20684#! $SHELL
20685# Generated automatically by $as_me ($PACKAGE) $VERSION
20686# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20687# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20688
20689# Provide generalized library-building support services.
20690# Written by Gordon Matzigkeit, 1996
20691
20692# Copyright (C) 2014 Free Software Foundation, Inc.
20693# This is free software; see the source for copying conditions.  There is NO
20694# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20695
20696# GNU Libtool is free software; you can redistribute it and/or modify
20697# it under the terms of the GNU General Public License as published by
20698# the Free Software Foundation; either version 2 of of the License, or
20699# (at your option) any later version.
20700#
20701# As a special exception to the GNU General Public License, if you
20702# distribute this file as part of a program or library that is built
20703# using GNU Libtool, you may include this file under the  same
20704# distribution terms that you use for the rest of that program.
20705#
20706# GNU Libtool is distributed in the hope that it will be useful, but
20707# WITHOUT ANY WARRANTY; without even the implied warranty of
20708# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20709# GNU General Public License for more details.
20710#
20711# You should have received a copy of the GNU General Public License
20712# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20713
20714
20715# The names of the tagged configurations supported by this script.
20716available_tags=''
20717
20718# ### BEGIN LIBTOOL CONFIG
20719
20720# Whether or not to build static libraries.
20721build_old_libs=$enable_static
20722
20723# Which release of libtool.m4 was used?
20724macro_version=$macro_version
20725macro_revision=$macro_revision
20726
20727# Whether or not to build shared libraries.
20728build_libtool_libs=$enable_shared
20729
20730# What type of objects to build.
20731pic_mode=$pic_mode
20732
20733# Whether or not to optimize for fast installation.
20734fast_install=$enable_fast_install
20735
20736# Shared archive member basename,for filename based shared library versioning on AIX.
20737shared_archive_member_spec=$shared_archive_member_spec
20738
20739# Shell to use when invoking shell scripts.
20740SHELL=$lt_SHELL
20741
20742# An echo program that protects backslashes.
20743ECHO=$lt_ECHO
20744
20745# The PATH separator for the build system.
20746PATH_SEPARATOR=$lt_PATH_SEPARATOR
20747
20748# The host system.
20749host_alias=$host_alias
20750host=$host
20751host_os=$host_os
20752
20753# The build system.
20754build_alias=$build_alias
20755build=$build
20756build_os=$build_os
20757
20758# A sed program that does not truncate output.
20759SED=$lt_SED
20760
20761# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20762Xsed="\$SED -e 1s/^X//"
20763
20764# A grep program that handles long lines.
20765GREP=$lt_GREP
20766
20767# An ERE matcher.
20768EGREP=$lt_EGREP
20769
20770# A literal string matcher.
20771FGREP=$lt_FGREP
20772
20773# A BSD- or MS-compatible name lister.
20774NM=$lt_NM
20775
20776# Whether we need soft or hard links.
20777LN_S=$lt_LN_S
20778
20779# What is the maximum length of a command?
20780max_cmd_len=$max_cmd_len
20781
20782# Object file suffix (normally "o").
20783objext=$ac_objext
20784
20785# Executable file suffix (normally "").
20786exeext=$exeext
20787
20788# whether the shell understands "unset".
20789lt_unset=$lt_unset
20790
20791# turn spaces into newlines.
20792SP2NL=$lt_lt_SP2NL
20793
20794# turn newlines into spaces.
20795NL2SP=$lt_lt_NL2SP
20796
20797# convert \$build file names to \$host format.
20798to_host_file_cmd=$lt_cv_to_host_file_cmd
20799
20800# convert \$build files to toolchain format.
20801to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20802
20803# An object symbol dumper.
20804OBJDUMP=$lt_OBJDUMP
20805
20806# Method to check whether dependent libraries are shared objects.
20807deplibs_check_method=$lt_deplibs_check_method
20808
20809# Command to use when deplibs_check_method = "file_magic".
20810file_magic_cmd=$lt_file_magic_cmd
20811
20812# How to find potential files when deplibs_check_method = "file_magic".
20813file_magic_glob=$lt_file_magic_glob
20814
20815# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20816want_nocaseglob=$lt_want_nocaseglob
20817
20818# DLL creation program.
20819DLLTOOL=$lt_DLLTOOL
20820
20821# Command to associate shared and link libraries.
20822sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20823
20824# The archiver.
20825AR=$lt_AR
20826
20827# Flags to create an archive.
20828AR_FLAGS=$lt_AR_FLAGS
20829
20830# How to feed a file listing to the archiver.
20831archiver_list_spec=$lt_archiver_list_spec
20832
20833# A symbol stripping program.
20834STRIP=$lt_STRIP
20835
20836# Commands used to install an old-style archive.
20837RANLIB=$lt_RANLIB
20838old_postinstall_cmds=$lt_old_postinstall_cmds
20839old_postuninstall_cmds=$lt_old_postuninstall_cmds
20840
20841# Whether to use a lock for old archive extraction.
20842lock_old_archive_extraction=$lock_old_archive_extraction
20843
20844# A C compiler.
20845LTCC=$lt_CC
20846
20847# LTCC compiler flags.
20848LTCFLAGS=$lt_CFLAGS
20849
20850# Take the output of nm and produce a listing of raw symbols and C names.
20851global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20852
20853# Transform the output of nm in a proper C declaration.
20854global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20855
20856# Transform the output of nm into a list of symbols to manually relocate.
20857global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20858
20859# Transform the output of nm in a C name address pair.
20860global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20861
20862# Transform the output of nm in a C name address pair when lib prefix is needed.
20863global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20864
20865# The name lister interface.
20866nm_interface=$lt_lt_cv_nm_interface
20867
20868# Specify filename containing input files for \$NM.
20869nm_file_list_spec=$lt_nm_file_list_spec
20870
20871# The root where to search for dependent libraries,and where our libraries should be installed.
20872lt_sysroot=$lt_sysroot
20873
20874# Command to truncate a binary pipe.
20875lt_truncate_bin=$lt_lt_cv_truncate_bin
20876
20877# The name of the directory that contains temporary libtool files.
20878objdir=$objdir
20879
20880# Used to examine libraries when file_magic_cmd begins with "file".
20881MAGIC_CMD=$MAGIC_CMD
20882
20883# Must we lock files when doing compilation?
20884need_locks=$lt_need_locks
20885
20886# Manifest tool.
20887MANIFEST_TOOL=$lt_MANIFEST_TOOL
20888
20889# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20890DSYMUTIL=$lt_DSYMUTIL
20891
20892# Tool to change global to local symbols on Mac OS X.
20893NMEDIT=$lt_NMEDIT
20894
20895# Tool to manipulate fat objects and archives on Mac OS X.
20896LIPO=$lt_LIPO
20897
20898# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20899OTOOL=$lt_OTOOL
20900
20901# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20902OTOOL64=$lt_OTOOL64
20903
20904# Old archive suffix (normally "a").
20905libext=$libext
20906
20907# Shared library suffix (normally ".so").
20908shrext_cmds=$lt_shrext_cmds
20909
20910# The commands to extract the exported symbol list from a shared archive.
20911extract_expsyms_cmds=$lt_extract_expsyms_cmds
20912
20913# Variables whose values should be saved in libtool wrapper scripts and
20914# restored at link time.
20915variables_saved_for_relink=$lt_variables_saved_for_relink
20916
20917# Do we need the "lib" prefix for modules?
20918need_lib_prefix=$need_lib_prefix
20919
20920# Do we need a version for libraries?
20921need_version=$need_version
20922
20923# Library versioning type.
20924version_type=$version_type
20925
20926# Shared library runtime path variable.
20927runpath_var=$runpath_var
20928
20929# Shared library path variable.
20930shlibpath_var=$shlibpath_var
20931
20932# Is shlibpath searched before the hard-coded library search path?
20933shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20934
20935# Format of library name prefix.
20936libname_spec=$lt_libname_spec
20937
20938# List of archive names.  First name is the real one, the rest are links.
20939# The last name is the one that the linker finds with -lNAME
20940library_names_spec=$lt_library_names_spec
20941
20942# The coded name of the library, if different from the real name.
20943soname_spec=$lt_soname_spec
20944
20945# Permission mode override for installation of shared libraries.
20946install_override_mode=$lt_install_override_mode
20947
20948# Command to use after installation of a shared archive.
20949postinstall_cmds=$lt_postinstall_cmds
20950
20951# Command to use after uninstallation of a shared archive.
20952postuninstall_cmds=$lt_postuninstall_cmds
20953
20954# Commands used to finish a libtool library installation in a directory.
20955finish_cmds=$lt_finish_cmds
20956
20957# As "finish_cmds", except a single script fragment to be evaled but
20958# not shown.
20959finish_eval=$lt_finish_eval
20960
20961# Whether we should hardcode library paths into libraries.
20962hardcode_into_libs=$hardcode_into_libs
20963
20964# Compile-time system search path for libraries.
20965sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20966
20967# Run-time system search path for libraries.
20968sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20969
20970# Whether dlopen is supported.
20971dlopen_support=$enable_dlopen
20972
20973# Whether dlopen of programs is supported.
20974dlopen_self=$enable_dlopen_self
20975
20976# Whether dlopen of statically linked programs is supported.
20977dlopen_self_static=$enable_dlopen_self_static
20978
20979# Commands to strip libraries.
20980old_striplib=$lt_old_striplib
20981striplib=$lt_striplib
20982
20983
20984# The linker used to build libraries.
20985LD=$lt_LD
20986
20987# How to create reloadable object files.
20988reload_flag=$lt_reload_flag
20989reload_cmds=$lt_reload_cmds
20990
20991# Commands used to build an old-style archive.
20992old_archive_cmds=$lt_old_archive_cmds
20993
20994# A language specific compiler.
20995CC=$lt_compiler
20996
20997# Is the compiler the GNU compiler?
20998with_gcc=$GCC
20999
21000# Compiler flag to turn off builtin functions.
21001no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21002
21003# Additional compiler flags for building library objects.
21004pic_flag=$lt_lt_prog_compiler_pic
21005
21006# How to pass a linker flag through the compiler.
21007wl=$lt_lt_prog_compiler_wl
21008
21009# Compiler flag to prevent dynamic linking.
21010link_static_flag=$lt_lt_prog_compiler_static
21011
21012# Does compiler simultaneously support -c and -o options?
21013compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21014
21015# Whether or not to add -lc for building shared libraries.
21016build_libtool_need_lc=$archive_cmds_need_lc
21017
21018# Whether or not to disallow shared libs when runtime libs are static.
21019allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21020
21021# Compiler flag to allow reflexive dlopens.
21022export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21023
21024# Compiler flag to generate shared objects directly from archives.
21025whole_archive_flag_spec=$lt_whole_archive_flag_spec
21026
21027# Whether the compiler copes with passing no objects directly.
21028compiler_needs_object=$lt_compiler_needs_object
21029
21030# Create an old-style archive from a shared archive.
21031old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21032
21033# Create a temporary old-style archive to link instead of a shared archive.
21034old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21035
21036# Commands used to build a shared archive.
21037archive_cmds=$lt_archive_cmds
21038archive_expsym_cmds=$lt_archive_expsym_cmds
21039
21040# Commands used to build a loadable module if different from building
21041# a shared archive.
21042module_cmds=$lt_module_cmds
21043module_expsym_cmds=$lt_module_expsym_cmds
21044
21045# Whether we are building with GNU ld or not.
21046with_gnu_ld=$lt_with_gnu_ld
21047
21048# Flag that allows shared libraries with undefined symbols to be built.
21049allow_undefined_flag=$lt_allow_undefined_flag
21050
21051# Flag that enforces no undefined symbols.
21052no_undefined_flag=$lt_no_undefined_flag
21053
21054# Flag to hardcode \$libdir into a binary during linking.
21055# This must work even if \$libdir does not exist
21056hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21057
21058# Whether we need a single "-rpath" flag with a separated argument.
21059hardcode_libdir_separator=$lt_hardcode_libdir_separator
21060
21061# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21062# DIR into the resulting binary.
21063hardcode_direct=$hardcode_direct
21064
21065# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21066# DIR into the resulting binary and the resulting library dependency is
21067# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21068# library is relocated.
21069hardcode_direct_absolute=$hardcode_direct_absolute
21070
21071# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21072# into the resulting binary.
21073hardcode_minus_L=$hardcode_minus_L
21074
21075# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21076# into the resulting binary.
21077hardcode_shlibpath_var=$hardcode_shlibpath_var
21078
21079# Set to "yes" if building a shared library automatically hardcodes DIR
21080# into the library and all subsequent libraries and executables linked
21081# against it.
21082hardcode_automatic=$hardcode_automatic
21083
21084# Set to yes if linker adds runtime paths of dependent libraries
21085# to runtime path list.
21086inherit_rpath=$inherit_rpath
21087
21088# Whether libtool must link a program against all its dependency libraries.
21089link_all_deplibs=$link_all_deplibs
21090
21091# Set to "yes" if exported symbols are required.
21092always_export_symbols=$always_export_symbols
21093
21094# The commands to list exported symbols.
21095export_symbols_cmds=$lt_export_symbols_cmds
21096
21097# Symbols that should not be listed in the preloaded symbols.
21098exclude_expsyms=$lt_exclude_expsyms
21099
21100# Symbols that must always be exported.
21101include_expsyms=$lt_include_expsyms
21102
21103# Commands necessary for linking programs (against libraries) with templates.
21104prelink_cmds=$lt_prelink_cmds
21105
21106# Commands necessary for finishing linking programs.
21107postlink_cmds=$lt_postlink_cmds
21108
21109# Specify filename containing input files.
21110file_list_spec=$lt_file_list_spec
21111
21112# How to hardcode a shared library path into an executable.
21113hardcode_action=$hardcode_action
21114
21115# ### END LIBTOOL CONFIG
21116
21117_LT_EOF
21118
21119  case $host_os in
21120  aix3*)
21121    cat <<\_LT_EOF >> "$cfgfile"
21122# AIX sometimes has problems with the GCC collect2 program.  For some
21123# reason, if we set the COLLECT_NAMES environment variable, the problems
21124# vanish in a puff of smoke.
21125if test set != "${COLLECT_NAMES+set}"; then
21126  COLLECT_NAMES=
21127  export COLLECT_NAMES
21128fi
21129_LT_EOF
21130    ;;
21131  esac
21132
21133
21134ltmain=$ac_aux_dir/ltmain.sh
21135
21136
21137  # We use sed instead of cat because bash on DJGPP gets confused if
21138  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21139  # text mode, it properly converts lines to CR/LF.  This bash problem
21140  # is reportedly fixed, but why not run on old versions too?
21141  sed '$q' "$ltmain" >> "$cfgfile" \
21142     || (rm -f "$cfgfile"; exit 1)
21143
21144   mv -f "$cfgfile" "$ofile" ||
21145    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21146  chmod +x "$ofile"
21147
21148 ;;
21149
21150  esac
21151done # for ac_tag
21152
21153
21154as_fn_exit 0
21155_ACEOF
21156ac_clean_files=$ac_clean_files_save
21157
21158test $ac_write_fail = 0 ||
21159  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21160
21161
21162# configure is writing to config.log, and then calls config.status.
21163# config.status does its own redirection, appending to config.log.
21164# Unfortunately, on DOS this fails, as config.log is still kept open
21165# by configure, so config.status won't be able to write to it; its
21166# output is simply discarded.  So we exec the FD to /dev/null,
21167# effectively closing config.log, so it can be properly (re)opened and
21168# appended to by config.status.  When coming back to configure, we
21169# need to make the FD available again.
21170if test "$no_create" != yes; then
21171  ac_cs_success=:
21172  ac_config_status_args=
21173  test "$silent" = yes &&
21174    ac_config_status_args="$ac_config_status_args --quiet"
21175  exec 5>/dev/null
21176  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21177  exec 5>>config.log
21178  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21179  # would make configure fail if this is the last instruction.
21180  $ac_cs_success || as_fn_exit 1
21181fi
21182if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21183  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21184$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21185fi
21186
21187