configure revision a73597f9
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-input-mouse 1.9.0.
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
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || 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-input-mouse'
593PACKAGE_TARNAME='xf86-input-mouse'
594PACKAGE_VERSION='1.9.0'
595PACKAGE_STRING='xf86-input-mouse 1.9.0'
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
641OS_MOUSE_NAME
642sdkdir
643inputdir
644XORG_LIBS
645XORG_CFLAGS
646LINT_FALSE
647LINT_TRUE
648LINT_FLAGS
649LINT
650AM_BACKSLASH
651AM_DEFAULT_VERBOSITY
652AM_DEFAULT_V
653AM_V
654MAN_SUBSTS
655XORG_MAN_PAGE
656ADMIN_MAN_DIR
657DRIVER_MAN_DIR
658MISC_MAN_DIR
659FILE_MAN_DIR
660LIB_MAN_DIR
661APP_MAN_DIR
662ADMIN_MAN_SUFFIX
663DRIVER_MAN_SUFFIX
664MISC_MAN_SUFFIX
665FILE_MAN_SUFFIX
666LIB_MAN_SUFFIX
667APP_MAN_SUFFIX
668INSTALL_CMD
669PKG_CONFIG_LIBDIR
670PKG_CONFIG_PATH
671PKG_CONFIG
672CHANGELOG_CMD
673STRICT_CFLAGS
674CWARNFLAGS
675BASE_CFLAGS
676CPP
677OTOOL64
678OTOOL
679LIPO
680NMEDIT
681DSYMUTIL
682MANIFEST_TOOL
683RANLIB
684ac_ct_AR
685AR
686DLLTOOL
687OBJDUMP
688LN_S
689NM
690ac_ct_DUMPBIN
691DUMPBIN
692LD
693FGREP
694EGREP
695GREP
696SED
697am__fastdepCC_FALSE
698am__fastdepCC_TRUE
699CCDEPMODE
700am__nodep
701AMDEPBACKSLASH
702AMDEP_FALSE
703AMDEP_TRUE
704am__quote
705am__include
706DEPDIR
707OBJEXT
708EXEEXT
709ac_ct_CC
710CPPFLAGS
711LDFLAGS
712CFLAGS
713CC
714host_os
715host_vendor
716host_cpu
717host
718build_os
719build_vendor
720build_cpu
721build
722LIBTOOL
723am__untar
724am__tar
725AMTAR
726am__leading_dot
727SET_MAKE
728AWK
729mkdir_p
730MKDIR_P
731INSTALL_STRIP_PROGRAM
732STRIP
733install_sh
734MAKEINFO
735AUTOHEADER
736AUTOMAKE
737AUTOCONF
738ACLOCAL
739VERSION
740PACKAGE
741CYGPATH_W
742am__isrc
743INSTALL_DATA
744INSTALL_SCRIPT
745INSTALL_PROGRAM
746target_alias
747host_alias
748build_alias
749LIBS
750ECHO_T
751ECHO_N
752ECHO_C
753DEFS
754mandir
755localedir
756libdir
757psdir
758pdfdir
759dvidir
760htmldir
761infodir
762docdir
763oldincludedir
764includedir
765localstatedir
766sharedstatedir
767sysconfdir
768datadir
769datarootdir
770libexecdir
771sbindir
772bindir
773program_transform_name
774prefix
775exec_prefix
776PACKAGE_URL
777PACKAGE_BUGREPORT
778PACKAGE_STRING
779PACKAGE_VERSION
780PACKAGE_TARNAME
781PACKAGE_NAME
782PATH_SEPARATOR
783SHELL'
784ac_subst_files=''
785ac_user_opts='
786enable_option_checking
787enable_static
788enable_shared
789with_pic
790enable_fast_install
791enable_dependency_tracking
792with_gnu_ld
793with_sysroot
794enable_libtool_lock
795enable_selective_werror
796enable_strict_compilation
797enable_silent_rules
798with_lint
799with_xorg_module_dir
800with_sdkdir
801'
802      ac_precious_vars='build_alias
803host_alias
804target_alias
805CC
806CFLAGS
807LDFLAGS
808LIBS
809CPPFLAGS
810CPP
811PKG_CONFIG
812PKG_CONFIG_PATH
813PKG_CONFIG_LIBDIR
814LINT
815LINT_FLAGS
816XORG_CFLAGS
817XORG_LIBS'
818
819
820# Initialize some variables set by options.
821ac_init_help=
822ac_init_version=false
823ac_unrecognized_opts=
824ac_unrecognized_sep=
825# The variables have the same names as the options, with
826# dashes changed to underlines.
827cache_file=/dev/null
828exec_prefix=NONE
829no_create=
830no_recursion=
831prefix=NONE
832program_prefix=NONE
833program_suffix=NONE
834program_transform_name=s,x,x,
835silent=
836site=
837srcdir=
838verbose=
839x_includes=NONE
840x_libraries=NONE
841
842# Installation directory options.
843# These are left unexpanded so users can "make install exec_prefix=/foo"
844# and all the variables that are supposed to be based on exec_prefix
845# by default will actually change.
846# Use braces instead of parens because sh, perl, etc. also accept them.
847# (The list follows the same order as the GNU Coding Standards.)
848bindir='${exec_prefix}/bin'
849sbindir='${exec_prefix}/sbin'
850libexecdir='${exec_prefix}/libexec'
851datarootdir='${prefix}/share'
852datadir='${datarootdir}'
853sysconfdir='${prefix}/etc'
854sharedstatedir='${prefix}/com'
855localstatedir='${prefix}/var'
856includedir='${prefix}/include'
857oldincludedir='/usr/include'
858docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859infodir='${datarootdir}/info'
860htmldir='${docdir}'
861dvidir='${docdir}'
862pdfdir='${docdir}'
863psdir='${docdir}'
864libdir='${exec_prefix}/lib'
865localedir='${datarootdir}/locale'
866mandir='${datarootdir}/man'
867
868ac_prev=
869ac_dashdash=
870for ac_option
871do
872  # If the previous option needs an argument, assign it.
873  if test -n "$ac_prev"; then
874    eval $ac_prev=\$ac_option
875    ac_prev=
876    continue
877  fi
878
879  case $ac_option in
880  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881  *=)   ac_optarg= ;;
882  *)    ac_optarg=yes ;;
883  esac
884
885  # Accept the important Cygnus configure options, so we can diagnose typos.
886
887  case $ac_dashdash$ac_option in
888  --)
889    ac_dashdash=yes ;;
890
891  -bindir | --bindir | --bindi | --bind | --bin | --bi)
892    ac_prev=bindir ;;
893  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894    bindir=$ac_optarg ;;
895
896  -build | --build | --buil | --bui | --bu)
897    ac_prev=build_alias ;;
898  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899    build_alias=$ac_optarg ;;
900
901  -cache-file | --cache-file | --cache-fil | --cache-fi \
902  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903    ac_prev=cache_file ;;
904  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906    cache_file=$ac_optarg ;;
907
908  --config-cache | -C)
909    cache_file=config.cache ;;
910
911  -datadir | --datadir | --datadi | --datad)
912    ac_prev=datadir ;;
913  -datadir=* | --datadir=* | --datadi=* | --datad=*)
914    datadir=$ac_optarg ;;
915
916  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917  | --dataroo | --dataro | --datar)
918    ac_prev=datarootdir ;;
919  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921    datarootdir=$ac_optarg ;;
922
923  -disable-* | --disable-*)
924    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925    # Reject names that are not valid shell variable names.
926    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927      as_fn_error $? "invalid feature name: $ac_useropt"
928    ac_useropt_orig=$ac_useropt
929    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930    case $ac_user_opts in
931      *"
932"enable_$ac_useropt"
933"*) ;;
934      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935	 ac_unrecognized_sep=', ';;
936    esac
937    eval enable_$ac_useropt=no ;;
938
939  -docdir | --docdir | --docdi | --doc | --do)
940    ac_prev=docdir ;;
941  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942    docdir=$ac_optarg ;;
943
944  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945    ac_prev=dvidir ;;
946  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947    dvidir=$ac_optarg ;;
948
949  -enable-* | --enable-*)
950    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951    # Reject names that are not valid shell variable names.
952    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953      as_fn_error $? "invalid feature name: $ac_useropt"
954    ac_useropt_orig=$ac_useropt
955    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956    case $ac_user_opts in
957      *"
958"enable_$ac_useropt"
959"*) ;;
960      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961	 ac_unrecognized_sep=', ';;
962    esac
963    eval enable_$ac_useropt=\$ac_optarg ;;
964
965  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967  | --exec | --exe | --ex)
968    ac_prev=exec_prefix ;;
969  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971  | --exec=* | --exe=* | --ex=*)
972    exec_prefix=$ac_optarg ;;
973
974  -gas | --gas | --ga | --g)
975    # Obsolete; use --with-gas.
976    with_gas=yes ;;
977
978  -help | --help | --hel | --he | -h)
979    ac_init_help=long ;;
980  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981    ac_init_help=recursive ;;
982  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983    ac_init_help=short ;;
984
985  -host | --host | --hos | --ho)
986    ac_prev=host_alias ;;
987  -host=* | --host=* | --hos=* | --ho=*)
988    host_alias=$ac_optarg ;;
989
990  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991    ac_prev=htmldir ;;
992  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993  | --ht=*)
994    htmldir=$ac_optarg ;;
995
996  -includedir | --includedir | --includedi | --included | --include \
997  | --includ | --inclu | --incl | --inc)
998    ac_prev=includedir ;;
999  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000  | --includ=* | --inclu=* | --incl=* | --inc=*)
1001    includedir=$ac_optarg ;;
1002
1003  -infodir | --infodir | --infodi | --infod | --info | --inf)
1004    ac_prev=infodir ;;
1005  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006    infodir=$ac_optarg ;;
1007
1008  -libdir | --libdir | --libdi | --libd)
1009    ac_prev=libdir ;;
1010  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011    libdir=$ac_optarg ;;
1012
1013  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014  | --libexe | --libex | --libe)
1015    ac_prev=libexecdir ;;
1016  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017  | --libexe=* | --libex=* | --libe=*)
1018    libexecdir=$ac_optarg ;;
1019
1020  -localedir | --localedir | --localedi | --localed | --locale)
1021    ac_prev=localedir ;;
1022  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023    localedir=$ac_optarg ;;
1024
1025  -localstatedir | --localstatedir | --localstatedi | --localstated \
1026  | --localstate | --localstat | --localsta | --localst | --locals)
1027    ac_prev=localstatedir ;;
1028  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030    localstatedir=$ac_optarg ;;
1031
1032  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033    ac_prev=mandir ;;
1034  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035    mandir=$ac_optarg ;;
1036
1037  -nfp | --nfp | --nf)
1038    # Obsolete; use --without-fp.
1039    with_fp=no ;;
1040
1041  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042  | --no-cr | --no-c | -n)
1043    no_create=yes ;;
1044
1045  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047    no_recursion=yes ;;
1048
1049  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051  | --oldin | --oldi | --old | --ol | --o)
1052    ac_prev=oldincludedir ;;
1053  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056    oldincludedir=$ac_optarg ;;
1057
1058  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059    ac_prev=prefix ;;
1060  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061    prefix=$ac_optarg ;;
1062
1063  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064  | --program-pre | --program-pr | --program-p)
1065    ac_prev=program_prefix ;;
1066  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068    program_prefix=$ac_optarg ;;
1069
1070  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071  | --program-suf | --program-su | --program-s)
1072    ac_prev=program_suffix ;;
1073  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075    program_suffix=$ac_optarg ;;
1076
1077  -program-transform-name | --program-transform-name \
1078  | --program-transform-nam | --program-transform-na \
1079  | --program-transform-n | --program-transform- \
1080  | --program-transform | --program-transfor \
1081  | --program-transfo | --program-transf \
1082  | --program-trans | --program-tran \
1083  | --progr-tra | --program-tr | --program-t)
1084    ac_prev=program_transform_name ;;
1085  -program-transform-name=* | --program-transform-name=* \
1086  | --program-transform-nam=* | --program-transform-na=* \
1087  | --program-transform-n=* | --program-transform-=* \
1088  | --program-transform=* | --program-transfor=* \
1089  | --program-transfo=* | --program-transf=* \
1090  | --program-trans=* | --program-tran=* \
1091  | --progr-tra=* | --program-tr=* | --program-t=*)
1092    program_transform_name=$ac_optarg ;;
1093
1094  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095    ac_prev=pdfdir ;;
1096  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097    pdfdir=$ac_optarg ;;
1098
1099  -psdir | --psdir | --psdi | --psd | --ps)
1100    ac_prev=psdir ;;
1101  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102    psdir=$ac_optarg ;;
1103
1104  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105  | -silent | --silent | --silen | --sile | --sil)
1106    silent=yes ;;
1107
1108  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109    ac_prev=sbindir ;;
1110  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111  | --sbi=* | --sb=*)
1112    sbindir=$ac_optarg ;;
1113
1114  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116  | --sharedst | --shareds | --shared | --share | --shar \
1117  | --sha | --sh)
1118    ac_prev=sharedstatedir ;;
1119  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122  | --sha=* | --sh=*)
1123    sharedstatedir=$ac_optarg ;;
1124
1125  -site | --site | --sit)
1126    ac_prev=site ;;
1127  -site=* | --site=* | --sit=*)
1128    site=$ac_optarg ;;
1129
1130  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131    ac_prev=srcdir ;;
1132  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133    srcdir=$ac_optarg ;;
1134
1135  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136  | --syscon | --sysco | --sysc | --sys | --sy)
1137    ac_prev=sysconfdir ;;
1138  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140    sysconfdir=$ac_optarg ;;
1141
1142  -target | --target | --targe | --targ | --tar | --ta | --t)
1143    ac_prev=target_alias ;;
1144  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145    target_alias=$ac_optarg ;;
1146
1147  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148    verbose=yes ;;
1149
1150  -version | --version | --versio | --versi | --vers | -V)
1151    ac_init_version=: ;;
1152
1153  -with-* | --with-*)
1154    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155    # Reject names that are not valid shell variable names.
1156    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157      as_fn_error $? "invalid package name: $ac_useropt"
1158    ac_useropt_orig=$ac_useropt
1159    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160    case $ac_user_opts in
1161      *"
1162"with_$ac_useropt"
1163"*) ;;
1164      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165	 ac_unrecognized_sep=', ';;
1166    esac
1167    eval with_$ac_useropt=\$ac_optarg ;;
1168
1169  -without-* | --without-*)
1170    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171    # Reject names that are not valid shell variable names.
1172    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173      as_fn_error $? "invalid package name: $ac_useropt"
1174    ac_useropt_orig=$ac_useropt
1175    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176    case $ac_user_opts in
1177      *"
1178"with_$ac_useropt"
1179"*) ;;
1180      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181	 ac_unrecognized_sep=', ';;
1182    esac
1183    eval with_$ac_useropt=no ;;
1184
1185  --x)
1186    # Obsolete; use --with-x.
1187    with_x=yes ;;
1188
1189  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190  | --x-incl | --x-inc | --x-in | --x-i)
1191    ac_prev=x_includes ;;
1192  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1194    x_includes=$ac_optarg ;;
1195
1196  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1197  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198    ac_prev=x_libraries ;;
1199  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1201    x_libraries=$ac_optarg ;;
1202
1203  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1204Try \`$0 --help' for more information"
1205    ;;
1206
1207  *=*)
1208    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1209    # Reject names that are not valid shell variable names.
1210    case $ac_envvar in #(
1211      '' | [0-9]* | *[!_$as_cr_alnum]* )
1212      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1213    esac
1214    eval $ac_envvar=\$ac_optarg
1215    export $ac_envvar ;;
1216
1217  *)
1218    # FIXME: should be removed in autoconf 3.0.
1219    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1223    ;;
1224
1225  esac
1226done
1227
1228if test -n "$ac_prev"; then
1229  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230  as_fn_error $? "missing argument to $ac_option"
1231fi
1232
1233if test -n "$ac_unrecognized_opts"; then
1234  case $enable_option_checking in
1235    no) ;;
1236    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1237    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1238  esac
1239fi
1240
1241# Check all directory arguments for consistency.
1242for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243		datadir sysconfdir sharedstatedir localstatedir includedir \
1244		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245		libdir localedir mandir
1246do
1247  eval ac_val=\$$ac_var
1248  # Remove trailing slashes.
1249  case $ac_val in
1250    */ )
1251      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252      eval $ac_var=\$ac_val;;
1253  esac
1254  # Be sure to have absolute directory names.
1255  case $ac_val in
1256    [\\/$]* | ?:[\\/]* )  continue;;
1257    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1258  esac
1259  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1260done
1261
1262# There might be people who depend on the old broken behavior: `$host'
1263# used to hold the argument of --host etc.
1264# FIXME: To remove some day.
1265build=$build_alias
1266host=$host_alias
1267target=$target_alias
1268
1269# FIXME: To remove some day.
1270if test "x$host_alias" != x; then
1271  if test "x$build_alias" = x; then
1272    cross_compiling=maybe
1273  elif test "x$build_alias" != "x$host_alias"; then
1274    cross_compiling=yes
1275  fi
1276fi
1277
1278ac_tool_prefix=
1279test -n "$host_alias" && ac_tool_prefix=$host_alias-
1280
1281test "$silent" = yes && exec 6>/dev/null
1282
1283
1284ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285ac_ls_di=`ls -di .` &&
1286ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287  as_fn_error $? "working directory cannot be determined"
1288test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289  as_fn_error $? "pwd does not report name of working directory"
1290
1291
1292# Find the source files, if location was not specified.
1293if test -z "$srcdir"; then
1294  ac_srcdir_defaulted=yes
1295  # Try the directory containing this script, then the parent directory.
1296  ac_confdir=`$as_dirname -- "$as_myself" ||
1297$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298	 X"$as_myself" : 'X\(//\)[^/]' \| \
1299	 X"$as_myself" : 'X\(//\)$' \| \
1300	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301$as_echo X"$as_myself" |
1302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1303	    s//\1/
1304	    q
1305	  }
1306	  /^X\(\/\/\)[^/].*/{
1307	    s//\1/
1308	    q
1309	  }
1310	  /^X\(\/\/\)$/{
1311	    s//\1/
1312	    q
1313	  }
1314	  /^X\(\/\).*/{
1315	    s//\1/
1316	    q
1317	  }
1318	  s/.*/./; q'`
1319  srcdir=$ac_confdir
1320  if test ! -r "$srcdir/$ac_unique_file"; then
1321    srcdir=..
1322  fi
1323else
1324  ac_srcdir_defaulted=no
1325fi
1326if test ! -r "$srcdir/$ac_unique_file"; then
1327  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1329fi
1330ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331ac_abs_confdir=`(
1332	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1333	pwd)`
1334# When building in place, set srcdir=.
1335if test "$ac_abs_confdir" = "$ac_pwd"; then
1336  srcdir=.
1337fi
1338# Remove unnecessary trailing slashes from srcdir.
1339# Double slashes in file names in object file debugging info
1340# mess up M-x gdb in Emacs.
1341case $srcdir in
1342*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343esac
1344for ac_var in $ac_precious_vars; do
1345  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346  eval ac_env_${ac_var}_value=\$${ac_var}
1347  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1349done
1350
1351#
1352# Report the --help message.
1353#
1354if test "$ac_init_help" = "long"; then
1355  # Omit some internal or obsolete options to make the list less imposing.
1356  # This message is too long to be a string in the A/UX 3.1 sh.
1357  cat <<_ACEOF
1358\`configure' configures xf86-input-mouse 1.9.0 to adapt to many kinds of systems.
1359
1360Usage: $0 [OPTION]... [VAR=VALUE]...
1361
1362To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363VAR=VALUE.  See below for descriptions of some of the useful variables.
1364
1365Defaults for the options are specified in brackets.
1366
1367Configuration:
1368  -h, --help              display this help and exit
1369      --help=short        display options specific to this package
1370      --help=recursive    display the short help of all the included packages
1371  -V, --version           display version information and exit
1372  -q, --quiet, --silent   do not print \`checking ...' messages
1373      --cache-file=FILE   cache test results in FILE [disabled]
1374  -C, --config-cache      alias for \`--cache-file=config.cache'
1375  -n, --no-create         do not create output files
1376      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1377
1378Installation directories:
1379  --prefix=PREFIX         install architecture-independent files in PREFIX
1380                          [$ac_default_prefix]
1381  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1382                          [PREFIX]
1383
1384By default, \`make install' will install all the files in
1385\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1386an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387for instance \`--prefix=\$HOME'.
1388
1389For better control, use the options below.
1390
1391Fine tuning of the installation directories:
1392  --bindir=DIR            user executables [EPREFIX/bin]
1393  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1394  --libexecdir=DIR        program executables [EPREFIX/libexec]
1395  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1396  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1397  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1398  --libdir=DIR            object code libraries [EPREFIX/lib]
1399  --includedir=DIR        C header files [PREFIX/include]
1400  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1401  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1402  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1403  --infodir=DIR           info documentation [DATAROOTDIR/info]
1404  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1405  --mandir=DIR            man documentation [DATAROOTDIR/man]
1406  --docdir=DIR            documentation root
1407                          [DATAROOTDIR/doc/xf86-input-mouse]
1408  --htmldir=DIR           html documentation [DOCDIR]
1409  --dvidir=DIR            dvi documentation [DOCDIR]
1410  --pdfdir=DIR            pdf documentation [DOCDIR]
1411  --psdir=DIR             ps documentation [DOCDIR]
1412_ACEOF
1413
1414  cat <<\_ACEOF
1415
1416Program names:
1417  --program-prefix=PREFIX            prepend PREFIX to installed program names
1418  --program-suffix=SUFFIX            append SUFFIX to installed program names
1419  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1420
1421System types:
1422  --build=BUILD     configure for building on BUILD [guessed]
1423  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1424_ACEOF
1425fi
1426
1427if test -n "$ac_init_help"; then
1428  case $ac_init_help in
1429     short | recursive ) echo "Configuration of xf86-input-mouse 1.9.0:";;
1430   esac
1431  cat <<\_ACEOF
1432
1433Optional Features:
1434  --disable-option-checking  ignore unrecognized --enable/--with options
1435  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1436  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1437  --enable-static[=PKGS]  build static libraries [default=no]
1438  --enable-shared[=PKGS]  build shared libraries [default=yes]
1439  --enable-fast-install[=PKGS]
1440                          optimize for fast installation [default=yes]
1441  --enable-dependency-tracking
1442                          do not reject slow dependency extractors
1443  --disable-dependency-tracking
1444                          speeds up one-time build
1445  --disable-libtool-lock  avoid locking (might break parallel builds)
1446  --disable-selective-werror
1447                          Turn off selective compiler errors. (default:
1448                          enabled)
1449  --enable-strict-compilation
1450                          Enable all warnings from compiler and make them
1451                          errors (default: disabled)
1452  --enable-silent-rules   less verbose build output (undo: "make V=1")
1453  --disable-silent-rules  verbose build output (undo: "make V=0")
1454
1455Optional Packages:
1456  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1457  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1458  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1459                          both]
1460  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1461  --with-sysroot=DIR Search for dependent libraries within DIR
1462                        (or the compiler's sysroot if not specified).
1463  --with-lint             Use a lint-style source code checker (default:
1464                          disabled)
1465  --with-xorg-module-dir=DIR
1466                          Default xorg module directory
1467                          [[default=$libdir/xorg/modules]]
1468
1469
1470Some influential environment variables:
1471  CC          C compiler command
1472  CFLAGS      C compiler flags
1473  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1474              nonstandard directory <lib dir>
1475  LIBS        libraries to pass to the linker, e.g. -l<library>
1476  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1477              you have headers in a nonstandard directory <include dir>
1478  CPP         C preprocessor
1479  PKG_CONFIG  path to pkg-config utility
1480  PKG_CONFIG_PATH
1481              directories to add to pkg-config's search path
1482  PKG_CONFIG_LIBDIR
1483              path overriding pkg-config's built-in search path
1484  LINT        Path to a lint-style command
1485  LINT_FLAGS  Flags for the lint-style command
1486  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1487  XORG_LIBS   linker flags for XORG, overriding pkg-config
1488
1489Use these variables to override the choices made by `configure' or to help
1490it to find libraries and programs with nonstandard names/locations.
1491
1492Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1493_ACEOF
1494ac_status=$?
1495fi
1496
1497if test "$ac_init_help" = "recursive"; then
1498  # If there are subdirs, report their specific --help.
1499  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500    test -d "$ac_dir" ||
1501      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502      continue
1503    ac_builddir=.
1504
1505case "$ac_dir" in
1506.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507*)
1508  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1509  # A ".." for each directory in $ac_dir_suffix.
1510  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511  case $ac_top_builddir_sub in
1512  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514  esac ;;
1515esac
1516ac_abs_top_builddir=$ac_pwd
1517ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518# for backward compatibility:
1519ac_top_builddir=$ac_top_build_prefix
1520
1521case $srcdir in
1522  .)  # We are building in place.
1523    ac_srcdir=.
1524    ac_top_srcdir=$ac_top_builddir_sub
1525    ac_abs_top_srcdir=$ac_pwd ;;
1526  [\\/]* | ?:[\\/]* )  # Absolute name.
1527    ac_srcdir=$srcdir$ac_dir_suffix;
1528    ac_top_srcdir=$srcdir
1529    ac_abs_top_srcdir=$srcdir ;;
1530  *) # Relative name.
1531    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532    ac_top_srcdir=$ac_top_build_prefix$srcdir
1533    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534esac
1535ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537    cd "$ac_dir" || { ac_status=$?; continue; }
1538    # Check for guested configure.
1539    if test -f "$ac_srcdir/configure.gnu"; then
1540      echo &&
1541      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542    elif test -f "$ac_srcdir/configure"; then
1543      echo &&
1544      $SHELL "$ac_srcdir/configure" --help=recursive
1545    else
1546      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547    fi || ac_status=$?
1548    cd "$ac_pwd" || { ac_status=$?; break; }
1549  done
1550fi
1551
1552test -n "$ac_init_help" && exit $ac_status
1553if $ac_init_version; then
1554  cat <<\_ACEOF
1555xf86-input-mouse configure 1.9.0
1556generated by GNU Autoconf 2.69
1557
1558Copyright (C) 2012 Free Software Foundation, Inc.
1559This configure script is free software; the Free Software Foundation
1560gives unlimited permission to copy, distribute and modify it.
1561_ACEOF
1562  exit
1563fi
1564
1565## ------------------------ ##
1566## Autoconf initialization. ##
1567## ------------------------ ##
1568
1569# ac_fn_c_try_compile LINENO
1570# --------------------------
1571# Try to compile conftest.$ac_ext, and return whether this succeeded.
1572ac_fn_c_try_compile ()
1573{
1574  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575  rm -f conftest.$ac_objext
1576  if { { ac_try="$ac_compile"
1577case "(($ac_try" in
1578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579  *) ac_try_echo=$ac_try;;
1580esac
1581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582$as_echo "$ac_try_echo"; } >&5
1583  (eval "$ac_compile") 2>conftest.err
1584  ac_status=$?
1585  if test -s conftest.err; then
1586    grep -v '^ *+' conftest.err >conftest.er1
1587    cat conftest.er1 >&5
1588    mv -f conftest.er1 conftest.err
1589  fi
1590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591  test $ac_status = 0; } && {
1592	 test -z "$ac_c_werror_flag" ||
1593	 test ! -s conftest.err
1594       } && test -s conftest.$ac_objext; then :
1595  ac_retval=0
1596else
1597  $as_echo "$as_me: failed program was:" >&5
1598sed 's/^/| /' conftest.$ac_ext >&5
1599
1600	ac_retval=1
1601fi
1602  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603  as_fn_set_status $ac_retval
1604
1605} # ac_fn_c_try_compile
1606
1607# ac_fn_c_try_link LINENO
1608# -----------------------
1609# Try to link conftest.$ac_ext, and return whether this succeeded.
1610ac_fn_c_try_link ()
1611{
1612  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613  rm -f conftest.$ac_objext conftest$ac_exeext
1614  if { { ac_try="$ac_link"
1615case "(($ac_try" in
1616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617  *) ac_try_echo=$ac_try;;
1618esac
1619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620$as_echo "$ac_try_echo"; } >&5
1621  (eval "$ac_link") 2>conftest.err
1622  ac_status=$?
1623  if test -s conftest.err; then
1624    grep -v '^ *+' conftest.err >conftest.er1
1625    cat conftest.er1 >&5
1626    mv -f conftest.er1 conftest.err
1627  fi
1628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629  test $ac_status = 0; } && {
1630	 test -z "$ac_c_werror_flag" ||
1631	 test ! -s conftest.err
1632       } && test -s conftest$ac_exeext && {
1633	 test "$cross_compiling" = yes ||
1634	 test -x conftest$ac_exeext
1635       }; then :
1636  ac_retval=0
1637else
1638  $as_echo "$as_me: failed program was:" >&5
1639sed 's/^/| /' conftest.$ac_ext >&5
1640
1641	ac_retval=1
1642fi
1643  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1644  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1645  # interfere with the next link command; also delete a directory that is
1646  # left behind by Apple's compiler.  We do this before executing the actions.
1647  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1648  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649  as_fn_set_status $ac_retval
1650
1651} # ac_fn_c_try_link
1652
1653# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1654# -------------------------------------------------------
1655# Tests whether HEADER exists and can be compiled using the include files in
1656# INCLUDES, setting the cache variable VAR accordingly.
1657ac_fn_c_check_header_compile ()
1658{
1659  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661$as_echo_n "checking for $2... " >&6; }
1662if eval \${$3+:} false; then :
1663  $as_echo_n "(cached) " >&6
1664else
1665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666/* end confdefs.h.  */
1667$4
1668#include <$2>
1669_ACEOF
1670if ac_fn_c_try_compile "$LINENO"; then :
1671  eval "$3=yes"
1672else
1673  eval "$3=no"
1674fi
1675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676fi
1677eval ac_res=\$$3
1678	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679$as_echo "$ac_res" >&6; }
1680  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681
1682} # ac_fn_c_check_header_compile
1683
1684# ac_fn_c_try_cpp LINENO
1685# ----------------------
1686# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1687ac_fn_c_try_cpp ()
1688{
1689  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690  if { { ac_try="$ac_cpp conftest.$ac_ext"
1691case "(($ac_try" in
1692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693  *) ac_try_echo=$ac_try;;
1694esac
1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696$as_echo "$ac_try_echo"; } >&5
1697  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1698  ac_status=$?
1699  if test -s conftest.err; then
1700    grep -v '^ *+' conftest.err >conftest.er1
1701    cat conftest.er1 >&5
1702    mv -f conftest.er1 conftest.err
1703  fi
1704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705  test $ac_status = 0; } > conftest.i && {
1706	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1707	 test ! -s conftest.err
1708       }; then :
1709  ac_retval=0
1710else
1711  $as_echo "$as_me: failed program was:" >&5
1712sed 's/^/| /' conftest.$ac_ext >&5
1713
1714    ac_retval=1
1715fi
1716  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717  as_fn_set_status $ac_retval
1718
1719} # ac_fn_c_try_cpp
1720
1721# ac_fn_c_try_run LINENO
1722# ----------------------
1723# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724# that executables *can* be run.
1725ac_fn_c_try_run ()
1726{
1727  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728  if { { ac_try="$ac_link"
1729case "(($ac_try" in
1730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731  *) ac_try_echo=$ac_try;;
1732esac
1733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734$as_echo "$ac_try_echo"; } >&5
1735  (eval "$ac_link") 2>&5
1736  ac_status=$?
1737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739  { { case "(($ac_try" in
1740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741  *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745  (eval "$ac_try") 2>&5
1746  ac_status=$?
1747  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748  test $ac_status = 0; }; }; then :
1749  ac_retval=0
1750else
1751  $as_echo "$as_me: program exited with status $ac_status" >&5
1752       $as_echo "$as_me: failed program was:" >&5
1753sed 's/^/| /' conftest.$ac_ext >&5
1754
1755       ac_retval=$ac_status
1756fi
1757  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759  as_fn_set_status $ac_retval
1760
1761} # ac_fn_c_try_run
1762
1763# ac_fn_c_check_func LINENO FUNC VAR
1764# ----------------------------------
1765# Tests whether FUNC exists, setting the cache variable VAR accordingly
1766ac_fn_c_check_func ()
1767{
1768  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770$as_echo_n "checking for $2... " >&6; }
1771if eval \${$3+:} false; then :
1772  $as_echo_n "(cached) " >&6
1773else
1774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775/* end confdefs.h.  */
1776/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1777   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1778#define $2 innocuous_$2
1779
1780/* System header to define __stub macros and hopefully few prototypes,
1781    which can conflict with char $2 (); below.
1782    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1783    <limits.h> exists even on freestanding compilers.  */
1784
1785#ifdef __STDC__
1786# include <limits.h>
1787#else
1788# include <assert.h>
1789#endif
1790
1791#undef $2
1792
1793/* Override any GCC internal prototype to avoid an error.
1794   Use char because int might match the return type of a GCC
1795   builtin and then its argument prototype would still apply.  */
1796#ifdef __cplusplus
1797extern "C"
1798#endif
1799char $2 ();
1800/* The GNU C library defines this for functions which it implements
1801    to always fail with ENOSYS.  Some functions are actually named
1802    something starting with __ and the normal name is an alias.  */
1803#if defined __stub_$2 || defined __stub___$2
1804choke me
1805#endif
1806
1807int
1808main ()
1809{
1810return $2 ();
1811  ;
1812  return 0;
1813}
1814_ACEOF
1815if ac_fn_c_try_link "$LINENO"; then :
1816  eval "$3=yes"
1817else
1818  eval "$3=no"
1819fi
1820rm -f core conftest.err conftest.$ac_objext \
1821    conftest$ac_exeext conftest.$ac_ext
1822fi
1823eval ac_res=\$$3
1824	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825$as_echo "$ac_res" >&6; }
1826  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827
1828} # ac_fn_c_check_func
1829
1830# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1831# ---------------------------------------------
1832# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1833# accordingly.
1834ac_fn_c_check_decl ()
1835{
1836  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837  as_decl_name=`echo $2|sed 's/ *(.*//'`
1838  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1840$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1841if eval \${$3+:} false; then :
1842  $as_echo_n "(cached) " >&6
1843else
1844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845/* end confdefs.h.  */
1846$4
1847int
1848main ()
1849{
1850#ifndef $as_decl_name
1851#ifdef __cplusplus
1852  (void) $as_decl_use;
1853#else
1854  (void) $as_decl_name;
1855#endif
1856#endif
1857
1858  ;
1859  return 0;
1860}
1861_ACEOF
1862if ac_fn_c_try_compile "$LINENO"; then :
1863  eval "$3=yes"
1864else
1865  eval "$3=no"
1866fi
1867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868fi
1869eval ac_res=\$$3
1870	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871$as_echo "$ac_res" >&6; }
1872  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874} # ac_fn_c_check_decl
1875cat >config.log <<_ACEOF
1876This file contains any messages produced by compilers while
1877running configure, to aid debugging if configure makes a mistake.
1878
1879It was created by xf86-input-mouse $as_me 1.9.0, which was
1880generated by GNU Autoconf 2.69.  Invocation command line was
1881
1882  $ $0 $@
1883
1884_ACEOF
1885exec 5>>config.log
1886{
1887cat <<_ASUNAME
1888## --------- ##
1889## Platform. ##
1890## --------- ##
1891
1892hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1893uname -m = `(uname -m) 2>/dev/null || echo unknown`
1894uname -r = `(uname -r) 2>/dev/null || echo unknown`
1895uname -s = `(uname -s) 2>/dev/null || echo unknown`
1896uname -v = `(uname -v) 2>/dev/null || echo unknown`
1897
1898/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1899/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1900
1901/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1902/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1903/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1904/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1905/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1906/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1907/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1908
1909_ASUNAME
1910
1911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912for as_dir in $PATH
1913do
1914  IFS=$as_save_IFS
1915  test -z "$as_dir" && as_dir=.
1916    $as_echo "PATH: $as_dir"
1917  done
1918IFS=$as_save_IFS
1919
1920} >&5
1921
1922cat >&5 <<_ACEOF
1923
1924
1925## ----------- ##
1926## Core tests. ##
1927## ----------- ##
1928
1929_ACEOF
1930
1931
1932# Keep a trace of the command line.
1933# Strip out --no-create and --no-recursion so they do not pile up.
1934# Strip out --silent because we don't want to record it for future runs.
1935# Also quote any args containing shell meta-characters.
1936# Make two passes to allow for proper duplicate-argument suppression.
1937ac_configure_args=
1938ac_configure_args0=
1939ac_configure_args1=
1940ac_must_keep_next=false
1941for ac_pass in 1 2
1942do
1943  for ac_arg
1944  do
1945    case $ac_arg in
1946    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1947    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1948    | -silent | --silent | --silen | --sile | --sil)
1949      continue ;;
1950    *\'*)
1951      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1952    esac
1953    case $ac_pass in
1954    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1955    2)
1956      as_fn_append ac_configure_args1 " '$ac_arg'"
1957      if test $ac_must_keep_next = true; then
1958	ac_must_keep_next=false # Got value, back to normal.
1959      else
1960	case $ac_arg in
1961	  *=* | --config-cache | -C | -disable-* | --disable-* \
1962	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1963	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1964	  | -with-* | --with-* | -without-* | --without-* | --x)
1965	    case "$ac_configure_args0 " in
1966	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1967	    esac
1968	    ;;
1969	  -* ) ac_must_keep_next=true ;;
1970	esac
1971      fi
1972      as_fn_append ac_configure_args " '$ac_arg'"
1973      ;;
1974    esac
1975  done
1976done
1977{ ac_configure_args0=; unset ac_configure_args0;}
1978{ ac_configure_args1=; unset ac_configure_args1;}
1979
1980# When interrupted or exit'd, cleanup temporary files, and complete
1981# config.log.  We remove comments because anyway the quotes in there
1982# would cause problems or look ugly.
1983# WARNING: Use '\'' to represent an apostrophe within the trap.
1984# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1985trap 'exit_status=$?
1986  # Save into config.log some information that might help in debugging.
1987  {
1988    echo
1989
1990    $as_echo "## ---------------- ##
1991## Cache variables. ##
1992## ---------------- ##"
1993    echo
1994    # The following way of writing the cache mishandles newlines in values,
1995(
1996  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1997    eval ac_val=\$$ac_var
1998    case $ac_val in #(
1999    *${as_nl}*)
2000      case $ac_var in #(
2001      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2002$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2003      esac
2004      case $ac_var in #(
2005      _ | IFS | as_nl) ;; #(
2006      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2007      *) { eval $ac_var=; unset $ac_var;} ;;
2008      esac ;;
2009    esac
2010  done
2011  (set) 2>&1 |
2012    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2013    *${as_nl}ac_space=\ *)
2014      sed -n \
2015	"s/'\''/'\''\\\\'\'''\''/g;
2016	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2017      ;; #(
2018    *)
2019      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2020      ;;
2021    esac |
2022    sort
2023)
2024    echo
2025
2026    $as_echo "## ----------------- ##
2027## Output variables. ##
2028## ----------------- ##"
2029    echo
2030    for ac_var in $ac_subst_vars
2031    do
2032      eval ac_val=\$$ac_var
2033      case $ac_val in
2034      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2035      esac
2036      $as_echo "$ac_var='\''$ac_val'\''"
2037    done | sort
2038    echo
2039
2040    if test -n "$ac_subst_files"; then
2041      $as_echo "## ------------------- ##
2042## File substitutions. ##
2043## ------------------- ##"
2044      echo
2045      for ac_var in $ac_subst_files
2046      do
2047	eval ac_val=\$$ac_var
2048	case $ac_val in
2049	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2050	esac
2051	$as_echo "$ac_var='\''$ac_val'\''"
2052      done | sort
2053      echo
2054    fi
2055
2056    if test -s confdefs.h; then
2057      $as_echo "## ----------- ##
2058## confdefs.h. ##
2059## ----------- ##"
2060      echo
2061      cat confdefs.h
2062      echo
2063    fi
2064    test "$ac_signal" != 0 &&
2065      $as_echo "$as_me: caught signal $ac_signal"
2066    $as_echo "$as_me: exit $exit_status"
2067  } >&5
2068  rm -f core *.core core.conftest.* &&
2069    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2070    exit $exit_status
2071' 0
2072for ac_signal in 1 2 13 15; do
2073  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2074done
2075ac_signal=0
2076
2077# confdefs.h avoids OS command line length limits that DEFS can exceed.
2078rm -f -r conftest* confdefs.h
2079
2080$as_echo "/* confdefs.h */" > confdefs.h
2081
2082# Predefined preprocessor variables.
2083
2084cat >>confdefs.h <<_ACEOF
2085#define PACKAGE_NAME "$PACKAGE_NAME"
2086_ACEOF
2087
2088cat >>confdefs.h <<_ACEOF
2089#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2090_ACEOF
2091
2092cat >>confdefs.h <<_ACEOF
2093#define PACKAGE_VERSION "$PACKAGE_VERSION"
2094_ACEOF
2095
2096cat >>confdefs.h <<_ACEOF
2097#define PACKAGE_STRING "$PACKAGE_STRING"
2098_ACEOF
2099
2100cat >>confdefs.h <<_ACEOF
2101#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2102_ACEOF
2103
2104cat >>confdefs.h <<_ACEOF
2105#define PACKAGE_URL "$PACKAGE_URL"
2106_ACEOF
2107
2108
2109# Let the site file select an alternate cache file if it wants to.
2110# Prefer an explicitly selected file to automatically selected ones.
2111ac_site_file1=NONE
2112ac_site_file2=NONE
2113if test -n "$CONFIG_SITE"; then
2114  # We do not want a PATH search for config.site.
2115  case $CONFIG_SITE in #((
2116    -*)  ac_site_file1=./$CONFIG_SITE;;
2117    */*) ac_site_file1=$CONFIG_SITE;;
2118    *)   ac_site_file1=./$CONFIG_SITE;;
2119  esac
2120elif test "x$prefix" != xNONE; then
2121  ac_site_file1=$prefix/share/config.site
2122  ac_site_file2=$prefix/etc/config.site
2123else
2124  ac_site_file1=$ac_default_prefix/share/config.site
2125  ac_site_file2=$ac_default_prefix/etc/config.site
2126fi
2127for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2128do
2129  test "x$ac_site_file" = xNONE && continue
2130  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2131    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2132$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2133    sed 's/^/| /' "$ac_site_file" >&5
2134    . "$ac_site_file" \
2135      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2137as_fn_error $? "failed to load site script $ac_site_file
2138See \`config.log' for more details" "$LINENO" 5; }
2139  fi
2140done
2141
2142if test -r "$cache_file"; then
2143  # Some versions of bash will fail to source /dev/null (special files
2144  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2145  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2146    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2147$as_echo "$as_me: loading cache $cache_file" >&6;}
2148    case $cache_file in
2149      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2150      *)                      . "./$cache_file";;
2151    esac
2152  fi
2153else
2154  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2155$as_echo "$as_me: creating cache $cache_file" >&6;}
2156  >$cache_file
2157fi
2158
2159# Check that the precious variables saved in the cache have kept the same
2160# value.
2161ac_cache_corrupted=false
2162for ac_var in $ac_precious_vars; do
2163  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2164  eval ac_new_set=\$ac_env_${ac_var}_set
2165  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2166  eval ac_new_val=\$ac_env_${ac_var}_value
2167  case $ac_old_set,$ac_new_set in
2168    set,)
2169      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2170$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2171      ac_cache_corrupted=: ;;
2172    ,set)
2173      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2174$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2175      ac_cache_corrupted=: ;;
2176    ,);;
2177    *)
2178      if test "x$ac_old_val" != "x$ac_new_val"; then
2179	# differences in whitespace do not lead to failure.
2180	ac_old_val_w=`echo x $ac_old_val`
2181	ac_new_val_w=`echo x $ac_new_val`
2182	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2183	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2184$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2185	  ac_cache_corrupted=:
2186	else
2187	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2188$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2189	  eval $ac_var=\$ac_old_val
2190	fi
2191	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2192$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2193	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2194$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2195      fi;;
2196  esac
2197  # Pass precious variables to config.status.
2198  if test "$ac_new_set" = set; then
2199    case $ac_new_val in
2200    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2201    *) ac_arg=$ac_var=$ac_new_val ;;
2202    esac
2203    case " $ac_configure_args " in
2204      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2205      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2206    esac
2207  fi
2208done
2209if $ac_cache_corrupted; then
2210  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2212  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2213$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2214  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2215fi
2216## -------------------- ##
2217## Main body of script. ##
2218## -------------------- ##
2219
2220ac_ext=c
2221ac_cpp='$CPP $CPPFLAGS'
2222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2224ac_compiler_gnu=$ac_cv_c_compiler_gnu
2225
2226
2227
2228ac_config_headers="$ac_config_headers config.h"
2229
2230ac_aux_dir=
2231for ac_dir in . "$srcdir"/.; do
2232  if test -f "$ac_dir/install-sh"; then
2233    ac_aux_dir=$ac_dir
2234    ac_install_sh="$ac_aux_dir/install-sh -c"
2235    break
2236  elif test -f "$ac_dir/install.sh"; then
2237    ac_aux_dir=$ac_dir
2238    ac_install_sh="$ac_aux_dir/install.sh -c"
2239    break
2240  elif test -f "$ac_dir/shtool"; then
2241    ac_aux_dir=$ac_dir
2242    ac_install_sh="$ac_aux_dir/shtool install -c"
2243    break
2244  fi
2245done
2246if test -z "$ac_aux_dir"; then
2247  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2248fi
2249
2250# These three variables are undocumented and unsupported,
2251# and are intended to be withdrawn in a future Autoconf release.
2252# They can cause serious problems if a builder's source tree is in a directory
2253# whose full name contains unusual characters.
2254ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2255ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2256ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2257
2258
2259
2260# Initialize Automake
2261am__api_version='1.12'
2262
2263# Find a good install program.  We prefer a C program (faster),
2264# so one script is as good as another.  But avoid the broken or
2265# incompatible versions:
2266# SysV /etc/install, /usr/sbin/install
2267# SunOS /usr/etc/install
2268# IRIX /sbin/install
2269# AIX /bin/install
2270# AmigaOS /C/install, which installs bootblocks on floppy discs
2271# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2272# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2273# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2274# OS/2's system install, which has a completely different semantic
2275# ./install, which can be erroneously created by make from ./install.sh.
2276# Reject install programs that cannot install multiple files.
2277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2278$as_echo_n "checking for a BSD-compatible install... " >&6; }
2279if test -z "$INSTALL"; then
2280if ${ac_cv_path_install+:} false; then :
2281  $as_echo_n "(cached) " >&6
2282else
2283  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284for as_dir in $PATH
2285do
2286  IFS=$as_save_IFS
2287  test -z "$as_dir" && as_dir=.
2288    # Account for people who put trailing slashes in PATH elements.
2289case $as_dir/ in #((
2290  ./ | .// | /[cC]/* | \
2291  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2292  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2293  /usr/ucb/* ) ;;
2294  *)
2295    # OSF1 and SCO ODT 3.0 have their own names for install.
2296    # Don't use installbsd from OSF since it installs stuff as root
2297    # by default.
2298    for ac_prog in ginstall scoinst install; do
2299      for ac_exec_ext in '' $ac_executable_extensions; do
2300	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2301	  if test $ac_prog = install &&
2302	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2303	    # AIX install.  It has an incompatible calling convention.
2304	    :
2305	  elif test $ac_prog = install &&
2306	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2307	    # program-specific install script used by HP pwplus--don't use.
2308	    :
2309	  else
2310	    rm -rf conftest.one conftest.two conftest.dir
2311	    echo one > conftest.one
2312	    echo two > conftest.two
2313	    mkdir conftest.dir
2314	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2315	      test -s conftest.one && test -s conftest.two &&
2316	      test -s conftest.dir/conftest.one &&
2317	      test -s conftest.dir/conftest.two
2318	    then
2319	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2320	      break 3
2321	    fi
2322	  fi
2323	fi
2324      done
2325    done
2326    ;;
2327esac
2328
2329  done
2330IFS=$as_save_IFS
2331
2332rm -rf conftest.one conftest.two conftest.dir
2333
2334fi
2335  if test "${ac_cv_path_install+set}" = set; then
2336    INSTALL=$ac_cv_path_install
2337  else
2338    # As a last resort, use the slow shell script.  Don't cache a
2339    # value for INSTALL within a source directory, because that will
2340    # break other packages using the cache if that directory is
2341    # removed, or if the value is a relative name.
2342    INSTALL=$ac_install_sh
2343  fi
2344fi
2345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2346$as_echo "$INSTALL" >&6; }
2347
2348# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2349# It thinks the first close brace ends the variable substitution.
2350test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2351
2352test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2353
2354test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2355
2356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2357$as_echo_n "checking whether build environment is sane... " >&6; }
2358# Reject unsafe characters in $srcdir or the absolute working directory
2359# name.  Accept space and tab only in the latter.
2360am_lf='
2361'
2362case `pwd` in
2363  *[\\\"\#\$\&\'\`$am_lf]*)
2364    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2365esac
2366case $srcdir in
2367  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2368    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2369esac
2370
2371# Do 'set' in a subshell so we don't clobber the current shell's
2372# arguments.  Must try -L first in case configure is actually a
2373# symlink; some systems play weird games with the mod time of symlinks
2374# (eg FreeBSD returns the mod time of the symlink's containing
2375# directory).
2376if (
2377   am_has_slept=no
2378   for am_try in 1 2; do
2379     echo "timestamp, slept: $am_has_slept" > conftest.file
2380     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2381     if test "$*" = "X"; then
2382	# -L didn't work.
2383	set X `ls -t "$srcdir/configure" conftest.file`
2384     fi
2385     if test "$*" != "X $srcdir/configure conftest.file" \
2386	&& test "$*" != "X conftest.file $srcdir/configure"; then
2387
2388	# If neither matched, then we have a broken ls.  This can happen
2389	# if, for instance, CONFIG_SHELL is bash and it inherits a
2390	# broken ls alias from the environment.  This has actually
2391	# happened.  Such a system could not be considered "sane".
2392	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2393  alias in your environment" "$LINENO" 5
2394     fi
2395     if test "$2" = conftest.file || test $am_try -eq 2; then
2396       break
2397     fi
2398     # Just in case.
2399     sleep 1
2400     am_has_slept=yes
2401   done
2402   test "$2" = conftest.file
2403   )
2404then
2405   # Ok.
2406   :
2407else
2408   as_fn_error $? "newly created file is older than distributed files!
2409Check your system clock" "$LINENO" 5
2410fi
2411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2412$as_echo "yes" >&6; }
2413# If we didn't sleep, we still need to ensure time stamps of config.status and
2414# generated files are strictly newer.
2415am_sleep_pid=
2416if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2417  ( sleep 1 ) &
2418  am_sleep_pid=$!
2419fi
2420
2421rm -f conftest.file
2422
2423test "$program_prefix" != NONE &&
2424  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2425# Use a double $ so make ignores it.
2426test "$program_suffix" != NONE &&
2427  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2428# Double any \ or $.
2429# By default was `s,x,x', remove it if useless.
2430ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2431program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2432
2433# expand $ac_aux_dir to an absolute path
2434am_aux_dir=`cd $ac_aux_dir && pwd`
2435
2436if test x"${MISSING+set}" != xset; then
2437  case $am_aux_dir in
2438  *\ * | *\	*)
2439    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2440  *)
2441    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2442  esac
2443fi
2444# Use eval to expand $SHELL
2445if eval "$MISSING --run true"; then
2446  am_missing_run="$MISSING --run "
2447else
2448  am_missing_run=
2449  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2450$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2451fi
2452
2453if test x"${install_sh}" != xset; then
2454  case $am_aux_dir in
2455  *\ * | *\	*)
2456    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2457  *)
2458    install_sh="\${SHELL} $am_aux_dir/install-sh"
2459  esac
2460fi
2461
2462# Installed binaries are usually stripped using 'strip' when the user
2463# run "make install-strip".  However 'strip' might not be the right
2464# tool to use in cross-compilation environments, therefore Automake
2465# will honor the 'STRIP' environment variable to overrule this program.
2466if test "$cross_compiling" != no; then
2467  if test -n "$ac_tool_prefix"; then
2468  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2469set dummy ${ac_tool_prefix}strip; ac_word=$2
2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471$as_echo_n "checking for $ac_word... " >&6; }
2472if ${ac_cv_prog_STRIP+:} false; then :
2473  $as_echo_n "(cached) " >&6
2474else
2475  if test -n "$STRIP"; then
2476  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2477else
2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479for as_dir in $PATH
2480do
2481  IFS=$as_save_IFS
2482  test -z "$as_dir" && as_dir=.
2483    for ac_exec_ext in '' $ac_executable_extensions; do
2484  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2485    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2486    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2487    break 2
2488  fi
2489done
2490  done
2491IFS=$as_save_IFS
2492
2493fi
2494fi
2495STRIP=$ac_cv_prog_STRIP
2496if test -n "$STRIP"; then
2497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2498$as_echo "$STRIP" >&6; }
2499else
2500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2501$as_echo "no" >&6; }
2502fi
2503
2504
2505fi
2506if test -z "$ac_cv_prog_STRIP"; then
2507  ac_ct_STRIP=$STRIP
2508  # Extract the first word of "strip", so it can be a program name with args.
2509set dummy strip; ac_word=$2
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2511$as_echo_n "checking for $ac_word... " >&6; }
2512if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2513  $as_echo_n "(cached) " >&6
2514else
2515  if test -n "$ac_ct_STRIP"; then
2516  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2517else
2518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519for as_dir in $PATH
2520do
2521  IFS=$as_save_IFS
2522  test -z "$as_dir" && as_dir=.
2523    for ac_exec_ext in '' $ac_executable_extensions; do
2524  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2525    ac_cv_prog_ac_ct_STRIP="strip"
2526    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2527    break 2
2528  fi
2529done
2530  done
2531IFS=$as_save_IFS
2532
2533fi
2534fi
2535ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2536if test -n "$ac_ct_STRIP"; then
2537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2538$as_echo "$ac_ct_STRIP" >&6; }
2539else
2540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2541$as_echo "no" >&6; }
2542fi
2543
2544  if test "x$ac_ct_STRIP" = x; then
2545    STRIP=":"
2546  else
2547    case $cross_compiling:$ac_tool_warned in
2548yes:)
2549{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2550$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2551ac_tool_warned=yes ;;
2552esac
2553    STRIP=$ac_ct_STRIP
2554  fi
2555else
2556  STRIP="$ac_cv_prog_STRIP"
2557fi
2558
2559fi
2560INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2561
2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2563$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2564if test -z "$MKDIR_P"; then
2565  if ${ac_cv_path_mkdir+:} false; then :
2566  $as_echo_n "(cached) " >&6
2567else
2568  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2570do
2571  IFS=$as_save_IFS
2572  test -z "$as_dir" && as_dir=.
2573    for ac_prog in mkdir gmkdir; do
2574	 for ac_exec_ext in '' $ac_executable_extensions; do
2575	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2576	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2577	     'mkdir (GNU coreutils) '* | \
2578	     'mkdir (coreutils) '* | \
2579	     'mkdir (fileutils) '4.1*)
2580	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2581	       break 3;;
2582	   esac
2583	 done
2584       done
2585  done
2586IFS=$as_save_IFS
2587
2588fi
2589
2590  test -d ./--version && rmdir ./--version
2591  if test "${ac_cv_path_mkdir+set}" = set; then
2592    MKDIR_P="$ac_cv_path_mkdir -p"
2593  else
2594    # As a last resort, use the slow shell script.  Don't cache a
2595    # value for MKDIR_P within a source directory, because that will
2596    # break other packages using the cache if that directory is
2597    # removed, or if the value is a relative name.
2598    MKDIR_P="$ac_install_sh -d"
2599  fi
2600fi
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2602$as_echo "$MKDIR_P" >&6; }
2603
2604for ac_prog in gawk mawk nawk awk
2605do
2606  # Extract the first word of "$ac_prog", so it can be a program name with args.
2607set dummy $ac_prog; ac_word=$2
2608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609$as_echo_n "checking for $ac_word... " >&6; }
2610if ${ac_cv_prog_AWK+:} false; then :
2611  $as_echo_n "(cached) " >&6
2612else
2613  if test -n "$AWK"; then
2614  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2615else
2616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617for as_dir in $PATH
2618do
2619  IFS=$as_save_IFS
2620  test -z "$as_dir" && as_dir=.
2621    for ac_exec_ext in '' $ac_executable_extensions; do
2622  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2623    ac_cv_prog_AWK="$ac_prog"
2624    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2625    break 2
2626  fi
2627done
2628  done
2629IFS=$as_save_IFS
2630
2631fi
2632fi
2633AWK=$ac_cv_prog_AWK
2634if test -n "$AWK"; then
2635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2636$as_echo "$AWK" >&6; }
2637else
2638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639$as_echo "no" >&6; }
2640fi
2641
2642
2643  test -n "$AWK" && break
2644done
2645
2646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2647$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2648set x ${MAKE-make}
2649ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2650if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2651  $as_echo_n "(cached) " >&6
2652else
2653  cat >conftest.make <<\_ACEOF
2654SHELL = /bin/sh
2655all:
2656	@echo '@@@%%%=$(MAKE)=@@@%%%'
2657_ACEOF
2658# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2659case `${MAKE-make} -f conftest.make 2>/dev/null` in
2660  *@@@%%%=?*=@@@%%%*)
2661    eval ac_cv_prog_make_${ac_make}_set=yes;;
2662  *)
2663    eval ac_cv_prog_make_${ac_make}_set=no;;
2664esac
2665rm -f conftest.make
2666fi
2667if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2669$as_echo "yes" >&6; }
2670  SET_MAKE=
2671else
2672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673$as_echo "no" >&6; }
2674  SET_MAKE="MAKE=${MAKE-make}"
2675fi
2676
2677rm -rf .tst 2>/dev/null
2678mkdir .tst 2>/dev/null
2679if test -d .tst; then
2680  am__leading_dot=.
2681else
2682  am__leading_dot=_
2683fi
2684rmdir .tst 2>/dev/null
2685
2686if test "`cd $srcdir && pwd`" != "`pwd`"; then
2687  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2688  # is not polluted with repeated "-I."
2689  am__isrc=' -I$(srcdir)'
2690  # test to see if srcdir already configured
2691  if test -f $srcdir/config.status; then
2692    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2693  fi
2694fi
2695
2696# test whether we have cygpath
2697if test -z "$CYGPATH_W"; then
2698  if (cygpath --version) >/dev/null 2>/dev/null; then
2699    CYGPATH_W='cygpath -w'
2700  else
2701    CYGPATH_W=echo
2702  fi
2703fi
2704
2705
2706# Define the identity of the package.
2707 PACKAGE='xf86-input-mouse'
2708 VERSION='1.9.0'
2709
2710
2711cat >>confdefs.h <<_ACEOF
2712#define PACKAGE "$PACKAGE"
2713_ACEOF
2714
2715
2716cat >>confdefs.h <<_ACEOF
2717#define VERSION "$VERSION"
2718_ACEOF
2719
2720# Some tools Automake needs.
2721
2722ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2723
2724
2725AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2726
2727
2728AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2729
2730
2731AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2732
2733
2734MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2735
2736# For better backward compatibility.  To be removed once Automake 1.9.x
2737# dies out for good.  For more background, see:
2738# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2739# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2740mkdir_p='$(MKDIR_P)'
2741
2742# We need awk for the "check" target.  The system "awk" is bad on
2743# some platforms.
2744# Always define AMTAR for backward compatibility.  Yes, it's still used
2745# in the wild :-(  We should find a proper way to deprecate it ...
2746AMTAR='$${TAR-tar}'
2747
2748am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2749
2750
2751
2752
2753
2754
2755# Initialize libtool
2756# Check whether --enable-static was given.
2757if test "${enable_static+set}" = set; then :
2758  enableval=$enable_static; p=${PACKAGE-default}
2759    case $enableval in
2760    yes) enable_static=yes ;;
2761    no) enable_static=no ;;
2762    *)
2763     enable_static=no
2764      # Look at the argument we got.  We use all the common list separators.
2765      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2766      for pkg in $enableval; do
2767	IFS="$lt_save_ifs"
2768	if test "X$pkg" = "X$p"; then
2769	  enable_static=yes
2770	fi
2771      done
2772      IFS="$lt_save_ifs"
2773      ;;
2774    esac
2775else
2776  enable_static=no
2777fi
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787case `pwd` in
2788  *\ * | *\	*)
2789    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2790$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2791esac
2792
2793
2794
2795macro_version='2.4.2'
2796macro_revision='1.3337'
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810ltmain="$ac_aux_dir/ltmain.sh"
2811
2812# Make sure we can run config.sub.
2813$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2814  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2815
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2817$as_echo_n "checking build system type... " >&6; }
2818if ${ac_cv_build+:} false; then :
2819  $as_echo_n "(cached) " >&6
2820else
2821  ac_build_alias=$build_alias
2822test "x$ac_build_alias" = x &&
2823  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2824test "x$ac_build_alias" = x &&
2825  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2826ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2827  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2828
2829fi
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2831$as_echo "$ac_cv_build" >&6; }
2832case $ac_cv_build in
2833*-*-*) ;;
2834*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2835esac
2836build=$ac_cv_build
2837ac_save_IFS=$IFS; IFS='-'
2838set x $ac_cv_build
2839shift
2840build_cpu=$1
2841build_vendor=$2
2842shift; shift
2843# Remember, the first character of IFS is used to create $*,
2844# except with old shells:
2845build_os=$*
2846IFS=$ac_save_IFS
2847case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2848
2849
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2851$as_echo_n "checking host system type... " >&6; }
2852if ${ac_cv_host+:} false; then :
2853  $as_echo_n "(cached) " >&6
2854else
2855  if test "x$host_alias" = x; then
2856  ac_cv_host=$ac_cv_build
2857else
2858  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2859    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2860fi
2861
2862fi
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2864$as_echo "$ac_cv_host" >&6; }
2865case $ac_cv_host in
2866*-*-*) ;;
2867*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2868esac
2869host=$ac_cv_host
2870ac_save_IFS=$IFS; IFS='-'
2871set x $ac_cv_host
2872shift
2873host_cpu=$1
2874host_vendor=$2
2875shift; shift
2876# Remember, the first character of IFS is used to create $*,
2877# except with old shells:
2878host_os=$*
2879IFS=$ac_save_IFS
2880case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2881
2882
2883# Backslashify metacharacters that are still active within
2884# double-quoted strings.
2885sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2886
2887# Same as above, but do not quote variable references.
2888double_quote_subst='s/\(["`\\]\)/\\\1/g'
2889
2890# Sed substitution to delay expansion of an escaped shell variable in a
2891# double_quote_subst'ed string.
2892delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2893
2894# Sed substitution to delay expansion of an escaped single quote.
2895delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2896
2897# Sed substitution to avoid accidental globbing in evaled expressions
2898no_glob_subst='s/\*/\\\*/g'
2899
2900ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2901ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2902ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2903
2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2905$as_echo_n "checking how to print strings... " >&6; }
2906# Test print first, because it will be a builtin if present.
2907if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2908   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2909  ECHO='print -r --'
2910elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2911  ECHO='printf %s\n'
2912else
2913  # Use this function as a fallback that always works.
2914  func_fallback_echo ()
2915  {
2916    eval 'cat <<_LTECHO_EOF
2917$1
2918_LTECHO_EOF'
2919  }
2920  ECHO='func_fallback_echo'
2921fi
2922
2923# func_echo_all arg...
2924# Invoke $ECHO with all args, space-separated.
2925func_echo_all ()
2926{
2927    $ECHO ""
2928}
2929
2930case "$ECHO" in
2931  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2932$as_echo "printf" >&6; } ;;
2933  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2934$as_echo "print -r" >&6; } ;;
2935  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2936$as_echo "cat" >&6; } ;;
2937esac
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952DEPDIR="${am__leading_dot}deps"
2953
2954ac_config_commands="$ac_config_commands depfiles"
2955
2956
2957am_make=${MAKE-make}
2958cat > confinc << 'END'
2959am__doit:
2960	@echo this is the am__doit target
2961.PHONY: am__doit
2962END
2963# If we don't find an include directive, just comment out the code.
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2965$as_echo_n "checking for style of include used by $am_make... " >&6; }
2966am__include="#"
2967am__quote=
2968_am_result=none
2969# First try GNU make style include.
2970echo "include confinc" > confmf
2971# Ignore all kinds of additional output from 'make'.
2972case `$am_make -s -f confmf 2> /dev/null` in #(
2973*the\ am__doit\ target*)
2974  am__include=include
2975  am__quote=
2976  _am_result=GNU
2977  ;;
2978esac
2979# Now try BSD make style include.
2980if test "$am__include" = "#"; then
2981   echo '.include "confinc"' > confmf
2982   case `$am_make -s -f confmf 2> /dev/null` in #(
2983   *the\ am__doit\ target*)
2984     am__include=.include
2985     am__quote="\""
2986     _am_result=BSD
2987     ;;
2988   esac
2989fi
2990
2991
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2993$as_echo "$_am_result" >&6; }
2994rm -f confinc confmf
2995
2996# Check whether --enable-dependency-tracking was given.
2997if test "${enable_dependency_tracking+set}" = set; then :
2998  enableval=$enable_dependency_tracking;
2999fi
3000
3001if test "x$enable_dependency_tracking" != xno; then
3002  am_depcomp="$ac_aux_dir/depcomp"
3003  AMDEPBACKSLASH='\'
3004  am__nodep='_no'
3005fi
3006 if test "x$enable_dependency_tracking" != xno; then
3007  AMDEP_TRUE=
3008  AMDEP_FALSE='#'
3009else
3010  AMDEP_TRUE='#'
3011  AMDEP_FALSE=
3012fi
3013
3014
3015ac_ext=c
3016ac_cpp='$CPP $CPPFLAGS'
3017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020if test -n "$ac_tool_prefix"; then
3021  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3022set dummy ${ac_tool_prefix}gcc; ac_word=$2
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024$as_echo_n "checking for $ac_word... " >&6; }
3025if ${ac_cv_prog_CC+:} false; then :
3026  $as_echo_n "(cached) " >&6
3027else
3028  if test -n "$CC"; then
3029  ac_cv_prog_CC="$CC" # Let the user override the test.
3030else
3031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032for as_dir in $PATH
3033do
3034  IFS=$as_save_IFS
3035  test -z "$as_dir" && as_dir=.
3036    for ac_exec_ext in '' $ac_executable_extensions; do
3037  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040    break 2
3041  fi
3042done
3043  done
3044IFS=$as_save_IFS
3045
3046fi
3047fi
3048CC=$ac_cv_prog_CC
3049if test -n "$CC"; then
3050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3051$as_echo "$CC" >&6; }
3052else
3053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054$as_echo "no" >&6; }
3055fi
3056
3057
3058fi
3059if test -z "$ac_cv_prog_CC"; then
3060  ac_ct_CC=$CC
3061  # Extract the first word of "gcc", so it can be a program name with args.
3062set dummy gcc; ac_word=$2
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064$as_echo_n "checking for $ac_word... " >&6; }
3065if ${ac_cv_prog_ac_ct_CC+:} false; then :
3066  $as_echo_n "(cached) " >&6
3067else
3068  if test -n "$ac_ct_CC"; then
3069  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3070else
3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072for as_dir in $PATH
3073do
3074  IFS=$as_save_IFS
3075  test -z "$as_dir" && as_dir=.
3076    for ac_exec_ext in '' $ac_executable_extensions; do
3077  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078    ac_cv_prog_ac_ct_CC="gcc"
3079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080    break 2
3081  fi
3082done
3083  done
3084IFS=$as_save_IFS
3085
3086fi
3087fi
3088ac_ct_CC=$ac_cv_prog_ac_ct_CC
3089if test -n "$ac_ct_CC"; then
3090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3091$as_echo "$ac_ct_CC" >&6; }
3092else
3093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094$as_echo "no" >&6; }
3095fi
3096
3097  if test "x$ac_ct_CC" = x; then
3098    CC=""
3099  else
3100    case $cross_compiling:$ac_tool_warned in
3101yes:)
3102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3104ac_tool_warned=yes ;;
3105esac
3106    CC=$ac_ct_CC
3107  fi
3108else
3109  CC="$ac_cv_prog_CC"
3110fi
3111
3112if test -z "$CC"; then
3113          if test -n "$ac_tool_prefix"; then
3114    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3115set dummy ${ac_tool_prefix}cc; ac_word=$2
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117$as_echo_n "checking for $ac_word... " >&6; }
3118if ${ac_cv_prog_CC+:} false; then :
3119  $as_echo_n "(cached) " >&6
3120else
3121  if test -n "$CC"; then
3122  ac_cv_prog_CC="$CC" # Let the user override the test.
3123else
3124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125for as_dir in $PATH
3126do
3127  IFS=$as_save_IFS
3128  test -z "$as_dir" && as_dir=.
3129    for ac_exec_ext in '' $ac_executable_extensions; do
3130  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131    ac_cv_prog_CC="${ac_tool_prefix}cc"
3132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3133    break 2
3134  fi
3135done
3136  done
3137IFS=$as_save_IFS
3138
3139fi
3140fi
3141CC=$ac_cv_prog_CC
3142if test -n "$CC"; then
3143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144$as_echo "$CC" >&6; }
3145else
3146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147$as_echo "no" >&6; }
3148fi
3149
3150
3151  fi
3152fi
3153if test -z "$CC"; then
3154  # Extract the first word of "cc", so it can be a program name with args.
3155set dummy cc; ac_word=$2
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157$as_echo_n "checking for $ac_word... " >&6; }
3158if ${ac_cv_prog_CC+:} false; then :
3159  $as_echo_n "(cached) " >&6
3160else
3161  if test -n "$CC"; then
3162  ac_cv_prog_CC="$CC" # Let the user override the test.
3163else
3164  ac_prog_rejected=no
3165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166for as_dir in $PATH
3167do
3168  IFS=$as_save_IFS
3169  test -z "$as_dir" && as_dir=.
3170    for ac_exec_ext in '' $ac_executable_extensions; do
3171  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3173       ac_prog_rejected=yes
3174       continue
3175     fi
3176    ac_cv_prog_CC="cc"
3177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178    break 2
3179  fi
3180done
3181  done
3182IFS=$as_save_IFS
3183
3184if test $ac_prog_rejected = yes; then
3185  # We found a bogon in the path, so make sure we never use it.
3186  set dummy $ac_cv_prog_CC
3187  shift
3188  if test $# != 0; then
3189    # We chose a different compiler from the bogus one.
3190    # However, it has the same basename, so the bogon will be chosen
3191    # first if we set CC to just the basename; use the full file name.
3192    shift
3193    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3194  fi
3195fi
3196fi
3197fi
3198CC=$ac_cv_prog_CC
3199if test -n "$CC"; then
3200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201$as_echo "$CC" >&6; }
3202else
3203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204$as_echo "no" >&6; }
3205fi
3206
3207
3208fi
3209if test -z "$CC"; then
3210  if test -n "$ac_tool_prefix"; then
3211  for ac_prog in cl.exe
3212  do
3213    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3214set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216$as_echo_n "checking for $ac_word... " >&6; }
3217if ${ac_cv_prog_CC+:} false; then :
3218  $as_echo_n "(cached) " >&6
3219else
3220  if test -n "$CC"; then
3221  ac_cv_prog_CC="$CC" # Let the user override the test.
3222else
3223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224for as_dir in $PATH
3225do
3226  IFS=$as_save_IFS
3227  test -z "$as_dir" && as_dir=.
3228    for ac_exec_ext in '' $ac_executable_extensions; do
3229  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3231    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232    break 2
3233  fi
3234done
3235  done
3236IFS=$as_save_IFS
3237
3238fi
3239fi
3240CC=$ac_cv_prog_CC
3241if test -n "$CC"; then
3242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3243$as_echo "$CC" >&6; }
3244else
3245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246$as_echo "no" >&6; }
3247fi
3248
3249
3250    test -n "$CC" && break
3251  done
3252fi
3253if test -z "$CC"; then
3254  ac_ct_CC=$CC
3255  for ac_prog in cl.exe
3256do
3257  # Extract the first word of "$ac_prog", so it can be a program name with args.
3258set dummy $ac_prog; ac_word=$2
3259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260$as_echo_n "checking for $ac_word... " >&6; }
3261if ${ac_cv_prog_ac_ct_CC+:} false; then :
3262  $as_echo_n "(cached) " >&6
3263else
3264  if test -n "$ac_ct_CC"; then
3265  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3266else
3267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268for as_dir in $PATH
3269do
3270  IFS=$as_save_IFS
3271  test -z "$as_dir" && as_dir=.
3272    for ac_exec_ext in '' $ac_executable_extensions; do
3273  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274    ac_cv_prog_ac_ct_CC="$ac_prog"
3275    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276    break 2
3277  fi
3278done
3279  done
3280IFS=$as_save_IFS
3281
3282fi
3283fi
3284ac_ct_CC=$ac_cv_prog_ac_ct_CC
3285if test -n "$ac_ct_CC"; then
3286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3287$as_echo "$ac_ct_CC" >&6; }
3288else
3289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290$as_echo "no" >&6; }
3291fi
3292
3293
3294  test -n "$ac_ct_CC" && break
3295done
3296
3297  if test "x$ac_ct_CC" = x; then
3298    CC=""
3299  else
3300    case $cross_compiling:$ac_tool_warned in
3301yes:)
3302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3304ac_tool_warned=yes ;;
3305esac
3306    CC=$ac_ct_CC
3307  fi
3308fi
3309
3310fi
3311
3312
3313test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3315as_fn_error $? "no acceptable C compiler found in \$PATH
3316See \`config.log' for more details" "$LINENO" 5; }
3317
3318# Provide some information about the compiler.
3319$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3320set X $ac_compile
3321ac_compiler=$2
3322for ac_option in --version -v -V -qversion; do
3323  { { ac_try="$ac_compiler $ac_option >&5"
3324case "(($ac_try" in
3325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326  *) ac_try_echo=$ac_try;;
3327esac
3328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329$as_echo "$ac_try_echo"; } >&5
3330  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3331  ac_status=$?
3332  if test -s conftest.err; then
3333    sed '10a\
3334... rest of stderr output deleted ...
3335         10q' conftest.err >conftest.er1
3336    cat conftest.er1 >&5
3337  fi
3338  rm -f conftest.er1 conftest.err
3339  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340  test $ac_status = 0; }
3341done
3342
3343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344/* end confdefs.h.  */
3345
3346int
3347main ()
3348{
3349
3350  ;
3351  return 0;
3352}
3353_ACEOF
3354ac_clean_files_save=$ac_clean_files
3355ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3356# Try to create an executable without -o first, disregard a.out.
3357# It will help us diagnose broken compilers, and finding out an intuition
3358# of exeext.
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3360$as_echo_n "checking whether the C compiler works... " >&6; }
3361ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3362
3363# The possible output files:
3364ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3365
3366ac_rmfiles=
3367for ac_file in $ac_files
3368do
3369  case $ac_file in
3370    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3371    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3372  esac
3373done
3374rm -f $ac_rmfiles
3375
3376if { { ac_try="$ac_link_default"
3377case "(($ac_try" in
3378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379  *) ac_try_echo=$ac_try;;
3380esac
3381eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382$as_echo "$ac_try_echo"; } >&5
3383  (eval "$ac_link_default") 2>&5
3384  ac_status=$?
3385  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386  test $ac_status = 0; }; then :
3387  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3388# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3389# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3390# so that the user can short-circuit this test for compilers unknown to
3391# Autoconf.
3392for ac_file in $ac_files ''
3393do
3394  test -f "$ac_file" || continue
3395  case $ac_file in
3396    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3397	;;
3398    [ab].out )
3399	# We found the default executable, but exeext='' is most
3400	# certainly right.
3401	break;;
3402    *.* )
3403	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3404	then :; else
3405	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3406	fi
3407	# We set ac_cv_exeext here because the later test for it is not
3408	# safe: cross compilers may not add the suffix if given an `-o'
3409	# argument, so we may need to know it at that point already.
3410	# Even if this section looks crufty: it has the advantage of
3411	# actually working.
3412	break;;
3413    * )
3414	break;;
3415  esac
3416done
3417test "$ac_cv_exeext" = no && ac_cv_exeext=
3418
3419else
3420  ac_file=''
3421fi
3422if test -z "$ac_file"; then :
3423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424$as_echo "no" >&6; }
3425$as_echo "$as_me: failed program was:" >&5
3426sed 's/^/| /' conftest.$ac_ext >&5
3427
3428{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3430as_fn_error 77 "C compiler cannot create executables
3431See \`config.log' for more details" "$LINENO" 5; }
3432else
3433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3434$as_echo "yes" >&6; }
3435fi
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3437$as_echo_n "checking for C compiler default output file name... " >&6; }
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3439$as_echo "$ac_file" >&6; }
3440ac_exeext=$ac_cv_exeext
3441
3442rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3443ac_clean_files=$ac_clean_files_save
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3445$as_echo_n "checking for suffix of executables... " >&6; }
3446if { { ac_try="$ac_link"
3447case "(($ac_try" in
3448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449  *) ac_try_echo=$ac_try;;
3450esac
3451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452$as_echo "$ac_try_echo"; } >&5
3453  (eval "$ac_link") 2>&5
3454  ac_status=$?
3455  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456  test $ac_status = 0; }; then :
3457  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3458# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3459# work properly (i.e., refer to `conftest.exe'), while it won't with
3460# `rm'.
3461for ac_file in conftest.exe conftest conftest.*; do
3462  test -f "$ac_file" || continue
3463  case $ac_file in
3464    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3465    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3466	  break;;
3467    * ) break;;
3468  esac
3469done
3470else
3471  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3474See \`config.log' for more details" "$LINENO" 5; }
3475fi
3476rm -f conftest conftest$ac_cv_exeext
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3478$as_echo "$ac_cv_exeext" >&6; }
3479
3480rm -f conftest.$ac_ext
3481EXEEXT=$ac_cv_exeext
3482ac_exeext=$EXEEXT
3483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484/* end confdefs.h.  */
3485#include <stdio.h>
3486int
3487main ()
3488{
3489FILE *f = fopen ("conftest.out", "w");
3490 return ferror (f) || fclose (f) != 0;
3491
3492  ;
3493  return 0;
3494}
3495_ACEOF
3496ac_clean_files="$ac_clean_files conftest.out"
3497# Check that the compiler produces executables we can run.  If not, either
3498# the compiler is broken, or we cross compile.
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3500$as_echo_n "checking whether we are cross compiling... " >&6; }
3501if test "$cross_compiling" != yes; then
3502  { { ac_try="$ac_link"
3503case "(($ac_try" in
3504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505  *) ac_try_echo=$ac_try;;
3506esac
3507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508$as_echo "$ac_try_echo"; } >&5
3509  (eval "$ac_link") 2>&5
3510  ac_status=$?
3511  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512  test $ac_status = 0; }
3513  if { ac_try='./conftest$ac_cv_exeext'
3514  { { case "(($ac_try" in
3515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516  *) ac_try_echo=$ac_try;;
3517esac
3518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519$as_echo "$ac_try_echo"; } >&5
3520  (eval "$ac_try") 2>&5
3521  ac_status=$?
3522  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523  test $ac_status = 0; }; }; then
3524    cross_compiling=no
3525  else
3526    if test "$cross_compiling" = maybe; then
3527	cross_compiling=yes
3528    else
3529	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531as_fn_error $? "cannot run C compiled programs.
3532If you meant to cross compile, use \`--host'.
3533See \`config.log' for more details" "$LINENO" 5; }
3534    fi
3535  fi
3536fi
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3538$as_echo "$cross_compiling" >&6; }
3539
3540rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3541ac_clean_files=$ac_clean_files_save
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3543$as_echo_n "checking for suffix of object files... " >&6; }
3544if ${ac_cv_objext+:} false; then :
3545  $as_echo_n "(cached) " >&6
3546else
3547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548/* end confdefs.h.  */
3549
3550int
3551main ()
3552{
3553
3554  ;
3555  return 0;
3556}
3557_ACEOF
3558rm -f conftest.o conftest.obj
3559if { { ac_try="$ac_compile"
3560case "(($ac_try" in
3561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562  *) ac_try_echo=$ac_try;;
3563esac
3564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565$as_echo "$ac_try_echo"; } >&5
3566  (eval "$ac_compile") 2>&5
3567  ac_status=$?
3568  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3569  test $ac_status = 0; }; then :
3570  for ac_file in conftest.o conftest.obj conftest.*; do
3571  test -f "$ac_file" || continue;
3572  case $ac_file in
3573    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3574    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3575       break;;
3576  esac
3577done
3578else
3579  $as_echo "$as_me: failed program was:" >&5
3580sed 's/^/| /' conftest.$ac_ext >&5
3581
3582{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584as_fn_error $? "cannot compute suffix of object files: cannot compile
3585See \`config.log' for more details" "$LINENO" 5; }
3586fi
3587rm -f conftest.$ac_cv_objext conftest.$ac_ext
3588fi
3589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3590$as_echo "$ac_cv_objext" >&6; }
3591OBJEXT=$ac_cv_objext
3592ac_objext=$OBJEXT
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3594$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3595if ${ac_cv_c_compiler_gnu+:} false; then :
3596  $as_echo_n "(cached) " >&6
3597else
3598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599/* end confdefs.h.  */
3600
3601int
3602main ()
3603{
3604#ifndef __GNUC__
3605       choke me
3606#endif
3607
3608  ;
3609  return 0;
3610}
3611_ACEOF
3612if ac_fn_c_try_compile "$LINENO"; then :
3613  ac_compiler_gnu=yes
3614else
3615  ac_compiler_gnu=no
3616fi
3617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618ac_cv_c_compiler_gnu=$ac_compiler_gnu
3619
3620fi
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3622$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3623if test $ac_compiler_gnu = yes; then
3624  GCC=yes
3625else
3626  GCC=
3627fi
3628ac_test_CFLAGS=${CFLAGS+set}
3629ac_save_CFLAGS=$CFLAGS
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3631$as_echo_n "checking whether $CC accepts -g... " >&6; }
3632if ${ac_cv_prog_cc_g+:} false; then :
3633  $as_echo_n "(cached) " >&6
3634else
3635  ac_save_c_werror_flag=$ac_c_werror_flag
3636   ac_c_werror_flag=yes
3637   ac_cv_prog_cc_g=no
3638   CFLAGS="-g"
3639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640/* end confdefs.h.  */
3641
3642int
3643main ()
3644{
3645
3646  ;
3647  return 0;
3648}
3649_ACEOF
3650if ac_fn_c_try_compile "$LINENO"; then :
3651  ac_cv_prog_cc_g=yes
3652else
3653  CFLAGS=""
3654      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655/* end confdefs.h.  */
3656
3657int
3658main ()
3659{
3660
3661  ;
3662  return 0;
3663}
3664_ACEOF
3665if ac_fn_c_try_compile "$LINENO"; then :
3666
3667else
3668  ac_c_werror_flag=$ac_save_c_werror_flag
3669	 CFLAGS="-g"
3670	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671/* end confdefs.h.  */
3672
3673int
3674main ()
3675{
3676
3677  ;
3678  return 0;
3679}
3680_ACEOF
3681if ac_fn_c_try_compile "$LINENO"; then :
3682  ac_cv_prog_cc_g=yes
3683fi
3684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685fi
3686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687fi
3688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689   ac_c_werror_flag=$ac_save_c_werror_flag
3690fi
3691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3692$as_echo "$ac_cv_prog_cc_g" >&6; }
3693if test "$ac_test_CFLAGS" = set; then
3694  CFLAGS=$ac_save_CFLAGS
3695elif test $ac_cv_prog_cc_g = yes; then
3696  if test "$GCC" = yes; then
3697    CFLAGS="-g -O2"
3698  else
3699    CFLAGS="-g"
3700  fi
3701else
3702  if test "$GCC" = yes; then
3703    CFLAGS="-O2"
3704  else
3705    CFLAGS=
3706  fi
3707fi
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3709$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3710if ${ac_cv_prog_cc_c89+:} false; then :
3711  $as_echo_n "(cached) " >&6
3712else
3713  ac_cv_prog_cc_c89=no
3714ac_save_CC=$CC
3715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716/* end confdefs.h.  */
3717#include <stdarg.h>
3718#include <stdio.h>
3719struct stat;
3720/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3721struct buf { int x; };
3722FILE * (*rcsopen) (struct buf *, struct stat *, int);
3723static char *e (p, i)
3724     char **p;
3725     int i;
3726{
3727  return p[i];
3728}
3729static char *f (char * (*g) (char **, int), char **p, ...)
3730{
3731  char *s;
3732  va_list v;
3733  va_start (v,p);
3734  s = g (p, va_arg (v,int));
3735  va_end (v);
3736  return s;
3737}
3738
3739/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3740   function prototypes and stuff, but not '\xHH' hex character constants.
3741   These don't provoke an error unfortunately, instead are silently treated
3742   as 'x'.  The following induces an error, until -std is added to get
3743   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3744   array size at least.  It's necessary to write '\x00'==0 to get something
3745   that's true only with -std.  */
3746int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3747
3748/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3749   inside strings and character constants.  */
3750#define FOO(x) 'x'
3751int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3752
3753int test (int i, double x);
3754struct s1 {int (*f) (int a);};
3755struct s2 {int (*f) (double a);};
3756int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3757int argc;
3758char **argv;
3759int
3760main ()
3761{
3762return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3763  ;
3764  return 0;
3765}
3766_ACEOF
3767for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3768	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3769do
3770  CC="$ac_save_CC $ac_arg"
3771  if ac_fn_c_try_compile "$LINENO"; then :
3772  ac_cv_prog_cc_c89=$ac_arg
3773fi
3774rm -f core conftest.err conftest.$ac_objext
3775  test "x$ac_cv_prog_cc_c89" != "xno" && break
3776done
3777rm -f conftest.$ac_ext
3778CC=$ac_save_CC
3779
3780fi
3781# AC_CACHE_VAL
3782case "x$ac_cv_prog_cc_c89" in
3783  x)
3784    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3785$as_echo "none needed" >&6; } ;;
3786  xno)
3787    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3788$as_echo "unsupported" >&6; } ;;
3789  *)
3790    CC="$CC $ac_cv_prog_cc_c89"
3791    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3792$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3793esac
3794if test "x$ac_cv_prog_cc_c89" != xno; then :
3795
3796fi
3797
3798ac_ext=c
3799ac_cpp='$CPP $CPPFLAGS'
3800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802ac_compiler_gnu=$ac_cv_c_compiler_gnu
3803
3804depcc="$CC"   am_compiler_list=
3805
3806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3807$as_echo_n "checking dependency style of $depcc... " >&6; }
3808if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3809  $as_echo_n "(cached) " >&6
3810else
3811  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3812  # We make a subdir and do the tests there.  Otherwise we can end up
3813  # making bogus files that we don't know about and never remove.  For
3814  # instance it was reported that on HP-UX the gcc test will end up
3815  # making a dummy file named 'D' -- because '-MD' means "put the output
3816  # in D".
3817  rm -rf conftest.dir
3818  mkdir conftest.dir
3819  # Copy depcomp to subdir because otherwise we won't find it if we're
3820  # using a relative directory.
3821  cp "$am_depcomp" conftest.dir
3822  cd conftest.dir
3823  # We will build objects and dependencies in a subdirectory because
3824  # it helps to detect inapplicable dependency modes.  For instance
3825  # both Tru64's cc and ICC support -MD to output dependencies as a
3826  # side effect of compilation, but ICC will put the dependencies in
3827  # the current directory while Tru64 will put them in the object
3828  # directory.
3829  mkdir sub
3830
3831  am_cv_CC_dependencies_compiler_type=none
3832  if test "$am_compiler_list" = ""; then
3833     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3834  fi
3835  am__universal=false
3836  case " $depcc " in #(
3837     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3838     esac
3839
3840  for depmode in $am_compiler_list; do
3841    # Setup a source with many dependencies, because some compilers
3842    # like to wrap large dependency lists on column 80 (with \), and
3843    # we should not choose a depcomp mode which is confused by this.
3844    #
3845    # We need to recreate these files for each test, as the compiler may
3846    # overwrite some of them when testing with obscure command lines.
3847    # This happens at least with the AIX C compiler.
3848    : > sub/conftest.c
3849    for i in 1 2 3 4 5 6; do
3850      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3851      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3852      # Solaris 10 /bin/sh.
3853      echo '/* dummy */' > sub/conftst$i.h
3854    done
3855    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3856
3857    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3858    # mode.  It turns out that the SunPro C++ compiler does not properly
3859    # handle '-M -o', and we need to detect this.  Also, some Intel
3860    # versions had trouble with output in subdirs.
3861    am__obj=sub/conftest.${OBJEXT-o}
3862    am__minus_obj="-o $am__obj"
3863    case $depmode in
3864    gcc)
3865      # This depmode causes a compiler race in universal mode.
3866      test "$am__universal" = false || continue
3867      ;;
3868    nosideeffect)
3869      # After this tag, mechanisms are not by side-effect, so they'll
3870      # only be used when explicitly requested.
3871      if test "x$enable_dependency_tracking" = xyes; then
3872	continue
3873      else
3874	break
3875      fi
3876      ;;
3877    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3878      # This compiler won't grok '-c -o', but also, the minuso test has
3879      # not run yet.  These depmodes are late enough in the game, and
3880      # so weak that their functioning should not be impacted.
3881      am__obj=conftest.${OBJEXT-o}
3882      am__minus_obj=
3883      ;;
3884    none) break ;;
3885    esac
3886    if depmode=$depmode \
3887       source=sub/conftest.c object=$am__obj \
3888       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3889       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3890         >/dev/null 2>conftest.err &&
3891       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3892       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3893       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3894       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3895      # icc doesn't choke on unknown options, it will just issue warnings
3896      # or remarks (even with -Werror).  So we grep stderr for any message
3897      # that says an option was ignored or not supported.
3898      # When given -MP, icc 7.0 and 7.1 complain thusly:
3899      #   icc: Command line warning: ignoring option '-M'; no argument required
3900      # The diagnosis changed in icc 8.0:
3901      #   icc: Command line remark: option '-MP' not supported
3902      if (grep 'ignoring option' conftest.err ||
3903          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3904        am_cv_CC_dependencies_compiler_type=$depmode
3905        break
3906      fi
3907    fi
3908  done
3909
3910  cd ..
3911  rm -rf conftest.dir
3912else
3913  am_cv_CC_dependencies_compiler_type=none
3914fi
3915
3916fi
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3918$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3919CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3920
3921 if
3922  test "x$enable_dependency_tracking" != xno \
3923  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3924  am__fastdepCC_TRUE=
3925  am__fastdepCC_FALSE='#'
3926else
3927  am__fastdepCC_TRUE='#'
3928  am__fastdepCC_FALSE=
3929fi
3930
3931
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3933$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3934if ${ac_cv_path_SED+:} false; then :
3935  $as_echo_n "(cached) " >&6
3936else
3937            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3938     for ac_i in 1 2 3 4 5 6 7; do
3939       ac_script="$ac_script$as_nl$ac_script"
3940     done
3941     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3942     { ac_script=; unset ac_script;}
3943     if test -z "$SED"; then
3944  ac_path_SED_found=false
3945  # Loop through the user's path and test for each of PROGNAME-LIST
3946  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947for as_dir in $PATH
3948do
3949  IFS=$as_save_IFS
3950  test -z "$as_dir" && as_dir=.
3951    for ac_prog in sed gsed; do
3952    for ac_exec_ext in '' $ac_executable_extensions; do
3953      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3954      as_fn_executable_p "$ac_path_SED" || continue
3955# Check for GNU ac_path_SED and select it if it is found.
3956  # Check for GNU $ac_path_SED
3957case `"$ac_path_SED" --version 2>&1` in
3958*GNU*)
3959  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3960*)
3961  ac_count=0
3962  $as_echo_n 0123456789 >"conftest.in"
3963  while :
3964  do
3965    cat "conftest.in" "conftest.in" >"conftest.tmp"
3966    mv "conftest.tmp" "conftest.in"
3967    cp "conftest.in" "conftest.nl"
3968    $as_echo '' >> "conftest.nl"
3969    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3970    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3971    as_fn_arith $ac_count + 1 && ac_count=$as_val
3972    if test $ac_count -gt ${ac_path_SED_max-0}; then
3973      # Best one so far, save it but keep looking for a better one
3974      ac_cv_path_SED="$ac_path_SED"
3975      ac_path_SED_max=$ac_count
3976    fi
3977    # 10*(2^10) chars as input seems more than enough
3978    test $ac_count -gt 10 && break
3979  done
3980  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3981esac
3982
3983      $ac_path_SED_found && break 3
3984    done
3985  done
3986  done
3987IFS=$as_save_IFS
3988  if test -z "$ac_cv_path_SED"; then
3989    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3990  fi
3991else
3992  ac_cv_path_SED=$SED
3993fi
3994
3995fi
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3997$as_echo "$ac_cv_path_SED" >&6; }
3998 SED="$ac_cv_path_SED"
3999  rm -f conftest.sed
4000
4001test -z "$SED" && SED=sed
4002Xsed="$SED -e 1s/^X//"
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4015$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4016if ${ac_cv_path_GREP+:} false; then :
4017  $as_echo_n "(cached) " >&6
4018else
4019  if test -z "$GREP"; then
4020  ac_path_GREP_found=false
4021  # Loop through the user's path and test for each of PROGNAME-LIST
4022  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4024do
4025  IFS=$as_save_IFS
4026  test -z "$as_dir" && as_dir=.
4027    for ac_prog in grep ggrep; do
4028    for ac_exec_ext in '' $ac_executable_extensions; do
4029      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4030      as_fn_executable_p "$ac_path_GREP" || continue
4031# Check for GNU ac_path_GREP and select it if it is found.
4032  # Check for GNU $ac_path_GREP
4033case `"$ac_path_GREP" --version 2>&1` in
4034*GNU*)
4035  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4036*)
4037  ac_count=0
4038  $as_echo_n 0123456789 >"conftest.in"
4039  while :
4040  do
4041    cat "conftest.in" "conftest.in" >"conftest.tmp"
4042    mv "conftest.tmp" "conftest.in"
4043    cp "conftest.in" "conftest.nl"
4044    $as_echo 'GREP' >> "conftest.nl"
4045    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4046    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4047    as_fn_arith $ac_count + 1 && ac_count=$as_val
4048    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4049      # Best one so far, save it but keep looking for a better one
4050      ac_cv_path_GREP="$ac_path_GREP"
4051      ac_path_GREP_max=$ac_count
4052    fi
4053    # 10*(2^10) chars as input seems more than enough
4054    test $ac_count -gt 10 && break
4055  done
4056  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4057esac
4058
4059      $ac_path_GREP_found && break 3
4060    done
4061  done
4062  done
4063IFS=$as_save_IFS
4064  if test -z "$ac_cv_path_GREP"; then
4065    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4066  fi
4067else
4068  ac_cv_path_GREP=$GREP
4069fi
4070
4071fi
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4073$as_echo "$ac_cv_path_GREP" >&6; }
4074 GREP="$ac_cv_path_GREP"
4075
4076
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4078$as_echo_n "checking for egrep... " >&6; }
4079if ${ac_cv_path_EGREP+:} false; then :
4080  $as_echo_n "(cached) " >&6
4081else
4082  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4083   then ac_cv_path_EGREP="$GREP -E"
4084   else
4085     if test -z "$EGREP"; then
4086  ac_path_EGREP_found=false
4087  # Loop through the user's path and test for each of PROGNAME-LIST
4088  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4090do
4091  IFS=$as_save_IFS
4092  test -z "$as_dir" && as_dir=.
4093    for ac_prog in egrep; do
4094    for ac_exec_ext in '' $ac_executable_extensions; do
4095      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4096      as_fn_executable_p "$ac_path_EGREP" || continue
4097# Check for GNU ac_path_EGREP and select it if it is found.
4098  # Check for GNU $ac_path_EGREP
4099case `"$ac_path_EGREP" --version 2>&1` in
4100*GNU*)
4101  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4102*)
4103  ac_count=0
4104  $as_echo_n 0123456789 >"conftest.in"
4105  while :
4106  do
4107    cat "conftest.in" "conftest.in" >"conftest.tmp"
4108    mv "conftest.tmp" "conftest.in"
4109    cp "conftest.in" "conftest.nl"
4110    $as_echo 'EGREP' >> "conftest.nl"
4111    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4112    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4113    as_fn_arith $ac_count + 1 && ac_count=$as_val
4114    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4115      # Best one so far, save it but keep looking for a better one
4116      ac_cv_path_EGREP="$ac_path_EGREP"
4117      ac_path_EGREP_max=$ac_count
4118    fi
4119    # 10*(2^10) chars as input seems more than enough
4120    test $ac_count -gt 10 && break
4121  done
4122  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4123esac
4124
4125      $ac_path_EGREP_found && break 3
4126    done
4127  done
4128  done
4129IFS=$as_save_IFS
4130  if test -z "$ac_cv_path_EGREP"; then
4131    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4132  fi
4133else
4134  ac_cv_path_EGREP=$EGREP
4135fi
4136
4137   fi
4138fi
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4140$as_echo "$ac_cv_path_EGREP" >&6; }
4141 EGREP="$ac_cv_path_EGREP"
4142
4143
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4145$as_echo_n "checking for fgrep... " >&6; }
4146if ${ac_cv_path_FGREP+:} false; then :
4147  $as_echo_n "(cached) " >&6
4148else
4149  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4150   then ac_cv_path_FGREP="$GREP -F"
4151   else
4152     if test -z "$FGREP"; then
4153  ac_path_FGREP_found=false
4154  # Loop through the user's path and test for each of PROGNAME-LIST
4155  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4157do
4158  IFS=$as_save_IFS
4159  test -z "$as_dir" && as_dir=.
4160    for ac_prog in fgrep; do
4161    for ac_exec_ext in '' $ac_executable_extensions; do
4162      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4163      as_fn_executable_p "$ac_path_FGREP" || continue
4164# Check for GNU ac_path_FGREP and select it if it is found.
4165  # Check for GNU $ac_path_FGREP
4166case `"$ac_path_FGREP" --version 2>&1` in
4167*GNU*)
4168  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4169*)
4170  ac_count=0
4171  $as_echo_n 0123456789 >"conftest.in"
4172  while :
4173  do
4174    cat "conftest.in" "conftest.in" >"conftest.tmp"
4175    mv "conftest.tmp" "conftest.in"
4176    cp "conftest.in" "conftest.nl"
4177    $as_echo 'FGREP' >> "conftest.nl"
4178    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4179    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4180    as_fn_arith $ac_count + 1 && ac_count=$as_val
4181    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4182      # Best one so far, save it but keep looking for a better one
4183      ac_cv_path_FGREP="$ac_path_FGREP"
4184      ac_path_FGREP_max=$ac_count
4185    fi
4186    # 10*(2^10) chars as input seems more than enough
4187    test $ac_count -gt 10 && break
4188  done
4189  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4190esac
4191
4192      $ac_path_FGREP_found && break 3
4193    done
4194  done
4195  done
4196IFS=$as_save_IFS
4197  if test -z "$ac_cv_path_FGREP"; then
4198    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4199  fi
4200else
4201  ac_cv_path_FGREP=$FGREP
4202fi
4203
4204   fi
4205fi
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4207$as_echo "$ac_cv_path_FGREP" >&6; }
4208 FGREP="$ac_cv_path_FGREP"
4209
4210
4211test -z "$GREP" && GREP=grep
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231# Check whether --with-gnu-ld was given.
4232if test "${with_gnu_ld+set}" = set; then :
4233  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4234else
4235  with_gnu_ld=no
4236fi
4237
4238ac_prog=ld
4239if test "$GCC" = yes; then
4240  # Check if gcc -print-prog-name=ld gives a path.
4241  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4242$as_echo_n "checking for ld used by $CC... " >&6; }
4243  case $host in
4244  *-*-mingw*)
4245    # gcc leaves a trailing carriage return which upsets mingw
4246    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4247  *)
4248    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4249  esac
4250  case $ac_prog in
4251    # Accept absolute paths.
4252    [\\/]* | ?:[\\/]*)
4253      re_direlt='/[^/][^/]*/\.\./'
4254      # Canonicalize the pathname of ld
4255      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4256      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4257	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4258      done
4259      test -z "$LD" && LD="$ac_prog"
4260      ;;
4261  "")
4262    # If it fails, then pretend we aren't using GCC.
4263    ac_prog=ld
4264    ;;
4265  *)
4266    # If it is relative, then search for the first ld in PATH.
4267    with_gnu_ld=unknown
4268    ;;
4269  esac
4270elif test "$with_gnu_ld" = yes; then
4271  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4272$as_echo_n "checking for GNU ld... " >&6; }
4273else
4274  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4275$as_echo_n "checking for non-GNU ld... " >&6; }
4276fi
4277if ${lt_cv_path_LD+:} false; then :
4278  $as_echo_n "(cached) " >&6
4279else
4280  if test -z "$LD"; then
4281  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4282  for ac_dir in $PATH; do
4283    IFS="$lt_save_ifs"
4284    test -z "$ac_dir" && ac_dir=.
4285    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4286      lt_cv_path_LD="$ac_dir/$ac_prog"
4287      # Check to see if the program is GNU ld.  I'd rather use --version,
4288      # but apparently some variants of GNU ld only accept -v.
4289      # Break only if it was the GNU/non-GNU ld that we prefer.
4290      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4291      *GNU* | *'with BFD'*)
4292	test "$with_gnu_ld" != no && break
4293	;;
4294      *)
4295	test "$with_gnu_ld" != yes && break
4296	;;
4297      esac
4298    fi
4299  done
4300  IFS="$lt_save_ifs"
4301else
4302  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4303fi
4304fi
4305
4306LD="$lt_cv_path_LD"
4307if test -n "$LD"; then
4308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4309$as_echo "$LD" >&6; }
4310else
4311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312$as_echo "no" >&6; }
4313fi
4314test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4316$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4317if ${lt_cv_prog_gnu_ld+:} false; then :
4318  $as_echo_n "(cached) " >&6
4319else
4320  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4321case `$LD -v 2>&1 </dev/null` in
4322*GNU* | *'with BFD'*)
4323  lt_cv_prog_gnu_ld=yes
4324  ;;
4325*)
4326  lt_cv_prog_gnu_ld=no
4327  ;;
4328esac
4329fi
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4331$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4332with_gnu_ld=$lt_cv_prog_gnu_ld
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4343$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4344if ${lt_cv_path_NM+:} false; then :
4345  $as_echo_n "(cached) " >&6
4346else
4347  if test -n "$NM"; then
4348  # Let the user override the test.
4349  lt_cv_path_NM="$NM"
4350else
4351  lt_nm_to_check="${ac_tool_prefix}nm"
4352  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4353    lt_nm_to_check="$lt_nm_to_check nm"
4354  fi
4355  for lt_tmp_nm in $lt_nm_to_check; do
4356    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4357    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4358      IFS="$lt_save_ifs"
4359      test -z "$ac_dir" && ac_dir=.
4360      tmp_nm="$ac_dir/$lt_tmp_nm"
4361      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4362	# Check to see if the nm accepts a BSD-compat flag.
4363	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4364	#   nm: unknown option "B" ignored
4365	# Tru64's nm complains that /dev/null is an invalid object file
4366	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4367	*/dev/null* | *'Invalid file or object type'*)
4368	  lt_cv_path_NM="$tmp_nm -B"
4369	  break
4370	  ;;
4371	*)
4372	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4373	  */dev/null*)
4374	    lt_cv_path_NM="$tmp_nm -p"
4375	    break
4376	    ;;
4377	  *)
4378	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4379	    continue # so that we can try to find one that supports BSD flags
4380	    ;;
4381	  esac
4382	  ;;
4383	esac
4384      fi
4385    done
4386    IFS="$lt_save_ifs"
4387  done
4388  : ${lt_cv_path_NM=no}
4389fi
4390fi
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4392$as_echo "$lt_cv_path_NM" >&6; }
4393if test "$lt_cv_path_NM" != "no"; then
4394  NM="$lt_cv_path_NM"
4395else
4396  # Didn't find any BSD compatible name lister, look for dumpbin.
4397  if test -n "$DUMPBIN"; then :
4398    # Let the user override the test.
4399  else
4400    if test -n "$ac_tool_prefix"; then
4401  for ac_prog in dumpbin "link -dump"
4402  do
4403    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4404set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406$as_echo_n "checking for $ac_word... " >&6; }
4407if ${ac_cv_prog_DUMPBIN+:} false; then :
4408  $as_echo_n "(cached) " >&6
4409else
4410  if test -n "$DUMPBIN"; then
4411  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4412else
4413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH
4415do
4416  IFS=$as_save_IFS
4417  test -z "$as_dir" && as_dir=.
4418    for ac_exec_ext in '' $ac_executable_extensions; do
4419  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4420    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422    break 2
4423  fi
4424done
4425  done
4426IFS=$as_save_IFS
4427
4428fi
4429fi
4430DUMPBIN=$ac_cv_prog_DUMPBIN
4431if test -n "$DUMPBIN"; then
4432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4433$as_echo "$DUMPBIN" >&6; }
4434else
4435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436$as_echo "no" >&6; }
4437fi
4438
4439
4440    test -n "$DUMPBIN" && break
4441  done
4442fi
4443if test -z "$DUMPBIN"; then
4444  ac_ct_DUMPBIN=$DUMPBIN
4445  for ac_prog in dumpbin "link -dump"
4446do
4447  # Extract the first word of "$ac_prog", so it can be a program name with args.
4448set dummy $ac_prog; ac_word=$2
4449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450$as_echo_n "checking for $ac_word... " >&6; }
4451if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4452  $as_echo_n "(cached) " >&6
4453else
4454  if test -n "$ac_ct_DUMPBIN"; then
4455  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4456else
4457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458for as_dir in $PATH
4459do
4460  IFS=$as_save_IFS
4461  test -z "$as_dir" && as_dir=.
4462    for ac_exec_ext in '' $ac_executable_extensions; do
4463  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4465    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466    break 2
4467  fi
4468done
4469  done
4470IFS=$as_save_IFS
4471
4472fi
4473fi
4474ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4475if test -n "$ac_ct_DUMPBIN"; then
4476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4477$as_echo "$ac_ct_DUMPBIN" >&6; }
4478else
4479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480$as_echo "no" >&6; }
4481fi
4482
4483
4484  test -n "$ac_ct_DUMPBIN" && break
4485done
4486
4487  if test "x$ac_ct_DUMPBIN" = x; then
4488    DUMPBIN=":"
4489  else
4490    case $cross_compiling:$ac_tool_warned in
4491yes:)
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494ac_tool_warned=yes ;;
4495esac
4496    DUMPBIN=$ac_ct_DUMPBIN
4497  fi
4498fi
4499
4500    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4501    *COFF*)
4502      DUMPBIN="$DUMPBIN -symbols"
4503      ;;
4504    *)
4505      DUMPBIN=:
4506      ;;
4507    esac
4508  fi
4509
4510  if test "$DUMPBIN" != ":"; then
4511    NM="$DUMPBIN"
4512  fi
4513fi
4514test -z "$NM" && NM=nm
4515
4516
4517
4518
4519
4520
4521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4522$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4523if ${lt_cv_nm_interface+:} false; then :
4524  $as_echo_n "(cached) " >&6
4525else
4526  lt_cv_nm_interface="BSD nm"
4527  echo "int some_variable = 0;" > conftest.$ac_ext
4528  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4529  (eval "$ac_compile" 2>conftest.err)
4530  cat conftest.err >&5
4531  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4532  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4533  cat conftest.err >&5
4534  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4535  cat conftest.out >&5
4536  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4537    lt_cv_nm_interface="MS dumpbin"
4538  fi
4539  rm -f conftest*
4540fi
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4542$as_echo "$lt_cv_nm_interface" >&6; }
4543
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4545$as_echo_n "checking whether ln -s works... " >&6; }
4546LN_S=$as_ln_s
4547if test "$LN_S" = "ln -s"; then
4548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4549$as_echo "yes" >&6; }
4550else
4551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4552$as_echo "no, using $LN_S" >&6; }
4553fi
4554
4555# find the maximum length of command line arguments
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4557$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4558if ${lt_cv_sys_max_cmd_len+:} false; then :
4559  $as_echo_n "(cached) " >&6
4560else
4561    i=0
4562  teststring="ABCD"
4563
4564  case $build_os in
4565  msdosdjgpp*)
4566    # On DJGPP, this test can blow up pretty badly due to problems in libc
4567    # (any single argument exceeding 2000 bytes causes a buffer overrun
4568    # during glob expansion).  Even if it were fixed, the result of this
4569    # check would be larger than it should be.
4570    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4571    ;;
4572
4573  gnu*)
4574    # Under GNU Hurd, this test is not required because there is
4575    # no limit to the length of command line arguments.
4576    # Libtool will interpret -1 as no limit whatsoever
4577    lt_cv_sys_max_cmd_len=-1;
4578    ;;
4579
4580  cygwin* | mingw* | cegcc*)
4581    # On Win9x/ME, this test blows up -- it succeeds, but takes
4582    # about 5 minutes as the teststring grows exponentially.
4583    # Worse, since 9x/ME are not pre-emptively multitasking,
4584    # you end up with a "frozen" computer, even though with patience
4585    # the test eventually succeeds (with a max line length of 256k).
4586    # Instead, let's just punt: use the minimum linelength reported by
4587    # all of the supported platforms: 8192 (on NT/2K/XP).
4588    lt_cv_sys_max_cmd_len=8192;
4589    ;;
4590
4591  mint*)
4592    # On MiNT this can take a long time and run out of memory.
4593    lt_cv_sys_max_cmd_len=8192;
4594    ;;
4595
4596  amigaos*)
4597    # On AmigaOS with pdksh, this test takes hours, literally.
4598    # So we just punt and use a minimum line length of 8192.
4599    lt_cv_sys_max_cmd_len=8192;
4600    ;;
4601
4602  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4603    # This has been around since 386BSD, at least.  Likely further.
4604    if test -x /sbin/sysctl; then
4605      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4606    elif test -x /usr/sbin/sysctl; then
4607      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4608    else
4609      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4610    fi
4611    # And add a safety zone
4612    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4613    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4614    ;;
4615
4616  interix*)
4617    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4618    lt_cv_sys_max_cmd_len=196608
4619    ;;
4620
4621  os2*)
4622    # The test takes a long time on OS/2.
4623    lt_cv_sys_max_cmd_len=8192
4624    ;;
4625
4626  osf*)
4627    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4628    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4629    # nice to cause kernel panics so lets avoid the loop below.
4630    # First set a reasonable default.
4631    lt_cv_sys_max_cmd_len=16384
4632    #
4633    if test -x /sbin/sysconfig; then
4634      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4635        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4636      esac
4637    fi
4638    ;;
4639  sco3.2v5*)
4640    lt_cv_sys_max_cmd_len=102400
4641    ;;
4642  sysv5* | sco5v6* | sysv4.2uw2*)
4643    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4644    if test -n "$kargmax"; then
4645      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4646    else
4647      lt_cv_sys_max_cmd_len=32768
4648    fi
4649    ;;
4650  *)
4651    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4652    if test -n "$lt_cv_sys_max_cmd_len"; then
4653      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4654      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4655    else
4656      # Make teststring a little bigger before we do anything with it.
4657      # a 1K string should be a reasonable start.
4658      for i in 1 2 3 4 5 6 7 8 ; do
4659        teststring=$teststring$teststring
4660      done
4661      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4662      # If test is not a shell built-in, we'll probably end up computing a
4663      # maximum length that is only half of the actual maximum length, but
4664      # we can't tell.
4665      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4666	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4667	      test $i != 17 # 1/2 MB should be enough
4668      do
4669        i=`expr $i + 1`
4670        teststring=$teststring$teststring
4671      done
4672      # Only check the string length outside the loop.
4673      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4674      teststring=
4675      # Add a significant safety factor because C++ compilers can tack on
4676      # massive amounts of additional arguments before passing them to the
4677      # linker.  It appears as though 1/2 is a usable value.
4678      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4679    fi
4680    ;;
4681  esac
4682
4683fi
4684
4685if test -n $lt_cv_sys_max_cmd_len ; then
4686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4687$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4688else
4689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4690$as_echo "none" >&6; }
4691fi
4692max_cmd_len=$lt_cv_sys_max_cmd_len
4693
4694
4695
4696
4697
4698
4699: ${CP="cp -f"}
4700: ${MV="mv -f"}
4701: ${RM="rm -f"}
4702
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4704$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4705# Try some XSI features
4706xsi_shell=no
4707( _lt_dummy="a/b/c"
4708  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4709      = c,a/b,b/c, \
4710    && eval 'test $(( 1 + 1 )) -eq 2 \
4711    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4712  && xsi_shell=yes
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4714$as_echo "$xsi_shell" >&6; }
4715
4716
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4718$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4719lt_shell_append=no
4720( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4721    >/dev/null 2>&1 \
4722  && lt_shell_append=yes
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4724$as_echo "$lt_shell_append" >&6; }
4725
4726
4727if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4728  lt_unset=unset
4729else
4730  lt_unset=false
4731fi
4732
4733
4734
4735
4736
4737# test EBCDIC or ASCII
4738case `echo X|tr X '\101'` in
4739 A) # ASCII based system
4740    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4741  lt_SP2NL='tr \040 \012'
4742  lt_NL2SP='tr \015\012 \040\040'
4743  ;;
4744 *) # EBCDIC based system
4745  lt_SP2NL='tr \100 \n'
4746  lt_NL2SP='tr \r\n \100\100'
4747  ;;
4748esac
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4759$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4760if ${lt_cv_to_host_file_cmd+:} false; then :
4761  $as_echo_n "(cached) " >&6
4762else
4763  case $host in
4764  *-*-mingw* )
4765    case $build in
4766      *-*-mingw* ) # actually msys
4767        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4768        ;;
4769      *-*-cygwin* )
4770        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4771        ;;
4772      * ) # otherwise, assume *nix
4773        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4774        ;;
4775    esac
4776    ;;
4777  *-*-cygwin* )
4778    case $build in
4779      *-*-mingw* ) # actually msys
4780        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4781        ;;
4782      *-*-cygwin* )
4783        lt_cv_to_host_file_cmd=func_convert_file_noop
4784        ;;
4785      * ) # otherwise, assume *nix
4786        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4787        ;;
4788    esac
4789    ;;
4790  * ) # unhandled hosts (and "normal" native builds)
4791    lt_cv_to_host_file_cmd=func_convert_file_noop
4792    ;;
4793esac
4794
4795fi
4796
4797to_host_file_cmd=$lt_cv_to_host_file_cmd
4798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4799$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4800
4801
4802
4803
4804
4805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4806$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4807if ${lt_cv_to_tool_file_cmd+:} false; then :
4808  $as_echo_n "(cached) " >&6
4809else
4810  #assume ordinary cross tools, or native build.
4811lt_cv_to_tool_file_cmd=func_convert_file_noop
4812case $host in
4813  *-*-mingw* )
4814    case $build in
4815      *-*-mingw* ) # actually msys
4816        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4817        ;;
4818    esac
4819    ;;
4820esac
4821
4822fi
4823
4824to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4826$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4827
4828
4829
4830
4831
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4833$as_echo_n "checking for $LD option to reload object files... " >&6; }
4834if ${lt_cv_ld_reload_flag+:} false; then :
4835  $as_echo_n "(cached) " >&6
4836else
4837  lt_cv_ld_reload_flag='-r'
4838fi
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4840$as_echo "$lt_cv_ld_reload_flag" >&6; }
4841reload_flag=$lt_cv_ld_reload_flag
4842case $reload_flag in
4843"" | " "*) ;;
4844*) reload_flag=" $reload_flag" ;;
4845esac
4846reload_cmds='$LD$reload_flag -o $output$reload_objs'
4847case $host_os in
4848  cygwin* | mingw* | pw32* | cegcc*)
4849    if test "$GCC" != yes; then
4850      reload_cmds=false
4851    fi
4852    ;;
4853  darwin*)
4854    if test "$GCC" = yes; then
4855      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4856    else
4857      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4858    fi
4859    ;;
4860esac
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870if test -n "$ac_tool_prefix"; then
4871  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4872set dummy ${ac_tool_prefix}objdump; ac_word=$2
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4874$as_echo_n "checking for $ac_word... " >&6; }
4875if ${ac_cv_prog_OBJDUMP+:} false; then :
4876  $as_echo_n "(cached) " >&6
4877else
4878  if test -n "$OBJDUMP"; then
4879  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4880else
4881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882for as_dir in $PATH
4883do
4884  IFS=$as_save_IFS
4885  test -z "$as_dir" && as_dir=.
4886    for ac_exec_ext in '' $ac_executable_extensions; do
4887  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4888    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4889    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4890    break 2
4891  fi
4892done
4893  done
4894IFS=$as_save_IFS
4895
4896fi
4897fi
4898OBJDUMP=$ac_cv_prog_OBJDUMP
4899if test -n "$OBJDUMP"; then
4900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4901$as_echo "$OBJDUMP" >&6; }
4902else
4903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4904$as_echo "no" >&6; }
4905fi
4906
4907
4908fi
4909if test -z "$ac_cv_prog_OBJDUMP"; then
4910  ac_ct_OBJDUMP=$OBJDUMP
4911  # Extract the first word of "objdump", so it can be a program name with args.
4912set dummy objdump; ac_word=$2
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4914$as_echo_n "checking for $ac_word... " >&6; }
4915if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4916  $as_echo_n "(cached) " >&6
4917else
4918  if test -n "$ac_ct_OBJDUMP"; then
4919  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4920else
4921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922for as_dir in $PATH
4923do
4924  IFS=$as_save_IFS
4925  test -z "$as_dir" && as_dir=.
4926    for ac_exec_ext in '' $ac_executable_extensions; do
4927  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4928    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4930    break 2
4931  fi
4932done
4933  done
4934IFS=$as_save_IFS
4935
4936fi
4937fi
4938ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4939if test -n "$ac_ct_OBJDUMP"; then
4940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4941$as_echo "$ac_ct_OBJDUMP" >&6; }
4942else
4943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944$as_echo "no" >&6; }
4945fi
4946
4947  if test "x$ac_ct_OBJDUMP" = x; then
4948    OBJDUMP="false"
4949  else
4950    case $cross_compiling:$ac_tool_warned in
4951yes:)
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4954ac_tool_warned=yes ;;
4955esac
4956    OBJDUMP=$ac_ct_OBJDUMP
4957  fi
4958else
4959  OBJDUMP="$ac_cv_prog_OBJDUMP"
4960fi
4961
4962test -z "$OBJDUMP" && OBJDUMP=objdump
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4973$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4974if ${lt_cv_deplibs_check_method+:} false; then :
4975  $as_echo_n "(cached) " >&6
4976else
4977  lt_cv_file_magic_cmd='$MAGIC_CMD'
4978lt_cv_file_magic_test_file=
4979lt_cv_deplibs_check_method='unknown'
4980# Need to set the preceding variable on all platforms that support
4981# interlibrary dependencies.
4982# 'none' -- dependencies not supported.
4983# `unknown' -- same as none, but documents that we really don't know.
4984# 'pass_all' -- all dependencies passed with no checks.
4985# 'test_compile' -- check by making test program.
4986# 'file_magic [[regex]]' -- check by looking for files in library path
4987# which responds to the $file_magic_cmd with a given extended regex.
4988# If you have `file' or equivalent on your system and you're not sure
4989# whether `pass_all' will *always* work, you probably want this one.
4990
4991case $host_os in
4992aix[4-9]*)
4993  lt_cv_deplibs_check_method=pass_all
4994  ;;
4995
4996beos*)
4997  lt_cv_deplibs_check_method=pass_all
4998  ;;
4999
5000bsdi[45]*)
5001  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5002  lt_cv_file_magic_cmd='/usr/bin/file -L'
5003  lt_cv_file_magic_test_file=/shlib/libc.so
5004  ;;
5005
5006cygwin*)
5007  # func_win32_libid is a shell function defined in ltmain.sh
5008  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5009  lt_cv_file_magic_cmd='func_win32_libid'
5010  ;;
5011
5012mingw* | pw32*)
5013  # Base MSYS/MinGW do not provide the 'file' command needed by
5014  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5015  # unless we find 'file', for example because we are cross-compiling.
5016  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5017  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5018    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5019    lt_cv_file_magic_cmd='func_win32_libid'
5020  else
5021    # Keep this pattern in sync with the one in func_win32_libid.
5022    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5023    lt_cv_file_magic_cmd='$OBJDUMP -f'
5024  fi
5025  ;;
5026
5027cegcc*)
5028  # use the weaker test based on 'objdump'. See mingw*.
5029  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5030  lt_cv_file_magic_cmd='$OBJDUMP -f'
5031  ;;
5032
5033darwin* | rhapsody*)
5034  lt_cv_deplibs_check_method=pass_all
5035  ;;
5036
5037freebsd* | dragonfly*)
5038  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5039    case $host_cpu in
5040    i*86 )
5041      # Not sure whether the presence of OpenBSD here was a mistake.
5042      # Let's accept both of them until this is cleared up.
5043      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5044      lt_cv_file_magic_cmd=/usr/bin/file
5045      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5046      ;;
5047    esac
5048  else
5049    lt_cv_deplibs_check_method=pass_all
5050  fi
5051  ;;
5052
5053gnu*)
5054  lt_cv_deplibs_check_method=pass_all
5055  ;;
5056
5057haiku*)
5058  lt_cv_deplibs_check_method=pass_all
5059  ;;
5060
5061hpux10.20* | hpux11*)
5062  lt_cv_file_magic_cmd=/usr/bin/file
5063  case $host_cpu in
5064  ia64*)
5065    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5066    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5067    ;;
5068  hppa*64*)
5069    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]'
5070    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5071    ;;
5072  *)
5073    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5074    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5075    ;;
5076  esac
5077  ;;
5078
5079interix[3-9]*)
5080  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5081  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5082  ;;
5083
5084irix5* | irix6* | nonstopux*)
5085  case $LD in
5086  *-32|*"-32 ") libmagic=32-bit;;
5087  *-n32|*"-n32 ") libmagic=N32;;
5088  *-64|*"-64 ") libmagic=64-bit;;
5089  *) libmagic=never-match;;
5090  esac
5091  lt_cv_deplibs_check_method=pass_all
5092  ;;
5093
5094# This must be glibc/ELF.
5095linux* | k*bsd*-gnu | kopensolaris*-gnu)
5096  lt_cv_deplibs_check_method=pass_all
5097  ;;
5098
5099netbsd*)
5100  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5101    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5102  else
5103    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5104  fi
5105  ;;
5106
5107newos6*)
5108  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5109  lt_cv_file_magic_cmd=/usr/bin/file
5110  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5111  ;;
5112
5113*nto* | *qnx*)
5114  lt_cv_deplibs_check_method=pass_all
5115  ;;
5116
5117openbsd*)
5118  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5119    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5120  else
5121    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5122  fi
5123  ;;
5124
5125osf3* | osf4* | osf5*)
5126  lt_cv_deplibs_check_method=pass_all
5127  ;;
5128
5129rdos*)
5130  lt_cv_deplibs_check_method=pass_all
5131  ;;
5132
5133solaris*)
5134  lt_cv_deplibs_check_method=pass_all
5135  ;;
5136
5137sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5138  lt_cv_deplibs_check_method=pass_all
5139  ;;
5140
5141sysv4 | sysv4.3*)
5142  case $host_vendor in
5143  motorola)
5144    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]'
5145    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5146    ;;
5147  ncr)
5148    lt_cv_deplibs_check_method=pass_all
5149    ;;
5150  sequent)
5151    lt_cv_file_magic_cmd='/bin/file'
5152    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5153    ;;
5154  sni)
5155    lt_cv_file_magic_cmd='/bin/file'
5156    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5157    lt_cv_file_magic_test_file=/lib/libc.so
5158    ;;
5159  siemens)
5160    lt_cv_deplibs_check_method=pass_all
5161    ;;
5162  pc)
5163    lt_cv_deplibs_check_method=pass_all
5164    ;;
5165  esac
5166  ;;
5167
5168tpf*)
5169  lt_cv_deplibs_check_method=pass_all
5170  ;;
5171esac
5172
5173fi
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5175$as_echo "$lt_cv_deplibs_check_method" >&6; }
5176
5177file_magic_glob=
5178want_nocaseglob=no
5179if test "$build" = "$host"; then
5180  case $host_os in
5181  mingw* | pw32*)
5182    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5183      want_nocaseglob=yes
5184    else
5185      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5186    fi
5187    ;;
5188  esac
5189fi
5190
5191file_magic_cmd=$lt_cv_file_magic_cmd
5192deplibs_check_method=$lt_cv_deplibs_check_method
5193test -z "$deplibs_check_method" && deplibs_check_method=unknown
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216if test -n "$ac_tool_prefix"; then
5217  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5218set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220$as_echo_n "checking for $ac_word... " >&6; }
5221if ${ac_cv_prog_DLLTOOL+:} false; then :
5222  $as_echo_n "(cached) " >&6
5223else
5224  if test -n "$DLLTOOL"; then
5225  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5226else
5227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228for as_dir in $PATH
5229do
5230  IFS=$as_save_IFS
5231  test -z "$as_dir" && as_dir=.
5232    for ac_exec_ext in '' $ac_executable_extensions; do
5233  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5235    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5236    break 2
5237  fi
5238done
5239  done
5240IFS=$as_save_IFS
5241
5242fi
5243fi
5244DLLTOOL=$ac_cv_prog_DLLTOOL
5245if test -n "$DLLTOOL"; then
5246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5247$as_echo "$DLLTOOL" >&6; }
5248else
5249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250$as_echo "no" >&6; }
5251fi
5252
5253
5254fi
5255if test -z "$ac_cv_prog_DLLTOOL"; then
5256  ac_ct_DLLTOOL=$DLLTOOL
5257  # Extract the first word of "dlltool", so it can be a program name with args.
5258set dummy dlltool; ac_word=$2
5259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5260$as_echo_n "checking for $ac_word... " >&6; }
5261if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5262  $as_echo_n "(cached) " >&6
5263else
5264  if test -n "$ac_ct_DLLTOOL"; then
5265  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5266else
5267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268for as_dir in $PATH
5269do
5270  IFS=$as_save_IFS
5271  test -z "$as_dir" && as_dir=.
5272    for ac_exec_ext in '' $ac_executable_extensions; do
5273  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5274    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5275    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5276    break 2
5277  fi
5278done
5279  done
5280IFS=$as_save_IFS
5281
5282fi
5283fi
5284ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5285if test -n "$ac_ct_DLLTOOL"; then
5286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5287$as_echo "$ac_ct_DLLTOOL" >&6; }
5288else
5289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290$as_echo "no" >&6; }
5291fi
5292
5293  if test "x$ac_ct_DLLTOOL" = x; then
5294    DLLTOOL="false"
5295  else
5296    case $cross_compiling:$ac_tool_warned in
5297yes:)
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5299$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5300ac_tool_warned=yes ;;
5301esac
5302    DLLTOOL=$ac_ct_DLLTOOL
5303  fi
5304else
5305  DLLTOOL="$ac_cv_prog_DLLTOOL"
5306fi
5307
5308test -z "$DLLTOOL" && DLLTOOL=dlltool
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5320$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5321if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5322  $as_echo_n "(cached) " >&6
5323else
5324  lt_cv_sharedlib_from_linklib_cmd='unknown'
5325
5326case $host_os in
5327cygwin* | mingw* | pw32* | cegcc*)
5328  # two different shell functions defined in ltmain.sh
5329  # decide which to use based on capabilities of $DLLTOOL
5330  case `$DLLTOOL --help 2>&1` in
5331  *--identify-strict*)
5332    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5333    ;;
5334  *)
5335    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5336    ;;
5337  esac
5338  ;;
5339*)
5340  # fallback: assume linklib IS sharedlib
5341  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5342  ;;
5343esac
5344
5345fi
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5347$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5348sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5349test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5350
5351
5352
5353
5354
5355
5356
5357
5358if test -n "$ac_tool_prefix"; then
5359  for ac_prog in ar
5360  do
5361    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5362set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364$as_echo_n "checking for $ac_word... " >&6; }
5365if ${ac_cv_prog_AR+:} false; then :
5366  $as_echo_n "(cached) " >&6
5367else
5368  if test -n "$AR"; then
5369  ac_cv_prog_AR="$AR" # Let the user override the test.
5370else
5371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372for as_dir in $PATH
5373do
5374  IFS=$as_save_IFS
5375  test -z "$as_dir" && as_dir=.
5376    for ac_exec_ext in '' $ac_executable_extensions; do
5377  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5378    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5380    break 2
5381  fi
5382done
5383  done
5384IFS=$as_save_IFS
5385
5386fi
5387fi
5388AR=$ac_cv_prog_AR
5389if test -n "$AR"; then
5390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5391$as_echo "$AR" >&6; }
5392else
5393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394$as_echo "no" >&6; }
5395fi
5396
5397
5398    test -n "$AR" && break
5399  done
5400fi
5401if test -z "$AR"; then
5402  ac_ct_AR=$AR
5403  for ac_prog in ar
5404do
5405  # Extract the first word of "$ac_prog", so it can be a program name with args.
5406set dummy $ac_prog; ac_word=$2
5407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5408$as_echo_n "checking for $ac_word... " >&6; }
5409if ${ac_cv_prog_ac_ct_AR+:} false; then :
5410  $as_echo_n "(cached) " >&6
5411else
5412  if test -n "$ac_ct_AR"; then
5413  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5414else
5415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416for as_dir in $PATH
5417do
5418  IFS=$as_save_IFS
5419  test -z "$as_dir" && as_dir=.
5420    for ac_exec_ext in '' $ac_executable_extensions; do
5421  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5422    ac_cv_prog_ac_ct_AR="$ac_prog"
5423    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5424    break 2
5425  fi
5426done
5427  done
5428IFS=$as_save_IFS
5429
5430fi
5431fi
5432ac_ct_AR=$ac_cv_prog_ac_ct_AR
5433if test -n "$ac_ct_AR"; then
5434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5435$as_echo "$ac_ct_AR" >&6; }
5436else
5437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438$as_echo "no" >&6; }
5439fi
5440
5441
5442  test -n "$ac_ct_AR" && break
5443done
5444
5445  if test "x$ac_ct_AR" = x; then
5446    AR="false"
5447  else
5448    case $cross_compiling:$ac_tool_warned in
5449yes:)
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5452ac_tool_warned=yes ;;
5453esac
5454    AR=$ac_ct_AR
5455  fi
5456fi
5457
5458: ${AR=ar}
5459: ${AR_FLAGS=cru}
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5472$as_echo_n "checking for archiver @FILE support... " >&6; }
5473if ${lt_cv_ar_at_file+:} false; then :
5474  $as_echo_n "(cached) " >&6
5475else
5476  lt_cv_ar_at_file=no
5477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478/* end confdefs.h.  */
5479
5480int
5481main ()
5482{
5483
5484  ;
5485  return 0;
5486}
5487_ACEOF
5488if ac_fn_c_try_compile "$LINENO"; then :
5489  echo conftest.$ac_objext > conftest.lst
5490      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5491      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5492  (eval $lt_ar_try) 2>&5
5493  ac_status=$?
5494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5495  test $ac_status = 0; }
5496      if test "$ac_status" -eq 0; then
5497	# Ensure the archiver fails upon bogus file names.
5498	rm -f conftest.$ac_objext libconftest.a
5499	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5500  (eval $lt_ar_try) 2>&5
5501  ac_status=$?
5502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5503  test $ac_status = 0; }
5504	if test "$ac_status" -ne 0; then
5505          lt_cv_ar_at_file=@
5506        fi
5507      fi
5508      rm -f conftest.* libconftest.a
5509
5510fi
5511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5512
5513fi
5514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5515$as_echo "$lt_cv_ar_at_file" >&6; }
5516
5517if test "x$lt_cv_ar_at_file" = xno; then
5518  archiver_list_spec=
5519else
5520  archiver_list_spec=$lt_cv_ar_at_file
5521fi
5522
5523
5524
5525
5526
5527
5528
5529if test -n "$ac_tool_prefix"; then
5530  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5531set dummy ${ac_tool_prefix}strip; ac_word=$2
5532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533$as_echo_n "checking for $ac_word... " >&6; }
5534if ${ac_cv_prog_STRIP+:} false; then :
5535  $as_echo_n "(cached) " >&6
5536else
5537  if test -n "$STRIP"; then
5538  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5539else
5540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541for as_dir in $PATH
5542do
5543  IFS=$as_save_IFS
5544  test -z "$as_dir" && as_dir=.
5545    for ac_exec_ext in '' $ac_executable_extensions; do
5546  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5547    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5548    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549    break 2
5550  fi
5551done
5552  done
5553IFS=$as_save_IFS
5554
5555fi
5556fi
5557STRIP=$ac_cv_prog_STRIP
5558if test -n "$STRIP"; then
5559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5560$as_echo "$STRIP" >&6; }
5561else
5562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563$as_echo "no" >&6; }
5564fi
5565
5566
5567fi
5568if test -z "$ac_cv_prog_STRIP"; then
5569  ac_ct_STRIP=$STRIP
5570  # Extract the first word of "strip", so it can be a program name with args.
5571set dummy strip; ac_word=$2
5572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573$as_echo_n "checking for $ac_word... " >&6; }
5574if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5575  $as_echo_n "(cached) " >&6
5576else
5577  if test -n "$ac_ct_STRIP"; then
5578  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5579else
5580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581for as_dir in $PATH
5582do
5583  IFS=$as_save_IFS
5584  test -z "$as_dir" && as_dir=.
5585    for ac_exec_ext in '' $ac_executable_extensions; do
5586  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5587    ac_cv_prog_ac_ct_STRIP="strip"
5588    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589    break 2
5590  fi
5591done
5592  done
5593IFS=$as_save_IFS
5594
5595fi
5596fi
5597ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5598if test -n "$ac_ct_STRIP"; then
5599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5600$as_echo "$ac_ct_STRIP" >&6; }
5601else
5602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603$as_echo "no" >&6; }
5604fi
5605
5606  if test "x$ac_ct_STRIP" = x; then
5607    STRIP=":"
5608  else
5609    case $cross_compiling:$ac_tool_warned in
5610yes:)
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5612$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5613ac_tool_warned=yes ;;
5614esac
5615    STRIP=$ac_ct_STRIP
5616  fi
5617else
5618  STRIP="$ac_cv_prog_STRIP"
5619fi
5620
5621test -z "$STRIP" && STRIP=:
5622
5623
5624
5625
5626
5627
5628if test -n "$ac_tool_prefix"; then
5629  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5630set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632$as_echo_n "checking for $ac_word... " >&6; }
5633if ${ac_cv_prog_RANLIB+:} false; then :
5634  $as_echo_n "(cached) " >&6
5635else
5636  if test -n "$RANLIB"; then
5637  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5638else
5639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640for as_dir in $PATH
5641do
5642  IFS=$as_save_IFS
5643  test -z "$as_dir" && as_dir=.
5644    for ac_exec_ext in '' $ac_executable_extensions; do
5645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648    break 2
5649  fi
5650done
5651  done
5652IFS=$as_save_IFS
5653
5654fi
5655fi
5656RANLIB=$ac_cv_prog_RANLIB
5657if test -n "$RANLIB"; then
5658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5659$as_echo "$RANLIB" >&6; }
5660else
5661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662$as_echo "no" >&6; }
5663fi
5664
5665
5666fi
5667if test -z "$ac_cv_prog_RANLIB"; then
5668  ac_ct_RANLIB=$RANLIB
5669  # Extract the first word of "ranlib", so it can be a program name with args.
5670set dummy ranlib; ac_word=$2
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672$as_echo_n "checking for $ac_word... " >&6; }
5673if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5674  $as_echo_n "(cached) " >&6
5675else
5676  if test -n "$ac_ct_RANLIB"; then
5677  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5678else
5679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680for as_dir in $PATH
5681do
5682  IFS=$as_save_IFS
5683  test -z "$as_dir" && as_dir=.
5684    for ac_exec_ext in '' $ac_executable_extensions; do
5685  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5686    ac_cv_prog_ac_ct_RANLIB="ranlib"
5687    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688    break 2
5689  fi
5690done
5691  done
5692IFS=$as_save_IFS
5693
5694fi
5695fi
5696ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5697if test -n "$ac_ct_RANLIB"; then
5698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5699$as_echo "$ac_ct_RANLIB" >&6; }
5700else
5701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702$as_echo "no" >&6; }
5703fi
5704
5705  if test "x$ac_ct_RANLIB" = x; then
5706    RANLIB=":"
5707  else
5708    case $cross_compiling:$ac_tool_warned in
5709yes:)
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5712ac_tool_warned=yes ;;
5713esac
5714    RANLIB=$ac_ct_RANLIB
5715  fi
5716else
5717  RANLIB="$ac_cv_prog_RANLIB"
5718fi
5719
5720test -z "$RANLIB" && RANLIB=:
5721
5722
5723
5724
5725
5726
5727# Determine commands to create old-style static archives.
5728old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5729old_postinstall_cmds='chmod 644 $oldlib'
5730old_postuninstall_cmds=
5731
5732if test -n "$RANLIB"; then
5733  case $host_os in
5734  openbsd*)
5735    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5736    ;;
5737  *)
5738    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5739    ;;
5740  esac
5741  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5742fi
5743
5744case $host_os in
5745  darwin*)
5746    lock_old_archive_extraction=yes ;;
5747  *)
5748    lock_old_archive_extraction=no ;;
5749esac
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789# If no C compiler was specified, use CC.
5790LTCC=${LTCC-"$CC"}
5791
5792# If no C compiler flags were specified, use CFLAGS.
5793LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5794
5795# Allow CC to be a program name with arguments.
5796compiler=$CC
5797
5798
5799# Check for command to grab the raw symbol name followed by C symbol from nm.
5800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5801$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5802if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5803  $as_echo_n "(cached) " >&6
5804else
5805
5806# These are sane defaults that work on at least a few old systems.
5807# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5808
5809# Character class describing NM global symbol codes.
5810symcode='[BCDEGRST]'
5811
5812# Regexp to match symbols that can be accessed directly from C.
5813sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5814
5815# Define system-specific variables.
5816case $host_os in
5817aix*)
5818  symcode='[BCDT]'
5819  ;;
5820cygwin* | mingw* | pw32* | cegcc*)
5821  symcode='[ABCDGISTW]'
5822  ;;
5823hpux*)
5824  if test "$host_cpu" = ia64; then
5825    symcode='[ABCDEGRST]'
5826  fi
5827  ;;
5828irix* | nonstopux*)
5829  symcode='[BCDEGRST]'
5830  ;;
5831osf*)
5832  symcode='[BCDEGQRST]'
5833  ;;
5834solaris*)
5835  symcode='[BDRT]'
5836  ;;
5837sco3.2v5*)
5838  symcode='[DT]'
5839  ;;
5840sysv4.2uw2*)
5841  symcode='[DT]'
5842  ;;
5843sysv5* | sco5v6* | unixware* | OpenUNIX*)
5844  symcode='[ABDT]'
5845  ;;
5846sysv4)
5847  symcode='[DFNSTU]'
5848  ;;
5849esac
5850
5851# If we're using GNU nm, then use its standard symbol codes.
5852case `$NM -V 2>&1` in
5853*GNU* | *'with BFD'*)
5854  symcode='[ABCDGIRSTW]' ;;
5855esac
5856
5857# Transform an extracted symbol line into a proper C declaration.
5858# Some systems (esp. on ia64) link data and code symbols differently,
5859# so use this general approach.
5860lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5861
5862# Transform an extracted symbol line into symbol name and symbol address
5863lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5864lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5865
5866# Handle CRLF in mingw tool chain
5867opt_cr=
5868case $build_os in
5869mingw*)
5870  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5871  ;;
5872esac
5873
5874# Try without a prefix underscore, then with it.
5875for ac_symprfx in "" "_"; do
5876
5877  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5878  symxfrm="\\1 $ac_symprfx\\2 \\2"
5879
5880  # Write the raw and C identifiers.
5881  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5882    # Fake it for dumpbin and say T for any non-static function
5883    # and D for any global variable.
5884    # Also find C++ and __fastcall symbols from MSVC++,
5885    # which start with @ or ?.
5886    lt_cv_sys_global_symbol_pipe="$AWK '"\
5887"     {last_section=section; section=\$ 3};"\
5888"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5889"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5890"     \$ 0!~/External *\|/{next};"\
5891"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5892"     {if(hide[section]) next};"\
5893"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5894"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5895"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5896"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5897"     ' prfx=^$ac_symprfx"
5898  else
5899    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5900  fi
5901  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5902
5903  # Check to see that the pipe works correctly.
5904  pipe_works=no
5905
5906  rm -f conftest*
5907  cat > conftest.$ac_ext <<_LT_EOF
5908#ifdef __cplusplus
5909extern "C" {
5910#endif
5911char nm_test_var;
5912void nm_test_func(void);
5913void nm_test_func(void){}
5914#ifdef __cplusplus
5915}
5916#endif
5917int main(){nm_test_var='a';nm_test_func();return(0);}
5918_LT_EOF
5919
5920  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5921  (eval $ac_compile) 2>&5
5922  ac_status=$?
5923  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5924  test $ac_status = 0; }; then
5925    # Now try to grab the symbols.
5926    nlist=conftest.nm
5927    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5928  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5929  ac_status=$?
5930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5931  test $ac_status = 0; } && test -s "$nlist"; then
5932      # Try sorting and uniquifying the output.
5933      if sort "$nlist" | uniq > "$nlist"T; then
5934	mv -f "$nlist"T "$nlist"
5935      else
5936	rm -f "$nlist"T
5937      fi
5938
5939      # Make sure that we snagged all the symbols we need.
5940      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5941	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5942	  cat <<_LT_EOF > conftest.$ac_ext
5943/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5944#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5945/* DATA imports from DLLs on WIN32 con't be const, because runtime
5946   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5947# define LT_DLSYM_CONST
5948#elif defined(__osf__)
5949/* This system does not cope well with relocations in const data.  */
5950# define LT_DLSYM_CONST
5951#else
5952# define LT_DLSYM_CONST const
5953#endif
5954
5955#ifdef __cplusplus
5956extern "C" {
5957#endif
5958
5959_LT_EOF
5960	  # Now generate the symbol file.
5961	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5962
5963	  cat <<_LT_EOF >> conftest.$ac_ext
5964
5965/* The mapping between symbol names and symbols.  */
5966LT_DLSYM_CONST struct {
5967  const char *name;
5968  void       *address;
5969}
5970lt__PROGRAM__LTX_preloaded_symbols[] =
5971{
5972  { "@PROGRAM@", (void *) 0 },
5973_LT_EOF
5974	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5975	  cat <<\_LT_EOF >> conftest.$ac_ext
5976  {0, (void *) 0}
5977};
5978
5979/* This works around a problem in FreeBSD linker */
5980#ifdef FREEBSD_WORKAROUND
5981static const void *lt_preloaded_setup() {
5982  return lt__PROGRAM__LTX_preloaded_symbols;
5983}
5984#endif
5985
5986#ifdef __cplusplus
5987}
5988#endif
5989_LT_EOF
5990	  # Now try linking the two files.
5991	  mv conftest.$ac_objext conftstm.$ac_objext
5992	  lt_globsym_save_LIBS=$LIBS
5993	  lt_globsym_save_CFLAGS=$CFLAGS
5994	  LIBS="conftstm.$ac_objext"
5995	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5996	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5997  (eval $ac_link) 2>&5
5998  ac_status=$?
5999  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6000  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6001	    pipe_works=yes
6002	  fi
6003	  LIBS=$lt_globsym_save_LIBS
6004	  CFLAGS=$lt_globsym_save_CFLAGS
6005	else
6006	  echo "cannot find nm_test_func in $nlist" >&5
6007	fi
6008      else
6009	echo "cannot find nm_test_var in $nlist" >&5
6010      fi
6011    else
6012      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6013    fi
6014  else
6015    echo "$progname: failed program was:" >&5
6016    cat conftest.$ac_ext >&5
6017  fi
6018  rm -rf conftest* conftst*
6019
6020  # Do not use the global_symbol_pipe unless it works.
6021  if test "$pipe_works" = yes; then
6022    break
6023  else
6024    lt_cv_sys_global_symbol_pipe=
6025  fi
6026done
6027
6028fi
6029
6030if test -z "$lt_cv_sys_global_symbol_pipe"; then
6031  lt_cv_sys_global_symbol_to_cdecl=
6032fi
6033if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6035$as_echo "failed" >&6; }
6036else
6037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6038$as_echo "ok" >&6; }
6039fi
6040
6041# Response file support.
6042if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6043  nm_file_list_spec='@'
6044elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6045  nm_file_list_spec='@'
6046fi
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6075$as_echo_n "checking for sysroot... " >&6; }
6076
6077# Check whether --with-sysroot was given.
6078if test "${with_sysroot+set}" = set; then :
6079  withval=$with_sysroot;
6080else
6081  with_sysroot=no
6082fi
6083
6084
6085lt_sysroot=
6086case ${with_sysroot} in #(
6087 yes)
6088   if test "$GCC" = yes; then
6089     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6090   fi
6091   ;; #(
6092 /*)
6093   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6094   ;; #(
6095 no|'')
6096   ;; #(
6097 *)
6098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6099$as_echo "${with_sysroot}" >&6; }
6100   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6101   ;;
6102esac
6103
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6105$as_echo "${lt_sysroot:-no}" >&6; }
6106
6107
6108
6109
6110
6111# Check whether --enable-libtool-lock was given.
6112if test "${enable_libtool_lock+set}" = set; then :
6113  enableval=$enable_libtool_lock;
6114fi
6115
6116test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6117
6118# Some flags need to be propagated to the compiler or linker for good
6119# libtool support.
6120case $host in
6121ia64-*-hpux*)
6122  # Find out which ABI we are using.
6123  echo 'int i;' > conftest.$ac_ext
6124  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6125  (eval $ac_compile) 2>&5
6126  ac_status=$?
6127  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6128  test $ac_status = 0; }; then
6129    case `/usr/bin/file conftest.$ac_objext` in
6130      *ELF-32*)
6131	HPUX_IA64_MODE="32"
6132	;;
6133      *ELF-64*)
6134	HPUX_IA64_MODE="64"
6135	;;
6136    esac
6137  fi
6138  rm -rf conftest*
6139  ;;
6140*-*-irix6*)
6141  # Find out which ABI we are using.
6142  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6143  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6144  (eval $ac_compile) 2>&5
6145  ac_status=$?
6146  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6147  test $ac_status = 0; }; then
6148    if test "$lt_cv_prog_gnu_ld" = yes; then
6149      case `/usr/bin/file conftest.$ac_objext` in
6150	*32-bit*)
6151	  LD="${LD-ld} -melf32bsmip"
6152	  ;;
6153	*N32*)
6154	  LD="${LD-ld} -melf32bmipn32"
6155	  ;;
6156	*64-bit*)
6157	  LD="${LD-ld} -melf64bmip"
6158	;;
6159      esac
6160    else
6161      case `/usr/bin/file conftest.$ac_objext` in
6162	*32-bit*)
6163	  LD="${LD-ld} -32"
6164	  ;;
6165	*N32*)
6166	  LD="${LD-ld} -n32"
6167	  ;;
6168	*64-bit*)
6169	  LD="${LD-ld} -64"
6170	  ;;
6171      esac
6172    fi
6173  fi
6174  rm -rf conftest*
6175  ;;
6176
6177x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6178s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6179  # Find out which ABI we are using.
6180  echo 'int i;' > conftest.$ac_ext
6181  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6182  (eval $ac_compile) 2>&5
6183  ac_status=$?
6184  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6185  test $ac_status = 0; }; then
6186    case `/usr/bin/file conftest.o` in
6187      *32-bit*)
6188	case $host in
6189	  x86_64-*kfreebsd*-gnu)
6190	    LD="${LD-ld} -m elf_i386_fbsd"
6191	    ;;
6192	  x86_64-*linux*)
6193	    LD="${LD-ld} -m elf_i386"
6194	    ;;
6195	  ppc64-*linux*|powerpc64-*linux*)
6196	    LD="${LD-ld} -m elf32ppclinux"
6197	    ;;
6198	  s390x-*linux*)
6199	    LD="${LD-ld} -m elf_s390"
6200	    ;;
6201	  sparc64-*linux*)
6202	    LD="${LD-ld} -m elf32_sparc"
6203	    ;;
6204	esac
6205	;;
6206      *64-bit*)
6207	case $host in
6208	  x86_64-*kfreebsd*-gnu)
6209	    LD="${LD-ld} -m elf_x86_64_fbsd"
6210	    ;;
6211	  x86_64-*linux*)
6212	    LD="${LD-ld} -m elf_x86_64"
6213	    ;;
6214	  ppc*-*linux*|powerpc*-*linux*)
6215	    LD="${LD-ld} -m elf64ppc"
6216	    ;;
6217	  s390*-*linux*|s390*-*tpf*)
6218	    LD="${LD-ld} -m elf64_s390"
6219	    ;;
6220	  sparc*-*linux*)
6221	    LD="${LD-ld} -m elf64_sparc"
6222	    ;;
6223	esac
6224	;;
6225    esac
6226  fi
6227  rm -rf conftest*
6228  ;;
6229
6230*-*-sco3.2v5*)
6231  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6232  SAVE_CFLAGS="$CFLAGS"
6233  CFLAGS="$CFLAGS -belf"
6234  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6235$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6236if ${lt_cv_cc_needs_belf+:} false; then :
6237  $as_echo_n "(cached) " >&6
6238else
6239  ac_ext=c
6240ac_cpp='$CPP $CPPFLAGS'
6241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6243ac_compiler_gnu=$ac_cv_c_compiler_gnu
6244
6245     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246/* end confdefs.h.  */
6247
6248int
6249main ()
6250{
6251
6252  ;
6253  return 0;
6254}
6255_ACEOF
6256if ac_fn_c_try_link "$LINENO"; then :
6257  lt_cv_cc_needs_belf=yes
6258else
6259  lt_cv_cc_needs_belf=no
6260fi
6261rm -f core conftest.err conftest.$ac_objext \
6262    conftest$ac_exeext conftest.$ac_ext
6263     ac_ext=c
6264ac_cpp='$CPP $CPPFLAGS'
6265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6267ac_compiler_gnu=$ac_cv_c_compiler_gnu
6268
6269fi
6270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6271$as_echo "$lt_cv_cc_needs_belf" >&6; }
6272  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6273    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6274    CFLAGS="$SAVE_CFLAGS"
6275  fi
6276  ;;
6277*-*solaris*)
6278  # Find out which ABI we are using.
6279  echo 'int i;' > conftest.$ac_ext
6280  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6281  (eval $ac_compile) 2>&5
6282  ac_status=$?
6283  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6284  test $ac_status = 0; }; then
6285    case `/usr/bin/file conftest.o` in
6286    *64-bit*)
6287      case $lt_cv_prog_gnu_ld in
6288      yes*)
6289        case $host in
6290        i?86-*-solaris*)
6291          LD="${LD-ld} -m elf_x86_64"
6292          ;;
6293        sparc*-*-solaris*)
6294          LD="${LD-ld} -m elf64_sparc"
6295          ;;
6296        esac
6297        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6298        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6299          LD="${LD-ld}_sol2"
6300        fi
6301        ;;
6302      *)
6303	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6304	  LD="${LD-ld} -64"
6305	fi
6306	;;
6307      esac
6308      ;;
6309    esac
6310  fi
6311  rm -rf conftest*
6312  ;;
6313esac
6314
6315need_locks="$enable_libtool_lock"
6316
6317if test -n "$ac_tool_prefix"; then
6318  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6319set dummy ${ac_tool_prefix}mt; ac_word=$2
6320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6321$as_echo_n "checking for $ac_word... " >&6; }
6322if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6323  $as_echo_n "(cached) " >&6
6324else
6325  if test -n "$MANIFEST_TOOL"; then
6326  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6327else
6328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329for as_dir in $PATH
6330do
6331  IFS=$as_save_IFS
6332  test -z "$as_dir" && as_dir=.
6333    for ac_exec_ext in '' $ac_executable_extensions; do
6334  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6335    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6336    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6337    break 2
6338  fi
6339done
6340  done
6341IFS=$as_save_IFS
6342
6343fi
6344fi
6345MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6346if test -n "$MANIFEST_TOOL"; then
6347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6348$as_echo "$MANIFEST_TOOL" >&6; }
6349else
6350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351$as_echo "no" >&6; }
6352fi
6353
6354
6355fi
6356if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6357  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6358  # Extract the first word of "mt", so it can be a program name with args.
6359set dummy mt; ac_word=$2
6360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6361$as_echo_n "checking for $ac_word... " >&6; }
6362if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6363  $as_echo_n "(cached) " >&6
6364else
6365  if test -n "$ac_ct_MANIFEST_TOOL"; then
6366  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6367else
6368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369for as_dir in $PATH
6370do
6371  IFS=$as_save_IFS
6372  test -z "$as_dir" && as_dir=.
6373    for ac_exec_ext in '' $ac_executable_extensions; do
6374  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6375    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6376    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6377    break 2
6378  fi
6379done
6380  done
6381IFS=$as_save_IFS
6382
6383fi
6384fi
6385ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6386if test -n "$ac_ct_MANIFEST_TOOL"; then
6387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6388$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6389else
6390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391$as_echo "no" >&6; }
6392fi
6393
6394  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6395    MANIFEST_TOOL=":"
6396  else
6397    case $cross_compiling:$ac_tool_warned in
6398yes:)
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6401ac_tool_warned=yes ;;
6402esac
6403    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6404  fi
6405else
6406  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6407fi
6408
6409test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6411$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6412if ${lt_cv_path_mainfest_tool+:} false; then :
6413  $as_echo_n "(cached) " >&6
6414else
6415  lt_cv_path_mainfest_tool=no
6416  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6417  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6418  cat conftest.err >&5
6419  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6420    lt_cv_path_mainfest_tool=yes
6421  fi
6422  rm -f conftest*
6423fi
6424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6425$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6426if test "x$lt_cv_path_mainfest_tool" != xyes; then
6427  MANIFEST_TOOL=:
6428fi
6429
6430
6431
6432
6433
6434
6435  case $host_os in
6436    rhapsody* | darwin*)
6437    if test -n "$ac_tool_prefix"; then
6438  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6439set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441$as_echo_n "checking for $ac_word... " >&6; }
6442if ${ac_cv_prog_DSYMUTIL+:} false; then :
6443  $as_echo_n "(cached) " >&6
6444else
6445  if test -n "$DSYMUTIL"; then
6446  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6447else
6448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449for as_dir in $PATH
6450do
6451  IFS=$as_save_IFS
6452  test -z "$as_dir" && as_dir=.
6453    for ac_exec_ext in '' $ac_executable_extensions; do
6454  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6455    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6456    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457    break 2
6458  fi
6459done
6460  done
6461IFS=$as_save_IFS
6462
6463fi
6464fi
6465DSYMUTIL=$ac_cv_prog_DSYMUTIL
6466if test -n "$DSYMUTIL"; then
6467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6468$as_echo "$DSYMUTIL" >&6; }
6469else
6470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471$as_echo "no" >&6; }
6472fi
6473
6474
6475fi
6476if test -z "$ac_cv_prog_DSYMUTIL"; then
6477  ac_ct_DSYMUTIL=$DSYMUTIL
6478  # Extract the first word of "dsymutil", so it can be a program name with args.
6479set dummy dsymutil; ac_word=$2
6480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481$as_echo_n "checking for $ac_word... " >&6; }
6482if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6483  $as_echo_n "(cached) " >&6
6484else
6485  if test -n "$ac_ct_DSYMUTIL"; then
6486  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6487else
6488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489for as_dir in $PATH
6490do
6491  IFS=$as_save_IFS
6492  test -z "$as_dir" && as_dir=.
6493    for ac_exec_ext in '' $ac_executable_extensions; do
6494  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6495    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6496    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497    break 2
6498  fi
6499done
6500  done
6501IFS=$as_save_IFS
6502
6503fi
6504fi
6505ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6506if test -n "$ac_ct_DSYMUTIL"; then
6507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6508$as_echo "$ac_ct_DSYMUTIL" >&6; }
6509else
6510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511$as_echo "no" >&6; }
6512fi
6513
6514  if test "x$ac_ct_DSYMUTIL" = x; then
6515    DSYMUTIL=":"
6516  else
6517    case $cross_compiling:$ac_tool_warned in
6518yes:)
6519{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6521ac_tool_warned=yes ;;
6522esac
6523    DSYMUTIL=$ac_ct_DSYMUTIL
6524  fi
6525else
6526  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6527fi
6528
6529    if test -n "$ac_tool_prefix"; then
6530  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6531set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6533$as_echo_n "checking for $ac_word... " >&6; }
6534if ${ac_cv_prog_NMEDIT+:} false; then :
6535  $as_echo_n "(cached) " >&6
6536else
6537  if test -n "$NMEDIT"; then
6538  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6539else
6540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541for as_dir in $PATH
6542do
6543  IFS=$as_save_IFS
6544  test -z "$as_dir" && as_dir=.
6545    for ac_exec_ext in '' $ac_executable_extensions; do
6546  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6547    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6548    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6549    break 2
6550  fi
6551done
6552  done
6553IFS=$as_save_IFS
6554
6555fi
6556fi
6557NMEDIT=$ac_cv_prog_NMEDIT
6558if test -n "$NMEDIT"; then
6559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6560$as_echo "$NMEDIT" >&6; }
6561else
6562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563$as_echo "no" >&6; }
6564fi
6565
6566
6567fi
6568if test -z "$ac_cv_prog_NMEDIT"; then
6569  ac_ct_NMEDIT=$NMEDIT
6570  # Extract the first word of "nmedit", so it can be a program name with args.
6571set dummy nmedit; ac_word=$2
6572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573$as_echo_n "checking for $ac_word... " >&6; }
6574if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6575  $as_echo_n "(cached) " >&6
6576else
6577  if test -n "$ac_ct_NMEDIT"; then
6578  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6579else
6580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581for as_dir in $PATH
6582do
6583  IFS=$as_save_IFS
6584  test -z "$as_dir" && as_dir=.
6585    for ac_exec_ext in '' $ac_executable_extensions; do
6586  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6587    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6588    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589    break 2
6590  fi
6591done
6592  done
6593IFS=$as_save_IFS
6594
6595fi
6596fi
6597ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6598if test -n "$ac_ct_NMEDIT"; then
6599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6600$as_echo "$ac_ct_NMEDIT" >&6; }
6601else
6602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603$as_echo "no" >&6; }
6604fi
6605
6606  if test "x$ac_ct_NMEDIT" = x; then
6607    NMEDIT=":"
6608  else
6609    case $cross_compiling:$ac_tool_warned in
6610yes:)
6611{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6612$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6613ac_tool_warned=yes ;;
6614esac
6615    NMEDIT=$ac_ct_NMEDIT
6616  fi
6617else
6618  NMEDIT="$ac_cv_prog_NMEDIT"
6619fi
6620
6621    if test -n "$ac_tool_prefix"; then
6622  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6623set dummy ${ac_tool_prefix}lipo; ac_word=$2
6624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625$as_echo_n "checking for $ac_word... " >&6; }
6626if ${ac_cv_prog_LIPO+:} false; then :
6627  $as_echo_n "(cached) " >&6
6628else
6629  if test -n "$LIPO"; then
6630  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6631else
6632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633for as_dir in $PATH
6634do
6635  IFS=$as_save_IFS
6636  test -z "$as_dir" && as_dir=.
6637    for ac_exec_ext in '' $ac_executable_extensions; do
6638  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6639    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641    break 2
6642  fi
6643done
6644  done
6645IFS=$as_save_IFS
6646
6647fi
6648fi
6649LIPO=$ac_cv_prog_LIPO
6650if test -n "$LIPO"; then
6651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6652$as_echo "$LIPO" >&6; }
6653else
6654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655$as_echo "no" >&6; }
6656fi
6657
6658
6659fi
6660if test -z "$ac_cv_prog_LIPO"; then
6661  ac_ct_LIPO=$LIPO
6662  # Extract the first word of "lipo", so it can be a program name with args.
6663set dummy lipo; ac_word=$2
6664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665$as_echo_n "checking for $ac_word... " >&6; }
6666if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6667  $as_echo_n "(cached) " >&6
6668else
6669  if test -n "$ac_ct_LIPO"; then
6670  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6671else
6672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673for as_dir in $PATH
6674do
6675  IFS=$as_save_IFS
6676  test -z "$as_dir" && as_dir=.
6677    for ac_exec_ext in '' $ac_executable_extensions; do
6678  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679    ac_cv_prog_ac_ct_LIPO="lipo"
6680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681    break 2
6682  fi
6683done
6684  done
6685IFS=$as_save_IFS
6686
6687fi
6688fi
6689ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6690if test -n "$ac_ct_LIPO"; then
6691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6692$as_echo "$ac_ct_LIPO" >&6; }
6693else
6694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695$as_echo "no" >&6; }
6696fi
6697
6698  if test "x$ac_ct_LIPO" = x; then
6699    LIPO=":"
6700  else
6701    case $cross_compiling:$ac_tool_warned in
6702yes:)
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6705ac_tool_warned=yes ;;
6706esac
6707    LIPO=$ac_ct_LIPO
6708  fi
6709else
6710  LIPO="$ac_cv_prog_LIPO"
6711fi
6712
6713    if test -n "$ac_tool_prefix"; then
6714  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6715set dummy ${ac_tool_prefix}otool; ac_word=$2
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717$as_echo_n "checking for $ac_word... " >&6; }
6718if ${ac_cv_prog_OTOOL+:} false; then :
6719  $as_echo_n "(cached) " >&6
6720else
6721  if test -n "$OTOOL"; then
6722  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6723else
6724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725for as_dir in $PATH
6726do
6727  IFS=$as_save_IFS
6728  test -z "$as_dir" && as_dir=.
6729    for ac_exec_ext in '' $ac_executable_extensions; do
6730  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6731    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6732    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733    break 2
6734  fi
6735done
6736  done
6737IFS=$as_save_IFS
6738
6739fi
6740fi
6741OTOOL=$ac_cv_prog_OTOOL
6742if test -n "$OTOOL"; then
6743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6744$as_echo "$OTOOL" >&6; }
6745else
6746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747$as_echo "no" >&6; }
6748fi
6749
6750
6751fi
6752if test -z "$ac_cv_prog_OTOOL"; then
6753  ac_ct_OTOOL=$OTOOL
6754  # Extract the first word of "otool", so it can be a program name with args.
6755set dummy otool; ac_word=$2
6756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757$as_echo_n "checking for $ac_word... " >&6; }
6758if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6759  $as_echo_n "(cached) " >&6
6760else
6761  if test -n "$ac_ct_OTOOL"; then
6762  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6763else
6764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765for as_dir in $PATH
6766do
6767  IFS=$as_save_IFS
6768  test -z "$as_dir" && as_dir=.
6769    for ac_exec_ext in '' $ac_executable_extensions; do
6770  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6771    ac_cv_prog_ac_ct_OTOOL="otool"
6772    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773    break 2
6774  fi
6775done
6776  done
6777IFS=$as_save_IFS
6778
6779fi
6780fi
6781ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6782if test -n "$ac_ct_OTOOL"; then
6783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6784$as_echo "$ac_ct_OTOOL" >&6; }
6785else
6786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787$as_echo "no" >&6; }
6788fi
6789
6790  if test "x$ac_ct_OTOOL" = x; then
6791    OTOOL=":"
6792  else
6793    case $cross_compiling:$ac_tool_warned in
6794yes:)
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6797ac_tool_warned=yes ;;
6798esac
6799    OTOOL=$ac_ct_OTOOL
6800  fi
6801else
6802  OTOOL="$ac_cv_prog_OTOOL"
6803fi
6804
6805    if test -n "$ac_tool_prefix"; then
6806  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6807set dummy ${ac_tool_prefix}otool64; ac_word=$2
6808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809$as_echo_n "checking for $ac_word... " >&6; }
6810if ${ac_cv_prog_OTOOL64+:} false; then :
6811  $as_echo_n "(cached) " >&6
6812else
6813  if test -n "$OTOOL64"; then
6814  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6815else
6816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817for as_dir in $PATH
6818do
6819  IFS=$as_save_IFS
6820  test -z "$as_dir" && as_dir=.
6821    for ac_exec_ext in '' $ac_executable_extensions; do
6822  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6823    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825    break 2
6826  fi
6827done
6828  done
6829IFS=$as_save_IFS
6830
6831fi
6832fi
6833OTOOL64=$ac_cv_prog_OTOOL64
6834if test -n "$OTOOL64"; then
6835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6836$as_echo "$OTOOL64" >&6; }
6837else
6838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839$as_echo "no" >&6; }
6840fi
6841
6842
6843fi
6844if test -z "$ac_cv_prog_OTOOL64"; then
6845  ac_ct_OTOOL64=$OTOOL64
6846  # Extract the first word of "otool64", so it can be a program name with args.
6847set dummy otool64; ac_word=$2
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849$as_echo_n "checking for $ac_word... " >&6; }
6850if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6851  $as_echo_n "(cached) " >&6
6852else
6853  if test -n "$ac_ct_OTOOL64"; then
6854  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6855else
6856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857for as_dir in $PATH
6858do
6859  IFS=$as_save_IFS
6860  test -z "$as_dir" && as_dir=.
6861    for ac_exec_ext in '' $ac_executable_extensions; do
6862  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6863    ac_cv_prog_ac_ct_OTOOL64="otool64"
6864    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865    break 2
6866  fi
6867done
6868  done
6869IFS=$as_save_IFS
6870
6871fi
6872fi
6873ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6874if test -n "$ac_ct_OTOOL64"; then
6875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6876$as_echo "$ac_ct_OTOOL64" >&6; }
6877else
6878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879$as_echo "no" >&6; }
6880fi
6881
6882  if test "x$ac_ct_OTOOL64" = x; then
6883    OTOOL64=":"
6884  else
6885    case $cross_compiling:$ac_tool_warned in
6886yes:)
6887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6889ac_tool_warned=yes ;;
6890esac
6891    OTOOL64=$ac_ct_OTOOL64
6892  fi
6893else
6894  OTOOL64="$ac_cv_prog_OTOOL64"
6895fi
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6924$as_echo_n "checking for -single_module linker flag... " >&6; }
6925if ${lt_cv_apple_cc_single_mod+:} false; then :
6926  $as_echo_n "(cached) " >&6
6927else
6928  lt_cv_apple_cc_single_mod=no
6929      if test -z "${LT_MULTI_MODULE}"; then
6930	# By default we will add the -single_module flag. You can override
6931	# by either setting the environment variable LT_MULTI_MODULE
6932	# non-empty at configure time, or by adding -multi_module to the
6933	# link flags.
6934	rm -rf libconftest.dylib*
6935	echo "int foo(void){return 1;}" > conftest.c
6936	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6937-dynamiclib -Wl,-single_module conftest.c" >&5
6938	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6939	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6940        _lt_result=$?
6941	# If there is a non-empty error log, and "single_module"
6942	# appears in it, assume the flag caused a linker warning
6943        if test -s conftest.err && $GREP single_module conftest.err; then
6944	  cat conftest.err >&5
6945	# Otherwise, if the output was created with a 0 exit code from
6946	# the compiler, it worked.
6947	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6948	  lt_cv_apple_cc_single_mod=yes
6949	else
6950	  cat conftest.err >&5
6951	fi
6952	rm -rf libconftest.dylib*
6953	rm -f conftest.*
6954      fi
6955fi
6956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6957$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6958
6959    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6960$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6961if ${lt_cv_ld_exported_symbols_list+:} false; then :
6962  $as_echo_n "(cached) " >&6
6963else
6964  lt_cv_ld_exported_symbols_list=no
6965      save_LDFLAGS=$LDFLAGS
6966      echo "_main" > conftest.sym
6967      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6968      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969/* end confdefs.h.  */
6970
6971int
6972main ()
6973{
6974
6975  ;
6976  return 0;
6977}
6978_ACEOF
6979if ac_fn_c_try_link "$LINENO"; then :
6980  lt_cv_ld_exported_symbols_list=yes
6981else
6982  lt_cv_ld_exported_symbols_list=no
6983fi
6984rm -f core conftest.err conftest.$ac_objext \
6985    conftest$ac_exeext conftest.$ac_ext
6986	LDFLAGS="$save_LDFLAGS"
6987
6988fi
6989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6990$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6991
6992    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6993$as_echo_n "checking for -force_load linker flag... " >&6; }
6994if ${lt_cv_ld_force_load+:} false; then :
6995  $as_echo_n "(cached) " >&6
6996else
6997  lt_cv_ld_force_load=no
6998      cat > conftest.c << _LT_EOF
6999int forced_loaded() { return 2;}
7000_LT_EOF
7001      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7002      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7003      echo "$AR cru libconftest.a conftest.o" >&5
7004      $AR cru libconftest.a conftest.o 2>&5
7005      echo "$RANLIB libconftest.a" >&5
7006      $RANLIB libconftest.a 2>&5
7007      cat > conftest.c << _LT_EOF
7008int main() { return 0;}
7009_LT_EOF
7010      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7011      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7012      _lt_result=$?
7013      if test -s conftest.err && $GREP force_load conftest.err; then
7014	cat conftest.err >&5
7015      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7016	lt_cv_ld_force_load=yes
7017      else
7018	cat conftest.err >&5
7019      fi
7020        rm -f conftest.err libconftest.a conftest conftest.c
7021        rm -rf conftest.dSYM
7022
7023fi
7024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7025$as_echo "$lt_cv_ld_force_load" >&6; }
7026    case $host_os in
7027    rhapsody* | darwin1.[012])
7028      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7029    darwin1.*)
7030      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7031    darwin*) # darwin 5.x on
7032      # if running on 10.5 or later, the deployment target defaults
7033      # to the OS version, if on x86, and 10.4, the deployment
7034      # target defaults to 10.4. Don't you love it?
7035      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7036	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7037	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7038	10.[012]*)
7039	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7040	10.*)
7041	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7042      esac
7043    ;;
7044  esac
7045    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7046      _lt_dar_single_mod='$single_module'
7047    fi
7048    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7049      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7050    else
7051      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7052    fi
7053    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7054      _lt_dsymutil='~$DSYMUTIL $lib || :'
7055    else
7056      _lt_dsymutil=
7057    fi
7058    ;;
7059  esac
7060
7061ac_ext=c
7062ac_cpp='$CPP $CPPFLAGS'
7063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7065ac_compiler_gnu=$ac_cv_c_compiler_gnu
7066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7067$as_echo_n "checking how to run the C preprocessor... " >&6; }
7068# On Suns, sometimes $CPP names a directory.
7069if test -n "$CPP" && test -d "$CPP"; then
7070  CPP=
7071fi
7072if test -z "$CPP"; then
7073  if ${ac_cv_prog_CPP+:} false; then :
7074  $as_echo_n "(cached) " >&6
7075else
7076      # Double quotes because CPP needs to be expanded
7077    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7078    do
7079      ac_preproc_ok=false
7080for ac_c_preproc_warn_flag in '' yes
7081do
7082  # Use a header file that comes with gcc, so configuring glibc
7083  # with a fresh cross-compiler works.
7084  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7085  # <limits.h> exists even on freestanding compilers.
7086  # On the NeXT, cc -E runs the code through the compiler's parser,
7087  # not just through cpp. "Syntax error" is here to catch this case.
7088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089/* end confdefs.h.  */
7090#ifdef __STDC__
7091# include <limits.h>
7092#else
7093# include <assert.h>
7094#endif
7095		     Syntax error
7096_ACEOF
7097if ac_fn_c_try_cpp "$LINENO"; then :
7098
7099else
7100  # Broken: fails on valid input.
7101continue
7102fi
7103rm -f conftest.err conftest.i conftest.$ac_ext
7104
7105  # OK, works on sane cases.  Now check whether nonexistent headers
7106  # can be detected and how.
7107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108/* end confdefs.h.  */
7109#include <ac_nonexistent.h>
7110_ACEOF
7111if ac_fn_c_try_cpp "$LINENO"; then :
7112  # Broken: success on invalid input.
7113continue
7114else
7115  # Passes both tests.
7116ac_preproc_ok=:
7117break
7118fi
7119rm -f conftest.err conftest.i conftest.$ac_ext
7120
7121done
7122# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7123rm -f conftest.i conftest.err conftest.$ac_ext
7124if $ac_preproc_ok; then :
7125  break
7126fi
7127
7128    done
7129    ac_cv_prog_CPP=$CPP
7130
7131fi
7132  CPP=$ac_cv_prog_CPP
7133else
7134  ac_cv_prog_CPP=$CPP
7135fi
7136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7137$as_echo "$CPP" >&6; }
7138ac_preproc_ok=false
7139for ac_c_preproc_warn_flag in '' yes
7140do
7141  # Use a header file that comes with gcc, so configuring glibc
7142  # with a fresh cross-compiler works.
7143  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7144  # <limits.h> exists even on freestanding compilers.
7145  # On the NeXT, cc -E runs the code through the compiler's parser,
7146  # not just through cpp. "Syntax error" is here to catch this case.
7147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148/* end confdefs.h.  */
7149#ifdef __STDC__
7150# include <limits.h>
7151#else
7152# include <assert.h>
7153#endif
7154		     Syntax error
7155_ACEOF
7156if ac_fn_c_try_cpp "$LINENO"; then :
7157
7158else
7159  # Broken: fails on valid input.
7160continue
7161fi
7162rm -f conftest.err conftest.i conftest.$ac_ext
7163
7164  # OK, works on sane cases.  Now check whether nonexistent headers
7165  # can be detected and how.
7166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167/* end confdefs.h.  */
7168#include <ac_nonexistent.h>
7169_ACEOF
7170if ac_fn_c_try_cpp "$LINENO"; then :
7171  # Broken: success on invalid input.
7172continue
7173else
7174  # Passes both tests.
7175ac_preproc_ok=:
7176break
7177fi
7178rm -f conftest.err conftest.i conftest.$ac_ext
7179
7180done
7181# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7182rm -f conftest.i conftest.err conftest.$ac_ext
7183if $ac_preproc_ok; then :
7184
7185else
7186  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7188as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7189See \`config.log' for more details" "$LINENO" 5; }
7190fi
7191
7192ac_ext=c
7193ac_cpp='$CPP $CPPFLAGS'
7194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7196ac_compiler_gnu=$ac_cv_c_compiler_gnu
7197
7198
7199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7200$as_echo_n "checking for ANSI C header files... " >&6; }
7201if ${ac_cv_header_stdc+:} false; then :
7202  $as_echo_n "(cached) " >&6
7203else
7204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205/* end confdefs.h.  */
7206#include <stdlib.h>
7207#include <stdarg.h>
7208#include <string.h>
7209#include <float.h>
7210
7211int
7212main ()
7213{
7214
7215  ;
7216  return 0;
7217}
7218_ACEOF
7219if ac_fn_c_try_compile "$LINENO"; then :
7220  ac_cv_header_stdc=yes
7221else
7222  ac_cv_header_stdc=no
7223fi
7224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7225
7226if test $ac_cv_header_stdc = yes; then
7227  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229/* end confdefs.h.  */
7230#include <string.h>
7231
7232_ACEOF
7233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7234  $EGREP "memchr" >/dev/null 2>&1; then :
7235
7236else
7237  ac_cv_header_stdc=no
7238fi
7239rm -f conftest*
7240
7241fi
7242
7243if test $ac_cv_header_stdc = yes; then
7244  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246/* end confdefs.h.  */
7247#include <stdlib.h>
7248
7249_ACEOF
7250if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7251  $EGREP "free" >/dev/null 2>&1; then :
7252
7253else
7254  ac_cv_header_stdc=no
7255fi
7256rm -f conftest*
7257
7258fi
7259
7260if test $ac_cv_header_stdc = yes; then
7261  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7262  if test "$cross_compiling" = yes; then :
7263  :
7264else
7265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266/* end confdefs.h.  */
7267#include <ctype.h>
7268#include <stdlib.h>
7269#if ((' ' & 0x0FF) == 0x020)
7270# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7271# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7272#else
7273# define ISLOWER(c) \
7274		   (('a' <= (c) && (c) <= 'i') \
7275		     || ('j' <= (c) && (c) <= 'r') \
7276		     || ('s' <= (c) && (c) <= 'z'))
7277# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7278#endif
7279
7280#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7281int
7282main ()
7283{
7284  int i;
7285  for (i = 0; i < 256; i++)
7286    if (XOR (islower (i), ISLOWER (i))
7287	|| toupper (i) != TOUPPER (i))
7288      return 2;
7289  return 0;
7290}
7291_ACEOF
7292if ac_fn_c_try_run "$LINENO"; then :
7293
7294else
7295  ac_cv_header_stdc=no
7296fi
7297rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7298  conftest.$ac_objext conftest.beam conftest.$ac_ext
7299fi
7300
7301fi
7302fi
7303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7304$as_echo "$ac_cv_header_stdc" >&6; }
7305if test $ac_cv_header_stdc = yes; then
7306
7307$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7308
7309fi
7310
7311# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7312for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7313		  inttypes.h stdint.h unistd.h
7314do :
7315  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7316ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7317"
7318if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7319  cat >>confdefs.h <<_ACEOF
7320#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7321_ACEOF
7322
7323fi
7324
7325done
7326
7327
7328for ac_header in dlfcn.h
7329do :
7330  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7331"
7332if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7333  cat >>confdefs.h <<_ACEOF
7334#define HAVE_DLFCN_H 1
7335_ACEOF
7336
7337fi
7338
7339done
7340
7341
7342
7343
7344
7345# Set options
7346
7347
7348
7349        enable_dlopen=no
7350
7351
7352  enable_win32_dll=no
7353
7354
7355            # Check whether --enable-shared was given.
7356if test "${enable_shared+set}" = set; then :
7357  enableval=$enable_shared; p=${PACKAGE-default}
7358    case $enableval in
7359    yes) enable_shared=yes ;;
7360    no) enable_shared=no ;;
7361    *)
7362      enable_shared=no
7363      # Look at the argument we got.  We use all the common list separators.
7364      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7365      for pkg in $enableval; do
7366	IFS="$lt_save_ifs"
7367	if test "X$pkg" = "X$p"; then
7368	  enable_shared=yes
7369	fi
7370      done
7371      IFS="$lt_save_ifs"
7372      ;;
7373    esac
7374else
7375  enable_shared=yes
7376fi
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388# Check whether --with-pic was given.
7389if test "${with_pic+set}" = set; then :
7390  withval=$with_pic; lt_p=${PACKAGE-default}
7391    case $withval in
7392    yes|no) pic_mode=$withval ;;
7393    *)
7394      pic_mode=default
7395      # Look at the argument we got.  We use all the common list separators.
7396      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7397      for lt_pkg in $withval; do
7398	IFS="$lt_save_ifs"
7399	if test "X$lt_pkg" = "X$lt_p"; then
7400	  pic_mode=yes
7401	fi
7402      done
7403      IFS="$lt_save_ifs"
7404      ;;
7405    esac
7406else
7407  pic_mode=default
7408fi
7409
7410
7411test -z "$pic_mode" && pic_mode=default
7412
7413
7414
7415
7416
7417
7418
7419  # Check whether --enable-fast-install was given.
7420if test "${enable_fast_install+set}" = set; then :
7421  enableval=$enable_fast_install; p=${PACKAGE-default}
7422    case $enableval in
7423    yes) enable_fast_install=yes ;;
7424    no) enable_fast_install=no ;;
7425    *)
7426      enable_fast_install=no
7427      # Look at the argument we got.  We use all the common list separators.
7428      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7429      for pkg in $enableval; do
7430	IFS="$lt_save_ifs"
7431	if test "X$pkg" = "X$p"; then
7432	  enable_fast_install=yes
7433	fi
7434      done
7435      IFS="$lt_save_ifs"
7436      ;;
7437    esac
7438else
7439  enable_fast_install=yes
7440fi
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452# This can be used to rebuild libtool when needed
7453LIBTOOL_DEPS="$ltmain"
7454
7455# Always use our own libtool.
7456LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487test -z "$LN_S" && LN_S="ln -s"
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502if test -n "${ZSH_VERSION+set}" ; then
7503   setopt NO_GLOB_SUBST
7504fi
7505
7506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7507$as_echo_n "checking for objdir... " >&6; }
7508if ${lt_cv_objdir+:} false; then :
7509  $as_echo_n "(cached) " >&6
7510else
7511  rm -f .libs 2>/dev/null
7512mkdir .libs 2>/dev/null
7513if test -d .libs; then
7514  lt_cv_objdir=.libs
7515else
7516  # MS-DOS does not allow filenames that begin with a dot.
7517  lt_cv_objdir=_libs
7518fi
7519rmdir .libs 2>/dev/null
7520fi
7521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7522$as_echo "$lt_cv_objdir" >&6; }
7523objdir=$lt_cv_objdir
7524
7525
7526
7527
7528
7529cat >>confdefs.h <<_ACEOF
7530#define LT_OBJDIR "$lt_cv_objdir/"
7531_ACEOF
7532
7533
7534
7535
7536case $host_os in
7537aix3*)
7538  # AIX sometimes has problems with the GCC collect2 program.  For some
7539  # reason, if we set the COLLECT_NAMES environment variable, the problems
7540  # vanish in a puff of smoke.
7541  if test "X${COLLECT_NAMES+set}" != Xset; then
7542    COLLECT_NAMES=
7543    export COLLECT_NAMES
7544  fi
7545  ;;
7546esac
7547
7548# Global variables:
7549ofile=libtool
7550can_build_shared=yes
7551
7552# All known linkers require a `.a' archive for static linking (except MSVC,
7553# which needs '.lib').
7554libext=a
7555
7556with_gnu_ld="$lt_cv_prog_gnu_ld"
7557
7558old_CC="$CC"
7559old_CFLAGS="$CFLAGS"
7560
7561# Set sane defaults for various variables
7562test -z "$CC" && CC=cc
7563test -z "$LTCC" && LTCC=$CC
7564test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7565test -z "$LD" && LD=ld
7566test -z "$ac_objext" && ac_objext=o
7567
7568for cc_temp in $compiler""; do
7569  case $cc_temp in
7570    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7571    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7572    \-*) ;;
7573    *) break;;
7574  esac
7575done
7576cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7577
7578
7579# Only perform the check for file, if the check method requires it
7580test -z "$MAGIC_CMD" && MAGIC_CMD=file
7581case $deplibs_check_method in
7582file_magic*)
7583  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7584    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7585$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7586if ${lt_cv_path_MAGIC_CMD+:} false; then :
7587  $as_echo_n "(cached) " >&6
7588else
7589  case $MAGIC_CMD in
7590[\\/*] |  ?:[\\/]*)
7591  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7592  ;;
7593*)
7594  lt_save_MAGIC_CMD="$MAGIC_CMD"
7595  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7596  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7597  for ac_dir in $ac_dummy; do
7598    IFS="$lt_save_ifs"
7599    test -z "$ac_dir" && ac_dir=.
7600    if test -f $ac_dir/${ac_tool_prefix}file; then
7601      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7602      if test -n "$file_magic_test_file"; then
7603	case $deplibs_check_method in
7604	"file_magic "*)
7605	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7606	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7607	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7608	    $EGREP "$file_magic_regex" > /dev/null; then
7609	    :
7610	  else
7611	    cat <<_LT_EOF 1>&2
7612
7613*** Warning: the command libtool uses to detect shared libraries,
7614*** $file_magic_cmd, produces output that libtool cannot recognize.
7615*** The result is that libtool may fail to recognize shared libraries
7616*** as such.  This will affect the creation of libtool libraries that
7617*** depend on shared libraries, but programs linked with such libtool
7618*** libraries will work regardless of this problem.  Nevertheless, you
7619*** may want to report the problem to your system manager and/or to
7620*** bug-libtool@gnu.org
7621
7622_LT_EOF
7623	  fi ;;
7624	esac
7625      fi
7626      break
7627    fi
7628  done
7629  IFS="$lt_save_ifs"
7630  MAGIC_CMD="$lt_save_MAGIC_CMD"
7631  ;;
7632esac
7633fi
7634
7635MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7636if test -n "$MAGIC_CMD"; then
7637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7638$as_echo "$MAGIC_CMD" >&6; }
7639else
7640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641$as_echo "no" >&6; }
7642fi
7643
7644
7645
7646
7647
7648if test -z "$lt_cv_path_MAGIC_CMD"; then
7649  if test -n "$ac_tool_prefix"; then
7650    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7651$as_echo_n "checking for file... " >&6; }
7652if ${lt_cv_path_MAGIC_CMD+:} false; then :
7653  $as_echo_n "(cached) " >&6
7654else
7655  case $MAGIC_CMD in
7656[\\/*] |  ?:[\\/]*)
7657  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7658  ;;
7659*)
7660  lt_save_MAGIC_CMD="$MAGIC_CMD"
7661  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7662  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7663  for ac_dir in $ac_dummy; do
7664    IFS="$lt_save_ifs"
7665    test -z "$ac_dir" && ac_dir=.
7666    if test -f $ac_dir/file; then
7667      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7668      if test -n "$file_magic_test_file"; then
7669	case $deplibs_check_method in
7670	"file_magic "*)
7671	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7672	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7673	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7674	    $EGREP "$file_magic_regex" > /dev/null; then
7675	    :
7676	  else
7677	    cat <<_LT_EOF 1>&2
7678
7679*** Warning: the command libtool uses to detect shared libraries,
7680*** $file_magic_cmd, produces output that libtool cannot recognize.
7681*** The result is that libtool may fail to recognize shared libraries
7682*** as such.  This will affect the creation of libtool libraries that
7683*** depend on shared libraries, but programs linked with such libtool
7684*** libraries will work regardless of this problem.  Nevertheless, you
7685*** may want to report the problem to your system manager and/or to
7686*** bug-libtool@gnu.org
7687
7688_LT_EOF
7689	  fi ;;
7690	esac
7691      fi
7692      break
7693    fi
7694  done
7695  IFS="$lt_save_ifs"
7696  MAGIC_CMD="$lt_save_MAGIC_CMD"
7697  ;;
7698esac
7699fi
7700
7701MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7702if test -n "$MAGIC_CMD"; then
7703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7704$as_echo "$MAGIC_CMD" >&6; }
7705else
7706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707$as_echo "no" >&6; }
7708fi
7709
7710
7711  else
7712    MAGIC_CMD=:
7713  fi
7714fi
7715
7716  fi
7717  ;;
7718esac
7719
7720# Use C for the default configuration in the libtool script
7721
7722lt_save_CC="$CC"
7723ac_ext=c
7724ac_cpp='$CPP $CPPFLAGS'
7725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7727ac_compiler_gnu=$ac_cv_c_compiler_gnu
7728
7729
7730# Source file extension for C test sources.
7731ac_ext=c
7732
7733# Object file extension for compiled C test sources.
7734objext=o
7735objext=$objext
7736
7737# Code to be used in simple compile tests
7738lt_simple_compile_test_code="int some_variable = 0;"
7739
7740# Code to be used in simple link tests
7741lt_simple_link_test_code='int main(){return(0);}'
7742
7743
7744
7745
7746
7747
7748
7749# If no C compiler was specified, use CC.
7750LTCC=${LTCC-"$CC"}
7751
7752# If no C compiler flags were specified, use CFLAGS.
7753LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7754
7755# Allow CC to be a program name with arguments.
7756compiler=$CC
7757
7758# Save the default compiler, since it gets overwritten when the other
7759# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7760compiler_DEFAULT=$CC
7761
7762# save warnings/boilerplate of simple test code
7763ac_outfile=conftest.$ac_objext
7764echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7765eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7766_lt_compiler_boilerplate=`cat conftest.err`
7767$RM conftest*
7768
7769ac_outfile=conftest.$ac_objext
7770echo "$lt_simple_link_test_code" >conftest.$ac_ext
7771eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7772_lt_linker_boilerplate=`cat conftest.err`
7773$RM -r conftest*
7774
7775
7776if test -n "$compiler"; then
7777
7778lt_prog_compiler_no_builtin_flag=
7779
7780if test "$GCC" = yes; then
7781  case $cc_basename in
7782  nvcc*)
7783    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7784  *)
7785    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7786  esac
7787
7788  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7789$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7790if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7791  $as_echo_n "(cached) " >&6
7792else
7793  lt_cv_prog_compiler_rtti_exceptions=no
7794   ac_outfile=conftest.$ac_objext
7795   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7796   lt_compiler_flag="-fno-rtti -fno-exceptions"
7797   # Insert the option either (1) after the last *FLAGS variable, or
7798   # (2) before a word containing "conftest.", or (3) at the end.
7799   # Note that $ac_compile itself does not contain backslashes and begins
7800   # with a dollar sign (not a hyphen), so the echo should work correctly.
7801   # The option is referenced via a variable to avoid confusing sed.
7802   lt_compile=`echo "$ac_compile" | $SED \
7803   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7804   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7805   -e 's:$: $lt_compiler_flag:'`
7806   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7807   (eval "$lt_compile" 2>conftest.err)
7808   ac_status=$?
7809   cat conftest.err >&5
7810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811   if (exit $ac_status) && test -s "$ac_outfile"; then
7812     # The compiler can only warn and ignore the option if not recognized
7813     # So say no if there are warnings other than the usual output.
7814     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7815     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7816     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7817       lt_cv_prog_compiler_rtti_exceptions=yes
7818     fi
7819   fi
7820   $RM conftest*
7821
7822fi
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7824$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7825
7826if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7827    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7828else
7829    :
7830fi
7831
7832fi
7833
7834
7835
7836
7837
7838
7839  lt_prog_compiler_wl=
7840lt_prog_compiler_pic=
7841lt_prog_compiler_static=
7842
7843
7844  if test "$GCC" = yes; then
7845    lt_prog_compiler_wl='-Wl,'
7846    lt_prog_compiler_static='-static'
7847
7848    case $host_os in
7849      aix*)
7850      # All AIX code is PIC.
7851      if test "$host_cpu" = ia64; then
7852	# AIX 5 now supports IA64 processor
7853	lt_prog_compiler_static='-Bstatic'
7854      fi
7855      ;;
7856
7857    amigaos*)
7858      case $host_cpu in
7859      powerpc)
7860            # see comment about AmigaOS4 .so support
7861            lt_prog_compiler_pic='-fPIC'
7862        ;;
7863      m68k)
7864            # FIXME: we need at least 68020 code to build shared libraries, but
7865            # adding the `-m68020' flag to GCC prevents building anything better,
7866            # like `-m68040'.
7867            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7868        ;;
7869      esac
7870      ;;
7871
7872    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7873      # PIC is the default for these OSes.
7874      ;;
7875
7876    mingw* | cygwin* | pw32* | os2* | cegcc*)
7877      # This hack is so that the source file can tell whether it is being
7878      # built for inclusion in a dll (and should export symbols for example).
7879      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7880      # (--disable-auto-import) libraries
7881      lt_prog_compiler_pic='-DDLL_EXPORT'
7882      ;;
7883
7884    darwin* | rhapsody*)
7885      # PIC is the default on this platform
7886      # Common symbols not allowed in MH_DYLIB files
7887      lt_prog_compiler_pic='-fno-common'
7888      ;;
7889
7890    haiku*)
7891      # PIC is the default for Haiku.
7892      # The "-static" flag exists, but is broken.
7893      lt_prog_compiler_static=
7894      ;;
7895
7896    hpux*)
7897      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7898      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7899      # sets the default TLS model and affects inlining.
7900      case $host_cpu in
7901      hppa*64*)
7902	# +Z the default
7903	;;
7904      *)
7905	lt_prog_compiler_pic='-fPIC'
7906	;;
7907      esac
7908      ;;
7909
7910    interix[3-9]*)
7911      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7912      # Instead, we relocate shared libraries at runtime.
7913      ;;
7914
7915    msdosdjgpp*)
7916      # Just because we use GCC doesn't mean we suddenly get shared libraries
7917      # on systems that don't support them.
7918      lt_prog_compiler_can_build_shared=no
7919      enable_shared=no
7920      ;;
7921
7922    *nto* | *qnx*)
7923      # QNX uses GNU C++, but need to define -shared option too, otherwise
7924      # it will coredump.
7925      lt_prog_compiler_pic='-fPIC -shared'
7926      ;;
7927
7928    sysv4*MP*)
7929      if test -d /usr/nec; then
7930	lt_prog_compiler_pic=-Kconform_pic
7931      fi
7932      ;;
7933
7934    *)
7935      lt_prog_compiler_pic='-fPIC'
7936      ;;
7937    esac
7938
7939    case $cc_basename in
7940    nvcc*) # Cuda Compiler Driver 2.2
7941      lt_prog_compiler_wl='-Xlinker '
7942      if test -n "$lt_prog_compiler_pic"; then
7943        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7944      fi
7945      ;;
7946    esac
7947  else
7948    # PORTME Check for flag to pass linker flags through the system compiler.
7949    case $host_os in
7950    aix*)
7951      lt_prog_compiler_wl='-Wl,'
7952      if test "$host_cpu" = ia64; then
7953	# AIX 5 now supports IA64 processor
7954	lt_prog_compiler_static='-Bstatic'
7955      else
7956	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7957      fi
7958      ;;
7959
7960    mingw* | cygwin* | pw32* | os2* | cegcc*)
7961      # This hack is so that the source file can tell whether it is being
7962      # built for inclusion in a dll (and should export symbols for example).
7963      lt_prog_compiler_pic='-DDLL_EXPORT'
7964      ;;
7965
7966    hpux9* | hpux10* | hpux11*)
7967      lt_prog_compiler_wl='-Wl,'
7968      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7969      # not for PA HP-UX.
7970      case $host_cpu in
7971      hppa*64*|ia64*)
7972	# +Z the default
7973	;;
7974      *)
7975	lt_prog_compiler_pic='+Z'
7976	;;
7977      esac
7978      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7979      lt_prog_compiler_static='${wl}-a ${wl}archive'
7980      ;;
7981
7982    irix5* | irix6* | nonstopux*)
7983      lt_prog_compiler_wl='-Wl,'
7984      # PIC (with -KPIC) is the default.
7985      lt_prog_compiler_static='-non_shared'
7986      ;;
7987
7988    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7989      case $cc_basename in
7990      # old Intel for x86_64 which still supported -KPIC.
7991      ecc*)
7992	lt_prog_compiler_wl='-Wl,'
7993	lt_prog_compiler_pic='-KPIC'
7994	lt_prog_compiler_static='-static'
7995        ;;
7996      # icc used to be incompatible with GCC.
7997      # ICC 10 doesn't accept -KPIC any more.
7998      icc* | ifort*)
7999	lt_prog_compiler_wl='-Wl,'
8000	lt_prog_compiler_pic='-fPIC'
8001	lt_prog_compiler_static='-static'
8002        ;;
8003      # Lahey Fortran 8.1.
8004      lf95*)
8005	lt_prog_compiler_wl='-Wl,'
8006	lt_prog_compiler_pic='--shared'
8007	lt_prog_compiler_static='--static'
8008	;;
8009      nagfor*)
8010	# NAG Fortran compiler
8011	lt_prog_compiler_wl='-Wl,-Wl,,'
8012	lt_prog_compiler_pic='-PIC'
8013	lt_prog_compiler_static='-Bstatic'
8014	;;
8015      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8016        # Portland Group compilers (*not* the Pentium gcc compiler,
8017	# which looks to be a dead project)
8018	lt_prog_compiler_wl='-Wl,'
8019	lt_prog_compiler_pic='-fpic'
8020	lt_prog_compiler_static='-Bstatic'
8021        ;;
8022      ccc*)
8023        lt_prog_compiler_wl='-Wl,'
8024        # All Alpha code is PIC.
8025        lt_prog_compiler_static='-non_shared'
8026        ;;
8027      xl* | bgxl* | bgf* | mpixl*)
8028	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8029	lt_prog_compiler_wl='-Wl,'
8030	lt_prog_compiler_pic='-qpic'
8031	lt_prog_compiler_static='-qstaticlink'
8032	;;
8033      *)
8034	case `$CC -V 2>&1 | sed 5q` in
8035	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8036	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8037	  lt_prog_compiler_pic='-KPIC'
8038	  lt_prog_compiler_static='-Bstatic'
8039	  lt_prog_compiler_wl=''
8040	  ;;
8041	*Sun\ F* | *Sun*Fortran*)
8042	  lt_prog_compiler_pic='-KPIC'
8043	  lt_prog_compiler_static='-Bstatic'
8044	  lt_prog_compiler_wl='-Qoption ld '
8045	  ;;
8046	*Sun\ C*)
8047	  # Sun C 5.9
8048	  lt_prog_compiler_pic='-KPIC'
8049	  lt_prog_compiler_static='-Bstatic'
8050	  lt_prog_compiler_wl='-Wl,'
8051	  ;;
8052        *Intel*\ [CF]*Compiler*)
8053	  lt_prog_compiler_wl='-Wl,'
8054	  lt_prog_compiler_pic='-fPIC'
8055	  lt_prog_compiler_static='-static'
8056	  ;;
8057	*Portland\ Group*)
8058	  lt_prog_compiler_wl='-Wl,'
8059	  lt_prog_compiler_pic='-fpic'
8060	  lt_prog_compiler_static='-Bstatic'
8061	  ;;
8062	esac
8063	;;
8064      esac
8065      ;;
8066
8067    newsos6)
8068      lt_prog_compiler_pic='-KPIC'
8069      lt_prog_compiler_static='-Bstatic'
8070      ;;
8071
8072    *nto* | *qnx*)
8073      # QNX uses GNU C++, but need to define -shared option too, otherwise
8074      # it will coredump.
8075      lt_prog_compiler_pic='-fPIC -shared'
8076      ;;
8077
8078    osf3* | osf4* | osf5*)
8079      lt_prog_compiler_wl='-Wl,'
8080      # All OSF/1 code is PIC.
8081      lt_prog_compiler_static='-non_shared'
8082      ;;
8083
8084    rdos*)
8085      lt_prog_compiler_static='-non_shared'
8086      ;;
8087
8088    solaris*)
8089      lt_prog_compiler_pic='-KPIC'
8090      lt_prog_compiler_static='-Bstatic'
8091      case $cc_basename in
8092      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8093	lt_prog_compiler_wl='-Qoption ld ';;
8094      *)
8095	lt_prog_compiler_wl='-Wl,';;
8096      esac
8097      ;;
8098
8099    sunos4*)
8100      lt_prog_compiler_wl='-Qoption ld '
8101      lt_prog_compiler_pic='-PIC'
8102      lt_prog_compiler_static='-Bstatic'
8103      ;;
8104
8105    sysv4 | sysv4.2uw2* | sysv4.3*)
8106      lt_prog_compiler_wl='-Wl,'
8107      lt_prog_compiler_pic='-KPIC'
8108      lt_prog_compiler_static='-Bstatic'
8109      ;;
8110
8111    sysv4*MP*)
8112      if test -d /usr/nec ;then
8113	lt_prog_compiler_pic='-Kconform_pic'
8114	lt_prog_compiler_static='-Bstatic'
8115      fi
8116      ;;
8117
8118    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8119      lt_prog_compiler_wl='-Wl,'
8120      lt_prog_compiler_pic='-KPIC'
8121      lt_prog_compiler_static='-Bstatic'
8122      ;;
8123
8124    unicos*)
8125      lt_prog_compiler_wl='-Wl,'
8126      lt_prog_compiler_can_build_shared=no
8127      ;;
8128
8129    uts4*)
8130      lt_prog_compiler_pic='-pic'
8131      lt_prog_compiler_static='-Bstatic'
8132      ;;
8133
8134    *)
8135      lt_prog_compiler_can_build_shared=no
8136      ;;
8137    esac
8138  fi
8139
8140case $host_os in
8141  # For platforms which do not support PIC, -DPIC is meaningless:
8142  *djgpp*)
8143    lt_prog_compiler_pic=
8144    ;;
8145  *)
8146    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8147    ;;
8148esac
8149
8150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8151$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8152if ${lt_cv_prog_compiler_pic+:} false; then :
8153  $as_echo_n "(cached) " >&6
8154else
8155  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8156fi
8157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8158$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8159lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8160
8161#
8162# Check to make sure the PIC flag actually works.
8163#
8164if test -n "$lt_prog_compiler_pic"; then
8165  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8166$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8167if ${lt_cv_prog_compiler_pic_works+:} false; then :
8168  $as_echo_n "(cached) " >&6
8169else
8170  lt_cv_prog_compiler_pic_works=no
8171   ac_outfile=conftest.$ac_objext
8172   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8173   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8174   # Insert the option either (1) after the last *FLAGS variable, or
8175   # (2) before a word containing "conftest.", or (3) at the end.
8176   # Note that $ac_compile itself does not contain backslashes and begins
8177   # with a dollar sign (not a hyphen), so the echo should work correctly.
8178   # The option is referenced via a variable to avoid confusing sed.
8179   lt_compile=`echo "$ac_compile" | $SED \
8180   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8181   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8182   -e 's:$: $lt_compiler_flag:'`
8183   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8184   (eval "$lt_compile" 2>conftest.err)
8185   ac_status=$?
8186   cat conftest.err >&5
8187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188   if (exit $ac_status) && test -s "$ac_outfile"; then
8189     # The compiler can only warn and ignore the option if not recognized
8190     # So say no if there are warnings other than the usual output.
8191     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8192     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8193     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8194       lt_cv_prog_compiler_pic_works=yes
8195     fi
8196   fi
8197   $RM conftest*
8198
8199fi
8200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8201$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8202
8203if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8204    case $lt_prog_compiler_pic in
8205     "" | " "*) ;;
8206     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8207     esac
8208else
8209    lt_prog_compiler_pic=
8210     lt_prog_compiler_can_build_shared=no
8211fi
8212
8213fi
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225#
8226# Check to make sure the static flag actually works.
8227#
8228wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8230$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8231if ${lt_cv_prog_compiler_static_works+:} false; then :
8232  $as_echo_n "(cached) " >&6
8233else
8234  lt_cv_prog_compiler_static_works=no
8235   save_LDFLAGS="$LDFLAGS"
8236   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8237   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8238   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8239     # The linker can only warn and ignore the option if not recognized
8240     # So say no if there are warnings
8241     if test -s conftest.err; then
8242       # Append any errors to the config.log.
8243       cat conftest.err 1>&5
8244       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8245       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8246       if diff conftest.exp conftest.er2 >/dev/null; then
8247         lt_cv_prog_compiler_static_works=yes
8248       fi
8249     else
8250       lt_cv_prog_compiler_static_works=yes
8251     fi
8252   fi
8253   $RM -r conftest*
8254   LDFLAGS="$save_LDFLAGS"
8255
8256fi
8257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8258$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8259
8260if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8261    :
8262else
8263    lt_prog_compiler_static=
8264fi
8265
8266
8267
8268
8269
8270
8271
8272  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8273$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8274if ${lt_cv_prog_compiler_c_o+:} false; then :
8275  $as_echo_n "(cached) " >&6
8276else
8277  lt_cv_prog_compiler_c_o=no
8278   $RM -r conftest 2>/dev/null
8279   mkdir conftest
8280   cd conftest
8281   mkdir out
8282   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8283
8284   lt_compiler_flag="-o out/conftest2.$ac_objext"
8285   # Insert the option either (1) after the last *FLAGS variable, or
8286   # (2) before a word containing "conftest.", or (3) at the end.
8287   # Note that $ac_compile itself does not contain backslashes and begins
8288   # with a dollar sign (not a hyphen), so the echo should work correctly.
8289   lt_compile=`echo "$ac_compile" | $SED \
8290   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8291   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8292   -e 's:$: $lt_compiler_flag:'`
8293   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8294   (eval "$lt_compile" 2>out/conftest.err)
8295   ac_status=$?
8296   cat out/conftest.err >&5
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8299   then
8300     # The compiler can only warn and ignore the option if not recognized
8301     # So say no if there are warnings
8302     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8303     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8304     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8305       lt_cv_prog_compiler_c_o=yes
8306     fi
8307   fi
8308   chmod u+w . 2>&5
8309   $RM conftest*
8310   # SGI C++ compiler will create directory out/ii_files/ for
8311   # template instantiation
8312   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8313   $RM out/* && rmdir out
8314   cd ..
8315   $RM -r conftest
8316   $RM conftest*
8317
8318fi
8319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8320$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8321
8322
8323
8324
8325
8326
8327  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8328$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8329if ${lt_cv_prog_compiler_c_o+:} false; then :
8330  $as_echo_n "(cached) " >&6
8331else
8332  lt_cv_prog_compiler_c_o=no
8333   $RM -r conftest 2>/dev/null
8334   mkdir conftest
8335   cd conftest
8336   mkdir out
8337   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8338
8339   lt_compiler_flag="-o out/conftest2.$ac_objext"
8340   # Insert the option either (1) after the last *FLAGS variable, or
8341   # (2) before a word containing "conftest.", or (3) at the end.
8342   # Note that $ac_compile itself does not contain backslashes and begins
8343   # with a dollar sign (not a hyphen), so the echo should work correctly.
8344   lt_compile=`echo "$ac_compile" | $SED \
8345   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8346   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8347   -e 's:$: $lt_compiler_flag:'`
8348   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8349   (eval "$lt_compile" 2>out/conftest.err)
8350   ac_status=$?
8351   cat out/conftest.err >&5
8352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8354   then
8355     # The compiler can only warn and ignore the option if not recognized
8356     # So say no if there are warnings
8357     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8358     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8359     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8360       lt_cv_prog_compiler_c_o=yes
8361     fi
8362   fi
8363   chmod u+w . 2>&5
8364   $RM conftest*
8365   # SGI C++ compiler will create directory out/ii_files/ for
8366   # template instantiation
8367   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8368   $RM out/* && rmdir out
8369   cd ..
8370   $RM -r conftest
8371   $RM conftest*
8372
8373fi
8374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8375$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8376
8377
8378
8379
8380hard_links="nottested"
8381if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8382  # do not overwrite the value of need_locks provided by the user
8383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8384$as_echo_n "checking if we can lock with hard links... " >&6; }
8385  hard_links=yes
8386  $RM conftest*
8387  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8388  touch conftest.a
8389  ln conftest.a conftest.b 2>&5 || hard_links=no
8390  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8392$as_echo "$hard_links" >&6; }
8393  if test "$hard_links" = no; then
8394    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8395$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8396    need_locks=warn
8397  fi
8398else
8399  need_locks=no
8400fi
8401
8402
8403
8404
8405
8406
8407  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8408$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8409
8410  runpath_var=
8411  allow_undefined_flag=
8412  always_export_symbols=no
8413  archive_cmds=
8414  archive_expsym_cmds=
8415  compiler_needs_object=no
8416  enable_shared_with_static_runtimes=no
8417  export_dynamic_flag_spec=
8418  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8419  hardcode_automatic=no
8420  hardcode_direct=no
8421  hardcode_direct_absolute=no
8422  hardcode_libdir_flag_spec=
8423  hardcode_libdir_separator=
8424  hardcode_minus_L=no
8425  hardcode_shlibpath_var=unsupported
8426  inherit_rpath=no
8427  link_all_deplibs=unknown
8428  module_cmds=
8429  module_expsym_cmds=
8430  old_archive_from_new_cmds=
8431  old_archive_from_expsyms_cmds=
8432  thread_safe_flag_spec=
8433  whole_archive_flag_spec=
8434  # include_expsyms should be a list of space-separated symbols to be *always*
8435  # included in the symbol list
8436  include_expsyms=
8437  # exclude_expsyms can be an extended regexp of symbols to exclude
8438  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8439  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8440  # as well as any symbol that contains `d'.
8441  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8442  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8443  # platforms (ab)use it in PIC code, but their linkers get confused if
8444  # the symbol is explicitly referenced.  Since portable code cannot
8445  # rely on this symbol name, it's probably fine to never include it in
8446  # preloaded symbol tables.
8447  # Exclude shared library initialization/finalization symbols.
8448  extract_expsyms_cmds=
8449
8450  case $host_os in
8451  cygwin* | mingw* | pw32* | cegcc*)
8452    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8453    # When not using gcc, we currently assume that we are using
8454    # Microsoft Visual C++.
8455    if test "$GCC" != yes; then
8456      with_gnu_ld=no
8457    fi
8458    ;;
8459  interix*)
8460    # we just hope/assume this is gcc and not c89 (= MSVC++)
8461    with_gnu_ld=yes
8462    ;;
8463  openbsd*)
8464    with_gnu_ld=no
8465    ;;
8466  esac
8467
8468  ld_shlibs=yes
8469
8470  # On some targets, GNU ld is compatible enough with the native linker
8471  # that we're better off using the native interface for both.
8472  lt_use_gnu_ld_interface=no
8473  if test "$with_gnu_ld" = yes; then
8474    case $host_os in
8475      aix*)
8476	# The AIX port of GNU ld has always aspired to compatibility
8477	# with the native linker.  However, as the warning in the GNU ld
8478	# block says, versions before 2.19.5* couldn't really create working
8479	# shared libraries, regardless of the interface used.
8480	case `$LD -v 2>&1` in
8481	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8482	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8483	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8484	  *)
8485	    lt_use_gnu_ld_interface=yes
8486	    ;;
8487	esac
8488	;;
8489      *)
8490	lt_use_gnu_ld_interface=yes
8491	;;
8492    esac
8493  fi
8494
8495  if test "$lt_use_gnu_ld_interface" = yes; then
8496    # If archive_cmds runs LD, not CC, wlarc should be empty
8497    wlarc='${wl}'
8498
8499    # Set some defaults for GNU ld with shared library support. These
8500    # are reset later if shared libraries are not supported. Putting them
8501    # here allows them to be overridden if necessary.
8502    runpath_var=LD_RUN_PATH
8503    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8504    export_dynamic_flag_spec='${wl}--export-dynamic'
8505    # ancient GNU ld didn't support --whole-archive et. al.
8506    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8507      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8508    else
8509      whole_archive_flag_spec=
8510    fi
8511    supports_anon_versioning=no
8512    case `$LD -v 2>&1` in
8513      *GNU\ gold*) supports_anon_versioning=yes ;;
8514      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8515      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8516      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8517      *\ 2.11.*) ;; # other 2.11 versions
8518      *) supports_anon_versioning=yes ;;
8519    esac
8520
8521    # See if GNU ld supports shared libraries.
8522    case $host_os in
8523    aix[3-9]*)
8524      # On AIX/PPC, the GNU linker is very broken
8525      if test "$host_cpu" != ia64; then
8526	ld_shlibs=no
8527	cat <<_LT_EOF 1>&2
8528
8529*** Warning: the GNU linker, at least up to release 2.19, is reported
8530*** to be unable to reliably create shared libraries on AIX.
8531*** Therefore, libtool is disabling shared libraries support.  If you
8532*** really care for shared libraries, you may want to install binutils
8533*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8534*** You will then need to restart the configuration process.
8535
8536_LT_EOF
8537      fi
8538      ;;
8539
8540    amigaos*)
8541      case $host_cpu in
8542      powerpc)
8543            # see comment about AmigaOS4 .so support
8544            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8545            archive_expsym_cmds=''
8546        ;;
8547      m68k)
8548            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)'
8549            hardcode_libdir_flag_spec='-L$libdir'
8550            hardcode_minus_L=yes
8551        ;;
8552      esac
8553      ;;
8554
8555    beos*)
8556      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8557	allow_undefined_flag=unsupported
8558	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8559	# support --undefined.  This deserves some investigation.  FIXME
8560	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8561      else
8562	ld_shlibs=no
8563      fi
8564      ;;
8565
8566    cygwin* | mingw* | pw32* | cegcc*)
8567      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8568      # as there is no search path for DLLs.
8569      hardcode_libdir_flag_spec='-L$libdir'
8570      export_dynamic_flag_spec='${wl}--export-all-symbols'
8571      allow_undefined_flag=unsupported
8572      always_export_symbols=no
8573      enable_shared_with_static_runtimes=yes
8574      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'
8575      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8576
8577      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8578        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8579	# If the export-symbols file already is a .def file (1st line
8580	# is EXPORTS), use it as is; otherwise, prepend...
8581	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8582	  cp $export_symbols $output_objdir/$soname.def;
8583	else
8584	  echo EXPORTS > $output_objdir/$soname.def;
8585	  cat $export_symbols >> $output_objdir/$soname.def;
8586	fi~
8587	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8588      else
8589	ld_shlibs=no
8590      fi
8591      ;;
8592
8593    haiku*)
8594      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8595      link_all_deplibs=yes
8596      ;;
8597
8598    interix[3-9]*)
8599      hardcode_direct=no
8600      hardcode_shlibpath_var=no
8601      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8602      export_dynamic_flag_spec='${wl}-E'
8603      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8604      # Instead, shared libraries are loaded at an image base (0x10000000 by
8605      # default) and relocated if they conflict, which is a slow very memory
8606      # consuming and fragmenting process.  To avoid this, we pick a random,
8607      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8608      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8609      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8610      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'
8611      ;;
8612
8613    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8614      tmp_diet=no
8615      if test "$host_os" = linux-dietlibc; then
8616	case $cc_basename in
8617	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8618	esac
8619      fi
8620      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8621	 && test "$tmp_diet" = no
8622      then
8623	tmp_addflag=' $pic_flag'
8624	tmp_sharedflag='-shared'
8625	case $cc_basename,$host_cpu in
8626        pgcc*)				# Portland Group C compiler
8627	  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'
8628	  tmp_addflag=' $pic_flag'
8629	  ;;
8630	pgf77* | pgf90* | pgf95* | pgfortran*)
8631					# Portland Group f77 and f90 compilers
8632	  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'
8633	  tmp_addflag=' $pic_flag -Mnomain' ;;
8634	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8635	  tmp_addflag=' -i_dynamic' ;;
8636	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8637	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8638	ifc* | ifort*)			# Intel Fortran compiler
8639	  tmp_addflag=' -nofor_main' ;;
8640	lf95*)				# Lahey Fortran 8.1
8641	  whole_archive_flag_spec=
8642	  tmp_sharedflag='--shared' ;;
8643	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8644	  tmp_sharedflag='-qmkshrobj'
8645	  tmp_addflag= ;;
8646	nvcc*)	# Cuda Compiler Driver 2.2
8647	  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'
8648	  compiler_needs_object=yes
8649	  ;;
8650	esac
8651	case `$CC -V 2>&1 | sed 5q` in
8652	*Sun\ C*)			# Sun C 5.9
8653	  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'
8654	  compiler_needs_object=yes
8655	  tmp_sharedflag='-G' ;;
8656	*Sun\ F*)			# Sun Fortran 8.3
8657	  tmp_sharedflag='-G' ;;
8658	esac
8659	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8660
8661        if test "x$supports_anon_versioning" = xyes; then
8662          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8663	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8664	    echo "local: *; };" >> $output_objdir/$libname.ver~
8665	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8666        fi
8667
8668	case $cc_basename in
8669	xlf* | bgf* | bgxlf* | mpixlf*)
8670	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8671	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8672	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8673	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8674	  if test "x$supports_anon_versioning" = xyes; then
8675	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8676	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8677	      echo "local: *; };" >> $output_objdir/$libname.ver~
8678	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8679	  fi
8680	  ;;
8681	esac
8682      else
8683        ld_shlibs=no
8684      fi
8685      ;;
8686
8687    netbsd*)
8688      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8689	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8690	wlarc=
8691      else
8692	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8693	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8694      fi
8695      ;;
8696
8697    solaris*)
8698      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8699	ld_shlibs=no
8700	cat <<_LT_EOF 1>&2
8701
8702*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8703*** create shared libraries on Solaris systems.  Therefore, libtool
8704*** is disabling shared libraries support.  We urge you to upgrade GNU
8705*** binutils to release 2.9.1 or newer.  Another option is to modify
8706*** your PATH or compiler configuration so that the native linker is
8707*** used, and then restart.
8708
8709_LT_EOF
8710      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8711	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8712	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8713      else
8714	ld_shlibs=no
8715      fi
8716      ;;
8717
8718    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8719      case `$LD -v 2>&1` in
8720        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8721	ld_shlibs=no
8722	cat <<_LT_EOF 1>&2
8723
8724*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8725*** reliably create shared libraries on SCO systems.  Therefore, libtool
8726*** is disabling shared libraries support.  We urge you to upgrade GNU
8727*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8728*** your PATH or compiler configuration so that the native linker is
8729*** used, and then restart.
8730
8731_LT_EOF
8732	;;
8733	*)
8734	  # For security reasons, it is highly recommended that you always
8735	  # use absolute paths for naming shared libraries, and exclude the
8736	  # DT_RUNPATH tag from executables and libraries.  But doing so
8737	  # requires that you compile everything twice, which is a pain.
8738	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8739	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8740	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8741	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8742	  else
8743	    ld_shlibs=no
8744	  fi
8745	;;
8746      esac
8747      ;;
8748
8749    sunos4*)
8750      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8751      wlarc=
8752      hardcode_direct=yes
8753      hardcode_shlibpath_var=no
8754      ;;
8755
8756    *)
8757      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8758	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8759	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8760      else
8761	ld_shlibs=no
8762      fi
8763      ;;
8764    esac
8765
8766    if test "$ld_shlibs" = no; then
8767      runpath_var=
8768      hardcode_libdir_flag_spec=
8769      export_dynamic_flag_spec=
8770      whole_archive_flag_spec=
8771    fi
8772  else
8773    # PORTME fill in a description of your system's linker (not GNU ld)
8774    case $host_os in
8775    aix3*)
8776      allow_undefined_flag=unsupported
8777      always_export_symbols=yes
8778      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'
8779      # Note: this linker hardcodes the directories in LIBPATH if there
8780      # are no directories specified by -L.
8781      hardcode_minus_L=yes
8782      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8783	# Neither direct hardcoding nor static linking is supported with a
8784	# broken collect2.
8785	hardcode_direct=unsupported
8786      fi
8787      ;;
8788
8789    aix[4-9]*)
8790      if test "$host_cpu" = ia64; then
8791	# On IA64, the linker does run time linking by default, so we don't
8792	# have to do anything special.
8793	aix_use_runtimelinking=no
8794	exp_sym_flag='-Bexport'
8795	no_entry_flag=""
8796      else
8797	# If we're using GNU nm, then we don't want the "-C" option.
8798	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8799	# Also, AIX nm treats weak defined symbols like other global
8800	# defined symbols, whereas GNU nm marks them as "W".
8801	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8802	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8803	else
8804	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8805	fi
8806	aix_use_runtimelinking=no
8807
8808	# Test if we are trying to use run time linking or normal
8809	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8810	# need to do runtime linking.
8811	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8812	  for ld_flag in $LDFLAGS; do
8813	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8814	    aix_use_runtimelinking=yes
8815	    break
8816	  fi
8817	  done
8818	  ;;
8819	esac
8820
8821	exp_sym_flag='-bexport'
8822	no_entry_flag='-bnoentry'
8823      fi
8824
8825      # When large executables or shared objects are built, AIX ld can
8826      # have problems creating the table of contents.  If linking a library
8827      # or program results in "error TOC overflow" add -mminimal-toc to
8828      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8829      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8830
8831      archive_cmds=''
8832      hardcode_direct=yes
8833      hardcode_direct_absolute=yes
8834      hardcode_libdir_separator=':'
8835      link_all_deplibs=yes
8836      file_list_spec='${wl}-f,'
8837
8838      if test "$GCC" = yes; then
8839	case $host_os in aix4.[012]|aix4.[012].*)
8840	# We only want to do this on AIX 4.2 and lower, the check
8841	# below for broken collect2 doesn't work under 4.3+
8842	  collect2name=`${CC} -print-prog-name=collect2`
8843	  if test -f "$collect2name" &&
8844	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8845	  then
8846	  # We have reworked collect2
8847	  :
8848	  else
8849	  # We have old collect2
8850	  hardcode_direct=unsupported
8851	  # It fails to find uninstalled libraries when the uninstalled
8852	  # path is not listed in the libpath.  Setting hardcode_minus_L
8853	  # to unsupported forces relinking
8854	  hardcode_minus_L=yes
8855	  hardcode_libdir_flag_spec='-L$libdir'
8856	  hardcode_libdir_separator=
8857	  fi
8858	  ;;
8859	esac
8860	shared_flag='-shared'
8861	if test "$aix_use_runtimelinking" = yes; then
8862	  shared_flag="$shared_flag "'${wl}-G'
8863	fi
8864      else
8865	# not using gcc
8866	if test "$host_cpu" = ia64; then
8867	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8868	# chokes on -Wl,-G. The following line is correct:
8869	  shared_flag='-G'
8870	else
8871	  if test "$aix_use_runtimelinking" = yes; then
8872	    shared_flag='${wl}-G'
8873	  else
8874	    shared_flag='${wl}-bM:SRE'
8875	  fi
8876	fi
8877      fi
8878
8879      export_dynamic_flag_spec='${wl}-bexpall'
8880      # It seems that -bexpall does not export symbols beginning with
8881      # underscore (_), so it is better to generate a list of symbols to export.
8882      always_export_symbols=yes
8883      if test "$aix_use_runtimelinking" = yes; then
8884	# Warning - without using the other runtime loading flags (-brtl),
8885	# -berok will link without error, but may produce a broken library.
8886	allow_undefined_flag='-berok'
8887        # Determine the default libpath from the value encoded in an
8888        # empty executable.
8889        if test "${lt_cv_aix_libpath+set}" = set; then
8890  aix_libpath=$lt_cv_aix_libpath
8891else
8892  if ${lt_cv_aix_libpath_+:} false; then :
8893  $as_echo_n "(cached) " >&6
8894else
8895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896/* end confdefs.h.  */
8897
8898int
8899main ()
8900{
8901
8902  ;
8903  return 0;
8904}
8905_ACEOF
8906if ac_fn_c_try_link "$LINENO"; then :
8907
8908  lt_aix_libpath_sed='
8909      /Import File Strings/,/^$/ {
8910	  /^0/ {
8911	      s/^0  *\([^ ]*\) *$/\1/
8912	      p
8913	  }
8914      }'
8915  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8916  # Check for a 64-bit object if we didn't find anything.
8917  if test -z "$lt_cv_aix_libpath_"; then
8918    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8919  fi
8920fi
8921rm -f core conftest.err conftest.$ac_objext \
8922    conftest$ac_exeext conftest.$ac_ext
8923  if test -z "$lt_cv_aix_libpath_"; then
8924    lt_cv_aix_libpath_="/usr/lib:/lib"
8925  fi
8926
8927fi
8928
8929  aix_libpath=$lt_cv_aix_libpath_
8930fi
8931
8932        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8933        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8934      else
8935	if test "$host_cpu" = ia64; then
8936	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8937	  allow_undefined_flag="-z nodefs"
8938	  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"
8939	else
8940	 # Determine the default libpath from the value encoded in an
8941	 # empty executable.
8942	 if test "${lt_cv_aix_libpath+set}" = set; then
8943  aix_libpath=$lt_cv_aix_libpath
8944else
8945  if ${lt_cv_aix_libpath_+:} false; then :
8946  $as_echo_n "(cached) " >&6
8947else
8948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949/* end confdefs.h.  */
8950
8951int
8952main ()
8953{
8954
8955  ;
8956  return 0;
8957}
8958_ACEOF
8959if ac_fn_c_try_link "$LINENO"; then :
8960
8961  lt_aix_libpath_sed='
8962      /Import File Strings/,/^$/ {
8963	  /^0/ {
8964	      s/^0  *\([^ ]*\) *$/\1/
8965	      p
8966	  }
8967      }'
8968  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8969  # Check for a 64-bit object if we didn't find anything.
8970  if test -z "$lt_cv_aix_libpath_"; then
8971    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8972  fi
8973fi
8974rm -f core conftest.err conftest.$ac_objext \
8975    conftest$ac_exeext conftest.$ac_ext
8976  if test -z "$lt_cv_aix_libpath_"; then
8977    lt_cv_aix_libpath_="/usr/lib:/lib"
8978  fi
8979
8980fi
8981
8982  aix_libpath=$lt_cv_aix_libpath_
8983fi
8984
8985	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8986	  # Warning - without using the other run time loading flags,
8987	  # -berok will link without error, but may produce a broken library.
8988	  no_undefined_flag=' ${wl}-bernotok'
8989	  allow_undefined_flag=' ${wl}-berok'
8990	  if test "$with_gnu_ld" = yes; then
8991	    # We only use this code for GNU lds that support --whole-archive.
8992	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8993	  else
8994	    # Exported symbols can be pulled into shared objects from archives
8995	    whole_archive_flag_spec='$convenience'
8996	  fi
8997	  archive_cmds_need_lc=yes
8998	  # This is similar to how AIX traditionally builds its shared libraries.
8999	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9000	fi
9001      fi
9002      ;;
9003
9004    amigaos*)
9005      case $host_cpu in
9006      powerpc)
9007            # see comment about AmigaOS4 .so support
9008            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9009            archive_expsym_cmds=''
9010        ;;
9011      m68k)
9012            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)'
9013            hardcode_libdir_flag_spec='-L$libdir'
9014            hardcode_minus_L=yes
9015        ;;
9016      esac
9017      ;;
9018
9019    bsdi[45]*)
9020      export_dynamic_flag_spec=-rdynamic
9021      ;;
9022
9023    cygwin* | mingw* | pw32* | cegcc*)
9024      # When not using gcc, we currently assume that we are using
9025      # Microsoft Visual C++.
9026      # hardcode_libdir_flag_spec is actually meaningless, as there is
9027      # no search path for DLLs.
9028      case $cc_basename in
9029      cl*)
9030	# Native MSVC
9031	hardcode_libdir_flag_spec=' '
9032	allow_undefined_flag=unsupported
9033	always_export_symbols=yes
9034	file_list_spec='@'
9035	# Tell ltmain to make .lib files, not .a files.
9036	libext=lib
9037	# Tell ltmain to make .dll files, not .so files.
9038	shrext_cmds=".dll"
9039	# FIXME: Setting linknames here is a bad hack.
9040	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9041	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9042	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9043	  else
9044	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9045	  fi~
9046	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9047	  linknames='
9048	# The linker will not automatically build a static lib if we build a DLL.
9049	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9050	enable_shared_with_static_runtimes=yes
9051	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9052	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9053	# Don't use ranlib
9054	old_postinstall_cmds='chmod 644 $oldlib'
9055	postlink_cmds='lt_outputfile="@OUTPUT@"~
9056	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9057	  case $lt_outputfile in
9058	    *.exe|*.EXE) ;;
9059	    *)
9060	      lt_outputfile="$lt_outputfile.exe"
9061	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9062	      ;;
9063	  esac~
9064	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9065	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9066	    $RM "$lt_outputfile.manifest";
9067	  fi'
9068	;;
9069      *)
9070	# Assume MSVC wrapper
9071	hardcode_libdir_flag_spec=' '
9072	allow_undefined_flag=unsupported
9073	# Tell ltmain to make .lib files, not .a files.
9074	libext=lib
9075	# Tell ltmain to make .dll files, not .so files.
9076	shrext_cmds=".dll"
9077	# FIXME: Setting linknames here is a bad hack.
9078	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9079	# The linker will automatically build a .lib file if we build a DLL.
9080	old_archive_from_new_cmds='true'
9081	# FIXME: Should let the user specify the lib program.
9082	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9083	enable_shared_with_static_runtimes=yes
9084	;;
9085      esac
9086      ;;
9087
9088    darwin* | rhapsody*)
9089
9090
9091  archive_cmds_need_lc=no
9092  hardcode_direct=no
9093  hardcode_automatic=yes
9094  hardcode_shlibpath_var=unsupported
9095  if test "$lt_cv_ld_force_load" = "yes"; then
9096    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\"`'
9097
9098  else
9099    whole_archive_flag_spec=''
9100  fi
9101  link_all_deplibs=yes
9102  allow_undefined_flag="$_lt_dar_allow_undefined"
9103  case $cc_basename in
9104     ifort*) _lt_dar_can_shared=yes ;;
9105     *) _lt_dar_can_shared=$GCC ;;
9106  esac
9107  if test "$_lt_dar_can_shared" = "yes"; then
9108    output_verbose_link_cmd=func_echo_all
9109    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9110    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9111    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}"
9112    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}"
9113
9114  else
9115  ld_shlibs=no
9116  fi
9117
9118      ;;
9119
9120    dgux*)
9121      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9122      hardcode_libdir_flag_spec='-L$libdir'
9123      hardcode_shlibpath_var=no
9124      ;;
9125
9126    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9127    # support.  Future versions do this automatically, but an explicit c++rt0.o
9128    # does not break anything, and helps significantly (at the cost of a little
9129    # extra space).
9130    freebsd2.2*)
9131      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9132      hardcode_libdir_flag_spec='-R$libdir'
9133      hardcode_direct=yes
9134      hardcode_shlibpath_var=no
9135      ;;
9136
9137    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9138    freebsd2.*)
9139      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9140      hardcode_direct=yes
9141      hardcode_minus_L=yes
9142      hardcode_shlibpath_var=no
9143      ;;
9144
9145    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9146    freebsd* | dragonfly*)
9147      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9148      hardcode_libdir_flag_spec='-R$libdir'
9149      hardcode_direct=yes
9150      hardcode_shlibpath_var=no
9151      ;;
9152
9153    hpux9*)
9154      if test "$GCC" = yes; then
9155	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9156      else
9157	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9158      fi
9159      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9160      hardcode_libdir_separator=:
9161      hardcode_direct=yes
9162
9163      # hardcode_minus_L: Not really in the search PATH,
9164      # but as the default location of the library.
9165      hardcode_minus_L=yes
9166      export_dynamic_flag_spec='${wl}-E'
9167      ;;
9168
9169    hpux10*)
9170      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9171	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9172      else
9173	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9174      fi
9175      if test "$with_gnu_ld" = no; then
9176	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9177	hardcode_libdir_separator=:
9178	hardcode_direct=yes
9179	hardcode_direct_absolute=yes
9180	export_dynamic_flag_spec='${wl}-E'
9181	# hardcode_minus_L: Not really in the search PATH,
9182	# but as the default location of the library.
9183	hardcode_minus_L=yes
9184      fi
9185      ;;
9186
9187    hpux11*)
9188      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9189	case $host_cpu in
9190	hppa*64*)
9191	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9192	  ;;
9193	ia64*)
9194	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9195	  ;;
9196	*)
9197	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9198	  ;;
9199	esac
9200      else
9201	case $host_cpu in
9202	hppa*64*)
9203	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9204	  ;;
9205	ia64*)
9206	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9207	  ;;
9208	*)
9209
9210	  # Older versions of the 11.00 compiler do not understand -b yet
9211	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9212	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9213$as_echo_n "checking if $CC understands -b... " >&6; }
9214if ${lt_cv_prog_compiler__b+:} false; then :
9215  $as_echo_n "(cached) " >&6
9216else
9217  lt_cv_prog_compiler__b=no
9218   save_LDFLAGS="$LDFLAGS"
9219   LDFLAGS="$LDFLAGS -b"
9220   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9221   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9222     # The linker can only warn and ignore the option if not recognized
9223     # So say no if there are warnings
9224     if test -s conftest.err; then
9225       # Append any errors to the config.log.
9226       cat conftest.err 1>&5
9227       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9228       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9229       if diff conftest.exp conftest.er2 >/dev/null; then
9230         lt_cv_prog_compiler__b=yes
9231       fi
9232     else
9233       lt_cv_prog_compiler__b=yes
9234     fi
9235   fi
9236   $RM -r conftest*
9237   LDFLAGS="$save_LDFLAGS"
9238
9239fi
9240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9241$as_echo "$lt_cv_prog_compiler__b" >&6; }
9242
9243if test x"$lt_cv_prog_compiler__b" = xyes; then
9244    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9245else
9246    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9247fi
9248
9249	  ;;
9250	esac
9251      fi
9252      if test "$with_gnu_ld" = no; then
9253	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9254	hardcode_libdir_separator=:
9255
9256	case $host_cpu in
9257	hppa*64*|ia64*)
9258	  hardcode_direct=no
9259	  hardcode_shlibpath_var=no
9260	  ;;
9261	*)
9262	  hardcode_direct=yes
9263	  hardcode_direct_absolute=yes
9264	  export_dynamic_flag_spec='${wl}-E'
9265
9266	  # hardcode_minus_L: Not really in the search PATH,
9267	  # but as the default location of the library.
9268	  hardcode_minus_L=yes
9269	  ;;
9270	esac
9271      fi
9272      ;;
9273
9274    irix5* | irix6* | nonstopux*)
9275      if test "$GCC" = yes; then
9276	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'
9277	# Try to use the -exported_symbol ld option, if it does not
9278	# work, assume that -exports_file does not work either and
9279	# implicitly export all symbols.
9280	# This should be the same for all languages, so no per-tag cache variable.
9281	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9282$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9283if ${lt_cv_irix_exported_symbol+:} false; then :
9284  $as_echo_n "(cached) " >&6
9285else
9286  save_LDFLAGS="$LDFLAGS"
9287	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9288	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289/* end confdefs.h.  */
9290int foo (void) { return 0; }
9291_ACEOF
9292if ac_fn_c_try_link "$LINENO"; then :
9293  lt_cv_irix_exported_symbol=yes
9294else
9295  lt_cv_irix_exported_symbol=no
9296fi
9297rm -f core conftest.err conftest.$ac_objext \
9298    conftest$ac_exeext conftest.$ac_ext
9299           LDFLAGS="$save_LDFLAGS"
9300fi
9301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9302$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9303	if test "$lt_cv_irix_exported_symbol" = yes; then
9304          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'
9305	fi
9306      else
9307	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'
9308	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'
9309      fi
9310      archive_cmds_need_lc='no'
9311      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9312      hardcode_libdir_separator=:
9313      inherit_rpath=yes
9314      link_all_deplibs=yes
9315      ;;
9316
9317    netbsd*)
9318      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9319	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9320      else
9321	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9322      fi
9323      hardcode_libdir_flag_spec='-R$libdir'
9324      hardcode_direct=yes
9325      hardcode_shlibpath_var=no
9326      ;;
9327
9328    newsos6)
9329      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9330      hardcode_direct=yes
9331      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9332      hardcode_libdir_separator=:
9333      hardcode_shlibpath_var=no
9334      ;;
9335
9336    *nto* | *qnx*)
9337      ;;
9338
9339    openbsd*)
9340      if test -f /usr/libexec/ld.so; then
9341	hardcode_direct=yes
9342	hardcode_shlibpath_var=no
9343	hardcode_direct_absolute=yes
9344	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9345	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9346	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9347	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9348	  export_dynamic_flag_spec='${wl}-E'
9349	else
9350	  case $host_os in
9351	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9352	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9353	     hardcode_libdir_flag_spec='-R$libdir'
9354	     ;;
9355	   *)
9356	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9357	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9358	     ;;
9359	  esac
9360	fi
9361      else
9362	ld_shlibs=no
9363      fi
9364      ;;
9365
9366    os2*)
9367      hardcode_libdir_flag_spec='-L$libdir'
9368      hardcode_minus_L=yes
9369      allow_undefined_flag=unsupported
9370      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9371      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9372      ;;
9373
9374    osf3*)
9375      if test "$GCC" = yes; then
9376	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9377	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'
9378      else
9379	allow_undefined_flag=' -expect_unresolved \*'
9380	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'
9381      fi
9382      archive_cmds_need_lc='no'
9383      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9384      hardcode_libdir_separator=:
9385      ;;
9386
9387    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9388      if test "$GCC" = yes; then
9389	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9390	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'
9391	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9392      else
9393	allow_undefined_flag=' -expect_unresolved \*'
9394	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'
9395	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~
9396	$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'
9397
9398	# Both c and cxx compiler support -rpath directly
9399	hardcode_libdir_flag_spec='-rpath $libdir'
9400      fi
9401      archive_cmds_need_lc='no'
9402      hardcode_libdir_separator=:
9403      ;;
9404
9405    solaris*)
9406      no_undefined_flag=' -z defs'
9407      if test "$GCC" = yes; then
9408	wlarc='${wl}'
9409	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9410	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9411	  $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'
9412      else
9413	case `$CC -V 2>&1` in
9414	*"Compilers 5.0"*)
9415	  wlarc=''
9416	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9417	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9418	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9419	  ;;
9420	*)
9421	  wlarc='${wl}'
9422	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9423	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9424	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9425	  ;;
9426	esac
9427      fi
9428      hardcode_libdir_flag_spec='-R$libdir'
9429      hardcode_shlibpath_var=no
9430      case $host_os in
9431      solaris2.[0-5] | solaris2.[0-5].*) ;;
9432      *)
9433	# The compiler driver will combine and reorder linker options,
9434	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9435	# but is careful enough not to reorder.
9436	# Supported since Solaris 2.6 (maybe 2.5.1?)
9437	if test "$GCC" = yes; then
9438	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9439	else
9440	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9441	fi
9442	;;
9443      esac
9444      link_all_deplibs=yes
9445      ;;
9446
9447    sunos4*)
9448      if test "x$host_vendor" = xsequent; then
9449	# Use $CC to link under sequent, because it throws in some extra .o
9450	# files that make .init and .fini sections work.
9451	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9452      else
9453	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9454      fi
9455      hardcode_libdir_flag_spec='-L$libdir'
9456      hardcode_direct=yes
9457      hardcode_minus_L=yes
9458      hardcode_shlibpath_var=no
9459      ;;
9460
9461    sysv4)
9462      case $host_vendor in
9463	sni)
9464	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9465	  hardcode_direct=yes # is this really true???
9466	;;
9467	siemens)
9468	  ## LD is ld it makes a PLAMLIB
9469	  ## CC just makes a GrossModule.
9470	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9471	  reload_cmds='$CC -r -o $output$reload_objs'
9472	  hardcode_direct=no
9473        ;;
9474	motorola)
9475	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9476	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9477	;;
9478      esac
9479      runpath_var='LD_RUN_PATH'
9480      hardcode_shlibpath_var=no
9481      ;;
9482
9483    sysv4.3*)
9484      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9485      hardcode_shlibpath_var=no
9486      export_dynamic_flag_spec='-Bexport'
9487      ;;
9488
9489    sysv4*MP*)
9490      if test -d /usr/nec; then
9491	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9492	hardcode_shlibpath_var=no
9493	runpath_var=LD_RUN_PATH
9494	hardcode_runpath_var=yes
9495	ld_shlibs=yes
9496      fi
9497      ;;
9498
9499    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9500      no_undefined_flag='${wl}-z,text'
9501      archive_cmds_need_lc=no
9502      hardcode_shlibpath_var=no
9503      runpath_var='LD_RUN_PATH'
9504
9505      if test "$GCC" = yes; then
9506	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9507	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9508      else
9509	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9510	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9511      fi
9512      ;;
9513
9514    sysv5* | sco3.2v5* | sco5v6*)
9515      # Note: We can NOT use -z defs as we might desire, because we do not
9516      # link with -lc, and that would cause any symbols used from libc to
9517      # always be unresolved, which means just about no library would
9518      # ever link correctly.  If we're not using GNU ld we use -z text
9519      # though, which does catch some bad symbols but isn't as heavy-handed
9520      # as -z defs.
9521      no_undefined_flag='${wl}-z,text'
9522      allow_undefined_flag='${wl}-z,nodefs'
9523      archive_cmds_need_lc=no
9524      hardcode_shlibpath_var=no
9525      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9526      hardcode_libdir_separator=':'
9527      link_all_deplibs=yes
9528      export_dynamic_flag_spec='${wl}-Bexport'
9529      runpath_var='LD_RUN_PATH'
9530
9531      if test "$GCC" = yes; then
9532	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9533	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9534      else
9535	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9536	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9537      fi
9538      ;;
9539
9540    uts4*)
9541      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9542      hardcode_libdir_flag_spec='-L$libdir'
9543      hardcode_shlibpath_var=no
9544      ;;
9545
9546    *)
9547      ld_shlibs=no
9548      ;;
9549    esac
9550
9551    if test x$host_vendor = xsni; then
9552      case $host in
9553      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9554	export_dynamic_flag_spec='${wl}-Blargedynsym'
9555	;;
9556      esac
9557    fi
9558  fi
9559
9560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9561$as_echo "$ld_shlibs" >&6; }
9562test "$ld_shlibs" = no && can_build_shared=no
9563
9564with_gnu_ld=$with_gnu_ld
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580#
9581# Do we need to explicitly link libc?
9582#
9583case "x$archive_cmds_need_lc" in
9584x|xyes)
9585  # Assume -lc should be added
9586  archive_cmds_need_lc=yes
9587
9588  if test "$enable_shared" = yes && test "$GCC" = yes; then
9589    case $archive_cmds in
9590    *'~'*)
9591      # FIXME: we may have to deal with multi-command sequences.
9592      ;;
9593    '$CC '*)
9594      # Test whether the compiler implicitly links with -lc since on some
9595      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9596      # to ld, don't add -lc before -lgcc.
9597      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9598$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9599if ${lt_cv_archive_cmds_need_lc+:} false; then :
9600  $as_echo_n "(cached) " >&6
9601else
9602  $RM conftest*
9603	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9604
9605	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9606  (eval $ac_compile) 2>&5
9607  ac_status=$?
9608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9609  test $ac_status = 0; } 2>conftest.err; then
9610	  soname=conftest
9611	  lib=conftest
9612	  libobjs=conftest.$ac_objext
9613	  deplibs=
9614	  wl=$lt_prog_compiler_wl
9615	  pic_flag=$lt_prog_compiler_pic
9616	  compiler_flags=-v
9617	  linker_flags=-v
9618	  verstring=
9619	  output_objdir=.
9620	  libname=conftest
9621	  lt_save_allow_undefined_flag=$allow_undefined_flag
9622	  allow_undefined_flag=
9623	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9624  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9625  ac_status=$?
9626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9627  test $ac_status = 0; }
9628	  then
9629	    lt_cv_archive_cmds_need_lc=no
9630	  else
9631	    lt_cv_archive_cmds_need_lc=yes
9632	  fi
9633	  allow_undefined_flag=$lt_save_allow_undefined_flag
9634	else
9635	  cat conftest.err 1>&5
9636	fi
9637	$RM conftest*
9638
9639fi
9640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9641$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9642      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9643      ;;
9644    esac
9645  fi
9646  ;;
9647esac
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9801$as_echo_n "checking dynamic linker characteristics... " >&6; }
9802
9803if test "$GCC" = yes; then
9804  case $host_os in
9805    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9806    *) lt_awk_arg="/^libraries:/" ;;
9807  esac
9808  case $host_os in
9809    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9810    *) lt_sed_strip_eq="s,=/,/,g" ;;
9811  esac
9812  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9813  case $lt_search_path_spec in
9814  *\;*)
9815    # if the path contains ";" then we assume it to be the separator
9816    # otherwise default to the standard path separator (i.e. ":") - it is
9817    # assumed that no part of a normal pathname contains ";" but that should
9818    # okay in the real world where ";" in dirpaths is itself problematic.
9819    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9820    ;;
9821  *)
9822    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9823    ;;
9824  esac
9825  # Ok, now we have the path, separated by spaces, we can step through it
9826  # and add multilib dir if necessary.
9827  lt_tmp_lt_search_path_spec=
9828  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9829  for lt_sys_path in $lt_search_path_spec; do
9830    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9831      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9832    else
9833      test -d "$lt_sys_path" && \
9834	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9835    fi
9836  done
9837  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9838BEGIN {RS=" "; FS="/|\n";} {
9839  lt_foo="";
9840  lt_count=0;
9841  for (lt_i = NF; lt_i > 0; lt_i--) {
9842    if ($lt_i != "" && $lt_i != ".") {
9843      if ($lt_i == "..") {
9844        lt_count++;
9845      } else {
9846        if (lt_count == 0) {
9847          lt_foo="/" $lt_i lt_foo;
9848        } else {
9849          lt_count--;
9850        }
9851      }
9852    }
9853  }
9854  if (lt_foo != "") { lt_freq[lt_foo]++; }
9855  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9856}'`
9857  # AWK program above erroneously prepends '/' to C:/dos/paths
9858  # for these hosts.
9859  case $host_os in
9860    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9861      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9862  esac
9863  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9864else
9865  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9866fi
9867library_names_spec=
9868libname_spec='lib$name'
9869soname_spec=
9870shrext_cmds=".so"
9871postinstall_cmds=
9872postuninstall_cmds=
9873finish_cmds=
9874finish_eval=
9875shlibpath_var=
9876shlibpath_overrides_runpath=unknown
9877version_type=none
9878dynamic_linker="$host_os ld.so"
9879sys_lib_dlsearch_path_spec="/lib /usr/lib"
9880need_lib_prefix=unknown
9881hardcode_into_libs=no
9882
9883# when you set need_version to no, make sure it does not cause -set_version
9884# flags to be left without arguments
9885need_version=unknown
9886
9887case $host_os in
9888aix3*)
9889  version_type=linux # correct to gnu/linux during the next big refactor
9890  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9891  shlibpath_var=LIBPATH
9892
9893  # AIX 3 has no versioning support, so we append a major version to the name.
9894  soname_spec='${libname}${release}${shared_ext}$major'
9895  ;;
9896
9897aix[4-9]*)
9898  version_type=linux # correct to gnu/linux during the next big refactor
9899  need_lib_prefix=no
9900  need_version=no
9901  hardcode_into_libs=yes
9902  if test "$host_cpu" = ia64; then
9903    # AIX 5 supports IA64
9904    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9905    shlibpath_var=LD_LIBRARY_PATH
9906  else
9907    # With GCC up to 2.95.x, collect2 would create an import file
9908    # for dependence libraries.  The import file would start with
9909    # the line `#! .'.  This would cause the generated library to
9910    # depend on `.', always an invalid library.  This was fixed in
9911    # development snapshots of GCC prior to 3.0.
9912    case $host_os in
9913      aix4 | aix4.[01] | aix4.[01].*)
9914      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9915	   echo ' yes '
9916	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9917	:
9918      else
9919	can_build_shared=no
9920      fi
9921      ;;
9922    esac
9923    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9924    # soname into executable. Probably we can add versioning support to
9925    # collect2, so additional links can be useful in future.
9926    if test "$aix_use_runtimelinking" = yes; then
9927      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9928      # instead of lib<name>.a to let people know that these are not
9929      # typical AIX shared libraries.
9930      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9931    else
9932      # We preserve .a as extension for shared libraries through AIX4.2
9933      # and later when we are not doing run time linking.
9934      library_names_spec='${libname}${release}.a $libname.a'
9935      soname_spec='${libname}${release}${shared_ext}$major'
9936    fi
9937    shlibpath_var=LIBPATH
9938  fi
9939  ;;
9940
9941amigaos*)
9942  case $host_cpu in
9943  powerpc)
9944    # Since July 2007 AmigaOS4 officially supports .so libraries.
9945    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9946    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9947    ;;
9948  m68k)
9949    library_names_spec='$libname.ixlibrary $libname.a'
9950    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9951    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9952    ;;
9953  esac
9954  ;;
9955
9956beos*)
9957  library_names_spec='${libname}${shared_ext}'
9958  dynamic_linker="$host_os ld.so"
9959  shlibpath_var=LIBRARY_PATH
9960  ;;
9961
9962bsdi[45]*)
9963  version_type=linux # correct to gnu/linux during the next big refactor
9964  need_version=no
9965  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966  soname_spec='${libname}${release}${shared_ext}$major'
9967  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9968  shlibpath_var=LD_LIBRARY_PATH
9969  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9970  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9971  # the default ld.so.conf also contains /usr/contrib/lib and
9972  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9973  # libtool to hard-code these into programs
9974  ;;
9975
9976cygwin* | mingw* | pw32* | cegcc*)
9977  version_type=windows
9978  shrext_cmds=".dll"
9979  need_version=no
9980  need_lib_prefix=no
9981
9982  case $GCC,$cc_basename in
9983  yes,*)
9984    # gcc
9985    library_names_spec='$libname.dll.a'
9986    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9987    postinstall_cmds='base_file=`basename \${file}`~
9988      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9989      dldir=$destdir/`dirname \$dlpath`~
9990      test -d \$dldir || mkdir -p \$dldir~
9991      $install_prog $dir/$dlname \$dldir/$dlname~
9992      chmod a+x \$dldir/$dlname~
9993      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9994        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9995      fi'
9996    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9997      dlpath=$dir/\$dldll~
9998       $RM \$dlpath'
9999    shlibpath_overrides_runpath=yes
10000
10001    case $host_os in
10002    cygwin*)
10003      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10004      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10005
10006      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10007      ;;
10008    mingw* | cegcc*)
10009      # MinGW DLLs use traditional 'lib' prefix
10010      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10011      ;;
10012    pw32*)
10013      # pw32 DLLs use 'pw' prefix rather than 'lib'
10014      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10015      ;;
10016    esac
10017    dynamic_linker='Win32 ld.exe'
10018    ;;
10019
10020  *,cl*)
10021    # Native MSVC
10022    libname_spec='$name'
10023    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10024    library_names_spec='${libname}.dll.lib'
10025
10026    case $build_os in
10027    mingw*)
10028      sys_lib_search_path_spec=
10029      lt_save_ifs=$IFS
10030      IFS=';'
10031      for lt_path in $LIB
10032      do
10033        IFS=$lt_save_ifs
10034        # Let DOS variable expansion print the short 8.3 style file name.
10035        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10036        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10037      done
10038      IFS=$lt_save_ifs
10039      # Convert to MSYS style.
10040      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10041      ;;
10042    cygwin*)
10043      # Convert to unix form, then to dos form, then back to unix form
10044      # but this time dos style (no spaces!) so that the unix form looks
10045      # like /cygdrive/c/PROGRA~1:/cygdr...
10046      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10047      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10048      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10049      ;;
10050    *)
10051      sys_lib_search_path_spec="$LIB"
10052      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10053        # It is most probably a Windows format PATH.
10054        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10055      else
10056        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10057      fi
10058      # FIXME: find the short name or the path components, as spaces are
10059      # common. (e.g. "Program Files" -> "PROGRA~1")
10060      ;;
10061    esac
10062
10063    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10064    postinstall_cmds='base_file=`basename \${file}`~
10065      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10066      dldir=$destdir/`dirname \$dlpath`~
10067      test -d \$dldir || mkdir -p \$dldir~
10068      $install_prog $dir/$dlname \$dldir/$dlname'
10069    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10070      dlpath=$dir/\$dldll~
10071       $RM \$dlpath'
10072    shlibpath_overrides_runpath=yes
10073    dynamic_linker='Win32 link.exe'
10074    ;;
10075
10076  *)
10077    # Assume MSVC wrapper
10078    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10079    dynamic_linker='Win32 ld.exe'
10080    ;;
10081  esac
10082  # FIXME: first we should search . and the directory the executable is in
10083  shlibpath_var=PATH
10084  ;;
10085
10086darwin* | rhapsody*)
10087  dynamic_linker="$host_os dyld"
10088  version_type=darwin
10089  need_lib_prefix=no
10090  need_version=no
10091  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10092  soname_spec='${libname}${release}${major}$shared_ext'
10093  shlibpath_overrides_runpath=yes
10094  shlibpath_var=DYLD_LIBRARY_PATH
10095  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10096
10097  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10098  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10099  ;;
10100
10101dgux*)
10102  version_type=linux # correct to gnu/linux during the next big refactor
10103  need_lib_prefix=no
10104  need_version=no
10105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10106  soname_spec='${libname}${release}${shared_ext}$major'
10107  shlibpath_var=LD_LIBRARY_PATH
10108  ;;
10109
10110freebsd* | dragonfly*)
10111  # DragonFly does not have aout.  When/if they implement a new
10112  # versioning mechanism, adjust this.
10113  if test -x /usr/bin/objformat; then
10114    objformat=`/usr/bin/objformat`
10115  else
10116    case $host_os in
10117    freebsd[23].*) objformat=aout ;;
10118    *) objformat=elf ;;
10119    esac
10120  fi
10121  version_type=freebsd-$objformat
10122  case $version_type in
10123    freebsd-elf*)
10124      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10125      need_version=no
10126      need_lib_prefix=no
10127      ;;
10128    freebsd-*)
10129      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10130      need_version=yes
10131      ;;
10132  esac
10133  shlibpath_var=LD_LIBRARY_PATH
10134  case $host_os in
10135  freebsd2.*)
10136    shlibpath_overrides_runpath=yes
10137    ;;
10138  freebsd3.[01]* | freebsdelf3.[01]*)
10139    shlibpath_overrides_runpath=yes
10140    hardcode_into_libs=yes
10141    ;;
10142  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10143  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10144    shlibpath_overrides_runpath=no
10145    hardcode_into_libs=yes
10146    ;;
10147  *) # from 4.6 on, and DragonFly
10148    shlibpath_overrides_runpath=yes
10149    hardcode_into_libs=yes
10150    ;;
10151  esac
10152  ;;
10153
10154gnu*)
10155  version_type=linux # correct to gnu/linux during the next big refactor
10156  need_lib_prefix=no
10157  need_version=no
10158  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10159  soname_spec='${libname}${release}${shared_ext}$major'
10160  shlibpath_var=LD_LIBRARY_PATH
10161  shlibpath_overrides_runpath=no
10162  hardcode_into_libs=yes
10163  ;;
10164
10165haiku*)
10166  version_type=linux # correct to gnu/linux during the next big refactor
10167  need_lib_prefix=no
10168  need_version=no
10169  dynamic_linker="$host_os runtime_loader"
10170  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10171  soname_spec='${libname}${release}${shared_ext}$major'
10172  shlibpath_var=LIBRARY_PATH
10173  shlibpath_overrides_runpath=yes
10174  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10175  hardcode_into_libs=yes
10176  ;;
10177
10178hpux9* | hpux10* | hpux11*)
10179  # Give a soname corresponding to the major version so that dld.sl refuses to
10180  # link against other versions.
10181  version_type=sunos
10182  need_lib_prefix=no
10183  need_version=no
10184  case $host_cpu in
10185  ia64*)
10186    shrext_cmds='.so'
10187    hardcode_into_libs=yes
10188    dynamic_linker="$host_os dld.so"
10189    shlibpath_var=LD_LIBRARY_PATH
10190    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10191    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10192    soname_spec='${libname}${release}${shared_ext}$major'
10193    if test "X$HPUX_IA64_MODE" = X32; then
10194      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10195    else
10196      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10197    fi
10198    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10199    ;;
10200  hppa*64*)
10201    shrext_cmds='.sl'
10202    hardcode_into_libs=yes
10203    dynamic_linker="$host_os dld.sl"
10204    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10205    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10206    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10207    soname_spec='${libname}${release}${shared_ext}$major'
10208    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10209    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10210    ;;
10211  *)
10212    shrext_cmds='.sl'
10213    dynamic_linker="$host_os dld.sl"
10214    shlibpath_var=SHLIB_PATH
10215    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10216    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217    soname_spec='${libname}${release}${shared_ext}$major'
10218    ;;
10219  esac
10220  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10221  postinstall_cmds='chmod 555 $lib'
10222  # or fails outright, so override atomically:
10223  install_override_mode=555
10224  ;;
10225
10226interix[3-9]*)
10227  version_type=linux # correct to gnu/linux during the next big refactor
10228  need_lib_prefix=no
10229  need_version=no
10230  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10231  soname_spec='${libname}${release}${shared_ext}$major'
10232  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10233  shlibpath_var=LD_LIBRARY_PATH
10234  shlibpath_overrides_runpath=no
10235  hardcode_into_libs=yes
10236  ;;
10237
10238irix5* | irix6* | nonstopux*)
10239  case $host_os in
10240    nonstopux*) version_type=nonstopux ;;
10241    *)
10242	if test "$lt_cv_prog_gnu_ld" = yes; then
10243		version_type=linux # correct to gnu/linux during the next big refactor
10244	else
10245		version_type=irix
10246	fi ;;
10247  esac
10248  need_lib_prefix=no
10249  need_version=no
10250  soname_spec='${libname}${release}${shared_ext}$major'
10251  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10252  case $host_os in
10253  irix5* | nonstopux*)
10254    libsuff= shlibsuff=
10255    ;;
10256  *)
10257    case $LD in # libtool.m4 will add one of these switches to LD
10258    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10259      libsuff= shlibsuff= libmagic=32-bit;;
10260    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10261      libsuff=32 shlibsuff=N32 libmagic=N32;;
10262    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10263      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10264    *) libsuff= shlibsuff= libmagic=never-match;;
10265    esac
10266    ;;
10267  esac
10268  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10269  shlibpath_overrides_runpath=no
10270  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10271  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10272  hardcode_into_libs=yes
10273  ;;
10274
10275# No shared lib support for Linux oldld, aout, or coff.
10276linux*oldld* | linux*aout* | linux*coff*)
10277  dynamic_linker=no
10278  ;;
10279
10280# This must be glibc/ELF.
10281linux* | k*bsd*-gnu | kopensolaris*-gnu)
10282  version_type=linux # correct to gnu/linux during the next big refactor
10283  need_lib_prefix=no
10284  need_version=no
10285  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10286  soname_spec='${libname}${release}${shared_ext}$major'
10287  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10288  shlibpath_var=LD_LIBRARY_PATH
10289  shlibpath_overrides_runpath=no
10290
10291  # Some binutils ld are patched to set DT_RUNPATH
10292  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10293  $as_echo_n "(cached) " >&6
10294else
10295  lt_cv_shlibpath_overrides_runpath=no
10296    save_LDFLAGS=$LDFLAGS
10297    save_libdir=$libdir
10298    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10299	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10300    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301/* end confdefs.h.  */
10302
10303int
10304main ()
10305{
10306
10307  ;
10308  return 0;
10309}
10310_ACEOF
10311if ac_fn_c_try_link "$LINENO"; then :
10312  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10313  lt_cv_shlibpath_overrides_runpath=yes
10314fi
10315fi
10316rm -f core conftest.err conftest.$ac_objext \
10317    conftest$ac_exeext conftest.$ac_ext
10318    LDFLAGS=$save_LDFLAGS
10319    libdir=$save_libdir
10320
10321fi
10322
10323  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10324
10325  # This implies no fast_install, which is unacceptable.
10326  # Some rework will be needed to allow for fast_install
10327  # before this can be enabled.
10328  hardcode_into_libs=yes
10329
10330  # Add ABI-specific directories to the system library path.
10331  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10332
10333  # Append ld.so.conf contents to the search path
10334  if test -f /etc/ld.so.conf; then
10335    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' ' '`
10336    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10337
10338  fi
10339
10340  # We used to test for /lib/ld.so.1 and disable shared libraries on
10341  # powerpc, because MkLinux only supported shared libraries with the
10342  # GNU dynamic linker.  Since this was broken with cross compilers,
10343  # most powerpc-linux boxes support dynamic linking these days and
10344  # people can always --disable-shared, the test was removed, and we
10345  # assume the GNU/Linux dynamic linker is in use.
10346  dynamic_linker='GNU/Linux ld.so'
10347  ;;
10348
10349netbsd*)
10350  version_type=sunos
10351  need_lib_prefix=no
10352  need_version=no
10353  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10354    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10355    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10356    dynamic_linker='NetBSD (a.out) ld.so'
10357  else
10358    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10359    soname_spec='${libname}${release}${shared_ext}$major'
10360    dynamic_linker='NetBSD ld.elf_so'
10361  fi
10362  shlibpath_var=LD_LIBRARY_PATH
10363  shlibpath_overrides_runpath=yes
10364  hardcode_into_libs=yes
10365  ;;
10366
10367newsos6)
10368  version_type=linux # correct to gnu/linux during the next big refactor
10369  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370  shlibpath_var=LD_LIBRARY_PATH
10371  shlibpath_overrides_runpath=yes
10372  ;;
10373
10374*nto* | *qnx*)
10375  version_type=qnx
10376  need_lib_prefix=no
10377  need_version=no
10378  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10379  soname_spec='${libname}${release}${shared_ext}$major'
10380  shlibpath_var=LD_LIBRARY_PATH
10381  shlibpath_overrides_runpath=no
10382  hardcode_into_libs=yes
10383  dynamic_linker='ldqnx.so'
10384  ;;
10385
10386openbsd*)
10387  version_type=sunos
10388  sys_lib_dlsearch_path_spec="/usr/lib"
10389  need_lib_prefix=no
10390  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10391  case $host_os in
10392    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10393    *)				need_version=no  ;;
10394  esac
10395  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10396  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10397  shlibpath_var=LD_LIBRARY_PATH
10398  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10399    case $host_os in
10400      openbsd2.[89] | openbsd2.[89].*)
10401	shlibpath_overrides_runpath=no
10402	;;
10403      *)
10404	shlibpath_overrides_runpath=yes
10405	;;
10406      esac
10407  else
10408    shlibpath_overrides_runpath=yes
10409  fi
10410  ;;
10411
10412os2*)
10413  libname_spec='$name'
10414  shrext_cmds=".dll"
10415  need_lib_prefix=no
10416  library_names_spec='$libname${shared_ext} $libname.a'
10417  dynamic_linker='OS/2 ld.exe'
10418  shlibpath_var=LIBPATH
10419  ;;
10420
10421osf3* | osf4* | osf5*)
10422  version_type=osf
10423  need_lib_prefix=no
10424  need_version=no
10425  soname_spec='${libname}${release}${shared_ext}$major'
10426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427  shlibpath_var=LD_LIBRARY_PATH
10428  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10429  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10430  ;;
10431
10432rdos*)
10433  dynamic_linker=no
10434  ;;
10435
10436solaris*)
10437  version_type=linux # correct to gnu/linux during the next big refactor
10438  need_lib_prefix=no
10439  need_version=no
10440  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441  soname_spec='${libname}${release}${shared_ext}$major'
10442  shlibpath_var=LD_LIBRARY_PATH
10443  shlibpath_overrides_runpath=yes
10444  hardcode_into_libs=yes
10445  # ldd complains unless libraries are executable
10446  postinstall_cmds='chmod +x $lib'
10447  ;;
10448
10449sunos4*)
10450  version_type=sunos
10451  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10452  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10453  shlibpath_var=LD_LIBRARY_PATH
10454  shlibpath_overrides_runpath=yes
10455  if test "$with_gnu_ld" = yes; then
10456    need_lib_prefix=no
10457  fi
10458  need_version=yes
10459  ;;
10460
10461sysv4 | sysv4.3*)
10462  version_type=linux # correct to gnu/linux during the next big refactor
10463  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464  soname_spec='${libname}${release}${shared_ext}$major'
10465  shlibpath_var=LD_LIBRARY_PATH
10466  case $host_vendor in
10467    sni)
10468      shlibpath_overrides_runpath=no
10469      need_lib_prefix=no
10470      runpath_var=LD_RUN_PATH
10471      ;;
10472    siemens)
10473      need_lib_prefix=no
10474      ;;
10475    motorola)
10476      need_lib_prefix=no
10477      need_version=no
10478      shlibpath_overrides_runpath=no
10479      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10480      ;;
10481  esac
10482  ;;
10483
10484sysv4*MP*)
10485  if test -d /usr/nec ;then
10486    version_type=linux # correct to gnu/linux during the next big refactor
10487    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10488    soname_spec='$libname${shared_ext}.$major'
10489    shlibpath_var=LD_LIBRARY_PATH
10490  fi
10491  ;;
10492
10493sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10494  version_type=freebsd-elf
10495  need_lib_prefix=no
10496  need_version=no
10497  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10498  soname_spec='${libname}${release}${shared_ext}$major'
10499  shlibpath_var=LD_LIBRARY_PATH
10500  shlibpath_overrides_runpath=yes
10501  hardcode_into_libs=yes
10502  if test "$with_gnu_ld" = yes; then
10503    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10504  else
10505    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10506    case $host_os in
10507      sco3.2v5*)
10508        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10509	;;
10510    esac
10511  fi
10512  sys_lib_dlsearch_path_spec='/usr/lib'
10513  ;;
10514
10515tpf*)
10516  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10517  version_type=linux # correct to gnu/linux during the next big refactor
10518  need_lib_prefix=no
10519  need_version=no
10520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10521  shlibpath_var=LD_LIBRARY_PATH
10522  shlibpath_overrides_runpath=no
10523  hardcode_into_libs=yes
10524  ;;
10525
10526uts4*)
10527  version_type=linux # correct to gnu/linux during the next big refactor
10528  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10529  soname_spec='${libname}${release}${shared_ext}$major'
10530  shlibpath_var=LD_LIBRARY_PATH
10531  ;;
10532
10533*)
10534  dynamic_linker=no
10535  ;;
10536esac
10537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10538$as_echo "$dynamic_linker" >&6; }
10539test "$dynamic_linker" = no && can_build_shared=no
10540
10541variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10542if test "$GCC" = yes; then
10543  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10544fi
10545
10546if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10547  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10548fi
10549if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10550  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10551fi
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10645$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10646hardcode_action=
10647if test -n "$hardcode_libdir_flag_spec" ||
10648   test -n "$runpath_var" ||
10649   test "X$hardcode_automatic" = "Xyes" ; then
10650
10651  # We can hardcode non-existent directories.
10652  if test "$hardcode_direct" != no &&
10653     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10654     # have to relink, otherwise we might link with an installed library
10655     # when we should be linking with a yet-to-be-installed one
10656     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10657     test "$hardcode_minus_L" != no; then
10658    # Linking always hardcodes the temporary library directory.
10659    hardcode_action=relink
10660  else
10661    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10662    hardcode_action=immediate
10663  fi
10664else
10665  # We cannot hardcode anything, or else we can only hardcode existing
10666  # directories.
10667  hardcode_action=unsupported
10668fi
10669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10670$as_echo "$hardcode_action" >&6; }
10671
10672if test "$hardcode_action" = relink ||
10673   test "$inherit_rpath" = yes; then
10674  # Fast installation is not supported
10675  enable_fast_install=no
10676elif test "$shlibpath_overrides_runpath" = yes ||
10677     test "$enable_shared" = no; then
10678  # Fast installation is not necessary
10679  enable_fast_install=needless
10680fi
10681
10682
10683
10684
10685
10686
10687  if test "x$enable_dlopen" != xyes; then
10688  enable_dlopen=unknown
10689  enable_dlopen_self=unknown
10690  enable_dlopen_self_static=unknown
10691else
10692  lt_cv_dlopen=no
10693  lt_cv_dlopen_libs=
10694
10695  case $host_os in
10696  beos*)
10697    lt_cv_dlopen="load_add_on"
10698    lt_cv_dlopen_libs=
10699    lt_cv_dlopen_self=yes
10700    ;;
10701
10702  mingw* | pw32* | cegcc*)
10703    lt_cv_dlopen="LoadLibrary"
10704    lt_cv_dlopen_libs=
10705    ;;
10706
10707  cygwin*)
10708    lt_cv_dlopen="dlopen"
10709    lt_cv_dlopen_libs=
10710    ;;
10711
10712  darwin*)
10713  # if libdl is installed we need to link against it
10714    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10715$as_echo_n "checking for dlopen in -ldl... " >&6; }
10716if ${ac_cv_lib_dl_dlopen+:} false; then :
10717  $as_echo_n "(cached) " >&6
10718else
10719  ac_check_lib_save_LIBS=$LIBS
10720LIBS="-ldl  $LIBS"
10721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722/* end confdefs.h.  */
10723
10724/* Override any GCC internal prototype to avoid an error.
10725   Use char because int might match the return type of a GCC
10726   builtin and then its argument prototype would still apply.  */
10727#ifdef __cplusplus
10728extern "C"
10729#endif
10730char dlopen ();
10731int
10732main ()
10733{
10734return dlopen ();
10735  ;
10736  return 0;
10737}
10738_ACEOF
10739if ac_fn_c_try_link "$LINENO"; then :
10740  ac_cv_lib_dl_dlopen=yes
10741else
10742  ac_cv_lib_dl_dlopen=no
10743fi
10744rm -f core conftest.err conftest.$ac_objext \
10745    conftest$ac_exeext conftest.$ac_ext
10746LIBS=$ac_check_lib_save_LIBS
10747fi
10748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10749$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10750if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10751  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10752else
10753
10754    lt_cv_dlopen="dyld"
10755    lt_cv_dlopen_libs=
10756    lt_cv_dlopen_self=yes
10757
10758fi
10759
10760    ;;
10761
10762  *)
10763    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10764if test "x$ac_cv_func_shl_load" = xyes; then :
10765  lt_cv_dlopen="shl_load"
10766else
10767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10768$as_echo_n "checking for shl_load in -ldld... " >&6; }
10769if ${ac_cv_lib_dld_shl_load+:} false; then :
10770  $as_echo_n "(cached) " >&6
10771else
10772  ac_check_lib_save_LIBS=$LIBS
10773LIBS="-ldld  $LIBS"
10774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775/* end confdefs.h.  */
10776
10777/* Override any GCC internal prototype to avoid an error.
10778   Use char because int might match the return type of a GCC
10779   builtin and then its argument prototype would still apply.  */
10780#ifdef __cplusplus
10781extern "C"
10782#endif
10783char shl_load ();
10784int
10785main ()
10786{
10787return shl_load ();
10788  ;
10789  return 0;
10790}
10791_ACEOF
10792if ac_fn_c_try_link "$LINENO"; then :
10793  ac_cv_lib_dld_shl_load=yes
10794else
10795  ac_cv_lib_dld_shl_load=no
10796fi
10797rm -f core conftest.err conftest.$ac_objext \
10798    conftest$ac_exeext conftest.$ac_ext
10799LIBS=$ac_check_lib_save_LIBS
10800fi
10801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10802$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10803if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10804  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10805else
10806  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10807if test "x$ac_cv_func_dlopen" = xyes; then :
10808  lt_cv_dlopen="dlopen"
10809else
10810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10811$as_echo_n "checking for dlopen in -ldl... " >&6; }
10812if ${ac_cv_lib_dl_dlopen+:} false; then :
10813  $as_echo_n "(cached) " >&6
10814else
10815  ac_check_lib_save_LIBS=$LIBS
10816LIBS="-ldl  $LIBS"
10817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818/* end confdefs.h.  */
10819
10820/* Override any GCC internal prototype to avoid an error.
10821   Use char because int might match the return type of a GCC
10822   builtin and then its argument prototype would still apply.  */
10823#ifdef __cplusplus
10824extern "C"
10825#endif
10826char dlopen ();
10827int
10828main ()
10829{
10830return dlopen ();
10831  ;
10832  return 0;
10833}
10834_ACEOF
10835if ac_fn_c_try_link "$LINENO"; then :
10836  ac_cv_lib_dl_dlopen=yes
10837else
10838  ac_cv_lib_dl_dlopen=no
10839fi
10840rm -f core conftest.err conftest.$ac_objext \
10841    conftest$ac_exeext conftest.$ac_ext
10842LIBS=$ac_check_lib_save_LIBS
10843fi
10844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10845$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10846if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10847  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10848else
10849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10850$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10851if ${ac_cv_lib_svld_dlopen+:} false; then :
10852  $as_echo_n "(cached) " >&6
10853else
10854  ac_check_lib_save_LIBS=$LIBS
10855LIBS="-lsvld  $LIBS"
10856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857/* end confdefs.h.  */
10858
10859/* Override any GCC internal prototype to avoid an error.
10860   Use char because int might match the return type of a GCC
10861   builtin and then its argument prototype would still apply.  */
10862#ifdef __cplusplus
10863extern "C"
10864#endif
10865char dlopen ();
10866int
10867main ()
10868{
10869return dlopen ();
10870  ;
10871  return 0;
10872}
10873_ACEOF
10874if ac_fn_c_try_link "$LINENO"; then :
10875  ac_cv_lib_svld_dlopen=yes
10876else
10877  ac_cv_lib_svld_dlopen=no
10878fi
10879rm -f core conftest.err conftest.$ac_objext \
10880    conftest$ac_exeext conftest.$ac_ext
10881LIBS=$ac_check_lib_save_LIBS
10882fi
10883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10884$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10885if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10886  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10887else
10888  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10889$as_echo_n "checking for dld_link in -ldld... " >&6; }
10890if ${ac_cv_lib_dld_dld_link+:} false; then :
10891  $as_echo_n "(cached) " >&6
10892else
10893  ac_check_lib_save_LIBS=$LIBS
10894LIBS="-ldld  $LIBS"
10895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896/* end confdefs.h.  */
10897
10898/* Override any GCC internal prototype to avoid an error.
10899   Use char because int might match the return type of a GCC
10900   builtin and then its argument prototype would still apply.  */
10901#ifdef __cplusplus
10902extern "C"
10903#endif
10904char dld_link ();
10905int
10906main ()
10907{
10908return dld_link ();
10909  ;
10910  return 0;
10911}
10912_ACEOF
10913if ac_fn_c_try_link "$LINENO"; then :
10914  ac_cv_lib_dld_dld_link=yes
10915else
10916  ac_cv_lib_dld_dld_link=no
10917fi
10918rm -f core conftest.err conftest.$ac_objext \
10919    conftest$ac_exeext conftest.$ac_ext
10920LIBS=$ac_check_lib_save_LIBS
10921fi
10922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10923$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10924if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10925  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10926fi
10927
10928
10929fi
10930
10931
10932fi
10933
10934
10935fi
10936
10937
10938fi
10939
10940
10941fi
10942
10943    ;;
10944  esac
10945
10946  if test "x$lt_cv_dlopen" != xno; then
10947    enable_dlopen=yes
10948  else
10949    enable_dlopen=no
10950  fi
10951
10952  case $lt_cv_dlopen in
10953  dlopen)
10954    save_CPPFLAGS="$CPPFLAGS"
10955    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10956
10957    save_LDFLAGS="$LDFLAGS"
10958    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10959
10960    save_LIBS="$LIBS"
10961    LIBS="$lt_cv_dlopen_libs $LIBS"
10962
10963    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10964$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10965if ${lt_cv_dlopen_self+:} false; then :
10966  $as_echo_n "(cached) " >&6
10967else
10968  	  if test "$cross_compiling" = yes; then :
10969  lt_cv_dlopen_self=cross
10970else
10971  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10972  lt_status=$lt_dlunknown
10973  cat > conftest.$ac_ext <<_LT_EOF
10974#line $LINENO "configure"
10975#include "confdefs.h"
10976
10977#if HAVE_DLFCN_H
10978#include <dlfcn.h>
10979#endif
10980
10981#include <stdio.h>
10982
10983#ifdef RTLD_GLOBAL
10984#  define LT_DLGLOBAL		RTLD_GLOBAL
10985#else
10986#  ifdef DL_GLOBAL
10987#    define LT_DLGLOBAL		DL_GLOBAL
10988#  else
10989#    define LT_DLGLOBAL		0
10990#  endif
10991#endif
10992
10993/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10994   find out it does not work in some platform. */
10995#ifndef LT_DLLAZY_OR_NOW
10996#  ifdef RTLD_LAZY
10997#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10998#  else
10999#    ifdef DL_LAZY
11000#      define LT_DLLAZY_OR_NOW		DL_LAZY
11001#    else
11002#      ifdef RTLD_NOW
11003#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11004#      else
11005#        ifdef DL_NOW
11006#          define LT_DLLAZY_OR_NOW	DL_NOW
11007#        else
11008#          define LT_DLLAZY_OR_NOW	0
11009#        endif
11010#      endif
11011#    endif
11012#  endif
11013#endif
11014
11015/* When -fvisbility=hidden is used, assume the code has been annotated
11016   correspondingly for the symbols needed.  */
11017#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11018int fnord () __attribute__((visibility("default")));
11019#endif
11020
11021int fnord () { return 42; }
11022int main ()
11023{
11024  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11025  int status = $lt_dlunknown;
11026
11027  if (self)
11028    {
11029      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11030      else
11031        {
11032	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11033          else puts (dlerror ());
11034	}
11035      /* dlclose (self); */
11036    }
11037  else
11038    puts (dlerror ());
11039
11040  return status;
11041}
11042_LT_EOF
11043  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11044  (eval $ac_link) 2>&5
11045  ac_status=$?
11046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11047  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11048    (./conftest; exit; ) >&5 2>/dev/null
11049    lt_status=$?
11050    case x$lt_status in
11051      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11052      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11053      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11054    esac
11055  else :
11056    # compilation failed
11057    lt_cv_dlopen_self=no
11058  fi
11059fi
11060rm -fr conftest*
11061
11062
11063fi
11064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11065$as_echo "$lt_cv_dlopen_self" >&6; }
11066
11067    if test "x$lt_cv_dlopen_self" = xyes; then
11068      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11069      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11070$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11071if ${lt_cv_dlopen_self_static+:} false; then :
11072  $as_echo_n "(cached) " >&6
11073else
11074  	  if test "$cross_compiling" = yes; then :
11075  lt_cv_dlopen_self_static=cross
11076else
11077  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11078  lt_status=$lt_dlunknown
11079  cat > conftest.$ac_ext <<_LT_EOF
11080#line $LINENO "configure"
11081#include "confdefs.h"
11082
11083#if HAVE_DLFCN_H
11084#include <dlfcn.h>
11085#endif
11086
11087#include <stdio.h>
11088
11089#ifdef RTLD_GLOBAL
11090#  define LT_DLGLOBAL		RTLD_GLOBAL
11091#else
11092#  ifdef DL_GLOBAL
11093#    define LT_DLGLOBAL		DL_GLOBAL
11094#  else
11095#    define LT_DLGLOBAL		0
11096#  endif
11097#endif
11098
11099/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11100   find out it does not work in some platform. */
11101#ifndef LT_DLLAZY_OR_NOW
11102#  ifdef RTLD_LAZY
11103#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11104#  else
11105#    ifdef DL_LAZY
11106#      define LT_DLLAZY_OR_NOW		DL_LAZY
11107#    else
11108#      ifdef RTLD_NOW
11109#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11110#      else
11111#        ifdef DL_NOW
11112#          define LT_DLLAZY_OR_NOW	DL_NOW
11113#        else
11114#          define LT_DLLAZY_OR_NOW	0
11115#        endif
11116#      endif
11117#    endif
11118#  endif
11119#endif
11120
11121/* When -fvisbility=hidden is used, assume the code has been annotated
11122   correspondingly for the symbols needed.  */
11123#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11124int fnord () __attribute__((visibility("default")));
11125#endif
11126
11127int fnord () { return 42; }
11128int main ()
11129{
11130  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11131  int status = $lt_dlunknown;
11132
11133  if (self)
11134    {
11135      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11136      else
11137        {
11138	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11139          else puts (dlerror ());
11140	}
11141      /* dlclose (self); */
11142    }
11143  else
11144    puts (dlerror ());
11145
11146  return status;
11147}
11148_LT_EOF
11149  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11150  (eval $ac_link) 2>&5
11151  ac_status=$?
11152  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11153  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11154    (./conftest; exit; ) >&5 2>/dev/null
11155    lt_status=$?
11156    case x$lt_status in
11157      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11158      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11159      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11160    esac
11161  else :
11162    # compilation failed
11163    lt_cv_dlopen_self_static=no
11164  fi
11165fi
11166rm -fr conftest*
11167
11168
11169fi
11170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11171$as_echo "$lt_cv_dlopen_self_static" >&6; }
11172    fi
11173
11174    CPPFLAGS="$save_CPPFLAGS"
11175    LDFLAGS="$save_LDFLAGS"
11176    LIBS="$save_LIBS"
11177    ;;
11178  esac
11179
11180  case $lt_cv_dlopen_self in
11181  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11182  *) enable_dlopen_self=unknown ;;
11183  esac
11184
11185  case $lt_cv_dlopen_self_static in
11186  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11187  *) enable_dlopen_self_static=unknown ;;
11188  esac
11189fi
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207striplib=
11208old_striplib=
11209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11210$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11211if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11212  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11213  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11215$as_echo "yes" >&6; }
11216else
11217# FIXME - insert some real tests, host_os isn't really good enough
11218  case $host_os in
11219  darwin*)
11220    if test -n "$STRIP" ; then
11221      striplib="$STRIP -x"
11222      old_striplib="$STRIP -S"
11223      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11224$as_echo "yes" >&6; }
11225    else
11226      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227$as_echo "no" >&6; }
11228    fi
11229    ;;
11230  *)
11231    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232$as_echo "no" >&6; }
11233    ;;
11234  esac
11235fi
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248  # Report which library types will actually be built
11249  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11250$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11252$as_echo "$can_build_shared" >&6; }
11253
11254  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11255$as_echo_n "checking whether to build shared libraries... " >&6; }
11256  test "$can_build_shared" = "no" && enable_shared=no
11257
11258  # On AIX, shared libraries and static libraries use the same namespace, and
11259  # are all built from PIC.
11260  case $host_os in
11261  aix3*)
11262    test "$enable_shared" = yes && enable_static=no
11263    if test -n "$RANLIB"; then
11264      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11265      postinstall_cmds='$RANLIB $lib'
11266    fi
11267    ;;
11268
11269  aix[4-9]*)
11270    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11271      test "$enable_shared" = yes && enable_static=no
11272    fi
11273    ;;
11274  esac
11275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11276$as_echo "$enable_shared" >&6; }
11277
11278  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11279$as_echo_n "checking whether to build static libraries... " >&6; }
11280  # Make sure either enable_shared or enable_static is yes.
11281  test "$enable_shared" = yes || enable_static=yes
11282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11283$as_echo "$enable_static" >&6; }
11284
11285
11286
11287
11288fi
11289ac_ext=c
11290ac_cpp='$CPP $CPPFLAGS'
11291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11293ac_compiler_gnu=$ac_cv_c_compiler_gnu
11294
11295CC="$lt_save_CC"
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311        ac_config_commands="$ac_config_commands libtool"
11312
11313
11314
11315
11316# Only expand once:
11317
11318
11319
11320# Initialize X.Org macros
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11333$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11334if ${ac_cv_prog_cc_c99+:} false; then :
11335  $as_echo_n "(cached) " >&6
11336else
11337  ac_cv_prog_cc_c99=no
11338ac_save_CC=$CC
11339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340/* end confdefs.h.  */
11341#include <stdarg.h>
11342#include <stdbool.h>
11343#include <stdlib.h>
11344#include <wchar.h>
11345#include <stdio.h>
11346
11347// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11348#define debug(...) fprintf (stderr, __VA_ARGS__)
11349#define showlist(...) puts (#__VA_ARGS__)
11350#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11351static void
11352test_varargs_macros (void)
11353{
11354  int x = 1234;
11355  int y = 5678;
11356  debug ("Flag");
11357  debug ("X = %d\n", x);
11358  showlist (The first, second, and third items.);
11359  report (x>y, "x is %d but y is %d", x, y);
11360}
11361
11362// Check long long types.
11363#define BIG64 18446744073709551615ull
11364#define BIG32 4294967295ul
11365#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11366#if !BIG_OK
11367  your preprocessor is broken;
11368#endif
11369#if BIG_OK
11370#else
11371  your preprocessor is broken;
11372#endif
11373static long long int bignum = -9223372036854775807LL;
11374static unsigned long long int ubignum = BIG64;
11375
11376struct incomplete_array
11377{
11378  int datasize;
11379  double data[];
11380};
11381
11382struct named_init {
11383  int number;
11384  const wchar_t *name;
11385  double average;
11386};
11387
11388typedef const char *ccp;
11389
11390static inline int
11391test_restrict (ccp restrict text)
11392{
11393  // See if C++-style comments work.
11394  // Iterate through items via the restricted pointer.
11395  // Also check for declarations in for loops.
11396  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11397    continue;
11398  return 0;
11399}
11400
11401// Check varargs and va_copy.
11402static void
11403test_varargs (const char *format, ...)
11404{
11405  va_list args;
11406  va_start (args, format);
11407  va_list args_copy;
11408  va_copy (args_copy, args);
11409
11410  const char *str;
11411  int number;
11412  float fnumber;
11413
11414  while (*format)
11415    {
11416      switch (*format++)
11417	{
11418	case 's': // string
11419	  str = va_arg (args_copy, const char *);
11420	  break;
11421	case 'd': // int
11422	  number = va_arg (args_copy, int);
11423	  break;
11424	case 'f': // float
11425	  fnumber = va_arg (args_copy, double);
11426	  break;
11427	default:
11428	  break;
11429	}
11430    }
11431  va_end (args_copy);
11432  va_end (args);
11433}
11434
11435int
11436main ()
11437{
11438
11439  // Check bool.
11440  _Bool success = false;
11441
11442  // Check restrict.
11443  if (test_restrict ("String literal") == 0)
11444    success = true;
11445  char *restrict newvar = "Another string";
11446
11447  // Check varargs.
11448  test_varargs ("s, d' f .", "string", 65, 34.234);
11449  test_varargs_macros ();
11450
11451  // Check flexible array members.
11452  struct incomplete_array *ia =
11453    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11454  ia->datasize = 10;
11455  for (int i = 0; i < ia->datasize; ++i)
11456    ia->data[i] = i * 1.234;
11457
11458  // Check named initializers.
11459  struct named_init ni = {
11460    .number = 34,
11461    .name = L"Test wide string",
11462    .average = 543.34343,
11463  };
11464
11465  ni.number = 58;
11466
11467  int dynamic_array[ni.number];
11468  dynamic_array[ni.number - 1] = 543;
11469
11470  // work around unused variable warnings
11471  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11472	  || dynamic_array[ni.number - 1] != 543);
11473
11474  ;
11475  return 0;
11476}
11477_ACEOF
11478for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11479do
11480  CC="$ac_save_CC $ac_arg"
11481  if ac_fn_c_try_compile "$LINENO"; then :
11482  ac_cv_prog_cc_c99=$ac_arg
11483fi
11484rm -f core conftest.err conftest.$ac_objext
11485  test "x$ac_cv_prog_cc_c99" != "xno" && break
11486done
11487rm -f conftest.$ac_ext
11488CC=$ac_save_CC
11489
11490fi
11491# AC_CACHE_VAL
11492case "x$ac_cv_prog_cc_c99" in
11493  x)
11494    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11495$as_echo "none needed" >&6; } ;;
11496  xno)
11497    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11498$as_echo "unsupported" >&6; } ;;
11499  *)
11500    CC="$CC $ac_cv_prog_cc_c99"
11501    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11502$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11503esac
11504if test "x$ac_cv_prog_cc_c99" != xno; then :
11505
11506fi
11507
11508
11509
11510
11511
11512
11513ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11514if test "x$ac_cv_have_decl___clang__" = xyes; then :
11515  CLANGCC="yes"
11516else
11517  CLANGCC="no"
11518fi
11519
11520ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11521if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11522  INTELCC="yes"
11523else
11524  INTELCC="no"
11525fi
11526
11527ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11528if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11529  SUNCC="yes"
11530else
11531  SUNCC="no"
11532fi
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11543	if test -n "$ac_tool_prefix"; then
11544  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11545set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11547$as_echo_n "checking for $ac_word... " >&6; }
11548if ${ac_cv_path_PKG_CONFIG+:} false; then :
11549  $as_echo_n "(cached) " >&6
11550else
11551  case $PKG_CONFIG in
11552  [\\/]* | ?:[\\/]*)
11553  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11554  ;;
11555  *)
11556  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557for as_dir in $PATH
11558do
11559  IFS=$as_save_IFS
11560  test -z "$as_dir" && as_dir=.
11561    for ac_exec_ext in '' $ac_executable_extensions; do
11562  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11563    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11564    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11565    break 2
11566  fi
11567done
11568  done
11569IFS=$as_save_IFS
11570
11571  ;;
11572esac
11573fi
11574PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11575if test -n "$PKG_CONFIG"; then
11576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11577$as_echo "$PKG_CONFIG" >&6; }
11578else
11579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11580$as_echo "no" >&6; }
11581fi
11582
11583
11584fi
11585if test -z "$ac_cv_path_PKG_CONFIG"; then
11586  ac_pt_PKG_CONFIG=$PKG_CONFIG
11587  # Extract the first word of "pkg-config", so it can be a program name with args.
11588set dummy pkg-config; ac_word=$2
11589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11590$as_echo_n "checking for $ac_word... " >&6; }
11591if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11592  $as_echo_n "(cached) " >&6
11593else
11594  case $ac_pt_PKG_CONFIG in
11595  [\\/]* | ?:[\\/]*)
11596  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11597  ;;
11598  *)
11599  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600for as_dir in $PATH
11601do
11602  IFS=$as_save_IFS
11603  test -z "$as_dir" && as_dir=.
11604    for ac_exec_ext in '' $ac_executable_extensions; do
11605  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11606    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11608    break 2
11609  fi
11610done
11611  done
11612IFS=$as_save_IFS
11613
11614  ;;
11615esac
11616fi
11617ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11618if test -n "$ac_pt_PKG_CONFIG"; then
11619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11620$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11621else
11622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623$as_echo "no" >&6; }
11624fi
11625
11626  if test "x$ac_pt_PKG_CONFIG" = x; then
11627    PKG_CONFIG=""
11628  else
11629    case $cross_compiling:$ac_tool_warned in
11630yes:)
11631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11633ac_tool_warned=yes ;;
11634esac
11635    PKG_CONFIG=$ac_pt_PKG_CONFIG
11636  fi
11637else
11638  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11639fi
11640
11641fi
11642if test -n "$PKG_CONFIG"; then
11643	_pkg_min_version=0.9.0
11644	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11645$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11646	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11647		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11648$as_echo "yes" >&6; }
11649	else
11650		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651$as_echo "no" >&6; }
11652		PKG_CONFIG=""
11653	fi
11654fi
11655
11656
11657
11658
11659
11660# Check whether --enable-selective-werror was given.
11661if test "${enable_selective_werror+set}" = set; then :
11662  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11663else
11664  SELECTIVE_WERROR=yes
11665fi
11666
11667
11668
11669
11670
11671# -v is too short to test reliably with XORG_TESTSET_CFLAG
11672if test "x$SUNCC" = "xyes"; then
11673    BASE_CFLAGS="-v"
11674else
11675    BASE_CFLAGS=""
11676fi
11677
11678# This chunk of warnings were those that existed in the legacy CWARNFLAGS
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692xorg_testset_save_CFLAGS="$CFLAGS"
11693
11694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11695	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11696	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11697$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11698if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11699  $as_echo_n "(cached) " >&6
11700else
11701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702/* end confdefs.h.  */
11703int i;
11704_ACEOF
11705if ac_fn_c_try_compile "$LINENO"; then :
11706  xorg_cv_cc_flag_unknown_warning_option=yes
11707else
11708  xorg_cv_cc_flag_unknown_warning_option=no
11709fi
11710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11711fi
11712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11713$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11714	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11715	CFLAGS="$xorg_testset_save_CFLAGS"
11716fi
11717
11718if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11719	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11720		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11721	fi
11722	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11723	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11724$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11725if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11726  $as_echo_n "(cached) " >&6
11727else
11728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11729/* end confdefs.h.  */
11730int i;
11731_ACEOF
11732if ac_fn_c_try_compile "$LINENO"; then :
11733  xorg_cv_cc_flag_unused_command_line_argument=yes
11734else
11735  xorg_cv_cc_flag_unused_command_line_argument=no
11736fi
11737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11738fi
11739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11740$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11741	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11742	CFLAGS="$xorg_testset_save_CFLAGS"
11743fi
11744
11745found="no"
11746
11747	if test $found = "no" ; then
11748		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11749			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11750		fi
11751
11752		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11753			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11754		fi
11755
11756		CFLAGS="$CFLAGS -Wall"
11757
11758		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
11759$as_echo_n "checking if $CC supports-Wall... " >&6; }
11760		cacheid=xorg_cv_cc_flag__Wall
11761		if eval \${$cacheid+:} false; then :
11762  $as_echo_n "(cached) " >&6
11763else
11764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11765/* end confdefs.h.  */
11766int i;
11767int
11768main ()
11769{
11770
11771  ;
11772  return 0;
11773}
11774_ACEOF
11775if ac_fn_c_try_link "$LINENO"; then :
11776  eval $cacheid=yes
11777else
11778  eval $cacheid=no
11779fi
11780rm -f core conftest.err conftest.$ac_objext \
11781    conftest$ac_exeext conftest.$ac_ext
11782fi
11783
11784
11785		CFLAGS="$xorg_testset_save_CFLAGS"
11786
11787		eval supported=\$$cacheid
11788		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11789$as_echo "$supported" >&6; }
11790		if test "$supported" = "yes" ; then
11791			BASE_CFLAGS="$BASE_CFLAGS -Wall"
11792			found="yes"
11793		fi
11794	fi
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810xorg_testset_save_CFLAGS="$CFLAGS"
11811
11812if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11813	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11814	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11815$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11816if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11817  $as_echo_n "(cached) " >&6
11818else
11819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11820/* end confdefs.h.  */
11821int i;
11822_ACEOF
11823if ac_fn_c_try_compile "$LINENO"; then :
11824  xorg_cv_cc_flag_unknown_warning_option=yes
11825else
11826  xorg_cv_cc_flag_unknown_warning_option=no
11827fi
11828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11829fi
11830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11831$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11832	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11833	CFLAGS="$xorg_testset_save_CFLAGS"
11834fi
11835
11836if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11837	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11838		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11839	fi
11840	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11841	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11842$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11843if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11844  $as_echo_n "(cached) " >&6
11845else
11846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847/* end confdefs.h.  */
11848int i;
11849_ACEOF
11850if ac_fn_c_try_compile "$LINENO"; then :
11851  xorg_cv_cc_flag_unused_command_line_argument=yes
11852else
11853  xorg_cv_cc_flag_unused_command_line_argument=no
11854fi
11855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11856fi
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11858$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11859	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11860	CFLAGS="$xorg_testset_save_CFLAGS"
11861fi
11862
11863found="no"
11864
11865	if test $found = "no" ; then
11866		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11867			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11868		fi
11869
11870		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11871			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11872		fi
11873
11874		CFLAGS="$CFLAGS -Wpointer-arith"
11875
11876		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
11877$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
11878		cacheid=xorg_cv_cc_flag__Wpointer_arith
11879		if eval \${$cacheid+:} false; then :
11880  $as_echo_n "(cached) " >&6
11881else
11882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11883/* end confdefs.h.  */
11884int i;
11885int
11886main ()
11887{
11888
11889  ;
11890  return 0;
11891}
11892_ACEOF
11893if ac_fn_c_try_link "$LINENO"; then :
11894  eval $cacheid=yes
11895else
11896  eval $cacheid=no
11897fi
11898rm -f core conftest.err conftest.$ac_objext \
11899    conftest$ac_exeext conftest.$ac_ext
11900fi
11901
11902
11903		CFLAGS="$xorg_testset_save_CFLAGS"
11904
11905		eval supported=\$$cacheid
11906		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11907$as_echo "$supported" >&6; }
11908		if test "$supported" = "yes" ; then
11909			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11910			found="yes"
11911		fi
11912	fi
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928xorg_testset_save_CFLAGS="$CFLAGS"
11929
11930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11931	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11932	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11933$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11934if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11935  $as_echo_n "(cached) " >&6
11936else
11937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938/* end confdefs.h.  */
11939int i;
11940_ACEOF
11941if ac_fn_c_try_compile "$LINENO"; then :
11942  xorg_cv_cc_flag_unknown_warning_option=yes
11943else
11944  xorg_cv_cc_flag_unknown_warning_option=no
11945fi
11946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11947fi
11948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11949$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11950	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11951	CFLAGS="$xorg_testset_save_CFLAGS"
11952fi
11953
11954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11955	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11956		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11957	fi
11958	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11959	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11960$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11961if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11962  $as_echo_n "(cached) " >&6
11963else
11964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965/* end confdefs.h.  */
11966int i;
11967_ACEOF
11968if ac_fn_c_try_compile "$LINENO"; then :
11969  xorg_cv_cc_flag_unused_command_line_argument=yes
11970else
11971  xorg_cv_cc_flag_unused_command_line_argument=no
11972fi
11973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11974fi
11975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11976$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11977	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11978	CFLAGS="$xorg_testset_save_CFLAGS"
11979fi
11980
11981found="no"
11982
11983	if test $found = "no" ; then
11984		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11985			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11986		fi
11987
11988		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11989			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11990		fi
11991
11992		CFLAGS="$CFLAGS -Wmissing-declarations"
11993
11994		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
11995$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
11996		cacheid=xorg_cv_cc_flag__Wmissing_declarations
11997		if eval \${$cacheid+:} false; then :
11998  $as_echo_n "(cached) " >&6
11999else
12000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001/* end confdefs.h.  */
12002int i;
12003int
12004main ()
12005{
12006
12007  ;
12008  return 0;
12009}
12010_ACEOF
12011if ac_fn_c_try_link "$LINENO"; then :
12012  eval $cacheid=yes
12013else
12014  eval $cacheid=no
12015fi
12016rm -f core conftest.err conftest.$ac_objext \
12017    conftest$ac_exeext conftest.$ac_ext
12018fi
12019
12020
12021		CFLAGS="$xorg_testset_save_CFLAGS"
12022
12023		eval supported=\$$cacheid
12024		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12025$as_echo "$supported" >&6; }
12026		if test "$supported" = "yes" ; then
12027			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12028			found="yes"
12029		fi
12030	fi
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046xorg_testset_save_CFLAGS="$CFLAGS"
12047
12048if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12049	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12050	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12051$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12052if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12053  $as_echo_n "(cached) " >&6
12054else
12055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12056/* end confdefs.h.  */
12057int i;
12058_ACEOF
12059if ac_fn_c_try_compile "$LINENO"; then :
12060  xorg_cv_cc_flag_unknown_warning_option=yes
12061else
12062  xorg_cv_cc_flag_unknown_warning_option=no
12063fi
12064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12065fi
12066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12067$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12068	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12069	CFLAGS="$xorg_testset_save_CFLAGS"
12070fi
12071
12072if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12073	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12074		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12075	fi
12076	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12077	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12078$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12079if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12080  $as_echo_n "(cached) " >&6
12081else
12082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083/* end confdefs.h.  */
12084int i;
12085_ACEOF
12086if ac_fn_c_try_compile "$LINENO"; then :
12087  xorg_cv_cc_flag_unused_command_line_argument=yes
12088else
12089  xorg_cv_cc_flag_unused_command_line_argument=no
12090fi
12091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12092fi
12093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12094$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12095	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12096	CFLAGS="$xorg_testset_save_CFLAGS"
12097fi
12098
12099found="no"
12100
12101	if test $found = "no" ; then
12102		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12103			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12104		fi
12105
12106		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12107			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12108		fi
12109
12110		CFLAGS="$CFLAGS -Wformat=2"
12111
12112		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
12113$as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
12114		cacheid=xorg_cv_cc_flag__Wformat_2
12115		if eval \${$cacheid+:} false; then :
12116  $as_echo_n "(cached) " >&6
12117else
12118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119/* end confdefs.h.  */
12120int i;
12121int
12122main ()
12123{
12124
12125  ;
12126  return 0;
12127}
12128_ACEOF
12129if ac_fn_c_try_link "$LINENO"; then :
12130  eval $cacheid=yes
12131else
12132  eval $cacheid=no
12133fi
12134rm -f core conftest.err conftest.$ac_objext \
12135    conftest$ac_exeext conftest.$ac_ext
12136fi
12137
12138
12139		CFLAGS="$xorg_testset_save_CFLAGS"
12140
12141		eval supported=\$$cacheid
12142		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12143$as_echo "$supported" >&6; }
12144		if test "$supported" = "yes" ; then
12145			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12146			found="yes"
12147		fi
12148	fi
12149
12150	if test $found = "no" ; then
12151		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12152			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12153		fi
12154
12155		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12156			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12157		fi
12158
12159		CFLAGS="$CFLAGS -Wformat"
12160
12161		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
12162$as_echo_n "checking if $CC supports-Wformat... " >&6; }
12163		cacheid=xorg_cv_cc_flag__Wformat
12164		if eval \${$cacheid+:} false; then :
12165  $as_echo_n "(cached) " >&6
12166else
12167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168/* end confdefs.h.  */
12169int i;
12170int
12171main ()
12172{
12173
12174  ;
12175  return 0;
12176}
12177_ACEOF
12178if ac_fn_c_try_link "$LINENO"; then :
12179  eval $cacheid=yes
12180else
12181  eval $cacheid=no
12182fi
12183rm -f core conftest.err conftest.$ac_objext \
12184    conftest$ac_exeext conftest.$ac_ext
12185fi
12186
12187
12188		CFLAGS="$xorg_testset_save_CFLAGS"
12189
12190		eval supported=\$$cacheid
12191		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12192$as_echo "$supported" >&6; }
12193		if test "$supported" = "yes" ; then
12194			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12195			found="yes"
12196		fi
12197	fi
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215xorg_testset_save_CFLAGS="$CFLAGS"
12216
12217if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12218	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12219	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12220$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12221if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12222  $as_echo_n "(cached) " >&6
12223else
12224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225/* end confdefs.h.  */
12226int i;
12227_ACEOF
12228if ac_fn_c_try_compile "$LINENO"; then :
12229  xorg_cv_cc_flag_unknown_warning_option=yes
12230else
12231  xorg_cv_cc_flag_unknown_warning_option=no
12232fi
12233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12234fi
12235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12236$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12237	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12238	CFLAGS="$xorg_testset_save_CFLAGS"
12239fi
12240
12241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12242	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12243		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12244	fi
12245	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12246	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12247$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12248if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12249  $as_echo_n "(cached) " >&6
12250else
12251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12252/* end confdefs.h.  */
12253int i;
12254_ACEOF
12255if ac_fn_c_try_compile "$LINENO"; then :
12256  xorg_cv_cc_flag_unused_command_line_argument=yes
12257else
12258  xorg_cv_cc_flag_unused_command_line_argument=no
12259fi
12260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12261fi
12262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12263$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12264	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12265	CFLAGS="$xorg_testset_save_CFLAGS"
12266fi
12267
12268found="no"
12269
12270	if test $found = "no" ; then
12271		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12272			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12273		fi
12274
12275		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12276			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12277		fi
12278
12279		CFLAGS="$CFLAGS -Wstrict-prototypes"
12280
12281		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
12282$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
12283		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12284		if eval \${$cacheid+:} false; then :
12285  $as_echo_n "(cached) " >&6
12286else
12287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12288/* end confdefs.h.  */
12289int i;
12290int
12291main ()
12292{
12293
12294  ;
12295  return 0;
12296}
12297_ACEOF
12298if ac_fn_c_try_link "$LINENO"; then :
12299  eval $cacheid=yes
12300else
12301  eval $cacheid=no
12302fi
12303rm -f core conftest.err conftest.$ac_objext \
12304    conftest$ac_exeext conftest.$ac_ext
12305fi
12306
12307
12308		CFLAGS="$xorg_testset_save_CFLAGS"
12309
12310		eval supported=\$$cacheid
12311		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12312$as_echo "$supported" >&6; }
12313		if test "$supported" = "yes" ; then
12314			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12315			found="yes"
12316		fi
12317	fi
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333xorg_testset_save_CFLAGS="$CFLAGS"
12334
12335if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12336	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12337	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12338$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12339if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12340  $as_echo_n "(cached) " >&6
12341else
12342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343/* end confdefs.h.  */
12344int i;
12345_ACEOF
12346if ac_fn_c_try_compile "$LINENO"; then :
12347  xorg_cv_cc_flag_unknown_warning_option=yes
12348else
12349  xorg_cv_cc_flag_unknown_warning_option=no
12350fi
12351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12352fi
12353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12354$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12355	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12356	CFLAGS="$xorg_testset_save_CFLAGS"
12357fi
12358
12359if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12360	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12361		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12362	fi
12363	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12364	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12365$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12366if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12367  $as_echo_n "(cached) " >&6
12368else
12369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370/* end confdefs.h.  */
12371int i;
12372_ACEOF
12373if ac_fn_c_try_compile "$LINENO"; then :
12374  xorg_cv_cc_flag_unused_command_line_argument=yes
12375else
12376  xorg_cv_cc_flag_unused_command_line_argument=no
12377fi
12378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12379fi
12380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12381$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12382	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12383	CFLAGS="$xorg_testset_save_CFLAGS"
12384fi
12385
12386found="no"
12387
12388	if test $found = "no" ; then
12389		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12390			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12391		fi
12392
12393		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12394			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12395		fi
12396
12397		CFLAGS="$CFLAGS -Wmissing-prototypes"
12398
12399		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
12400$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
12401		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12402		if eval \${$cacheid+:} false; then :
12403  $as_echo_n "(cached) " >&6
12404else
12405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406/* end confdefs.h.  */
12407int i;
12408int
12409main ()
12410{
12411
12412  ;
12413  return 0;
12414}
12415_ACEOF
12416if ac_fn_c_try_link "$LINENO"; then :
12417  eval $cacheid=yes
12418else
12419  eval $cacheid=no
12420fi
12421rm -f core conftest.err conftest.$ac_objext \
12422    conftest$ac_exeext conftest.$ac_ext
12423fi
12424
12425
12426		CFLAGS="$xorg_testset_save_CFLAGS"
12427
12428		eval supported=\$$cacheid
12429		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12430$as_echo "$supported" >&6; }
12431		if test "$supported" = "yes" ; then
12432			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12433			found="yes"
12434		fi
12435	fi
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451xorg_testset_save_CFLAGS="$CFLAGS"
12452
12453if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12454	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12455	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12456$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12457if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12458  $as_echo_n "(cached) " >&6
12459else
12460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461/* end confdefs.h.  */
12462int i;
12463_ACEOF
12464if ac_fn_c_try_compile "$LINENO"; then :
12465  xorg_cv_cc_flag_unknown_warning_option=yes
12466else
12467  xorg_cv_cc_flag_unknown_warning_option=no
12468fi
12469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12470fi
12471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12472$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12473	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12474	CFLAGS="$xorg_testset_save_CFLAGS"
12475fi
12476
12477if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12478	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12479		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12480	fi
12481	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12482	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12483$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12484if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12485  $as_echo_n "(cached) " >&6
12486else
12487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488/* end confdefs.h.  */
12489int i;
12490_ACEOF
12491if ac_fn_c_try_compile "$LINENO"; then :
12492  xorg_cv_cc_flag_unused_command_line_argument=yes
12493else
12494  xorg_cv_cc_flag_unused_command_line_argument=no
12495fi
12496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12497fi
12498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12499$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12500	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12501	CFLAGS="$xorg_testset_save_CFLAGS"
12502fi
12503
12504found="no"
12505
12506	if test $found = "no" ; then
12507		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12508			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12509		fi
12510
12511		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12512			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12513		fi
12514
12515		CFLAGS="$CFLAGS -Wnested-externs"
12516
12517		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
12518$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
12519		cacheid=xorg_cv_cc_flag__Wnested_externs
12520		if eval \${$cacheid+:} false; then :
12521  $as_echo_n "(cached) " >&6
12522else
12523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12524/* end confdefs.h.  */
12525int i;
12526int
12527main ()
12528{
12529
12530  ;
12531  return 0;
12532}
12533_ACEOF
12534if ac_fn_c_try_link "$LINENO"; then :
12535  eval $cacheid=yes
12536else
12537  eval $cacheid=no
12538fi
12539rm -f core conftest.err conftest.$ac_objext \
12540    conftest$ac_exeext conftest.$ac_ext
12541fi
12542
12543
12544		CFLAGS="$xorg_testset_save_CFLAGS"
12545
12546		eval supported=\$$cacheid
12547		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12548$as_echo "$supported" >&6; }
12549		if test "$supported" = "yes" ; then
12550			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12551			found="yes"
12552		fi
12553	fi
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569xorg_testset_save_CFLAGS="$CFLAGS"
12570
12571if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12572	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12573	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12574$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12575if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12576  $as_echo_n "(cached) " >&6
12577else
12578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579/* end confdefs.h.  */
12580int i;
12581_ACEOF
12582if ac_fn_c_try_compile "$LINENO"; then :
12583  xorg_cv_cc_flag_unknown_warning_option=yes
12584else
12585  xorg_cv_cc_flag_unknown_warning_option=no
12586fi
12587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12588fi
12589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12590$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12591	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12592	CFLAGS="$xorg_testset_save_CFLAGS"
12593fi
12594
12595if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12596	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12597		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12598	fi
12599	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12600	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12601$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12602if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12603  $as_echo_n "(cached) " >&6
12604else
12605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12606/* end confdefs.h.  */
12607int i;
12608_ACEOF
12609if ac_fn_c_try_compile "$LINENO"; then :
12610  xorg_cv_cc_flag_unused_command_line_argument=yes
12611else
12612  xorg_cv_cc_flag_unused_command_line_argument=no
12613fi
12614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12615fi
12616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12617$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12618	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12619	CFLAGS="$xorg_testset_save_CFLAGS"
12620fi
12621
12622found="no"
12623
12624	if test $found = "no" ; then
12625		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12626			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12627		fi
12628
12629		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12630			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12631		fi
12632
12633		CFLAGS="$CFLAGS -Wbad-function-cast"
12634
12635		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
12636$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
12637		cacheid=xorg_cv_cc_flag__Wbad_function_cast
12638		if eval \${$cacheid+:} false; then :
12639  $as_echo_n "(cached) " >&6
12640else
12641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12642/* end confdefs.h.  */
12643int i;
12644int
12645main ()
12646{
12647
12648  ;
12649  return 0;
12650}
12651_ACEOF
12652if ac_fn_c_try_link "$LINENO"; then :
12653  eval $cacheid=yes
12654else
12655  eval $cacheid=no
12656fi
12657rm -f core conftest.err conftest.$ac_objext \
12658    conftest$ac_exeext conftest.$ac_ext
12659fi
12660
12661
12662		CFLAGS="$xorg_testset_save_CFLAGS"
12663
12664		eval supported=\$$cacheid
12665		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12666$as_echo "$supported" >&6; }
12667		if test "$supported" = "yes" ; then
12668			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12669			found="yes"
12670		fi
12671	fi
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687xorg_testset_save_CFLAGS="$CFLAGS"
12688
12689if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12690	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12691	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12692$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12693if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12694  $as_echo_n "(cached) " >&6
12695else
12696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697/* end confdefs.h.  */
12698int i;
12699_ACEOF
12700if ac_fn_c_try_compile "$LINENO"; then :
12701  xorg_cv_cc_flag_unknown_warning_option=yes
12702else
12703  xorg_cv_cc_flag_unknown_warning_option=no
12704fi
12705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12706fi
12707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12708$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12709	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12710	CFLAGS="$xorg_testset_save_CFLAGS"
12711fi
12712
12713if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12714	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12715		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12716	fi
12717	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12718	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12719$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12720if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12721  $as_echo_n "(cached) " >&6
12722else
12723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724/* end confdefs.h.  */
12725int i;
12726_ACEOF
12727if ac_fn_c_try_compile "$LINENO"; then :
12728  xorg_cv_cc_flag_unused_command_line_argument=yes
12729else
12730  xorg_cv_cc_flag_unused_command_line_argument=no
12731fi
12732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12733fi
12734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12735$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12736	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12737	CFLAGS="$xorg_testset_save_CFLAGS"
12738fi
12739
12740found="no"
12741
12742	if test $found = "no" ; then
12743		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12744			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12745		fi
12746
12747		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12748			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12749		fi
12750
12751		CFLAGS="$CFLAGS -Wold-style-definition"
12752
12753		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
12754$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
12755		cacheid=xorg_cv_cc_flag__Wold_style_definition
12756		if eval \${$cacheid+:} false; then :
12757  $as_echo_n "(cached) " >&6
12758else
12759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760/* end confdefs.h.  */
12761int i;
12762int
12763main ()
12764{
12765
12766  ;
12767  return 0;
12768}
12769_ACEOF
12770if ac_fn_c_try_link "$LINENO"; then :
12771  eval $cacheid=yes
12772else
12773  eval $cacheid=no
12774fi
12775rm -f core conftest.err conftest.$ac_objext \
12776    conftest$ac_exeext conftest.$ac_ext
12777fi
12778
12779
12780		CFLAGS="$xorg_testset_save_CFLAGS"
12781
12782		eval supported=\$$cacheid
12783		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12784$as_echo "$supported" >&6; }
12785		if test "$supported" = "yes" ; then
12786			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12787			found="yes"
12788		fi
12789	fi
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805xorg_testset_save_CFLAGS="$CFLAGS"
12806
12807if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12808	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12809	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12810$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12811if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12812  $as_echo_n "(cached) " >&6
12813else
12814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12815/* end confdefs.h.  */
12816int i;
12817_ACEOF
12818if ac_fn_c_try_compile "$LINENO"; then :
12819  xorg_cv_cc_flag_unknown_warning_option=yes
12820else
12821  xorg_cv_cc_flag_unknown_warning_option=no
12822fi
12823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12824fi
12825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12826$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12827	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12828	CFLAGS="$xorg_testset_save_CFLAGS"
12829fi
12830
12831if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12832	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12833		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12834	fi
12835	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12836	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12837$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12838if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12839  $as_echo_n "(cached) " >&6
12840else
12841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12842/* end confdefs.h.  */
12843int i;
12844_ACEOF
12845if ac_fn_c_try_compile "$LINENO"; then :
12846  xorg_cv_cc_flag_unused_command_line_argument=yes
12847else
12848  xorg_cv_cc_flag_unused_command_line_argument=no
12849fi
12850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12851fi
12852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12853$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12854	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12855	CFLAGS="$xorg_testset_save_CFLAGS"
12856fi
12857
12858found="no"
12859
12860	if test $found = "no" ; then
12861		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12862			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12863		fi
12864
12865		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12866			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12867		fi
12868
12869		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12870
12871		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
12872$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
12873		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
12874		if eval \${$cacheid+:} false; then :
12875  $as_echo_n "(cached) " >&6
12876else
12877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12878/* end confdefs.h.  */
12879int i;
12880int
12881main ()
12882{
12883
12884  ;
12885  return 0;
12886}
12887_ACEOF
12888if ac_fn_c_try_link "$LINENO"; then :
12889  eval $cacheid=yes
12890else
12891  eval $cacheid=no
12892fi
12893rm -f core conftest.err conftest.$ac_objext \
12894    conftest$ac_exeext conftest.$ac_ext
12895fi
12896
12897
12898		CFLAGS="$xorg_testset_save_CFLAGS"
12899
12900		eval supported=\$$cacheid
12901		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12902$as_echo "$supported" >&6; }
12903		if test "$supported" = "yes" ; then
12904			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12905			found="yes"
12906		fi
12907	fi
12908
12909
12910
12911
12912
12913# This chunk adds additional warnings that could catch undesired effects.
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927xorg_testset_save_CFLAGS="$CFLAGS"
12928
12929if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12930	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12931	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12932$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12933if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12934  $as_echo_n "(cached) " >&6
12935else
12936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12937/* end confdefs.h.  */
12938int i;
12939_ACEOF
12940if ac_fn_c_try_compile "$LINENO"; then :
12941  xorg_cv_cc_flag_unknown_warning_option=yes
12942else
12943  xorg_cv_cc_flag_unknown_warning_option=no
12944fi
12945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12946fi
12947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12948$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12949	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12950	CFLAGS="$xorg_testset_save_CFLAGS"
12951fi
12952
12953if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12954	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12955		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12956	fi
12957	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12958	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12959$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12960if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12961  $as_echo_n "(cached) " >&6
12962else
12963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12964/* end confdefs.h.  */
12965int i;
12966_ACEOF
12967if ac_fn_c_try_compile "$LINENO"; then :
12968  xorg_cv_cc_flag_unused_command_line_argument=yes
12969else
12970  xorg_cv_cc_flag_unused_command_line_argument=no
12971fi
12972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12973fi
12974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12975$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12976	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12977	CFLAGS="$xorg_testset_save_CFLAGS"
12978fi
12979
12980found="no"
12981
12982	if test $found = "no" ; then
12983		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12984			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12985		fi
12986
12987		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12988			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12989		fi
12990
12991		CFLAGS="$CFLAGS -Wunused"
12992
12993		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
12994$as_echo_n "checking if $CC supports-Wunused... " >&6; }
12995		cacheid=xorg_cv_cc_flag__Wunused
12996		if eval \${$cacheid+:} false; then :
12997  $as_echo_n "(cached) " >&6
12998else
12999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000/* end confdefs.h.  */
13001int i;
13002int
13003main ()
13004{
13005
13006  ;
13007  return 0;
13008}
13009_ACEOF
13010if ac_fn_c_try_link "$LINENO"; then :
13011  eval $cacheid=yes
13012else
13013  eval $cacheid=no
13014fi
13015rm -f core conftest.err conftest.$ac_objext \
13016    conftest$ac_exeext conftest.$ac_ext
13017fi
13018
13019
13020		CFLAGS="$xorg_testset_save_CFLAGS"
13021
13022		eval supported=\$$cacheid
13023		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13024$as_echo "$supported" >&6; }
13025		if test "$supported" = "yes" ; then
13026			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13027			found="yes"
13028		fi
13029	fi
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045xorg_testset_save_CFLAGS="$CFLAGS"
13046
13047if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13048	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13049	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13050$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13051if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13052  $as_echo_n "(cached) " >&6
13053else
13054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055/* end confdefs.h.  */
13056int i;
13057_ACEOF
13058if ac_fn_c_try_compile "$LINENO"; then :
13059  xorg_cv_cc_flag_unknown_warning_option=yes
13060else
13061  xorg_cv_cc_flag_unknown_warning_option=no
13062fi
13063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13064fi
13065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13066$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13067	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13068	CFLAGS="$xorg_testset_save_CFLAGS"
13069fi
13070
13071if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13072	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13073		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13074	fi
13075	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13076	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13077$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13078if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13079  $as_echo_n "(cached) " >&6
13080else
13081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082/* end confdefs.h.  */
13083int i;
13084_ACEOF
13085if ac_fn_c_try_compile "$LINENO"; then :
13086  xorg_cv_cc_flag_unused_command_line_argument=yes
13087else
13088  xorg_cv_cc_flag_unused_command_line_argument=no
13089fi
13090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13091fi
13092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13093$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13094	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13095	CFLAGS="$xorg_testset_save_CFLAGS"
13096fi
13097
13098found="no"
13099
13100	if test $found = "no" ; then
13101		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13102			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13103		fi
13104
13105		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13106			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13107		fi
13108
13109		CFLAGS="$CFLAGS -Wuninitialized"
13110
13111		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
13112$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
13113		cacheid=xorg_cv_cc_flag__Wuninitialized
13114		if eval \${$cacheid+:} false; then :
13115  $as_echo_n "(cached) " >&6
13116else
13117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13118/* end confdefs.h.  */
13119int i;
13120int
13121main ()
13122{
13123
13124  ;
13125  return 0;
13126}
13127_ACEOF
13128if ac_fn_c_try_link "$LINENO"; then :
13129  eval $cacheid=yes
13130else
13131  eval $cacheid=no
13132fi
13133rm -f core conftest.err conftest.$ac_objext \
13134    conftest$ac_exeext conftest.$ac_ext
13135fi
13136
13137
13138		CFLAGS="$xorg_testset_save_CFLAGS"
13139
13140		eval supported=\$$cacheid
13141		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13142$as_echo "$supported" >&6; }
13143		if test "$supported" = "yes" ; then
13144			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13145			found="yes"
13146		fi
13147	fi
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163xorg_testset_save_CFLAGS="$CFLAGS"
13164
13165if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13166	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13167	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13168$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13169if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13170  $as_echo_n "(cached) " >&6
13171else
13172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173/* end confdefs.h.  */
13174int i;
13175_ACEOF
13176if ac_fn_c_try_compile "$LINENO"; then :
13177  xorg_cv_cc_flag_unknown_warning_option=yes
13178else
13179  xorg_cv_cc_flag_unknown_warning_option=no
13180fi
13181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13182fi
13183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13184$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13185	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13186	CFLAGS="$xorg_testset_save_CFLAGS"
13187fi
13188
13189if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13190	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13191		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13192	fi
13193	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13194	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13195$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13196if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13197  $as_echo_n "(cached) " >&6
13198else
13199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200/* end confdefs.h.  */
13201int i;
13202_ACEOF
13203if ac_fn_c_try_compile "$LINENO"; then :
13204  xorg_cv_cc_flag_unused_command_line_argument=yes
13205else
13206  xorg_cv_cc_flag_unused_command_line_argument=no
13207fi
13208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13209fi
13210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13211$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13212	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13213	CFLAGS="$xorg_testset_save_CFLAGS"
13214fi
13215
13216found="no"
13217
13218	if test $found = "no" ; then
13219		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13220			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13221		fi
13222
13223		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13224			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13225		fi
13226
13227		CFLAGS="$CFLAGS -Wshadow"
13228
13229		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
13230$as_echo_n "checking if $CC supports-Wshadow... " >&6; }
13231		cacheid=xorg_cv_cc_flag__Wshadow
13232		if eval \${$cacheid+:} false; then :
13233  $as_echo_n "(cached) " >&6
13234else
13235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236/* end confdefs.h.  */
13237int i;
13238int
13239main ()
13240{
13241
13242  ;
13243  return 0;
13244}
13245_ACEOF
13246if ac_fn_c_try_link "$LINENO"; then :
13247  eval $cacheid=yes
13248else
13249  eval $cacheid=no
13250fi
13251rm -f core conftest.err conftest.$ac_objext \
13252    conftest$ac_exeext conftest.$ac_ext
13253fi
13254
13255
13256		CFLAGS="$xorg_testset_save_CFLAGS"
13257
13258		eval supported=\$$cacheid
13259		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13260$as_echo "$supported" >&6; }
13261		if test "$supported" = "yes" ; then
13262			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13263			found="yes"
13264		fi
13265	fi
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281xorg_testset_save_CFLAGS="$CFLAGS"
13282
13283if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13284	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13285	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13286$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13287if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13288  $as_echo_n "(cached) " >&6
13289else
13290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291/* end confdefs.h.  */
13292int i;
13293_ACEOF
13294if ac_fn_c_try_compile "$LINENO"; then :
13295  xorg_cv_cc_flag_unknown_warning_option=yes
13296else
13297  xorg_cv_cc_flag_unknown_warning_option=no
13298fi
13299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13300fi
13301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13302$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13303	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13304	CFLAGS="$xorg_testset_save_CFLAGS"
13305fi
13306
13307if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13308	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13309		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13310	fi
13311	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13312	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13313$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13314if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13315  $as_echo_n "(cached) " >&6
13316else
13317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13318/* end confdefs.h.  */
13319int i;
13320_ACEOF
13321if ac_fn_c_try_compile "$LINENO"; then :
13322  xorg_cv_cc_flag_unused_command_line_argument=yes
13323else
13324  xorg_cv_cc_flag_unused_command_line_argument=no
13325fi
13326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13327fi
13328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13329$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13330	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13331	CFLAGS="$xorg_testset_save_CFLAGS"
13332fi
13333
13334found="no"
13335
13336	if test $found = "no" ; then
13337		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13338			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13339		fi
13340
13341		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13342			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13343		fi
13344
13345		CFLAGS="$CFLAGS -Wcast-qual"
13346
13347		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
13348$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
13349		cacheid=xorg_cv_cc_flag__Wcast_qual
13350		if eval \${$cacheid+:} false; then :
13351  $as_echo_n "(cached) " >&6
13352else
13353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13354/* end confdefs.h.  */
13355int i;
13356int
13357main ()
13358{
13359
13360  ;
13361  return 0;
13362}
13363_ACEOF
13364if ac_fn_c_try_link "$LINENO"; then :
13365  eval $cacheid=yes
13366else
13367  eval $cacheid=no
13368fi
13369rm -f core conftest.err conftest.$ac_objext \
13370    conftest$ac_exeext conftest.$ac_ext
13371fi
13372
13373
13374		CFLAGS="$xorg_testset_save_CFLAGS"
13375
13376		eval supported=\$$cacheid
13377		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13378$as_echo "$supported" >&6; }
13379		if test "$supported" = "yes" ; then
13380			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13381			found="yes"
13382		fi
13383	fi
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399xorg_testset_save_CFLAGS="$CFLAGS"
13400
13401if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13402	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13403	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13404$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13405if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13406  $as_echo_n "(cached) " >&6
13407else
13408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409/* end confdefs.h.  */
13410int i;
13411_ACEOF
13412if ac_fn_c_try_compile "$LINENO"; then :
13413  xorg_cv_cc_flag_unknown_warning_option=yes
13414else
13415  xorg_cv_cc_flag_unknown_warning_option=no
13416fi
13417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13418fi
13419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13420$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13421	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13422	CFLAGS="$xorg_testset_save_CFLAGS"
13423fi
13424
13425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13426	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13427		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13428	fi
13429	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13430	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13431$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13432if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13433  $as_echo_n "(cached) " >&6
13434else
13435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436/* end confdefs.h.  */
13437int i;
13438_ACEOF
13439if ac_fn_c_try_compile "$LINENO"; then :
13440  xorg_cv_cc_flag_unused_command_line_argument=yes
13441else
13442  xorg_cv_cc_flag_unused_command_line_argument=no
13443fi
13444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13445fi
13446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13447$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13448	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13449	CFLAGS="$xorg_testset_save_CFLAGS"
13450fi
13451
13452found="no"
13453
13454	if test $found = "no" ; then
13455		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13456			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13457		fi
13458
13459		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13460			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13461		fi
13462
13463		CFLAGS="$CFLAGS -Wmissing-noreturn"
13464
13465		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
13466$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
13467		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13468		if eval \${$cacheid+:} false; then :
13469  $as_echo_n "(cached) " >&6
13470else
13471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13472/* end confdefs.h.  */
13473int i;
13474int
13475main ()
13476{
13477
13478  ;
13479  return 0;
13480}
13481_ACEOF
13482if ac_fn_c_try_link "$LINENO"; then :
13483  eval $cacheid=yes
13484else
13485  eval $cacheid=no
13486fi
13487rm -f core conftest.err conftest.$ac_objext \
13488    conftest$ac_exeext conftest.$ac_ext
13489fi
13490
13491
13492		CFLAGS="$xorg_testset_save_CFLAGS"
13493
13494		eval supported=\$$cacheid
13495		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13496$as_echo "$supported" >&6; }
13497		if test "$supported" = "yes" ; then
13498			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13499			found="yes"
13500		fi
13501	fi
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517xorg_testset_save_CFLAGS="$CFLAGS"
13518
13519if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13520	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13521	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13522$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13523if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13524  $as_echo_n "(cached) " >&6
13525else
13526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13527/* end confdefs.h.  */
13528int i;
13529_ACEOF
13530if ac_fn_c_try_compile "$LINENO"; then :
13531  xorg_cv_cc_flag_unknown_warning_option=yes
13532else
13533  xorg_cv_cc_flag_unknown_warning_option=no
13534fi
13535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13536fi
13537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13538$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13539	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13540	CFLAGS="$xorg_testset_save_CFLAGS"
13541fi
13542
13543if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13544	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13545		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13546	fi
13547	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13548	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13549$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13550if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13551  $as_echo_n "(cached) " >&6
13552else
13553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13554/* end confdefs.h.  */
13555int i;
13556_ACEOF
13557if ac_fn_c_try_compile "$LINENO"; then :
13558  xorg_cv_cc_flag_unused_command_line_argument=yes
13559else
13560  xorg_cv_cc_flag_unused_command_line_argument=no
13561fi
13562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13563fi
13564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13565$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13566	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13567	CFLAGS="$xorg_testset_save_CFLAGS"
13568fi
13569
13570found="no"
13571
13572	if test $found = "no" ; then
13573		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13574			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13575		fi
13576
13577		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13578			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13579		fi
13580
13581		CFLAGS="$CFLAGS -Wmissing-format-attribute"
13582
13583		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
13584$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
13585		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13586		if eval \${$cacheid+:} false; then :
13587  $as_echo_n "(cached) " >&6
13588else
13589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590/* end confdefs.h.  */
13591int i;
13592int
13593main ()
13594{
13595
13596  ;
13597  return 0;
13598}
13599_ACEOF
13600if ac_fn_c_try_link "$LINENO"; then :
13601  eval $cacheid=yes
13602else
13603  eval $cacheid=no
13604fi
13605rm -f core conftest.err conftest.$ac_objext \
13606    conftest$ac_exeext conftest.$ac_ext
13607fi
13608
13609
13610		CFLAGS="$xorg_testset_save_CFLAGS"
13611
13612		eval supported=\$$cacheid
13613		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13614$as_echo "$supported" >&6; }
13615		if test "$supported" = "yes" ; then
13616			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13617			found="yes"
13618		fi
13619	fi
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635xorg_testset_save_CFLAGS="$CFLAGS"
13636
13637if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13638	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13639	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13640$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13641if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13642  $as_echo_n "(cached) " >&6
13643else
13644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13645/* end confdefs.h.  */
13646int i;
13647_ACEOF
13648if ac_fn_c_try_compile "$LINENO"; then :
13649  xorg_cv_cc_flag_unknown_warning_option=yes
13650else
13651  xorg_cv_cc_flag_unknown_warning_option=no
13652fi
13653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13654fi
13655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13656$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13657	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13658	CFLAGS="$xorg_testset_save_CFLAGS"
13659fi
13660
13661if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13662	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13663		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13664	fi
13665	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13666	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13667$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13668if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13669  $as_echo_n "(cached) " >&6
13670else
13671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13672/* end confdefs.h.  */
13673int i;
13674_ACEOF
13675if ac_fn_c_try_compile "$LINENO"; then :
13676  xorg_cv_cc_flag_unused_command_line_argument=yes
13677else
13678  xorg_cv_cc_flag_unused_command_line_argument=no
13679fi
13680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13681fi
13682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13683$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13684	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13685	CFLAGS="$xorg_testset_save_CFLAGS"
13686fi
13687
13688found="no"
13689
13690	if test $found = "no" ; then
13691		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13692			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13693		fi
13694
13695		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13696			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13697		fi
13698
13699		CFLAGS="$CFLAGS -Wredundant-decls"
13700
13701		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
13702$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
13703		cacheid=xorg_cv_cc_flag__Wredundant_decls
13704		if eval \${$cacheid+:} false; then :
13705  $as_echo_n "(cached) " >&6
13706else
13707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708/* end confdefs.h.  */
13709int i;
13710int
13711main ()
13712{
13713
13714  ;
13715  return 0;
13716}
13717_ACEOF
13718if ac_fn_c_try_link "$LINENO"; then :
13719  eval $cacheid=yes
13720else
13721  eval $cacheid=no
13722fi
13723rm -f core conftest.err conftest.$ac_objext \
13724    conftest$ac_exeext conftest.$ac_ext
13725fi
13726
13727
13728		CFLAGS="$xorg_testset_save_CFLAGS"
13729
13730		eval supported=\$$cacheid
13731		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13732$as_echo "$supported" >&6; }
13733		if test "$supported" = "yes" ; then
13734			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13735			found="yes"
13736		fi
13737	fi
13738
13739
13740
13741# These are currently disabled because they are noisy.  They will be enabled
13742# in the future once the codebase is sufficiently modernized to silence
13743# them.  For now, I don't want them to drown out the other warnings.
13744# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13745# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13746# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13747
13748# Turn some warnings into errors, so we don't accidently get successful builds
13749# when there are problems that should be fixed.
13750
13751if test "x$SELECTIVE_WERROR" = "xyes" ; then
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765xorg_testset_save_CFLAGS="$CFLAGS"
13766
13767if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13768	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13769	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13770$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13771if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13772  $as_echo_n "(cached) " >&6
13773else
13774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775/* end confdefs.h.  */
13776int i;
13777_ACEOF
13778if ac_fn_c_try_compile "$LINENO"; then :
13779  xorg_cv_cc_flag_unknown_warning_option=yes
13780else
13781  xorg_cv_cc_flag_unknown_warning_option=no
13782fi
13783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13784fi
13785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13786$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13787	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13788	CFLAGS="$xorg_testset_save_CFLAGS"
13789fi
13790
13791if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13792	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13793		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13794	fi
13795	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13796	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13797$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13798if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13799  $as_echo_n "(cached) " >&6
13800else
13801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13802/* end confdefs.h.  */
13803int i;
13804_ACEOF
13805if ac_fn_c_try_compile "$LINENO"; then :
13806  xorg_cv_cc_flag_unused_command_line_argument=yes
13807else
13808  xorg_cv_cc_flag_unused_command_line_argument=no
13809fi
13810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13811fi
13812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13813$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13814	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13815	CFLAGS="$xorg_testset_save_CFLAGS"
13816fi
13817
13818found="no"
13819
13820	if test $found = "no" ; then
13821		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13822			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13823		fi
13824
13825		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13826			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13827		fi
13828
13829		CFLAGS="$CFLAGS -Werror=implicit"
13830
13831		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
13832$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
13833		cacheid=xorg_cv_cc_flag__Werror_implicit
13834		if eval \${$cacheid+:} false; then :
13835  $as_echo_n "(cached) " >&6
13836else
13837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13838/* end confdefs.h.  */
13839int i;
13840int
13841main ()
13842{
13843
13844  ;
13845  return 0;
13846}
13847_ACEOF
13848if ac_fn_c_try_link "$LINENO"; then :
13849  eval $cacheid=yes
13850else
13851  eval $cacheid=no
13852fi
13853rm -f core conftest.err conftest.$ac_objext \
13854    conftest$ac_exeext conftest.$ac_ext
13855fi
13856
13857
13858		CFLAGS="$xorg_testset_save_CFLAGS"
13859
13860		eval supported=\$$cacheid
13861		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13862$as_echo "$supported" >&6; }
13863		if test "$supported" = "yes" ; then
13864			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13865			found="yes"
13866		fi
13867	fi
13868
13869	if test $found = "no" ; then
13870		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13871			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13872		fi
13873
13874		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13875			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13876		fi
13877
13878		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13879
13880		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13881$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13882		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
13883		if eval \${$cacheid+:} false; then :
13884  $as_echo_n "(cached) " >&6
13885else
13886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887/* end confdefs.h.  */
13888int i;
13889int
13890main ()
13891{
13892
13893  ;
13894  return 0;
13895}
13896_ACEOF
13897if ac_fn_c_try_link "$LINENO"; then :
13898  eval $cacheid=yes
13899else
13900  eval $cacheid=no
13901fi
13902rm -f core conftest.err conftest.$ac_objext \
13903    conftest$ac_exeext conftest.$ac_ext
13904fi
13905
13906
13907		CFLAGS="$xorg_testset_save_CFLAGS"
13908
13909		eval supported=\$$cacheid
13910		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13911$as_echo "$supported" >&6; }
13912		if test "$supported" = "yes" ; then
13913			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13914			found="yes"
13915		fi
13916	fi
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932xorg_testset_save_CFLAGS="$CFLAGS"
13933
13934if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13935	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13936	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13937$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13938if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13939  $as_echo_n "(cached) " >&6
13940else
13941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942/* end confdefs.h.  */
13943int i;
13944_ACEOF
13945if ac_fn_c_try_compile "$LINENO"; then :
13946  xorg_cv_cc_flag_unknown_warning_option=yes
13947else
13948  xorg_cv_cc_flag_unknown_warning_option=no
13949fi
13950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13951fi
13952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13953$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13954	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13955	CFLAGS="$xorg_testset_save_CFLAGS"
13956fi
13957
13958if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13959	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13960		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13961	fi
13962	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13963	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13964$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13965if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13966  $as_echo_n "(cached) " >&6
13967else
13968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969/* end confdefs.h.  */
13970int i;
13971_ACEOF
13972if ac_fn_c_try_compile "$LINENO"; then :
13973  xorg_cv_cc_flag_unused_command_line_argument=yes
13974else
13975  xorg_cv_cc_flag_unused_command_line_argument=no
13976fi
13977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13978fi
13979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13980$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13981	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13982	CFLAGS="$xorg_testset_save_CFLAGS"
13983fi
13984
13985found="no"
13986
13987	if test $found = "no" ; then
13988		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13989			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13990		fi
13991
13992		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13993			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13994		fi
13995
13996		CFLAGS="$CFLAGS -Werror=nonnull"
13997
13998		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
13999$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
14000		cacheid=xorg_cv_cc_flag__Werror_nonnull
14001		if eval \${$cacheid+:} false; then :
14002  $as_echo_n "(cached) " >&6
14003else
14004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005/* end confdefs.h.  */
14006int i;
14007int
14008main ()
14009{
14010
14011  ;
14012  return 0;
14013}
14014_ACEOF
14015if ac_fn_c_try_link "$LINENO"; then :
14016  eval $cacheid=yes
14017else
14018  eval $cacheid=no
14019fi
14020rm -f core conftest.err conftest.$ac_objext \
14021    conftest$ac_exeext conftest.$ac_ext
14022fi
14023
14024
14025		CFLAGS="$xorg_testset_save_CFLAGS"
14026
14027		eval supported=\$$cacheid
14028		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14029$as_echo "$supported" >&6; }
14030		if test "$supported" = "yes" ; then
14031			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14032			found="yes"
14033		fi
14034	fi
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050xorg_testset_save_CFLAGS="$CFLAGS"
14051
14052if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14053	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14054	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14055$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14056if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14057  $as_echo_n "(cached) " >&6
14058else
14059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14060/* end confdefs.h.  */
14061int i;
14062_ACEOF
14063if ac_fn_c_try_compile "$LINENO"; then :
14064  xorg_cv_cc_flag_unknown_warning_option=yes
14065else
14066  xorg_cv_cc_flag_unknown_warning_option=no
14067fi
14068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14069fi
14070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14071$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14072	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14073	CFLAGS="$xorg_testset_save_CFLAGS"
14074fi
14075
14076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14077	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14078		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14079	fi
14080	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14081	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14082$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14083if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14084  $as_echo_n "(cached) " >&6
14085else
14086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087/* end confdefs.h.  */
14088int i;
14089_ACEOF
14090if ac_fn_c_try_compile "$LINENO"; then :
14091  xorg_cv_cc_flag_unused_command_line_argument=yes
14092else
14093  xorg_cv_cc_flag_unused_command_line_argument=no
14094fi
14095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14096fi
14097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14098$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14099	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14100	CFLAGS="$xorg_testset_save_CFLAGS"
14101fi
14102
14103found="no"
14104
14105	if test $found = "no" ; then
14106		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14107			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14108		fi
14109
14110		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14111			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14112		fi
14113
14114		CFLAGS="$CFLAGS -Werror=init-self"
14115
14116		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
14117$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
14118		cacheid=xorg_cv_cc_flag__Werror_init_self
14119		if eval \${$cacheid+:} false; then :
14120  $as_echo_n "(cached) " >&6
14121else
14122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123/* end confdefs.h.  */
14124int i;
14125int
14126main ()
14127{
14128
14129  ;
14130  return 0;
14131}
14132_ACEOF
14133if ac_fn_c_try_link "$LINENO"; then :
14134  eval $cacheid=yes
14135else
14136  eval $cacheid=no
14137fi
14138rm -f core conftest.err conftest.$ac_objext \
14139    conftest$ac_exeext conftest.$ac_ext
14140fi
14141
14142
14143		CFLAGS="$xorg_testset_save_CFLAGS"
14144
14145		eval supported=\$$cacheid
14146		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14147$as_echo "$supported" >&6; }
14148		if test "$supported" = "yes" ; then
14149			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14150			found="yes"
14151		fi
14152	fi
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168xorg_testset_save_CFLAGS="$CFLAGS"
14169
14170if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14171	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14172	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14173$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14174if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14175  $as_echo_n "(cached) " >&6
14176else
14177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178/* end confdefs.h.  */
14179int i;
14180_ACEOF
14181if ac_fn_c_try_compile "$LINENO"; then :
14182  xorg_cv_cc_flag_unknown_warning_option=yes
14183else
14184  xorg_cv_cc_flag_unknown_warning_option=no
14185fi
14186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14187fi
14188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14189$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14190	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14191	CFLAGS="$xorg_testset_save_CFLAGS"
14192fi
14193
14194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14195	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14196		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14197	fi
14198	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14199	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14200$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14201if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14202  $as_echo_n "(cached) " >&6
14203else
14204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205/* end confdefs.h.  */
14206int i;
14207_ACEOF
14208if ac_fn_c_try_compile "$LINENO"; then :
14209  xorg_cv_cc_flag_unused_command_line_argument=yes
14210else
14211  xorg_cv_cc_flag_unused_command_line_argument=no
14212fi
14213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14214fi
14215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14216$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14217	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14218	CFLAGS="$xorg_testset_save_CFLAGS"
14219fi
14220
14221found="no"
14222
14223	if test $found = "no" ; then
14224		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14225			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14226		fi
14227
14228		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14229			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14230		fi
14231
14232		CFLAGS="$CFLAGS -Werror=main"
14233
14234		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
14235$as_echo_n "checking if $CC supports-Werror=main... " >&6; }
14236		cacheid=xorg_cv_cc_flag__Werror_main
14237		if eval \${$cacheid+:} false; then :
14238  $as_echo_n "(cached) " >&6
14239else
14240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14241/* end confdefs.h.  */
14242int i;
14243int
14244main ()
14245{
14246
14247  ;
14248  return 0;
14249}
14250_ACEOF
14251if ac_fn_c_try_link "$LINENO"; then :
14252  eval $cacheid=yes
14253else
14254  eval $cacheid=no
14255fi
14256rm -f core conftest.err conftest.$ac_objext \
14257    conftest$ac_exeext conftest.$ac_ext
14258fi
14259
14260
14261		CFLAGS="$xorg_testset_save_CFLAGS"
14262
14263		eval supported=\$$cacheid
14264		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14265$as_echo "$supported" >&6; }
14266		if test "$supported" = "yes" ; then
14267			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14268			found="yes"
14269		fi
14270	fi
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286xorg_testset_save_CFLAGS="$CFLAGS"
14287
14288if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14289	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14290	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14291$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14292if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14293  $as_echo_n "(cached) " >&6
14294else
14295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296/* end confdefs.h.  */
14297int i;
14298_ACEOF
14299if ac_fn_c_try_compile "$LINENO"; then :
14300  xorg_cv_cc_flag_unknown_warning_option=yes
14301else
14302  xorg_cv_cc_flag_unknown_warning_option=no
14303fi
14304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14305fi
14306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14307$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14308	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14309	CFLAGS="$xorg_testset_save_CFLAGS"
14310fi
14311
14312if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14313	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14314		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14315	fi
14316	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14317	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14318$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14319if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14320  $as_echo_n "(cached) " >&6
14321else
14322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14323/* end confdefs.h.  */
14324int i;
14325_ACEOF
14326if ac_fn_c_try_compile "$LINENO"; then :
14327  xorg_cv_cc_flag_unused_command_line_argument=yes
14328else
14329  xorg_cv_cc_flag_unused_command_line_argument=no
14330fi
14331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14332fi
14333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14334$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14335	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14336	CFLAGS="$xorg_testset_save_CFLAGS"
14337fi
14338
14339found="no"
14340
14341	if test $found = "no" ; then
14342		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14343			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14344		fi
14345
14346		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14347			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14348		fi
14349
14350		CFLAGS="$CFLAGS -Werror=missing-braces"
14351
14352		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
14353$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
14354		cacheid=xorg_cv_cc_flag__Werror_missing_braces
14355		if eval \${$cacheid+:} false; then :
14356  $as_echo_n "(cached) " >&6
14357else
14358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359/* end confdefs.h.  */
14360int i;
14361int
14362main ()
14363{
14364
14365  ;
14366  return 0;
14367}
14368_ACEOF
14369if ac_fn_c_try_link "$LINENO"; then :
14370  eval $cacheid=yes
14371else
14372  eval $cacheid=no
14373fi
14374rm -f core conftest.err conftest.$ac_objext \
14375    conftest$ac_exeext conftest.$ac_ext
14376fi
14377
14378
14379		CFLAGS="$xorg_testset_save_CFLAGS"
14380
14381		eval supported=\$$cacheid
14382		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14383$as_echo "$supported" >&6; }
14384		if test "$supported" = "yes" ; then
14385			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14386			found="yes"
14387		fi
14388	fi
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404xorg_testset_save_CFLAGS="$CFLAGS"
14405
14406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14407	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14408	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14409$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14410if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14411  $as_echo_n "(cached) " >&6
14412else
14413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14414/* end confdefs.h.  */
14415int i;
14416_ACEOF
14417if ac_fn_c_try_compile "$LINENO"; then :
14418  xorg_cv_cc_flag_unknown_warning_option=yes
14419else
14420  xorg_cv_cc_flag_unknown_warning_option=no
14421fi
14422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14423fi
14424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14425$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14426	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14427	CFLAGS="$xorg_testset_save_CFLAGS"
14428fi
14429
14430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14431	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14432		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14433	fi
14434	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14435	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14436$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14437if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14438  $as_echo_n "(cached) " >&6
14439else
14440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14441/* end confdefs.h.  */
14442int i;
14443_ACEOF
14444if ac_fn_c_try_compile "$LINENO"; then :
14445  xorg_cv_cc_flag_unused_command_line_argument=yes
14446else
14447  xorg_cv_cc_flag_unused_command_line_argument=no
14448fi
14449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14450fi
14451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14452$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14453	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14454	CFLAGS="$xorg_testset_save_CFLAGS"
14455fi
14456
14457found="no"
14458
14459	if test $found = "no" ; then
14460		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14461			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14462		fi
14463
14464		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14465			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14466		fi
14467
14468		CFLAGS="$CFLAGS -Werror=sequence-point"
14469
14470		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
14471$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
14472		cacheid=xorg_cv_cc_flag__Werror_sequence_point
14473		if eval \${$cacheid+:} false; then :
14474  $as_echo_n "(cached) " >&6
14475else
14476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14477/* end confdefs.h.  */
14478int i;
14479int
14480main ()
14481{
14482
14483  ;
14484  return 0;
14485}
14486_ACEOF
14487if ac_fn_c_try_link "$LINENO"; then :
14488  eval $cacheid=yes
14489else
14490  eval $cacheid=no
14491fi
14492rm -f core conftest.err conftest.$ac_objext \
14493    conftest$ac_exeext conftest.$ac_ext
14494fi
14495
14496
14497		CFLAGS="$xorg_testset_save_CFLAGS"
14498
14499		eval supported=\$$cacheid
14500		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14501$as_echo "$supported" >&6; }
14502		if test "$supported" = "yes" ; then
14503			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14504			found="yes"
14505		fi
14506	fi
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522xorg_testset_save_CFLAGS="$CFLAGS"
14523
14524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14525	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14526	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14527$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14528if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14529  $as_echo_n "(cached) " >&6
14530else
14531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532/* end confdefs.h.  */
14533int i;
14534_ACEOF
14535if ac_fn_c_try_compile "$LINENO"; then :
14536  xorg_cv_cc_flag_unknown_warning_option=yes
14537else
14538  xorg_cv_cc_flag_unknown_warning_option=no
14539fi
14540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14541fi
14542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14543$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14544	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14545	CFLAGS="$xorg_testset_save_CFLAGS"
14546fi
14547
14548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14549	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14550		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14551	fi
14552	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14553	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14554$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14555if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14556  $as_echo_n "(cached) " >&6
14557else
14558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14559/* end confdefs.h.  */
14560int i;
14561_ACEOF
14562if ac_fn_c_try_compile "$LINENO"; then :
14563  xorg_cv_cc_flag_unused_command_line_argument=yes
14564else
14565  xorg_cv_cc_flag_unused_command_line_argument=no
14566fi
14567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14568fi
14569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14570$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14571	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14572	CFLAGS="$xorg_testset_save_CFLAGS"
14573fi
14574
14575found="no"
14576
14577	if test $found = "no" ; then
14578		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14579			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14580		fi
14581
14582		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14583			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14584		fi
14585
14586		CFLAGS="$CFLAGS -Werror=return-type"
14587
14588		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
14589$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
14590		cacheid=xorg_cv_cc_flag__Werror_return_type
14591		if eval \${$cacheid+:} false; then :
14592  $as_echo_n "(cached) " >&6
14593else
14594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14595/* end confdefs.h.  */
14596int i;
14597int
14598main ()
14599{
14600
14601  ;
14602  return 0;
14603}
14604_ACEOF
14605if ac_fn_c_try_link "$LINENO"; then :
14606  eval $cacheid=yes
14607else
14608  eval $cacheid=no
14609fi
14610rm -f core conftest.err conftest.$ac_objext \
14611    conftest$ac_exeext conftest.$ac_ext
14612fi
14613
14614
14615		CFLAGS="$xorg_testset_save_CFLAGS"
14616
14617		eval supported=\$$cacheid
14618		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14619$as_echo "$supported" >&6; }
14620		if test "$supported" = "yes" ; then
14621			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14622			found="yes"
14623		fi
14624	fi
14625
14626	if test $found = "no" ; then
14627		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14628			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14629		fi
14630
14631		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14632			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14633		fi
14634
14635		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14636
14637		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14638$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14639		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
14640		if eval \${$cacheid+:} false; then :
14641  $as_echo_n "(cached) " >&6
14642else
14643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14644/* end confdefs.h.  */
14645int i;
14646int
14647main ()
14648{
14649
14650  ;
14651  return 0;
14652}
14653_ACEOF
14654if ac_fn_c_try_link "$LINENO"; then :
14655  eval $cacheid=yes
14656else
14657  eval $cacheid=no
14658fi
14659rm -f core conftest.err conftest.$ac_objext \
14660    conftest$ac_exeext conftest.$ac_ext
14661fi
14662
14663
14664		CFLAGS="$xorg_testset_save_CFLAGS"
14665
14666		eval supported=\$$cacheid
14667		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14668$as_echo "$supported" >&6; }
14669		if test "$supported" = "yes" ; then
14670			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14671			found="yes"
14672		fi
14673	fi
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689xorg_testset_save_CFLAGS="$CFLAGS"
14690
14691if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14692	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14693	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14694$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14695if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14696  $as_echo_n "(cached) " >&6
14697else
14698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14699/* end confdefs.h.  */
14700int i;
14701_ACEOF
14702if ac_fn_c_try_compile "$LINENO"; then :
14703  xorg_cv_cc_flag_unknown_warning_option=yes
14704else
14705  xorg_cv_cc_flag_unknown_warning_option=no
14706fi
14707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14708fi
14709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14710$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14711	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14712	CFLAGS="$xorg_testset_save_CFLAGS"
14713fi
14714
14715if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14716	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14717		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14718	fi
14719	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14720	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14721$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14722if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14723  $as_echo_n "(cached) " >&6
14724else
14725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14726/* end confdefs.h.  */
14727int i;
14728_ACEOF
14729if ac_fn_c_try_compile "$LINENO"; then :
14730  xorg_cv_cc_flag_unused_command_line_argument=yes
14731else
14732  xorg_cv_cc_flag_unused_command_line_argument=no
14733fi
14734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14735fi
14736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14737$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14738	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14739	CFLAGS="$xorg_testset_save_CFLAGS"
14740fi
14741
14742found="no"
14743
14744	if test $found = "no" ; then
14745		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14746			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14747		fi
14748
14749		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14750			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14751		fi
14752
14753		CFLAGS="$CFLAGS -Werror=trigraphs"
14754
14755		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
14756$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
14757		cacheid=xorg_cv_cc_flag__Werror_trigraphs
14758		if eval \${$cacheid+:} false; then :
14759  $as_echo_n "(cached) " >&6
14760else
14761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14762/* end confdefs.h.  */
14763int i;
14764int
14765main ()
14766{
14767
14768  ;
14769  return 0;
14770}
14771_ACEOF
14772if ac_fn_c_try_link "$LINENO"; then :
14773  eval $cacheid=yes
14774else
14775  eval $cacheid=no
14776fi
14777rm -f core conftest.err conftest.$ac_objext \
14778    conftest$ac_exeext conftest.$ac_ext
14779fi
14780
14781
14782		CFLAGS="$xorg_testset_save_CFLAGS"
14783
14784		eval supported=\$$cacheid
14785		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14786$as_echo "$supported" >&6; }
14787		if test "$supported" = "yes" ; then
14788			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14789			found="yes"
14790		fi
14791	fi
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807xorg_testset_save_CFLAGS="$CFLAGS"
14808
14809if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14810	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14811	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14812$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14813if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14814  $as_echo_n "(cached) " >&6
14815else
14816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14817/* end confdefs.h.  */
14818int i;
14819_ACEOF
14820if ac_fn_c_try_compile "$LINENO"; then :
14821  xorg_cv_cc_flag_unknown_warning_option=yes
14822else
14823  xorg_cv_cc_flag_unknown_warning_option=no
14824fi
14825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14826fi
14827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14828$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14829	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14830	CFLAGS="$xorg_testset_save_CFLAGS"
14831fi
14832
14833if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14834	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14835		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14836	fi
14837	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14838	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14839$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14840if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14841  $as_echo_n "(cached) " >&6
14842else
14843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14844/* end confdefs.h.  */
14845int i;
14846_ACEOF
14847if ac_fn_c_try_compile "$LINENO"; then :
14848  xorg_cv_cc_flag_unused_command_line_argument=yes
14849else
14850  xorg_cv_cc_flag_unused_command_line_argument=no
14851fi
14852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14853fi
14854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14855$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14856	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14857	CFLAGS="$xorg_testset_save_CFLAGS"
14858fi
14859
14860found="no"
14861
14862	if test $found = "no" ; then
14863		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14864			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14865		fi
14866
14867		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14868			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14869		fi
14870
14871		CFLAGS="$CFLAGS -Werror=array-bounds"
14872
14873		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
14874$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
14875		cacheid=xorg_cv_cc_flag__Werror_array_bounds
14876		if eval \${$cacheid+:} false; then :
14877  $as_echo_n "(cached) " >&6
14878else
14879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880/* end confdefs.h.  */
14881int i;
14882int
14883main ()
14884{
14885
14886  ;
14887  return 0;
14888}
14889_ACEOF
14890if ac_fn_c_try_link "$LINENO"; then :
14891  eval $cacheid=yes
14892else
14893  eval $cacheid=no
14894fi
14895rm -f core conftest.err conftest.$ac_objext \
14896    conftest$ac_exeext conftest.$ac_ext
14897fi
14898
14899
14900		CFLAGS="$xorg_testset_save_CFLAGS"
14901
14902		eval supported=\$$cacheid
14903		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14904$as_echo "$supported" >&6; }
14905		if test "$supported" = "yes" ; then
14906			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14907			found="yes"
14908		fi
14909	fi
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925xorg_testset_save_CFLAGS="$CFLAGS"
14926
14927if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14928	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14929	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14930$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14931if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14932  $as_echo_n "(cached) " >&6
14933else
14934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14935/* end confdefs.h.  */
14936int i;
14937_ACEOF
14938if ac_fn_c_try_compile "$LINENO"; then :
14939  xorg_cv_cc_flag_unknown_warning_option=yes
14940else
14941  xorg_cv_cc_flag_unknown_warning_option=no
14942fi
14943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14944fi
14945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14946$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14947	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14948	CFLAGS="$xorg_testset_save_CFLAGS"
14949fi
14950
14951if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14952	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14953		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14954	fi
14955	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14956	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14957$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14958if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14959  $as_echo_n "(cached) " >&6
14960else
14961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962/* end confdefs.h.  */
14963int i;
14964_ACEOF
14965if ac_fn_c_try_compile "$LINENO"; then :
14966  xorg_cv_cc_flag_unused_command_line_argument=yes
14967else
14968  xorg_cv_cc_flag_unused_command_line_argument=no
14969fi
14970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14971fi
14972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14973$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14974	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14975	CFLAGS="$xorg_testset_save_CFLAGS"
14976fi
14977
14978found="no"
14979
14980	if test $found = "no" ; then
14981		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14982			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14983		fi
14984
14985		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14986			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14987		fi
14988
14989		CFLAGS="$CFLAGS -Werror=write-strings"
14990
14991		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
14992$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
14993		cacheid=xorg_cv_cc_flag__Werror_write_strings
14994		if eval \${$cacheid+:} false; then :
14995  $as_echo_n "(cached) " >&6
14996else
14997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998/* end confdefs.h.  */
14999int i;
15000int
15001main ()
15002{
15003
15004  ;
15005  return 0;
15006}
15007_ACEOF
15008if ac_fn_c_try_link "$LINENO"; then :
15009  eval $cacheid=yes
15010else
15011  eval $cacheid=no
15012fi
15013rm -f core conftest.err conftest.$ac_objext \
15014    conftest$ac_exeext conftest.$ac_ext
15015fi
15016
15017
15018		CFLAGS="$xorg_testset_save_CFLAGS"
15019
15020		eval supported=\$$cacheid
15021		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15022$as_echo "$supported" >&6; }
15023		if test "$supported" = "yes" ; then
15024			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15025			found="yes"
15026		fi
15027	fi
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043xorg_testset_save_CFLAGS="$CFLAGS"
15044
15045if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15046	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15047	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15048$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15049if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15050  $as_echo_n "(cached) " >&6
15051else
15052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15053/* end confdefs.h.  */
15054int i;
15055_ACEOF
15056if ac_fn_c_try_compile "$LINENO"; then :
15057  xorg_cv_cc_flag_unknown_warning_option=yes
15058else
15059  xorg_cv_cc_flag_unknown_warning_option=no
15060fi
15061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15062fi
15063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15064$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15065	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15066	CFLAGS="$xorg_testset_save_CFLAGS"
15067fi
15068
15069if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15070	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15071		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15072	fi
15073	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15074	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15075$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15076if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15077  $as_echo_n "(cached) " >&6
15078else
15079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15080/* end confdefs.h.  */
15081int i;
15082_ACEOF
15083if ac_fn_c_try_compile "$LINENO"; then :
15084  xorg_cv_cc_flag_unused_command_line_argument=yes
15085else
15086  xorg_cv_cc_flag_unused_command_line_argument=no
15087fi
15088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15089fi
15090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15091$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15092	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15093	CFLAGS="$xorg_testset_save_CFLAGS"
15094fi
15095
15096found="no"
15097
15098	if test $found = "no" ; then
15099		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15100			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15101		fi
15102
15103		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15104			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15105		fi
15106
15107		CFLAGS="$CFLAGS -Werror=address"
15108
15109		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
15110$as_echo_n "checking if $CC supports-Werror=address... " >&6; }
15111		cacheid=xorg_cv_cc_flag__Werror_address
15112		if eval \${$cacheid+:} false; then :
15113  $as_echo_n "(cached) " >&6
15114else
15115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15116/* end confdefs.h.  */
15117int i;
15118int
15119main ()
15120{
15121
15122  ;
15123  return 0;
15124}
15125_ACEOF
15126if ac_fn_c_try_link "$LINENO"; then :
15127  eval $cacheid=yes
15128else
15129  eval $cacheid=no
15130fi
15131rm -f core conftest.err conftest.$ac_objext \
15132    conftest$ac_exeext conftest.$ac_ext
15133fi
15134
15135
15136		CFLAGS="$xorg_testset_save_CFLAGS"
15137
15138		eval supported=\$$cacheid
15139		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15140$as_echo "$supported" >&6; }
15141		if test "$supported" = "yes" ; then
15142			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15143			found="yes"
15144		fi
15145	fi
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161xorg_testset_save_CFLAGS="$CFLAGS"
15162
15163if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15164	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15165	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15166$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15167if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15168  $as_echo_n "(cached) " >&6
15169else
15170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15171/* end confdefs.h.  */
15172int i;
15173_ACEOF
15174if ac_fn_c_try_compile "$LINENO"; then :
15175  xorg_cv_cc_flag_unknown_warning_option=yes
15176else
15177  xorg_cv_cc_flag_unknown_warning_option=no
15178fi
15179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15180fi
15181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15182$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15183	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15184	CFLAGS="$xorg_testset_save_CFLAGS"
15185fi
15186
15187if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15188	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15189		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15190	fi
15191	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15192	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15193$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15194if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15195  $as_echo_n "(cached) " >&6
15196else
15197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15198/* end confdefs.h.  */
15199int i;
15200_ACEOF
15201if ac_fn_c_try_compile "$LINENO"; then :
15202  xorg_cv_cc_flag_unused_command_line_argument=yes
15203else
15204  xorg_cv_cc_flag_unused_command_line_argument=no
15205fi
15206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15207fi
15208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15209$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15210	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15211	CFLAGS="$xorg_testset_save_CFLAGS"
15212fi
15213
15214found="no"
15215
15216	if test $found = "no" ; then
15217		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15218			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15219		fi
15220
15221		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15222			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15223		fi
15224
15225		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15226
15227		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
15228$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
15229		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15230		if eval \${$cacheid+:} false; then :
15231  $as_echo_n "(cached) " >&6
15232else
15233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15234/* end confdefs.h.  */
15235int i;
15236int
15237main ()
15238{
15239
15240  ;
15241  return 0;
15242}
15243_ACEOF
15244if ac_fn_c_try_link "$LINENO"; then :
15245  eval $cacheid=yes
15246else
15247  eval $cacheid=no
15248fi
15249rm -f core conftest.err conftest.$ac_objext \
15250    conftest$ac_exeext conftest.$ac_ext
15251fi
15252
15253
15254		CFLAGS="$xorg_testset_save_CFLAGS"
15255
15256		eval supported=\$$cacheid
15257		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15258$as_echo "$supported" >&6; }
15259		if test "$supported" = "yes" ; then
15260			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15261			found="yes"
15262		fi
15263	fi
15264
15265	if test $found = "no" ; then
15266		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15267			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15268		fi
15269
15270		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15271			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15272		fi
15273
15274		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15275
15276		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15277$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15278		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15279		if eval \${$cacheid+:} false; then :
15280  $as_echo_n "(cached) " >&6
15281else
15282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15283/* end confdefs.h.  */
15284int i;
15285int
15286main ()
15287{
15288
15289  ;
15290  return 0;
15291}
15292_ACEOF
15293if ac_fn_c_try_link "$LINENO"; then :
15294  eval $cacheid=yes
15295else
15296  eval $cacheid=no
15297fi
15298rm -f core conftest.err conftest.$ac_objext \
15299    conftest$ac_exeext conftest.$ac_ext
15300fi
15301
15302
15303		CFLAGS="$xorg_testset_save_CFLAGS"
15304
15305		eval supported=\$$cacheid
15306		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15307$as_echo "$supported" >&6; }
15308		if test "$supported" = "yes" ; then
15309			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15310			found="yes"
15311		fi
15312	fi
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328xorg_testset_save_CFLAGS="$CFLAGS"
15329
15330if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15331	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15332	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15333$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15334if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15335  $as_echo_n "(cached) " >&6
15336else
15337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338/* end confdefs.h.  */
15339int i;
15340_ACEOF
15341if ac_fn_c_try_compile "$LINENO"; then :
15342  xorg_cv_cc_flag_unknown_warning_option=yes
15343else
15344  xorg_cv_cc_flag_unknown_warning_option=no
15345fi
15346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15347fi
15348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15349$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15350	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15351	CFLAGS="$xorg_testset_save_CFLAGS"
15352fi
15353
15354if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15355	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15356		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15357	fi
15358	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15359	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15360$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15361if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15362  $as_echo_n "(cached) " >&6
15363else
15364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15365/* end confdefs.h.  */
15366int i;
15367_ACEOF
15368if ac_fn_c_try_compile "$LINENO"; then :
15369  xorg_cv_cc_flag_unused_command_line_argument=yes
15370else
15371  xorg_cv_cc_flag_unused_command_line_argument=no
15372fi
15373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15374fi
15375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15376$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15377	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15378	CFLAGS="$xorg_testset_save_CFLAGS"
15379fi
15380
15381found="no"
15382
15383	if test $found = "no" ; then
15384		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15385			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15386		fi
15387
15388		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15389			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15390		fi
15391
15392		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15393
15394		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
15395$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
15396		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
15397		if eval \${$cacheid+:} false; then :
15398  $as_echo_n "(cached) " >&6
15399else
15400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15401/* end confdefs.h.  */
15402int i;
15403int
15404main ()
15405{
15406
15407  ;
15408  return 0;
15409}
15410_ACEOF
15411if ac_fn_c_try_link "$LINENO"; then :
15412  eval $cacheid=yes
15413else
15414  eval $cacheid=no
15415fi
15416rm -f core conftest.err conftest.$ac_objext \
15417    conftest$ac_exeext conftest.$ac_ext
15418fi
15419
15420
15421		CFLAGS="$xorg_testset_save_CFLAGS"
15422
15423		eval supported=\$$cacheid
15424		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15425$as_echo "$supported" >&6; }
15426		if test "$supported" = "yes" ; then
15427			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15428			found="yes"
15429		fi
15430	fi
15431
15432 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15433else
15434{ $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
15435$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;}
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449xorg_testset_save_CFLAGS="$CFLAGS"
15450
15451if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15452	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15453	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15454$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15455if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15456  $as_echo_n "(cached) " >&6
15457else
15458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15459/* end confdefs.h.  */
15460int i;
15461_ACEOF
15462if ac_fn_c_try_compile "$LINENO"; then :
15463  xorg_cv_cc_flag_unknown_warning_option=yes
15464else
15465  xorg_cv_cc_flag_unknown_warning_option=no
15466fi
15467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15468fi
15469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15470$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15471	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15472	CFLAGS="$xorg_testset_save_CFLAGS"
15473fi
15474
15475if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15476	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15477		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15478	fi
15479	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15480	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15481$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15482if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15483  $as_echo_n "(cached) " >&6
15484else
15485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15486/* end confdefs.h.  */
15487int i;
15488_ACEOF
15489if ac_fn_c_try_compile "$LINENO"; then :
15490  xorg_cv_cc_flag_unused_command_line_argument=yes
15491else
15492  xorg_cv_cc_flag_unused_command_line_argument=no
15493fi
15494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15495fi
15496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15497$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15498	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15499	CFLAGS="$xorg_testset_save_CFLAGS"
15500fi
15501
15502found="no"
15503
15504	if test $found = "no" ; then
15505		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15506			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15507		fi
15508
15509		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15510			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15511		fi
15512
15513		CFLAGS="$CFLAGS -Wimplicit"
15514
15515		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
15516$as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
15517		cacheid=xorg_cv_cc_flag__Wimplicit
15518		if eval \${$cacheid+:} false; then :
15519  $as_echo_n "(cached) " >&6
15520else
15521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15522/* end confdefs.h.  */
15523int i;
15524int
15525main ()
15526{
15527
15528  ;
15529  return 0;
15530}
15531_ACEOF
15532if ac_fn_c_try_link "$LINENO"; then :
15533  eval $cacheid=yes
15534else
15535  eval $cacheid=no
15536fi
15537rm -f core conftest.err conftest.$ac_objext \
15538    conftest$ac_exeext conftest.$ac_ext
15539fi
15540
15541
15542		CFLAGS="$xorg_testset_save_CFLAGS"
15543
15544		eval supported=\$$cacheid
15545		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15546$as_echo "$supported" >&6; }
15547		if test "$supported" = "yes" ; then
15548			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15549			found="yes"
15550		fi
15551	fi
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567xorg_testset_save_CFLAGS="$CFLAGS"
15568
15569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15570	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15571	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15572$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15573if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15574  $as_echo_n "(cached) " >&6
15575else
15576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15577/* end confdefs.h.  */
15578int i;
15579_ACEOF
15580if ac_fn_c_try_compile "$LINENO"; then :
15581  xorg_cv_cc_flag_unknown_warning_option=yes
15582else
15583  xorg_cv_cc_flag_unknown_warning_option=no
15584fi
15585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15586fi
15587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15588$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15589	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15590	CFLAGS="$xorg_testset_save_CFLAGS"
15591fi
15592
15593if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15594	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15595		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15596	fi
15597	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15598	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15599$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15600if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15601  $as_echo_n "(cached) " >&6
15602else
15603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15604/* end confdefs.h.  */
15605int i;
15606_ACEOF
15607if ac_fn_c_try_compile "$LINENO"; then :
15608  xorg_cv_cc_flag_unused_command_line_argument=yes
15609else
15610  xorg_cv_cc_flag_unused_command_line_argument=no
15611fi
15612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15613fi
15614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15615$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15616	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15617	CFLAGS="$xorg_testset_save_CFLAGS"
15618fi
15619
15620found="no"
15621
15622	if test $found = "no" ; then
15623		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15624			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15625		fi
15626
15627		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15628			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15629		fi
15630
15631		CFLAGS="$CFLAGS -Wnonnull"
15632
15633		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
15634$as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
15635		cacheid=xorg_cv_cc_flag__Wnonnull
15636		if eval \${$cacheid+:} false; then :
15637  $as_echo_n "(cached) " >&6
15638else
15639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15640/* end confdefs.h.  */
15641int i;
15642int
15643main ()
15644{
15645
15646  ;
15647  return 0;
15648}
15649_ACEOF
15650if ac_fn_c_try_link "$LINENO"; then :
15651  eval $cacheid=yes
15652else
15653  eval $cacheid=no
15654fi
15655rm -f core conftest.err conftest.$ac_objext \
15656    conftest$ac_exeext conftest.$ac_ext
15657fi
15658
15659
15660		CFLAGS="$xorg_testset_save_CFLAGS"
15661
15662		eval supported=\$$cacheid
15663		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15664$as_echo "$supported" >&6; }
15665		if test "$supported" = "yes" ; then
15666			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15667			found="yes"
15668		fi
15669	fi
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685xorg_testset_save_CFLAGS="$CFLAGS"
15686
15687if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15688	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15689	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15690$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15691if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15692  $as_echo_n "(cached) " >&6
15693else
15694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15695/* end confdefs.h.  */
15696int i;
15697_ACEOF
15698if ac_fn_c_try_compile "$LINENO"; then :
15699  xorg_cv_cc_flag_unknown_warning_option=yes
15700else
15701  xorg_cv_cc_flag_unknown_warning_option=no
15702fi
15703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15704fi
15705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15706$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15707	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15708	CFLAGS="$xorg_testset_save_CFLAGS"
15709fi
15710
15711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15712	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15713		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15714	fi
15715	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15716	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15717$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15718if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15719  $as_echo_n "(cached) " >&6
15720else
15721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15722/* end confdefs.h.  */
15723int i;
15724_ACEOF
15725if ac_fn_c_try_compile "$LINENO"; then :
15726  xorg_cv_cc_flag_unused_command_line_argument=yes
15727else
15728  xorg_cv_cc_flag_unused_command_line_argument=no
15729fi
15730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15731fi
15732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15733$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15734	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15735	CFLAGS="$xorg_testset_save_CFLAGS"
15736fi
15737
15738found="no"
15739
15740	if test $found = "no" ; then
15741		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15742			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15743		fi
15744
15745		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15746			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15747		fi
15748
15749		CFLAGS="$CFLAGS -Winit-self"
15750
15751		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
15752$as_echo_n "checking if $CC supports-Winit-self... " >&6; }
15753		cacheid=xorg_cv_cc_flag__Winit_self
15754		if eval \${$cacheid+:} false; then :
15755  $as_echo_n "(cached) " >&6
15756else
15757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15758/* end confdefs.h.  */
15759int i;
15760int
15761main ()
15762{
15763
15764  ;
15765  return 0;
15766}
15767_ACEOF
15768if ac_fn_c_try_link "$LINENO"; then :
15769  eval $cacheid=yes
15770else
15771  eval $cacheid=no
15772fi
15773rm -f core conftest.err conftest.$ac_objext \
15774    conftest$ac_exeext conftest.$ac_ext
15775fi
15776
15777
15778		CFLAGS="$xorg_testset_save_CFLAGS"
15779
15780		eval supported=\$$cacheid
15781		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15782$as_echo "$supported" >&6; }
15783		if test "$supported" = "yes" ; then
15784			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15785			found="yes"
15786		fi
15787	fi
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803xorg_testset_save_CFLAGS="$CFLAGS"
15804
15805if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15806	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15807	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15808$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15809if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15810  $as_echo_n "(cached) " >&6
15811else
15812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15813/* end confdefs.h.  */
15814int i;
15815_ACEOF
15816if ac_fn_c_try_compile "$LINENO"; then :
15817  xorg_cv_cc_flag_unknown_warning_option=yes
15818else
15819  xorg_cv_cc_flag_unknown_warning_option=no
15820fi
15821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15822fi
15823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15824$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15825	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15826	CFLAGS="$xorg_testset_save_CFLAGS"
15827fi
15828
15829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15830	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15831		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15832	fi
15833	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15834	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15835$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15836if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15837  $as_echo_n "(cached) " >&6
15838else
15839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15840/* end confdefs.h.  */
15841int i;
15842_ACEOF
15843if ac_fn_c_try_compile "$LINENO"; then :
15844  xorg_cv_cc_flag_unused_command_line_argument=yes
15845else
15846  xorg_cv_cc_flag_unused_command_line_argument=no
15847fi
15848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15849fi
15850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15851$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15852	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15853	CFLAGS="$xorg_testset_save_CFLAGS"
15854fi
15855
15856found="no"
15857
15858	if test $found = "no" ; then
15859		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15860			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15861		fi
15862
15863		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15864			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15865		fi
15866
15867		CFLAGS="$CFLAGS -Wmain"
15868
15869		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
15870$as_echo_n "checking if $CC supports-Wmain... " >&6; }
15871		cacheid=xorg_cv_cc_flag__Wmain
15872		if eval \${$cacheid+:} false; then :
15873  $as_echo_n "(cached) " >&6
15874else
15875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15876/* end confdefs.h.  */
15877int i;
15878int
15879main ()
15880{
15881
15882  ;
15883  return 0;
15884}
15885_ACEOF
15886if ac_fn_c_try_link "$LINENO"; then :
15887  eval $cacheid=yes
15888else
15889  eval $cacheid=no
15890fi
15891rm -f core conftest.err conftest.$ac_objext \
15892    conftest$ac_exeext conftest.$ac_ext
15893fi
15894
15895
15896		CFLAGS="$xorg_testset_save_CFLAGS"
15897
15898		eval supported=\$$cacheid
15899		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15900$as_echo "$supported" >&6; }
15901		if test "$supported" = "yes" ; then
15902			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15903			found="yes"
15904		fi
15905	fi
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921xorg_testset_save_CFLAGS="$CFLAGS"
15922
15923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15924	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15925	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15926$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15927if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15928  $as_echo_n "(cached) " >&6
15929else
15930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15931/* end confdefs.h.  */
15932int i;
15933_ACEOF
15934if ac_fn_c_try_compile "$LINENO"; then :
15935  xorg_cv_cc_flag_unknown_warning_option=yes
15936else
15937  xorg_cv_cc_flag_unknown_warning_option=no
15938fi
15939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15940fi
15941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15942$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15943	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15944	CFLAGS="$xorg_testset_save_CFLAGS"
15945fi
15946
15947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15948	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15949		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15950	fi
15951	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15952	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15953$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15954if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15955  $as_echo_n "(cached) " >&6
15956else
15957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15958/* end confdefs.h.  */
15959int i;
15960_ACEOF
15961if ac_fn_c_try_compile "$LINENO"; then :
15962  xorg_cv_cc_flag_unused_command_line_argument=yes
15963else
15964  xorg_cv_cc_flag_unused_command_line_argument=no
15965fi
15966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15967fi
15968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15969$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15970	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15971	CFLAGS="$xorg_testset_save_CFLAGS"
15972fi
15973
15974found="no"
15975
15976	if test $found = "no" ; then
15977		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15978			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15979		fi
15980
15981		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15982			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15983		fi
15984
15985		CFLAGS="$CFLAGS -Wmissing-braces"
15986
15987		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
15988$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
15989		cacheid=xorg_cv_cc_flag__Wmissing_braces
15990		if eval \${$cacheid+:} false; then :
15991  $as_echo_n "(cached) " >&6
15992else
15993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15994/* end confdefs.h.  */
15995int i;
15996int
15997main ()
15998{
15999
16000  ;
16001  return 0;
16002}
16003_ACEOF
16004if ac_fn_c_try_link "$LINENO"; then :
16005  eval $cacheid=yes
16006else
16007  eval $cacheid=no
16008fi
16009rm -f core conftest.err conftest.$ac_objext \
16010    conftest$ac_exeext conftest.$ac_ext
16011fi
16012
16013
16014		CFLAGS="$xorg_testset_save_CFLAGS"
16015
16016		eval supported=\$$cacheid
16017		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16018$as_echo "$supported" >&6; }
16019		if test "$supported" = "yes" ; then
16020			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16021			found="yes"
16022		fi
16023	fi
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039xorg_testset_save_CFLAGS="$CFLAGS"
16040
16041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16042	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16043	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16044$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16045if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16046  $as_echo_n "(cached) " >&6
16047else
16048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16049/* end confdefs.h.  */
16050int i;
16051_ACEOF
16052if ac_fn_c_try_compile "$LINENO"; then :
16053  xorg_cv_cc_flag_unknown_warning_option=yes
16054else
16055  xorg_cv_cc_flag_unknown_warning_option=no
16056fi
16057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16058fi
16059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16060$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16061	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16062	CFLAGS="$xorg_testset_save_CFLAGS"
16063fi
16064
16065if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16066	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16067		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16068	fi
16069	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16070	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16071$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16072if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16073  $as_echo_n "(cached) " >&6
16074else
16075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16076/* end confdefs.h.  */
16077int i;
16078_ACEOF
16079if ac_fn_c_try_compile "$LINENO"; then :
16080  xorg_cv_cc_flag_unused_command_line_argument=yes
16081else
16082  xorg_cv_cc_flag_unused_command_line_argument=no
16083fi
16084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16085fi
16086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16087$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16088	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16089	CFLAGS="$xorg_testset_save_CFLAGS"
16090fi
16091
16092found="no"
16093
16094	if test $found = "no" ; then
16095		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16096			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16097		fi
16098
16099		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16100			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16101		fi
16102
16103		CFLAGS="$CFLAGS -Wsequence-point"
16104
16105		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
16106$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
16107		cacheid=xorg_cv_cc_flag__Wsequence_point
16108		if eval \${$cacheid+:} false; then :
16109  $as_echo_n "(cached) " >&6
16110else
16111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16112/* end confdefs.h.  */
16113int i;
16114int
16115main ()
16116{
16117
16118  ;
16119  return 0;
16120}
16121_ACEOF
16122if ac_fn_c_try_link "$LINENO"; then :
16123  eval $cacheid=yes
16124else
16125  eval $cacheid=no
16126fi
16127rm -f core conftest.err conftest.$ac_objext \
16128    conftest$ac_exeext conftest.$ac_ext
16129fi
16130
16131
16132		CFLAGS="$xorg_testset_save_CFLAGS"
16133
16134		eval supported=\$$cacheid
16135		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16136$as_echo "$supported" >&6; }
16137		if test "$supported" = "yes" ; then
16138			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16139			found="yes"
16140		fi
16141	fi
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157xorg_testset_save_CFLAGS="$CFLAGS"
16158
16159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16160	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16161	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16162$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16163if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16164  $as_echo_n "(cached) " >&6
16165else
16166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16167/* end confdefs.h.  */
16168int i;
16169_ACEOF
16170if ac_fn_c_try_compile "$LINENO"; then :
16171  xorg_cv_cc_flag_unknown_warning_option=yes
16172else
16173  xorg_cv_cc_flag_unknown_warning_option=no
16174fi
16175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16176fi
16177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16178$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16179	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16180	CFLAGS="$xorg_testset_save_CFLAGS"
16181fi
16182
16183if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16184	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16185		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16186	fi
16187	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16188	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16189$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16190if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16191  $as_echo_n "(cached) " >&6
16192else
16193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16194/* end confdefs.h.  */
16195int i;
16196_ACEOF
16197if ac_fn_c_try_compile "$LINENO"; then :
16198  xorg_cv_cc_flag_unused_command_line_argument=yes
16199else
16200  xorg_cv_cc_flag_unused_command_line_argument=no
16201fi
16202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16203fi
16204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16205$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16206	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16207	CFLAGS="$xorg_testset_save_CFLAGS"
16208fi
16209
16210found="no"
16211
16212	if test $found = "no" ; then
16213		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16214			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16215		fi
16216
16217		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16218			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16219		fi
16220
16221		CFLAGS="$CFLAGS -Wreturn-type"
16222
16223		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
16224$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
16225		cacheid=xorg_cv_cc_flag__Wreturn_type
16226		if eval \${$cacheid+:} false; then :
16227  $as_echo_n "(cached) " >&6
16228else
16229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230/* end confdefs.h.  */
16231int i;
16232int
16233main ()
16234{
16235
16236  ;
16237  return 0;
16238}
16239_ACEOF
16240if ac_fn_c_try_link "$LINENO"; then :
16241  eval $cacheid=yes
16242else
16243  eval $cacheid=no
16244fi
16245rm -f core conftest.err conftest.$ac_objext \
16246    conftest$ac_exeext conftest.$ac_ext
16247fi
16248
16249
16250		CFLAGS="$xorg_testset_save_CFLAGS"
16251
16252		eval supported=\$$cacheid
16253		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16254$as_echo "$supported" >&6; }
16255		if test "$supported" = "yes" ; then
16256			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16257			found="yes"
16258		fi
16259	fi
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275xorg_testset_save_CFLAGS="$CFLAGS"
16276
16277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16278	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16279	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16280$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16281if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16282  $as_echo_n "(cached) " >&6
16283else
16284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16285/* end confdefs.h.  */
16286int i;
16287_ACEOF
16288if ac_fn_c_try_compile "$LINENO"; then :
16289  xorg_cv_cc_flag_unknown_warning_option=yes
16290else
16291  xorg_cv_cc_flag_unknown_warning_option=no
16292fi
16293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16294fi
16295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16296$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16297	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16298	CFLAGS="$xorg_testset_save_CFLAGS"
16299fi
16300
16301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16302	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16303		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16304	fi
16305	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16306	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16307$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16308if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16309  $as_echo_n "(cached) " >&6
16310else
16311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16312/* end confdefs.h.  */
16313int i;
16314_ACEOF
16315if ac_fn_c_try_compile "$LINENO"; then :
16316  xorg_cv_cc_flag_unused_command_line_argument=yes
16317else
16318  xorg_cv_cc_flag_unused_command_line_argument=no
16319fi
16320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16321fi
16322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16323$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16324	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16325	CFLAGS="$xorg_testset_save_CFLAGS"
16326fi
16327
16328found="no"
16329
16330	if test $found = "no" ; then
16331		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16332			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16333		fi
16334
16335		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16336			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16337		fi
16338
16339		CFLAGS="$CFLAGS -Wtrigraphs"
16340
16341		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
16342$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
16343		cacheid=xorg_cv_cc_flag__Wtrigraphs
16344		if eval \${$cacheid+:} false; then :
16345  $as_echo_n "(cached) " >&6
16346else
16347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16348/* end confdefs.h.  */
16349int i;
16350int
16351main ()
16352{
16353
16354  ;
16355  return 0;
16356}
16357_ACEOF
16358if ac_fn_c_try_link "$LINENO"; then :
16359  eval $cacheid=yes
16360else
16361  eval $cacheid=no
16362fi
16363rm -f core conftest.err conftest.$ac_objext \
16364    conftest$ac_exeext conftest.$ac_ext
16365fi
16366
16367
16368		CFLAGS="$xorg_testset_save_CFLAGS"
16369
16370		eval supported=\$$cacheid
16371		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16372$as_echo "$supported" >&6; }
16373		if test "$supported" = "yes" ; then
16374			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16375			found="yes"
16376		fi
16377	fi
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393xorg_testset_save_CFLAGS="$CFLAGS"
16394
16395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16396	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16397	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16398$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16399if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16400  $as_echo_n "(cached) " >&6
16401else
16402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16403/* end confdefs.h.  */
16404int i;
16405_ACEOF
16406if ac_fn_c_try_compile "$LINENO"; then :
16407  xorg_cv_cc_flag_unknown_warning_option=yes
16408else
16409  xorg_cv_cc_flag_unknown_warning_option=no
16410fi
16411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16412fi
16413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16414$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16415	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16416	CFLAGS="$xorg_testset_save_CFLAGS"
16417fi
16418
16419if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16420	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16421		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16422	fi
16423	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16424	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16425$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16426if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16427  $as_echo_n "(cached) " >&6
16428else
16429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16430/* end confdefs.h.  */
16431int i;
16432_ACEOF
16433if ac_fn_c_try_compile "$LINENO"; then :
16434  xorg_cv_cc_flag_unused_command_line_argument=yes
16435else
16436  xorg_cv_cc_flag_unused_command_line_argument=no
16437fi
16438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16439fi
16440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16441$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16442	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16443	CFLAGS="$xorg_testset_save_CFLAGS"
16444fi
16445
16446found="no"
16447
16448	if test $found = "no" ; then
16449		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16450			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16451		fi
16452
16453		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16454			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16455		fi
16456
16457		CFLAGS="$CFLAGS -Warray-bounds"
16458
16459		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
16460$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
16461		cacheid=xorg_cv_cc_flag__Warray_bounds
16462		if eval \${$cacheid+:} false; then :
16463  $as_echo_n "(cached) " >&6
16464else
16465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16466/* end confdefs.h.  */
16467int i;
16468int
16469main ()
16470{
16471
16472  ;
16473  return 0;
16474}
16475_ACEOF
16476if ac_fn_c_try_link "$LINENO"; then :
16477  eval $cacheid=yes
16478else
16479  eval $cacheid=no
16480fi
16481rm -f core conftest.err conftest.$ac_objext \
16482    conftest$ac_exeext conftest.$ac_ext
16483fi
16484
16485
16486		CFLAGS="$xorg_testset_save_CFLAGS"
16487
16488		eval supported=\$$cacheid
16489		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16490$as_echo "$supported" >&6; }
16491		if test "$supported" = "yes" ; then
16492			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16493			found="yes"
16494		fi
16495	fi
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511xorg_testset_save_CFLAGS="$CFLAGS"
16512
16513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16514	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16515	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16516$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16517if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16518  $as_echo_n "(cached) " >&6
16519else
16520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16521/* end confdefs.h.  */
16522int i;
16523_ACEOF
16524if ac_fn_c_try_compile "$LINENO"; then :
16525  xorg_cv_cc_flag_unknown_warning_option=yes
16526else
16527  xorg_cv_cc_flag_unknown_warning_option=no
16528fi
16529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16530fi
16531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16532$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16533	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16534	CFLAGS="$xorg_testset_save_CFLAGS"
16535fi
16536
16537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16538	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16539		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16540	fi
16541	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16542	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16543$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16544if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16545  $as_echo_n "(cached) " >&6
16546else
16547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16548/* end confdefs.h.  */
16549int i;
16550_ACEOF
16551if ac_fn_c_try_compile "$LINENO"; then :
16552  xorg_cv_cc_flag_unused_command_line_argument=yes
16553else
16554  xorg_cv_cc_flag_unused_command_line_argument=no
16555fi
16556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16557fi
16558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16559$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16560	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16561	CFLAGS="$xorg_testset_save_CFLAGS"
16562fi
16563
16564found="no"
16565
16566	if test $found = "no" ; then
16567		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16568			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16569		fi
16570
16571		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16572			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16573		fi
16574
16575		CFLAGS="$CFLAGS -Wwrite-strings"
16576
16577		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
16578$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
16579		cacheid=xorg_cv_cc_flag__Wwrite_strings
16580		if eval \${$cacheid+:} false; then :
16581  $as_echo_n "(cached) " >&6
16582else
16583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16584/* end confdefs.h.  */
16585int i;
16586int
16587main ()
16588{
16589
16590  ;
16591  return 0;
16592}
16593_ACEOF
16594if ac_fn_c_try_link "$LINENO"; then :
16595  eval $cacheid=yes
16596else
16597  eval $cacheid=no
16598fi
16599rm -f core conftest.err conftest.$ac_objext \
16600    conftest$ac_exeext conftest.$ac_ext
16601fi
16602
16603
16604		CFLAGS="$xorg_testset_save_CFLAGS"
16605
16606		eval supported=\$$cacheid
16607		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16608$as_echo "$supported" >&6; }
16609		if test "$supported" = "yes" ; then
16610			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16611			found="yes"
16612		fi
16613	fi
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629xorg_testset_save_CFLAGS="$CFLAGS"
16630
16631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16632	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16633	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16634$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16635if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16636  $as_echo_n "(cached) " >&6
16637else
16638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639/* end confdefs.h.  */
16640int i;
16641_ACEOF
16642if ac_fn_c_try_compile "$LINENO"; then :
16643  xorg_cv_cc_flag_unknown_warning_option=yes
16644else
16645  xorg_cv_cc_flag_unknown_warning_option=no
16646fi
16647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16648fi
16649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16650$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16651	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16652	CFLAGS="$xorg_testset_save_CFLAGS"
16653fi
16654
16655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16656	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16657		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16658	fi
16659	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16660	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16661$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16662if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16663  $as_echo_n "(cached) " >&6
16664else
16665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16666/* end confdefs.h.  */
16667int i;
16668_ACEOF
16669if ac_fn_c_try_compile "$LINENO"; then :
16670  xorg_cv_cc_flag_unused_command_line_argument=yes
16671else
16672  xorg_cv_cc_flag_unused_command_line_argument=no
16673fi
16674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16675fi
16676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16677$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16678	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16679	CFLAGS="$xorg_testset_save_CFLAGS"
16680fi
16681
16682found="no"
16683
16684	if test $found = "no" ; then
16685		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16686			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16687		fi
16688
16689		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16690			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16691		fi
16692
16693		CFLAGS="$CFLAGS -Waddress"
16694
16695		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
16696$as_echo_n "checking if $CC supports-Waddress... " >&6; }
16697		cacheid=xorg_cv_cc_flag__Waddress
16698		if eval \${$cacheid+:} false; then :
16699  $as_echo_n "(cached) " >&6
16700else
16701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16702/* end confdefs.h.  */
16703int i;
16704int
16705main ()
16706{
16707
16708  ;
16709  return 0;
16710}
16711_ACEOF
16712if ac_fn_c_try_link "$LINENO"; then :
16713  eval $cacheid=yes
16714else
16715  eval $cacheid=no
16716fi
16717rm -f core conftest.err conftest.$ac_objext \
16718    conftest$ac_exeext conftest.$ac_ext
16719fi
16720
16721
16722		CFLAGS="$xorg_testset_save_CFLAGS"
16723
16724		eval supported=\$$cacheid
16725		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16726$as_echo "$supported" >&6; }
16727		if test "$supported" = "yes" ; then
16728			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16729			found="yes"
16730		fi
16731	fi
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747xorg_testset_save_CFLAGS="$CFLAGS"
16748
16749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16750	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16751	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16752$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16753if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16754  $as_echo_n "(cached) " >&6
16755else
16756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16757/* end confdefs.h.  */
16758int i;
16759_ACEOF
16760if ac_fn_c_try_compile "$LINENO"; then :
16761  xorg_cv_cc_flag_unknown_warning_option=yes
16762else
16763  xorg_cv_cc_flag_unknown_warning_option=no
16764fi
16765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16766fi
16767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16768$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16769	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16770	CFLAGS="$xorg_testset_save_CFLAGS"
16771fi
16772
16773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16774	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16775		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16776	fi
16777	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16778	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16779$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16780if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16781  $as_echo_n "(cached) " >&6
16782else
16783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16784/* end confdefs.h.  */
16785int i;
16786_ACEOF
16787if ac_fn_c_try_compile "$LINENO"; then :
16788  xorg_cv_cc_flag_unused_command_line_argument=yes
16789else
16790  xorg_cv_cc_flag_unused_command_line_argument=no
16791fi
16792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16793fi
16794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16795$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16796	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16797	CFLAGS="$xorg_testset_save_CFLAGS"
16798fi
16799
16800found="no"
16801
16802	if test $found = "no" ; then
16803		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16804			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16805		fi
16806
16807		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16808			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16809		fi
16810
16811		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16812
16813		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
16814$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
16815		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
16816		if eval \${$cacheid+:} false; then :
16817  $as_echo_n "(cached) " >&6
16818else
16819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16820/* end confdefs.h.  */
16821int i;
16822int
16823main ()
16824{
16825
16826  ;
16827  return 0;
16828}
16829_ACEOF
16830if ac_fn_c_try_link "$LINENO"; then :
16831  eval $cacheid=yes
16832else
16833  eval $cacheid=no
16834fi
16835rm -f core conftest.err conftest.$ac_objext \
16836    conftest$ac_exeext conftest.$ac_ext
16837fi
16838
16839
16840		CFLAGS="$xorg_testset_save_CFLAGS"
16841
16842		eval supported=\$$cacheid
16843		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16844$as_echo "$supported" >&6; }
16845		if test "$supported" = "yes" ; then
16846			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16847			found="yes"
16848		fi
16849	fi
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865xorg_testset_save_CFLAGS="$CFLAGS"
16866
16867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16868	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16869	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16870$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16871if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16872  $as_echo_n "(cached) " >&6
16873else
16874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16875/* end confdefs.h.  */
16876int i;
16877_ACEOF
16878if ac_fn_c_try_compile "$LINENO"; then :
16879  xorg_cv_cc_flag_unknown_warning_option=yes
16880else
16881  xorg_cv_cc_flag_unknown_warning_option=no
16882fi
16883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16884fi
16885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16886$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16887	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16888	CFLAGS="$xorg_testset_save_CFLAGS"
16889fi
16890
16891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16892	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16893		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16894	fi
16895	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16896	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16897$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16898if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16899  $as_echo_n "(cached) " >&6
16900else
16901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16902/* end confdefs.h.  */
16903int i;
16904_ACEOF
16905if ac_fn_c_try_compile "$LINENO"; then :
16906  xorg_cv_cc_flag_unused_command_line_argument=yes
16907else
16908  xorg_cv_cc_flag_unused_command_line_argument=no
16909fi
16910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16911fi
16912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16913$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16914	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16915	CFLAGS="$xorg_testset_save_CFLAGS"
16916fi
16917
16918found="no"
16919
16920	if test $found = "no" ; then
16921		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16922			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16923		fi
16924
16925		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16926			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16927		fi
16928
16929		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16930
16931		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
16932$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
16933		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
16934		if eval \${$cacheid+:} false; then :
16935  $as_echo_n "(cached) " >&6
16936else
16937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938/* end confdefs.h.  */
16939int i;
16940int
16941main ()
16942{
16943
16944  ;
16945  return 0;
16946}
16947_ACEOF
16948if ac_fn_c_try_link "$LINENO"; then :
16949  eval $cacheid=yes
16950else
16951  eval $cacheid=no
16952fi
16953rm -f core conftest.err conftest.$ac_objext \
16954    conftest$ac_exeext conftest.$ac_ext
16955fi
16956
16957
16958		CFLAGS="$xorg_testset_save_CFLAGS"
16959
16960		eval supported=\$$cacheid
16961		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16962$as_echo "$supported" >&6; }
16963		if test "$supported" = "yes" ; then
16964			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
16965			found="yes"
16966		fi
16967	fi
16968
16969
16970fi
16971
16972
16973
16974
16975
16976
16977
16978		CWARNFLAGS="$BASE_CFLAGS"
16979		if  test "x$GCC" = xyes ; then
16980		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
16981		fi
16982
16983
16984
16985
16986
16987
16988
16989
16990# Check whether --enable-strict-compilation was given.
16991if test "${enable_strict_compilation+set}" = set; then :
16992  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
16993else
16994  STRICT_COMPILE=no
16995fi
16996
16997
16998
16999
17000
17001
17002STRICT_CFLAGS=""
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016xorg_testset_save_CFLAGS="$CFLAGS"
17017
17018if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17019	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17020	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17021$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17022if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17023  $as_echo_n "(cached) " >&6
17024else
17025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17026/* end confdefs.h.  */
17027int i;
17028_ACEOF
17029if ac_fn_c_try_compile "$LINENO"; then :
17030  xorg_cv_cc_flag_unknown_warning_option=yes
17031else
17032  xorg_cv_cc_flag_unknown_warning_option=no
17033fi
17034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17035fi
17036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17037$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17038	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17039	CFLAGS="$xorg_testset_save_CFLAGS"
17040fi
17041
17042if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17043	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17044		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17045	fi
17046	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17047	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17048$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17049if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17050  $as_echo_n "(cached) " >&6
17051else
17052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17053/* end confdefs.h.  */
17054int i;
17055_ACEOF
17056if ac_fn_c_try_compile "$LINENO"; then :
17057  xorg_cv_cc_flag_unused_command_line_argument=yes
17058else
17059  xorg_cv_cc_flag_unused_command_line_argument=no
17060fi
17061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17062fi
17063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17064$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17065	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17066	CFLAGS="$xorg_testset_save_CFLAGS"
17067fi
17068
17069found="no"
17070
17071	if test $found = "no" ; then
17072		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17073			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17074		fi
17075
17076		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17077			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17078		fi
17079
17080		CFLAGS="$CFLAGS -pedantic"
17081
17082		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
17083$as_echo_n "checking if $CC supports-pedantic... " >&6; }
17084		cacheid=xorg_cv_cc_flag__pedantic
17085		if eval \${$cacheid+:} false; then :
17086  $as_echo_n "(cached) " >&6
17087else
17088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089/* end confdefs.h.  */
17090int i;
17091int
17092main ()
17093{
17094
17095  ;
17096  return 0;
17097}
17098_ACEOF
17099if ac_fn_c_try_link "$LINENO"; then :
17100  eval $cacheid=yes
17101else
17102  eval $cacheid=no
17103fi
17104rm -f core conftest.err conftest.$ac_objext \
17105    conftest$ac_exeext conftest.$ac_ext
17106fi
17107
17108
17109		CFLAGS="$xorg_testset_save_CFLAGS"
17110
17111		eval supported=\$$cacheid
17112		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17113$as_echo "$supported" >&6; }
17114		if test "$supported" = "yes" ; then
17115			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17116			found="yes"
17117		fi
17118	fi
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134xorg_testset_save_CFLAGS="$CFLAGS"
17135
17136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17137	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17138	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17139$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17140if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17141  $as_echo_n "(cached) " >&6
17142else
17143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17144/* end confdefs.h.  */
17145int i;
17146_ACEOF
17147if ac_fn_c_try_compile "$LINENO"; then :
17148  xorg_cv_cc_flag_unknown_warning_option=yes
17149else
17150  xorg_cv_cc_flag_unknown_warning_option=no
17151fi
17152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17153fi
17154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17155$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17156	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17157	CFLAGS="$xorg_testset_save_CFLAGS"
17158fi
17159
17160if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17161	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17162		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17163	fi
17164	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17165	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17166$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17167if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17168  $as_echo_n "(cached) " >&6
17169else
17170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17171/* end confdefs.h.  */
17172int i;
17173_ACEOF
17174if ac_fn_c_try_compile "$LINENO"; then :
17175  xorg_cv_cc_flag_unused_command_line_argument=yes
17176else
17177  xorg_cv_cc_flag_unused_command_line_argument=no
17178fi
17179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17180fi
17181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17182$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17183	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17184	CFLAGS="$xorg_testset_save_CFLAGS"
17185fi
17186
17187found="no"
17188
17189	if test $found = "no" ; then
17190		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17191			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17192		fi
17193
17194		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17195			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17196		fi
17197
17198		CFLAGS="$CFLAGS -Werror"
17199
17200		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
17201$as_echo_n "checking if $CC supports-Werror... " >&6; }
17202		cacheid=xorg_cv_cc_flag__Werror
17203		if eval \${$cacheid+:} false; then :
17204  $as_echo_n "(cached) " >&6
17205else
17206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17207/* end confdefs.h.  */
17208int i;
17209int
17210main ()
17211{
17212
17213  ;
17214  return 0;
17215}
17216_ACEOF
17217if ac_fn_c_try_link "$LINENO"; then :
17218  eval $cacheid=yes
17219else
17220  eval $cacheid=no
17221fi
17222rm -f core conftest.err conftest.$ac_objext \
17223    conftest$ac_exeext conftest.$ac_ext
17224fi
17225
17226
17227		CFLAGS="$xorg_testset_save_CFLAGS"
17228
17229		eval supported=\$$cacheid
17230		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17231$as_echo "$supported" >&6; }
17232		if test "$supported" = "yes" ; then
17233			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17234			found="yes"
17235		fi
17236	fi
17237
17238	if test $found = "no" ; then
17239		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17240			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17241		fi
17242
17243		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17244			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17245		fi
17246
17247		CFLAGS="$CFLAGS -errwarn"
17248
17249		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
17250$as_echo_n "checking if $CC supports-errwarn... " >&6; }
17251		cacheid=xorg_cv_cc_flag__errwarn
17252		if eval \${$cacheid+:} false; then :
17253  $as_echo_n "(cached) " >&6
17254else
17255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256/* end confdefs.h.  */
17257int i;
17258int
17259main ()
17260{
17261
17262  ;
17263  return 0;
17264}
17265_ACEOF
17266if ac_fn_c_try_link "$LINENO"; then :
17267  eval $cacheid=yes
17268else
17269  eval $cacheid=no
17270fi
17271rm -f core conftest.err conftest.$ac_objext \
17272    conftest$ac_exeext conftest.$ac_ext
17273fi
17274
17275
17276		CFLAGS="$xorg_testset_save_CFLAGS"
17277
17278		eval supported=\$$cacheid
17279		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17280$as_echo "$supported" >&6; }
17281		if test "$supported" = "yes" ; then
17282			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17283			found="yes"
17284		fi
17285	fi
17286
17287
17288
17289# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17290# activate it with -Werror, so we add it here explicitly.
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304xorg_testset_save_CFLAGS="$CFLAGS"
17305
17306if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17307	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17308	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17309$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17310if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17311  $as_echo_n "(cached) " >&6
17312else
17313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17314/* end confdefs.h.  */
17315int i;
17316_ACEOF
17317if ac_fn_c_try_compile "$LINENO"; then :
17318  xorg_cv_cc_flag_unknown_warning_option=yes
17319else
17320  xorg_cv_cc_flag_unknown_warning_option=no
17321fi
17322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17323fi
17324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17325$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17326	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17327	CFLAGS="$xorg_testset_save_CFLAGS"
17328fi
17329
17330if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17331	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17332		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17333	fi
17334	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17335	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17336$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17337if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17338  $as_echo_n "(cached) " >&6
17339else
17340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17341/* end confdefs.h.  */
17342int i;
17343_ACEOF
17344if ac_fn_c_try_compile "$LINENO"; then :
17345  xorg_cv_cc_flag_unused_command_line_argument=yes
17346else
17347  xorg_cv_cc_flag_unused_command_line_argument=no
17348fi
17349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17350fi
17351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17352$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17353	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17354	CFLAGS="$xorg_testset_save_CFLAGS"
17355fi
17356
17357found="no"
17358
17359	if test $found = "no" ; then
17360		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17361			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17362		fi
17363
17364		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17365			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17366		fi
17367
17368		CFLAGS="$CFLAGS -Werror=attributes"
17369
17370		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
17371$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
17372		cacheid=xorg_cv_cc_flag__Werror_attributes
17373		if eval \${$cacheid+:} false; then :
17374  $as_echo_n "(cached) " >&6
17375else
17376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17377/* end confdefs.h.  */
17378int i;
17379int
17380main ()
17381{
17382
17383  ;
17384  return 0;
17385}
17386_ACEOF
17387if ac_fn_c_try_link "$LINENO"; then :
17388  eval $cacheid=yes
17389else
17390  eval $cacheid=no
17391fi
17392rm -f core conftest.err conftest.$ac_objext \
17393    conftest$ac_exeext conftest.$ac_ext
17394fi
17395
17396
17397		CFLAGS="$xorg_testset_save_CFLAGS"
17398
17399		eval supported=\$$cacheid
17400		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17401$as_echo "$supported" >&6; }
17402		if test "$supported" = "yes" ; then
17403			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17404			found="yes"
17405		fi
17406	fi
17407
17408
17409
17410if test "x$STRICT_COMPILE" = "xyes"; then
17411    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17412    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17413fi
17414
17415
17416
17417
17418
17419
17420cat >>confdefs.h <<_ACEOF
17421#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17422_ACEOF
17423
17424	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17425	if test "x$PVM" = "x"; then
17426		PVM="0"
17427	fi
17428
17429cat >>confdefs.h <<_ACEOF
17430#define PACKAGE_VERSION_MINOR $PVM
17431_ACEOF
17432
17433	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17434	if test "x$PVP" = "x"; then
17435		PVP="0"
17436	fi
17437
17438cat >>confdefs.h <<_ACEOF
17439#define PACKAGE_VERSION_PATCHLEVEL $PVP
17440_ACEOF
17441
17442
17443
17444CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17445mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17446|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17447echo 'git directory not found: installing possibly empty changelog.' >&2)"
17448
17449
17450
17451
17452macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17453INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17454mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17455|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17456echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17457
17458
17459
17460
17461
17462
17463if test x$APP_MAN_SUFFIX = x    ; then
17464    APP_MAN_SUFFIX=1
17465fi
17466if test x$APP_MAN_DIR = x    ; then
17467    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17468fi
17469
17470if test x$LIB_MAN_SUFFIX = x    ; then
17471    LIB_MAN_SUFFIX=3
17472fi
17473if test x$LIB_MAN_DIR = x    ; then
17474    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17475fi
17476
17477if test x$FILE_MAN_SUFFIX = x    ; then
17478    case $host_os in
17479	solaris*)	FILE_MAN_SUFFIX=4  ;;
17480	*)		FILE_MAN_SUFFIX=5  ;;
17481    esac
17482fi
17483if test x$FILE_MAN_DIR = x    ; then
17484    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17485fi
17486
17487if test x$MISC_MAN_SUFFIX = x    ; then
17488    case $host_os in
17489	solaris*)	MISC_MAN_SUFFIX=5  ;;
17490	*)		MISC_MAN_SUFFIX=7  ;;
17491    esac
17492fi
17493if test x$MISC_MAN_DIR = x    ; then
17494    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17495fi
17496
17497if test x$DRIVER_MAN_SUFFIX = x    ; then
17498    case $host_os in
17499	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
17500	*)		DRIVER_MAN_SUFFIX=4  ;;
17501    esac
17502fi
17503if test x$DRIVER_MAN_DIR = x    ; then
17504    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17505fi
17506
17507if test x$ADMIN_MAN_SUFFIX = x    ; then
17508    case $host_os in
17509	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
17510	*)		ADMIN_MAN_SUFFIX=8  ;;
17511    esac
17512fi
17513if test x$ADMIN_MAN_DIR = x    ; then
17514    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17515fi
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531XORG_MAN_PAGE="X Version 11"
17532
17533MAN_SUBSTS="\
17534	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17535	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17536	-e 's|__xservername__|Xorg|g' \
17537	-e 's|__xconfigfile__|xorg.conf|g' \
17538	-e 's|__projectroot__|\$(prefix)|g' \
17539	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
17540	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17541	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17542	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17543	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17544	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17545	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17546
17547
17548
17549# Check whether --enable-silent-rules was given.
17550if test "${enable_silent_rules+set}" = set; then :
17551  enableval=$enable_silent_rules;
17552fi
17553
17554case $enable_silent_rules in # (((
17555  yes) AM_DEFAULT_VERBOSITY=0;;
17556   no) AM_DEFAULT_VERBOSITY=1;;
17557    *) AM_DEFAULT_VERBOSITY=0;;
17558esac
17559am_make=${MAKE-make}
17560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17561$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17562if ${am_cv_make_support_nested_variables+:} false; then :
17563  $as_echo_n "(cached) " >&6
17564else
17565  if $as_echo 'TRUE=$(BAR$(V))
17566BAR0=false
17567BAR1=true
17568V=1
17569am__doit:
17570	@$(TRUE)
17571.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17572  am_cv_make_support_nested_variables=yes
17573else
17574  am_cv_make_support_nested_variables=no
17575fi
17576fi
17577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17578$as_echo "$am_cv_make_support_nested_variables" >&6; }
17579if test $am_cv_make_support_nested_variables = yes; then
17580    AM_V='$(V)'
17581  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17582else
17583  AM_V=$AM_DEFAULT_VERBOSITY
17584  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17585fi
17586AM_BACKSLASH='\'
17587
17588
17589
17590
17591
17592
17593
17594# Check whether --with-lint was given.
17595if test "${with_lint+set}" = set; then :
17596  withval=$with_lint; use_lint=$withval
17597else
17598  use_lint=no
17599fi
17600
17601
17602# Obtain platform specific info like program name and options
17603# The lint program on FreeBSD and NetBSD is different from the one on Solaris
17604case $host_os in
17605  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
17606	lint_name=splint
17607	lint_options="-badflag"
17608	;;
17609  *freebsd* | *netbsd*)
17610	lint_name=lint
17611	lint_options="-u -b"
17612	;;
17613  *solaris*)
17614	lint_name=lint
17615	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
17616	;;
17617esac
17618
17619# Test for the presence of the program (either guessed by the code or spelled out by the user)
17620if test "x$use_lint" = x"yes" ; then
17621   # Extract the first word of "$lint_name", so it can be a program name with args.
17622set dummy $lint_name; ac_word=$2
17623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17624$as_echo_n "checking for $ac_word... " >&6; }
17625if ${ac_cv_path_LINT+:} false; then :
17626  $as_echo_n "(cached) " >&6
17627else
17628  case $LINT in
17629  [\\/]* | ?:[\\/]*)
17630  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
17631  ;;
17632  *)
17633  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17634for as_dir in $PATH
17635do
17636  IFS=$as_save_IFS
17637  test -z "$as_dir" && as_dir=.
17638    for ac_exec_ext in '' $ac_executable_extensions; do
17639  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17640    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
17641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17642    break 2
17643  fi
17644done
17645  done
17646IFS=$as_save_IFS
17647
17648  ;;
17649esac
17650fi
17651LINT=$ac_cv_path_LINT
17652if test -n "$LINT"; then
17653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
17654$as_echo "$LINT" >&6; }
17655else
17656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17657$as_echo "no" >&6; }
17658fi
17659
17660
17661   if test "x$LINT" = "x"; then
17662        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
17663   fi
17664elif test "x$use_lint" = x"no" ; then
17665   if test "x$LINT" != "x"; then
17666      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
17667$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
17668   fi
17669else
17670   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
17671fi
17672
17673# User supplied flags override default flags
17674if test "x$LINT_FLAGS" != "x"; then
17675   lint_options=$LINT_FLAGS
17676fi
17677
17678LINT_FLAGS=$lint_options
17679
17680 if test "x$LINT" != x; then
17681  LINT_TRUE=
17682  LINT_FALSE='#'
17683else
17684  LINT_TRUE='#'
17685  LINT_FALSE=
17686fi
17687
17688
17689
17690
17691# Obtain compiler/linker options from server and required extensions
17692
17693pkg_failed=no
17694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17695$as_echo_n "checking for XORG... " >&6; }
17696
17697if test -n "$XORG_CFLAGS"; then
17698    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17699 elif test -n "$PKG_CONFIG"; then
17700    if test -n "$PKG_CONFIG" && \
17701    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7 xproto inputproto\""; } >&5
17702  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7 xproto inputproto") 2>&5
17703  ac_status=$?
17704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17705  test $ac_status = 0; }; then
17706  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.7 xproto inputproto" 2>/dev/null`
17707		      test "x$?" != "x0" && pkg_failed=yes
17708else
17709  pkg_failed=yes
17710fi
17711 else
17712    pkg_failed=untried
17713fi
17714if test -n "$XORG_LIBS"; then
17715    pkg_cv_XORG_LIBS="$XORG_LIBS"
17716 elif test -n "$PKG_CONFIG"; then
17717    if test -n "$PKG_CONFIG" && \
17718    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7 xproto inputproto\""; } >&5
17719  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7 xproto inputproto") 2>&5
17720  ac_status=$?
17721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17722  test $ac_status = 0; }; then
17723  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.7 xproto inputproto" 2>/dev/null`
17724		      test "x$?" != "x0" && pkg_failed=yes
17725else
17726  pkg_failed=yes
17727fi
17728 else
17729    pkg_failed=untried
17730fi
17731
17732
17733
17734if test $pkg_failed = yes; then
17735   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17736$as_echo "no" >&6; }
17737
17738if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17739        _pkg_short_errors_supported=yes
17740else
17741        _pkg_short_errors_supported=no
17742fi
17743        if test $_pkg_short_errors_supported = yes; then
17744	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.7 xproto inputproto" 2>&1`
17745        else
17746	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.7 xproto inputproto" 2>&1`
17747        fi
17748	# Put the nasty error message in config.log where it belongs
17749	echo "$XORG_PKG_ERRORS" >&5
17750
17751	as_fn_error $? "Package requirements (xorg-server >= 1.7 xproto inputproto) were not met:
17752
17753$XORG_PKG_ERRORS
17754
17755Consider adjusting the PKG_CONFIG_PATH environment variable if you
17756installed software in a non-standard prefix.
17757
17758Alternatively, you may set the environment variables XORG_CFLAGS
17759and XORG_LIBS to avoid the need to call pkg-config.
17760See the pkg-config man page for more details." "$LINENO" 5
17761elif test $pkg_failed = untried; then
17762     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17763$as_echo "no" >&6; }
17764	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17766as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17767is in your PATH or set the PKG_CONFIG environment variable to the full
17768path to pkg-config.
17769
17770Alternatively, you may set the environment variables XORG_CFLAGS
17771and XORG_LIBS to avoid the need to call pkg-config.
17772See the pkg-config man page for more details.
17773
17774To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17775See \`config.log' for more details" "$LINENO" 5; }
17776else
17777	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
17778	XORG_LIBS=$pkg_cv_XORG_LIBS
17779        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17780$as_echo "yes" >&6; }
17781
17782fi
17783
17784# Define a configure option for an alternate input module directory
17785
17786# Check whether --with-xorg-module-dir was given.
17787if test "${with_xorg_module_dir+set}" = set; then :
17788  withval=$with_xorg_module_dir; moduledir="$withval"
17789else
17790  moduledir="$libdir/xorg/modules"
17791fi
17792
17793inputdir=${moduledir}/input
17794
17795
17796# X Server SDK location is required to install xf86-mouse-properties.h
17797# This location is also relayed in the xorg-mouse.pc file
17798sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
17799
17800# Workaround overriding sdkdir to be able to create a tarball when user has no
17801# write permission in sdkdir. See DISTCHECK_CONFIGURE_FLAGS in Makefile.am
17802
17803# Check whether --with-sdkdir was given.
17804if test "${with_sdkdir+set}" = set; then :
17805  withval=$with_sdkdir; sdkdir="$withval"
17806fi
17807
17808
17809
17810
17811# Work out which OS mouse driver we need to build
17812case $host_os in
17813  linux*)
17814    OS_MOUSE_NAME=lnx
17815    ;;
17816  freebsd*|kfreebsd*-gnu|dragonfly*|netbsd*|openbsd*)
17817    OS_MOUSE_NAME=bsd
17818    ;;
17819  solaris*)
17820    OS_MOUSE_NAME=sun
17821    ;;
17822  gnu*)
17823    OS_MOUSE_NAME=hurd
17824    ;;
17825esac
17826
17827
17828DRIVER_NAME=mouse
17829
17830
17831ac_config_files="$ac_config_files Makefile xorg-mouse.pc include/Makefile src/Makefile man/Makefile"
17832
17833cat >confcache <<\_ACEOF
17834# This file is a shell script that caches the results of configure
17835# tests run on this system so they can be shared between configure
17836# scripts and configure runs, see configure's option --config-cache.
17837# It is not useful on other systems.  If it contains results you don't
17838# want to keep, you may remove or edit it.
17839#
17840# config.status only pays attention to the cache file if you give it
17841# the --recheck option to rerun configure.
17842#
17843# `ac_cv_env_foo' variables (set or unset) will be overridden when
17844# loading this file, other *unset* `ac_cv_foo' will be assigned the
17845# following values.
17846
17847_ACEOF
17848
17849# The following way of writing the cache mishandles newlines in values,
17850# but we know of no workaround that is simple, portable, and efficient.
17851# So, we kill variables containing newlines.
17852# Ultrix sh set writes to stderr and can't be redirected directly,
17853# and sets the high bit in the cache file unless we assign to the vars.
17854(
17855  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17856    eval ac_val=\$$ac_var
17857    case $ac_val in #(
17858    *${as_nl}*)
17859      case $ac_var in #(
17860      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17861$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17862      esac
17863      case $ac_var in #(
17864      _ | IFS | as_nl) ;; #(
17865      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17866      *) { eval $ac_var=; unset $ac_var;} ;;
17867      esac ;;
17868    esac
17869  done
17870
17871  (set) 2>&1 |
17872    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17873    *${as_nl}ac_space=\ *)
17874      # `set' does not quote correctly, so add quotes: double-quote
17875      # substitution turns \\\\ into \\, and sed turns \\ into \.
17876      sed -n \
17877	"s/'/'\\\\''/g;
17878	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17879      ;; #(
17880    *)
17881      # `set' quotes correctly as required by POSIX, so do not add quotes.
17882      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17883      ;;
17884    esac |
17885    sort
17886) |
17887  sed '
17888     /^ac_cv_env_/b end
17889     t clear
17890     :clear
17891     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17892     t end
17893     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17894     :end' >>confcache
17895if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17896  if test -w "$cache_file"; then
17897    if test "x$cache_file" != "x/dev/null"; then
17898      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17899$as_echo "$as_me: updating cache $cache_file" >&6;}
17900      if test ! -f "$cache_file" || test -h "$cache_file"; then
17901	cat confcache >"$cache_file"
17902      else
17903        case $cache_file in #(
17904        */* | ?:*)
17905	  mv -f confcache "$cache_file"$$ &&
17906	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17907        *)
17908	  mv -f confcache "$cache_file" ;;
17909	esac
17910      fi
17911    fi
17912  else
17913    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17914$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17915  fi
17916fi
17917rm -f confcache
17918
17919test "x$prefix" = xNONE && prefix=$ac_default_prefix
17920# Let make expand exec_prefix.
17921test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17922
17923DEFS=-DHAVE_CONFIG_H
17924
17925ac_libobjs=
17926ac_ltlibobjs=
17927U=
17928for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17929  # 1. Remove the extension, and $U if already installed.
17930  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17931  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17932  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17933  #    will be set to the directory where LIBOBJS objects are built.
17934  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17935  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17936done
17937LIBOBJS=$ac_libobjs
17938
17939LTLIBOBJS=$ac_ltlibobjs
17940
17941
17942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17943$as_echo_n "checking that generated files are newer than configure... " >&6; }
17944   if test -n "$am_sleep_pid"; then
17945     # Hide warnings about reused PIDs.
17946     wait $am_sleep_pid 2>/dev/null
17947   fi
17948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17949$as_echo "done" >&6; }
17950 if test -n "$EXEEXT"; then
17951  am__EXEEXT_TRUE=
17952  am__EXEEXT_FALSE='#'
17953else
17954  am__EXEEXT_TRUE='#'
17955  am__EXEEXT_FALSE=
17956fi
17957
17958if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17959  as_fn_error $? "conditional \"AMDEP\" was never defined.
17960Usually this means the macro was only invoked conditionally." "$LINENO" 5
17961fi
17962if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17963  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17964Usually this means the macro was only invoked conditionally." "$LINENO" 5
17965fi
17966if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
17967  as_fn_error $? "conditional \"LINT\" was never defined.
17968Usually this means the macro was only invoked conditionally." "$LINENO" 5
17969fi
17970
17971: "${CONFIG_STATUS=./config.status}"
17972ac_write_fail=0
17973ac_clean_files_save=$ac_clean_files
17974ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17975{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17976$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17977as_write_fail=0
17978cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17979#! $SHELL
17980# Generated by $as_me.
17981# Run this file to recreate the current configuration.
17982# Compiler output produced by configure, useful for debugging
17983# configure, is in config.log if it exists.
17984
17985debug=false
17986ac_cs_recheck=false
17987ac_cs_silent=false
17988
17989SHELL=\${CONFIG_SHELL-$SHELL}
17990export SHELL
17991_ASEOF
17992cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17993## -------------------- ##
17994## M4sh Initialization. ##
17995## -------------------- ##
17996
17997# Be more Bourne compatible
17998DUALCASE=1; export DUALCASE # for MKS sh
17999if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18000  emulate sh
18001  NULLCMD=:
18002  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18003  # is contrary to our usage.  Disable this feature.
18004  alias -g '${1+"$@"}'='"$@"'
18005  setopt NO_GLOB_SUBST
18006else
18007  case `(set -o) 2>/dev/null` in #(
18008  *posix*) :
18009    set -o posix ;; #(
18010  *) :
18011     ;;
18012esac
18013fi
18014
18015
18016as_nl='
18017'
18018export as_nl
18019# Printing a long string crashes Solaris 7 /usr/bin/printf.
18020as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18021as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18022as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18023# Prefer a ksh shell builtin over an external printf program on Solaris,
18024# but without wasting forks for bash or zsh.
18025if test -z "$BASH_VERSION$ZSH_VERSION" \
18026    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18027  as_echo='print -r --'
18028  as_echo_n='print -rn --'
18029elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18030  as_echo='printf %s\n'
18031  as_echo_n='printf %s'
18032else
18033  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18034    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18035    as_echo_n='/usr/ucb/echo -n'
18036  else
18037    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18038    as_echo_n_body='eval
18039      arg=$1;
18040      case $arg in #(
18041      *"$as_nl"*)
18042	expr "X$arg" : "X\\(.*\\)$as_nl";
18043	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18044      esac;
18045      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18046    '
18047    export as_echo_n_body
18048    as_echo_n='sh -c $as_echo_n_body as_echo'
18049  fi
18050  export as_echo_body
18051  as_echo='sh -c $as_echo_body as_echo'
18052fi
18053
18054# The user is always right.
18055if test "${PATH_SEPARATOR+set}" != set; then
18056  PATH_SEPARATOR=:
18057  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18058    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18059      PATH_SEPARATOR=';'
18060  }
18061fi
18062
18063
18064# IFS
18065# We need space, tab and new line, in precisely that order.  Quoting is
18066# there to prevent editors from complaining about space-tab.
18067# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18068# splitting by setting IFS to empty value.)
18069IFS=" ""	$as_nl"
18070
18071# Find who we are.  Look in the path if we contain no directory separator.
18072as_myself=
18073case $0 in #((
18074  *[\\/]* ) as_myself=$0 ;;
18075  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18076for as_dir in $PATH
18077do
18078  IFS=$as_save_IFS
18079  test -z "$as_dir" && as_dir=.
18080    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18081  done
18082IFS=$as_save_IFS
18083
18084     ;;
18085esac
18086# We did not find ourselves, most probably we were run as `sh COMMAND'
18087# in which case we are not to be found in the path.
18088if test "x$as_myself" = x; then
18089  as_myself=$0
18090fi
18091if test ! -f "$as_myself"; then
18092  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18093  exit 1
18094fi
18095
18096# Unset variables that we do not need and which cause bugs (e.g. in
18097# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18098# suppresses any "Segmentation fault" message there.  '((' could
18099# trigger a bug in pdksh 5.2.14.
18100for as_var in BASH_ENV ENV MAIL MAILPATH
18101do eval test x\${$as_var+set} = xset \
18102  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18103done
18104PS1='$ '
18105PS2='> '
18106PS4='+ '
18107
18108# NLS nuisances.
18109LC_ALL=C
18110export LC_ALL
18111LANGUAGE=C
18112export LANGUAGE
18113
18114# CDPATH.
18115(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18116
18117
18118# as_fn_error STATUS ERROR [LINENO LOG_FD]
18119# ----------------------------------------
18120# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18121# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18122# script with STATUS, using 1 if that was 0.
18123as_fn_error ()
18124{
18125  as_status=$1; test $as_status -eq 0 && as_status=1
18126  if test "$4"; then
18127    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18128    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18129  fi
18130  $as_echo "$as_me: error: $2" >&2
18131  as_fn_exit $as_status
18132} # as_fn_error
18133
18134
18135# as_fn_set_status STATUS
18136# -----------------------
18137# Set $? to STATUS, without forking.
18138as_fn_set_status ()
18139{
18140  return $1
18141} # as_fn_set_status
18142
18143# as_fn_exit STATUS
18144# -----------------
18145# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18146as_fn_exit ()
18147{
18148  set +e
18149  as_fn_set_status $1
18150  exit $1
18151} # as_fn_exit
18152
18153# as_fn_unset VAR
18154# ---------------
18155# Portably unset VAR.
18156as_fn_unset ()
18157{
18158  { eval $1=; unset $1;}
18159}
18160as_unset=as_fn_unset
18161# as_fn_append VAR VALUE
18162# ----------------------
18163# Append the text in VALUE to the end of the definition contained in VAR. Take
18164# advantage of any shell optimizations that allow amortized linear growth over
18165# repeated appends, instead of the typical quadratic growth present in naive
18166# implementations.
18167if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18168  eval 'as_fn_append ()
18169  {
18170    eval $1+=\$2
18171  }'
18172else
18173  as_fn_append ()
18174  {
18175    eval $1=\$$1\$2
18176  }
18177fi # as_fn_append
18178
18179# as_fn_arith ARG...
18180# ------------------
18181# Perform arithmetic evaluation on the ARGs, and store the result in the
18182# global $as_val. Take advantage of shells that can avoid forks. The arguments
18183# must be portable across $(()) and expr.
18184if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18185  eval 'as_fn_arith ()
18186  {
18187    as_val=$(( $* ))
18188  }'
18189else
18190  as_fn_arith ()
18191  {
18192    as_val=`expr "$@" || test $? -eq 1`
18193  }
18194fi # as_fn_arith
18195
18196
18197if expr a : '\(a\)' >/dev/null 2>&1 &&
18198   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18199  as_expr=expr
18200else
18201  as_expr=false
18202fi
18203
18204if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18205  as_basename=basename
18206else
18207  as_basename=false
18208fi
18209
18210if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18211  as_dirname=dirname
18212else
18213  as_dirname=false
18214fi
18215
18216as_me=`$as_basename -- "$0" ||
18217$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18218	 X"$0" : 'X\(//\)$' \| \
18219	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18220$as_echo X/"$0" |
18221    sed '/^.*\/\([^/][^/]*\)\/*$/{
18222	    s//\1/
18223	    q
18224	  }
18225	  /^X\/\(\/\/\)$/{
18226	    s//\1/
18227	    q
18228	  }
18229	  /^X\/\(\/\).*/{
18230	    s//\1/
18231	    q
18232	  }
18233	  s/.*/./; q'`
18234
18235# Avoid depending upon Character Ranges.
18236as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18237as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18238as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18239as_cr_digits='0123456789'
18240as_cr_alnum=$as_cr_Letters$as_cr_digits
18241
18242ECHO_C= ECHO_N= ECHO_T=
18243case `echo -n x` in #(((((
18244-n*)
18245  case `echo 'xy\c'` in
18246  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18247  xy)  ECHO_C='\c';;
18248  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18249       ECHO_T='	';;
18250  esac;;
18251*)
18252  ECHO_N='-n';;
18253esac
18254
18255rm -f conf$$ conf$$.exe conf$$.file
18256if test -d conf$$.dir; then
18257  rm -f conf$$.dir/conf$$.file
18258else
18259  rm -f conf$$.dir
18260  mkdir conf$$.dir 2>/dev/null
18261fi
18262if (echo >conf$$.file) 2>/dev/null; then
18263  if ln -s conf$$.file conf$$ 2>/dev/null; then
18264    as_ln_s='ln -s'
18265    # ... but there are two gotchas:
18266    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18267    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18268    # In both cases, we have to default to `cp -pR'.
18269    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18270      as_ln_s='cp -pR'
18271  elif ln conf$$.file conf$$ 2>/dev/null; then
18272    as_ln_s=ln
18273  else
18274    as_ln_s='cp -pR'
18275  fi
18276else
18277  as_ln_s='cp -pR'
18278fi
18279rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18280rmdir conf$$.dir 2>/dev/null
18281
18282
18283# as_fn_mkdir_p
18284# -------------
18285# Create "$as_dir" as a directory, including parents if necessary.
18286as_fn_mkdir_p ()
18287{
18288
18289  case $as_dir in #(
18290  -*) as_dir=./$as_dir;;
18291  esac
18292  test -d "$as_dir" || eval $as_mkdir_p || {
18293    as_dirs=
18294    while :; do
18295      case $as_dir in #(
18296      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18297      *) as_qdir=$as_dir;;
18298      esac
18299      as_dirs="'$as_qdir' $as_dirs"
18300      as_dir=`$as_dirname -- "$as_dir" ||
18301$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18302	 X"$as_dir" : 'X\(//\)[^/]' \| \
18303	 X"$as_dir" : 'X\(//\)$' \| \
18304	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18305$as_echo X"$as_dir" |
18306    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18307	    s//\1/
18308	    q
18309	  }
18310	  /^X\(\/\/\)[^/].*/{
18311	    s//\1/
18312	    q
18313	  }
18314	  /^X\(\/\/\)$/{
18315	    s//\1/
18316	    q
18317	  }
18318	  /^X\(\/\).*/{
18319	    s//\1/
18320	    q
18321	  }
18322	  s/.*/./; q'`
18323      test -d "$as_dir" && break
18324    done
18325    test -z "$as_dirs" || eval "mkdir $as_dirs"
18326  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18327
18328
18329} # as_fn_mkdir_p
18330if mkdir -p . 2>/dev/null; then
18331  as_mkdir_p='mkdir -p "$as_dir"'
18332else
18333  test -d ./-p && rmdir ./-p
18334  as_mkdir_p=false
18335fi
18336
18337
18338# as_fn_executable_p FILE
18339# -----------------------
18340# Test if FILE is an executable regular file.
18341as_fn_executable_p ()
18342{
18343  test -f "$1" && test -x "$1"
18344} # as_fn_executable_p
18345as_test_x='test -x'
18346as_executable_p=as_fn_executable_p
18347
18348# Sed expression to map a string onto a valid CPP name.
18349as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18350
18351# Sed expression to map a string onto a valid variable name.
18352as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18353
18354
18355exec 6>&1
18356## ----------------------------------- ##
18357## Main body of $CONFIG_STATUS script. ##
18358## ----------------------------------- ##
18359_ASEOF
18360test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18361
18362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18363# Save the log message, to keep $0 and so on meaningful, and to
18364# report actual input values of CONFIG_FILES etc. instead of their
18365# values after options handling.
18366ac_log="
18367This file was extended by xf86-input-mouse $as_me 1.9.0, which was
18368generated by GNU Autoconf 2.69.  Invocation command line was
18369
18370  CONFIG_FILES    = $CONFIG_FILES
18371  CONFIG_HEADERS  = $CONFIG_HEADERS
18372  CONFIG_LINKS    = $CONFIG_LINKS
18373  CONFIG_COMMANDS = $CONFIG_COMMANDS
18374  $ $0 $@
18375
18376on `(hostname || uname -n) 2>/dev/null | sed 1q`
18377"
18378
18379_ACEOF
18380
18381case $ac_config_files in *"
18382"*) set x $ac_config_files; shift; ac_config_files=$*;;
18383esac
18384
18385case $ac_config_headers in *"
18386"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18387esac
18388
18389
18390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18391# Files that config.status was made for.
18392config_files="$ac_config_files"
18393config_headers="$ac_config_headers"
18394config_commands="$ac_config_commands"
18395
18396_ACEOF
18397
18398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18399ac_cs_usage="\
18400\`$as_me' instantiates files and other configuration actions
18401from templates according to the current configuration.  Unless the files
18402and actions are specified as TAGs, all are instantiated by default.
18403
18404Usage: $0 [OPTION]... [TAG]...
18405
18406  -h, --help       print this help, then exit
18407  -V, --version    print version number and configuration settings, then exit
18408      --config     print configuration, then exit
18409  -q, --quiet, --silent
18410                   do not print progress messages
18411  -d, --debug      don't remove temporary files
18412      --recheck    update $as_me by reconfiguring in the same conditions
18413      --file=FILE[:TEMPLATE]
18414                   instantiate the configuration file FILE
18415      --header=FILE[:TEMPLATE]
18416                   instantiate the configuration header FILE
18417
18418Configuration files:
18419$config_files
18420
18421Configuration headers:
18422$config_headers
18423
18424Configuration commands:
18425$config_commands
18426
18427Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18428
18429_ACEOF
18430cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18431ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18432ac_cs_version="\\
18433xf86-input-mouse config.status 1.9.0
18434configured by $0, generated by GNU Autoconf 2.69,
18435  with options \\"\$ac_cs_config\\"
18436
18437Copyright (C) 2012 Free Software Foundation, Inc.
18438This config.status script is free software; the Free Software Foundation
18439gives unlimited permission to copy, distribute and modify it."
18440
18441ac_pwd='$ac_pwd'
18442srcdir='$srcdir'
18443INSTALL='$INSTALL'
18444MKDIR_P='$MKDIR_P'
18445AWK='$AWK'
18446test -n "\$AWK" || AWK=awk
18447_ACEOF
18448
18449cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18450# The default lists apply if the user does not specify any file.
18451ac_need_defaults=:
18452while test $# != 0
18453do
18454  case $1 in
18455  --*=?*)
18456    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18457    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18458    ac_shift=:
18459    ;;
18460  --*=)
18461    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18462    ac_optarg=
18463    ac_shift=:
18464    ;;
18465  *)
18466    ac_option=$1
18467    ac_optarg=$2
18468    ac_shift=shift
18469    ;;
18470  esac
18471
18472  case $ac_option in
18473  # Handling of the options.
18474  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18475    ac_cs_recheck=: ;;
18476  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18477    $as_echo "$ac_cs_version"; exit ;;
18478  --config | --confi | --conf | --con | --co | --c )
18479    $as_echo "$ac_cs_config"; exit ;;
18480  --debug | --debu | --deb | --de | --d | -d )
18481    debug=: ;;
18482  --file | --fil | --fi | --f )
18483    $ac_shift
18484    case $ac_optarg in
18485    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18486    '') as_fn_error $? "missing file argument" ;;
18487    esac
18488    as_fn_append CONFIG_FILES " '$ac_optarg'"
18489    ac_need_defaults=false;;
18490  --header | --heade | --head | --hea )
18491    $ac_shift
18492    case $ac_optarg in
18493    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18494    esac
18495    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18496    ac_need_defaults=false;;
18497  --he | --h)
18498    # Conflict between --help and --header
18499    as_fn_error $? "ambiguous option: \`$1'
18500Try \`$0 --help' for more information.";;
18501  --help | --hel | -h )
18502    $as_echo "$ac_cs_usage"; exit ;;
18503  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18504  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18505    ac_cs_silent=: ;;
18506
18507  # This is an error.
18508  -*) as_fn_error $? "unrecognized option: \`$1'
18509Try \`$0 --help' for more information." ;;
18510
18511  *) as_fn_append ac_config_targets " $1"
18512     ac_need_defaults=false ;;
18513
18514  esac
18515  shift
18516done
18517
18518ac_configure_extra_args=
18519
18520if $ac_cs_silent; then
18521  exec 6>/dev/null
18522  ac_configure_extra_args="$ac_configure_extra_args --silent"
18523fi
18524
18525_ACEOF
18526cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18527if \$ac_cs_recheck; then
18528  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18529  shift
18530  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18531  CONFIG_SHELL='$SHELL'
18532  export CONFIG_SHELL
18533  exec "\$@"
18534fi
18535
18536_ACEOF
18537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18538exec 5>>config.log
18539{
18540  echo
18541  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18542## Running $as_me. ##
18543_ASBOX
18544  $as_echo "$ac_log"
18545} >&5
18546
18547_ACEOF
18548cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18549#
18550# INIT-COMMANDS
18551#
18552AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18553
18554
18555# The HP-UX ksh and POSIX shell print the target directory to stdout
18556# if CDPATH is set.
18557(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18558
18559sed_quote_subst='$sed_quote_subst'
18560double_quote_subst='$double_quote_subst'
18561delay_variable_subst='$delay_variable_subst'
18562enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18563macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18564macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18565enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18566pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18567enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18568SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18569ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18570PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18571host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18572host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18573host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18574build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18575build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18576build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18577SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18578Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18579GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18580EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18581FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18582LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18583NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18584LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18585max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18586ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18587exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18588lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18589lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18590lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18591lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18592lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18593reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18594reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18595OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18596deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18597file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18598file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18599want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18600DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18601sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18602AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18603AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18604archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18605STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18606RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18607old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18608old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18609old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18610lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18611CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18612CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18613compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18614GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18615lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18616lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18617lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18618lt_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"`'
18619nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18620lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18621objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18622MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18623lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18624lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18625lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18626lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18627lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18628need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18629MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18630DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18631NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18632LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18633OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18634OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18635libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18636shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18637extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18638archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18639enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18640export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18641whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18642compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18643old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18644old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18645archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18646archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18647module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18648module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18649with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18650allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18651no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18652hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18653hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18654hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18655hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18656hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18657hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18658hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18659inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18660link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18661always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18662export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18663exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18664include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18665prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18666postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18667file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18668variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18669need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18670need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18671version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18672runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18673shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18674shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18675libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18676library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18677soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18678install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18679postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18680postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18681finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18682finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18683hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18684sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18685sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18686hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18687enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18688enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18689enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18690old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18691striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18692
18693LTCC='$LTCC'
18694LTCFLAGS='$LTCFLAGS'
18695compiler='$compiler_DEFAULT'
18696
18697# A function that is used when there is no print builtin or printf.
18698func_fallback_echo ()
18699{
18700  eval 'cat <<_LTECHO_EOF
18701\$1
18702_LTECHO_EOF'
18703}
18704
18705# Quote evaled strings.
18706for var in SHELL \
18707ECHO \
18708PATH_SEPARATOR \
18709SED \
18710GREP \
18711EGREP \
18712FGREP \
18713LD \
18714NM \
18715LN_S \
18716lt_SP2NL \
18717lt_NL2SP \
18718reload_flag \
18719OBJDUMP \
18720deplibs_check_method \
18721file_magic_cmd \
18722file_magic_glob \
18723want_nocaseglob \
18724DLLTOOL \
18725sharedlib_from_linklib_cmd \
18726AR \
18727AR_FLAGS \
18728archiver_list_spec \
18729STRIP \
18730RANLIB \
18731CC \
18732CFLAGS \
18733compiler \
18734lt_cv_sys_global_symbol_pipe \
18735lt_cv_sys_global_symbol_to_cdecl \
18736lt_cv_sys_global_symbol_to_c_name_address \
18737lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18738nm_file_list_spec \
18739lt_prog_compiler_no_builtin_flag \
18740lt_prog_compiler_pic \
18741lt_prog_compiler_wl \
18742lt_prog_compiler_static \
18743lt_cv_prog_compiler_c_o \
18744need_locks \
18745MANIFEST_TOOL \
18746DSYMUTIL \
18747NMEDIT \
18748LIPO \
18749OTOOL \
18750OTOOL64 \
18751shrext_cmds \
18752export_dynamic_flag_spec \
18753whole_archive_flag_spec \
18754compiler_needs_object \
18755with_gnu_ld \
18756allow_undefined_flag \
18757no_undefined_flag \
18758hardcode_libdir_flag_spec \
18759hardcode_libdir_separator \
18760exclude_expsyms \
18761include_expsyms \
18762file_list_spec \
18763variables_saved_for_relink \
18764libname_spec \
18765library_names_spec \
18766soname_spec \
18767install_override_mode \
18768finish_eval \
18769old_striplib \
18770striplib; do
18771    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18772    *[\\\\\\\`\\"\\\$]*)
18773      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18774      ;;
18775    *)
18776      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18777      ;;
18778    esac
18779done
18780
18781# Double-quote double-evaled strings.
18782for var in reload_cmds \
18783old_postinstall_cmds \
18784old_postuninstall_cmds \
18785old_archive_cmds \
18786extract_expsyms_cmds \
18787old_archive_from_new_cmds \
18788old_archive_from_expsyms_cmds \
18789archive_cmds \
18790archive_expsym_cmds \
18791module_cmds \
18792module_expsym_cmds \
18793export_symbols_cmds \
18794prelink_cmds \
18795postlink_cmds \
18796postinstall_cmds \
18797postuninstall_cmds \
18798finish_cmds \
18799sys_lib_search_path_spec \
18800sys_lib_dlsearch_path_spec; do
18801    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18802    *[\\\\\\\`\\"\\\$]*)
18803      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18804      ;;
18805    *)
18806      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18807      ;;
18808    esac
18809done
18810
18811ac_aux_dir='$ac_aux_dir'
18812xsi_shell='$xsi_shell'
18813lt_shell_append='$lt_shell_append'
18814
18815# See if we are running on zsh, and set the options which allow our
18816# commands through without removal of \ escapes INIT.
18817if test -n "\${ZSH_VERSION+set}" ; then
18818   setopt NO_GLOB_SUBST
18819fi
18820
18821
18822    PACKAGE='$PACKAGE'
18823    VERSION='$VERSION'
18824    TIMESTAMP='$TIMESTAMP'
18825    RM='$RM'
18826    ofile='$ofile'
18827
18828
18829
18830
18831_ACEOF
18832
18833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18834
18835# Handling of arguments.
18836for ac_config_target in $ac_config_targets
18837do
18838  case $ac_config_target in
18839    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18840    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18841    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18842    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18843    "xorg-mouse.pc") CONFIG_FILES="$CONFIG_FILES xorg-mouse.pc" ;;
18844    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18845    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18846    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18847
18848  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18849  esac
18850done
18851
18852
18853# If the user did not use the arguments to specify the items to instantiate,
18854# then the envvar interface is used.  Set only those that are not.
18855# We use the long form for the default assignment because of an extremely
18856# bizarre bug on SunOS 4.1.3.
18857if $ac_need_defaults; then
18858  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18859  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18860  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18861fi
18862
18863# Have a temporary directory for convenience.  Make it in the build tree
18864# simply because there is no reason against having it here, and in addition,
18865# creating and moving files from /tmp can sometimes cause problems.
18866# Hook for its removal unless debugging.
18867# Note that there is a small window in which the directory will not be cleaned:
18868# after its creation but before its name has been assigned to `$tmp'.
18869$debug ||
18870{
18871  tmp= ac_tmp=
18872  trap 'exit_status=$?
18873  : "${ac_tmp:=$tmp}"
18874  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18875' 0
18876  trap 'as_fn_exit 1' 1 2 13 15
18877}
18878# Create a (secure) tmp directory for tmp files.
18879
18880{
18881  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18882  test -d "$tmp"
18883}  ||
18884{
18885  tmp=./conf$$-$RANDOM
18886  (umask 077 && mkdir "$tmp")
18887} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18888ac_tmp=$tmp
18889
18890# Set up the scripts for CONFIG_FILES section.
18891# No need to generate them if there are no CONFIG_FILES.
18892# This happens for instance with `./config.status config.h'.
18893if test -n "$CONFIG_FILES"; then
18894
18895
18896ac_cr=`echo X | tr X '\015'`
18897# On cygwin, bash can eat \r inside `` if the user requested igncr.
18898# But we know of no other shell where ac_cr would be empty at this
18899# point, so we can use a bashism as a fallback.
18900if test "x$ac_cr" = x; then
18901  eval ac_cr=\$\'\\r\'
18902fi
18903ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18904if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18905  ac_cs_awk_cr='\\r'
18906else
18907  ac_cs_awk_cr=$ac_cr
18908fi
18909
18910echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18911_ACEOF
18912
18913
18914{
18915  echo "cat >conf$$subs.awk <<_ACEOF" &&
18916  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18917  echo "_ACEOF"
18918} >conf$$subs.sh ||
18919  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18920ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18921ac_delim='%!_!# '
18922for ac_last_try in false false false false false :; do
18923  . ./conf$$subs.sh ||
18924    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18925
18926  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18927  if test $ac_delim_n = $ac_delim_num; then
18928    break
18929  elif $ac_last_try; then
18930    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18931  else
18932    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18933  fi
18934done
18935rm -f conf$$subs.sh
18936
18937cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18938cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18939_ACEOF
18940sed -n '
18941h
18942s/^/S["/; s/!.*/"]=/
18943p
18944g
18945s/^[^!]*!//
18946:repl
18947t repl
18948s/'"$ac_delim"'$//
18949t delim
18950:nl
18951h
18952s/\(.\{148\}\)..*/\1/
18953t more1
18954s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18955p
18956n
18957b repl
18958:more1
18959s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18960p
18961g
18962s/.\{148\}//
18963t nl
18964:delim
18965h
18966s/\(.\{148\}\)..*/\1/
18967t more2
18968s/["\\]/\\&/g; s/^/"/; s/$/"/
18969p
18970b
18971:more2
18972s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18973p
18974g
18975s/.\{148\}//
18976t delim
18977' <conf$$subs.awk | sed '
18978/^[^""]/{
18979  N
18980  s/\n//
18981}
18982' >>$CONFIG_STATUS || ac_write_fail=1
18983rm -f conf$$subs.awk
18984cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18985_ACAWK
18986cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18987  for (key in S) S_is_set[key] = 1
18988  FS = ""
18989
18990}
18991{
18992  line = $ 0
18993  nfields = split(line, field, "@")
18994  substed = 0
18995  len = length(field[1])
18996  for (i = 2; i < nfields; i++) {
18997    key = field[i]
18998    keylen = length(key)
18999    if (S_is_set[key]) {
19000      value = S[key]
19001      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19002      len += length(value) + length(field[++i])
19003      substed = 1
19004    } else
19005      len += 1 + keylen
19006  }
19007
19008  print line
19009}
19010
19011_ACAWK
19012_ACEOF
19013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19014if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19015  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19016else
19017  cat
19018fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19019  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19020_ACEOF
19021
19022# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19023# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19024# trailing colons and then remove the whole line if VPATH becomes empty
19025# (actually we leave an empty line to preserve line numbers).
19026if test "x$srcdir" = x.; then
19027  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19028h
19029s///
19030s/^/:/
19031s/[	 ]*$/:/
19032s/:\$(srcdir):/:/g
19033s/:\${srcdir}:/:/g
19034s/:@srcdir@:/:/g
19035s/^:*//
19036s/:*$//
19037x
19038s/\(=[	 ]*\).*/\1/
19039G
19040s/\n//
19041s/^[^=]*=[	 ]*$//
19042}'
19043fi
19044
19045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19046fi # test -n "$CONFIG_FILES"
19047
19048# Set up the scripts for CONFIG_HEADERS section.
19049# No need to generate them if there are no CONFIG_HEADERS.
19050# This happens for instance with `./config.status Makefile'.
19051if test -n "$CONFIG_HEADERS"; then
19052cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19053BEGIN {
19054_ACEOF
19055
19056# Transform confdefs.h into an awk script `defines.awk', embedded as
19057# here-document in config.status, that substitutes the proper values into
19058# config.h.in to produce config.h.
19059
19060# Create a delimiter string that does not exist in confdefs.h, to ease
19061# handling of long lines.
19062ac_delim='%!_!# '
19063for ac_last_try in false false :; do
19064  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19065  if test -z "$ac_tt"; then
19066    break
19067  elif $ac_last_try; then
19068    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19069  else
19070    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19071  fi
19072done
19073
19074# For the awk script, D is an array of macro values keyed by name,
19075# likewise P contains macro parameters if any.  Preserve backslash
19076# newline sequences.
19077
19078ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19079sed -n '
19080s/.\{148\}/&'"$ac_delim"'/g
19081t rset
19082:rset
19083s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19084t def
19085d
19086:def
19087s/\\$//
19088t bsnl
19089s/["\\]/\\&/g
19090s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19091D["\1"]=" \3"/p
19092s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19093d
19094:bsnl
19095s/["\\]/\\&/g
19096s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19097D["\1"]=" \3\\\\\\n"\\/p
19098t cont
19099s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19100t cont
19101d
19102:cont
19103n
19104s/.\{148\}/&'"$ac_delim"'/g
19105t clear
19106:clear
19107s/\\$//
19108t bsnlc
19109s/["\\]/\\&/g; s/^/"/; s/$/"/p
19110d
19111:bsnlc
19112s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19113b cont
19114' <confdefs.h | sed '
19115s/'"$ac_delim"'/"\\\
19116"/g' >>$CONFIG_STATUS || ac_write_fail=1
19117
19118cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19119  for (key in D) D_is_set[key] = 1
19120  FS = ""
19121}
19122/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19123  line = \$ 0
19124  split(line, arg, " ")
19125  if (arg[1] == "#") {
19126    defundef = arg[2]
19127    mac1 = arg[3]
19128  } else {
19129    defundef = substr(arg[1], 2)
19130    mac1 = arg[2]
19131  }
19132  split(mac1, mac2, "(") #)
19133  macro = mac2[1]
19134  prefix = substr(line, 1, index(line, defundef) - 1)
19135  if (D_is_set[macro]) {
19136    # Preserve the white space surrounding the "#".
19137    print prefix "define", macro P[macro] D[macro]
19138    next
19139  } else {
19140    # Replace #undef with comments.  This is necessary, for example,
19141    # in the case of _POSIX_SOURCE, which is predefined and required
19142    # on some systems where configure will not decide to define it.
19143    if (defundef == "undef") {
19144      print "/*", prefix defundef, macro, "*/"
19145      next
19146    }
19147  }
19148}
19149{ print }
19150_ACAWK
19151_ACEOF
19152cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19153  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19154fi # test -n "$CONFIG_HEADERS"
19155
19156
19157eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19158shift
19159for ac_tag
19160do
19161  case $ac_tag in
19162  :[FHLC]) ac_mode=$ac_tag; continue;;
19163  esac
19164  case $ac_mode$ac_tag in
19165  :[FHL]*:*);;
19166  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19167  :[FH]-) ac_tag=-:-;;
19168  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19169  esac
19170  ac_save_IFS=$IFS
19171  IFS=:
19172  set x $ac_tag
19173  IFS=$ac_save_IFS
19174  shift
19175  ac_file=$1
19176  shift
19177
19178  case $ac_mode in
19179  :L) ac_source=$1;;
19180  :[FH])
19181    ac_file_inputs=
19182    for ac_f
19183    do
19184      case $ac_f in
19185      -) ac_f="$ac_tmp/stdin";;
19186      *) # Look for the file first in the build tree, then in the source tree
19187	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19188	 # because $ac_f cannot contain `:'.
19189	 test -f "$ac_f" ||
19190	   case $ac_f in
19191	   [\\/$]*) false;;
19192	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19193	   esac ||
19194	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19195      esac
19196      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19197      as_fn_append ac_file_inputs " '$ac_f'"
19198    done
19199
19200    # Let's still pretend it is `configure' which instantiates (i.e., don't
19201    # use $as_me), people would be surprised to read:
19202    #    /* config.h.  Generated by config.status.  */
19203    configure_input='Generated from '`
19204	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19205	`' by configure.'
19206    if test x"$ac_file" != x-; then
19207      configure_input="$ac_file.  $configure_input"
19208      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19209$as_echo "$as_me: creating $ac_file" >&6;}
19210    fi
19211    # Neutralize special characters interpreted by sed in replacement strings.
19212    case $configure_input in #(
19213    *\&* | *\|* | *\\* )
19214       ac_sed_conf_input=`$as_echo "$configure_input" |
19215       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19216    *) ac_sed_conf_input=$configure_input;;
19217    esac
19218
19219    case $ac_tag in
19220    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19221      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19222    esac
19223    ;;
19224  esac
19225
19226  ac_dir=`$as_dirname -- "$ac_file" ||
19227$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19228	 X"$ac_file" : 'X\(//\)[^/]' \| \
19229	 X"$ac_file" : 'X\(//\)$' \| \
19230	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19231$as_echo X"$ac_file" |
19232    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19233	    s//\1/
19234	    q
19235	  }
19236	  /^X\(\/\/\)[^/].*/{
19237	    s//\1/
19238	    q
19239	  }
19240	  /^X\(\/\/\)$/{
19241	    s//\1/
19242	    q
19243	  }
19244	  /^X\(\/\).*/{
19245	    s//\1/
19246	    q
19247	  }
19248	  s/.*/./; q'`
19249  as_dir="$ac_dir"; as_fn_mkdir_p
19250  ac_builddir=.
19251
19252case "$ac_dir" in
19253.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19254*)
19255  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19256  # A ".." for each directory in $ac_dir_suffix.
19257  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19258  case $ac_top_builddir_sub in
19259  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19260  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19261  esac ;;
19262esac
19263ac_abs_top_builddir=$ac_pwd
19264ac_abs_builddir=$ac_pwd$ac_dir_suffix
19265# for backward compatibility:
19266ac_top_builddir=$ac_top_build_prefix
19267
19268case $srcdir in
19269  .)  # We are building in place.
19270    ac_srcdir=.
19271    ac_top_srcdir=$ac_top_builddir_sub
19272    ac_abs_top_srcdir=$ac_pwd ;;
19273  [\\/]* | ?:[\\/]* )  # Absolute name.
19274    ac_srcdir=$srcdir$ac_dir_suffix;
19275    ac_top_srcdir=$srcdir
19276    ac_abs_top_srcdir=$srcdir ;;
19277  *) # Relative name.
19278    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19279    ac_top_srcdir=$ac_top_build_prefix$srcdir
19280    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19281esac
19282ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19283
19284
19285  case $ac_mode in
19286  :F)
19287  #
19288  # CONFIG_FILE
19289  #
19290
19291  case $INSTALL in
19292  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19293  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19294  esac
19295  ac_MKDIR_P=$MKDIR_P
19296  case $MKDIR_P in
19297  [\\/$]* | ?:[\\/]* ) ;;
19298  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19299  esac
19300_ACEOF
19301
19302cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19303# If the template does not know about datarootdir, expand it.
19304# FIXME: This hack should be removed a few years after 2.60.
19305ac_datarootdir_hack=; ac_datarootdir_seen=
19306ac_sed_dataroot='
19307/datarootdir/ {
19308  p
19309  q
19310}
19311/@datadir@/p
19312/@docdir@/p
19313/@infodir@/p
19314/@localedir@/p
19315/@mandir@/p'
19316case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19317*datarootdir*) ac_datarootdir_seen=yes;;
19318*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19319  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19320$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19321_ACEOF
19322cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19323  ac_datarootdir_hack='
19324  s&@datadir@&$datadir&g
19325  s&@docdir@&$docdir&g
19326  s&@infodir@&$infodir&g
19327  s&@localedir@&$localedir&g
19328  s&@mandir@&$mandir&g
19329  s&\\\${datarootdir}&$datarootdir&g' ;;
19330esac
19331_ACEOF
19332
19333# Neutralize VPATH when `$srcdir' = `.'.
19334# Shell code in configure.ac might set extrasub.
19335# FIXME: do we really want to maintain this feature?
19336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19337ac_sed_extra="$ac_vpsub
19338$extrasub
19339_ACEOF
19340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19341:t
19342/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19343s|@configure_input@|$ac_sed_conf_input|;t t
19344s&@top_builddir@&$ac_top_builddir_sub&;t t
19345s&@top_build_prefix@&$ac_top_build_prefix&;t t
19346s&@srcdir@&$ac_srcdir&;t t
19347s&@abs_srcdir@&$ac_abs_srcdir&;t t
19348s&@top_srcdir@&$ac_top_srcdir&;t t
19349s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19350s&@builddir@&$ac_builddir&;t t
19351s&@abs_builddir@&$ac_abs_builddir&;t t
19352s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19353s&@INSTALL@&$ac_INSTALL&;t t
19354s&@MKDIR_P@&$ac_MKDIR_P&;t t
19355$ac_datarootdir_hack
19356"
19357eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19358  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19359
19360test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19361  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19362  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19363      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19364  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19365which seems to be undefined.  Please make sure it is defined" >&5
19366$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19367which seems to be undefined.  Please make sure it is defined" >&2;}
19368
19369  rm -f "$ac_tmp/stdin"
19370  case $ac_file in
19371  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19372  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19373  esac \
19374  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19375 ;;
19376  :H)
19377  #
19378  # CONFIG_HEADER
19379  #
19380  if test x"$ac_file" != x-; then
19381    {
19382      $as_echo "/* $configure_input  */" \
19383      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19384    } >"$ac_tmp/config.h" \
19385      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19386    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19387      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19388$as_echo "$as_me: $ac_file is unchanged" >&6;}
19389    else
19390      rm -f "$ac_file"
19391      mv "$ac_tmp/config.h" "$ac_file" \
19392	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19393    fi
19394  else
19395    $as_echo "/* $configure_input  */" \
19396      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19397      || as_fn_error $? "could not create -" "$LINENO" 5
19398  fi
19399# Compute "$ac_file"'s index in $config_headers.
19400_am_arg="$ac_file"
19401_am_stamp_count=1
19402for _am_header in $config_headers :; do
19403  case $_am_header in
19404    $_am_arg | $_am_arg:* )
19405      break ;;
19406    * )
19407      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19408  esac
19409done
19410echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19411$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19412	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19413	 X"$_am_arg" : 'X\(//\)$' \| \
19414	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19415$as_echo X"$_am_arg" |
19416    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19417	    s//\1/
19418	    q
19419	  }
19420	  /^X\(\/\/\)[^/].*/{
19421	    s//\1/
19422	    q
19423	  }
19424	  /^X\(\/\/\)$/{
19425	    s//\1/
19426	    q
19427	  }
19428	  /^X\(\/\).*/{
19429	    s//\1/
19430	    q
19431	  }
19432	  s/.*/./; q'`/stamp-h$_am_stamp_count
19433 ;;
19434
19435  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19436$as_echo "$as_me: executing $ac_file commands" >&6;}
19437 ;;
19438  esac
19439
19440
19441  case $ac_file$ac_mode in
19442    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19443  # Autoconf 2.62 quotes --file arguments for eval, but not when files
19444  # are listed without --file.  Let's play safe and only enable the eval
19445  # if we detect the quoting.
19446  case $CONFIG_FILES in
19447  *\'*) eval set x "$CONFIG_FILES" ;;
19448  *)   set x $CONFIG_FILES ;;
19449  esac
19450  shift
19451  for mf
19452  do
19453    # Strip MF so we end up with the name of the file.
19454    mf=`echo "$mf" | sed -e 's/:.*$//'`
19455    # Check whether this is an Automake generated Makefile or not.
19456    # We used to match only the files named 'Makefile.in', but
19457    # some people rename them; so instead we look at the file content.
19458    # Grep'ing the first line is not enough: some people post-process
19459    # each Makefile.in and add a new line on top of each file to say so.
19460    # Grep'ing the whole file is not good either: AIX grep has a line
19461    # limit of 2048, but all sed's we know have understand at least 4000.
19462    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19463      dirpart=`$as_dirname -- "$mf" ||
19464$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19465	 X"$mf" : 'X\(//\)[^/]' \| \
19466	 X"$mf" : 'X\(//\)$' \| \
19467	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19468$as_echo X"$mf" |
19469    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19470	    s//\1/
19471	    q
19472	  }
19473	  /^X\(\/\/\)[^/].*/{
19474	    s//\1/
19475	    q
19476	  }
19477	  /^X\(\/\/\)$/{
19478	    s//\1/
19479	    q
19480	  }
19481	  /^X\(\/\).*/{
19482	    s//\1/
19483	    q
19484	  }
19485	  s/.*/./; q'`
19486    else
19487      continue
19488    fi
19489    # Extract the definition of DEPDIR, am__include, and am__quote
19490    # from the Makefile without running 'make'.
19491    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19492    test -z "$DEPDIR" && continue
19493    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19494    test -z "am__include" && continue
19495    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19496    # Find all dependency output files, they are included files with
19497    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19498    # simplest approach to changing $(DEPDIR) to its actual value in the
19499    # expansion.
19500    for file in `sed -n "
19501      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19502	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19503      # Make sure the directory exists.
19504      test -f "$dirpart/$file" && continue
19505      fdir=`$as_dirname -- "$file" ||
19506$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19507	 X"$file" : 'X\(//\)[^/]' \| \
19508	 X"$file" : 'X\(//\)$' \| \
19509	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19510$as_echo X"$file" |
19511    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19512	    s//\1/
19513	    q
19514	  }
19515	  /^X\(\/\/\)[^/].*/{
19516	    s//\1/
19517	    q
19518	  }
19519	  /^X\(\/\/\)$/{
19520	    s//\1/
19521	    q
19522	  }
19523	  /^X\(\/\).*/{
19524	    s//\1/
19525	    q
19526	  }
19527	  s/.*/./; q'`
19528      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19529      # echo "creating $dirpart/$file"
19530      echo '# dummy' > "$dirpart/$file"
19531    done
19532  done
19533}
19534 ;;
19535    "libtool":C)
19536
19537    # See if we are running on zsh, and set the options which allow our
19538    # commands through without removal of \ escapes.
19539    if test -n "${ZSH_VERSION+set}" ; then
19540      setopt NO_GLOB_SUBST
19541    fi
19542
19543    cfgfile="${ofile}T"
19544    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19545    $RM "$cfgfile"
19546
19547    cat <<_LT_EOF >> "$cfgfile"
19548#! $SHELL
19549
19550# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19551# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19552# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19553# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19554#
19555#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19556#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19557#                 Foundation, Inc.
19558#   Written by Gordon Matzigkeit, 1996
19559#
19560#   This file is part of GNU Libtool.
19561#
19562# GNU Libtool is free software; you can redistribute it and/or
19563# modify it under the terms of the GNU General Public License as
19564# published by the Free Software Foundation; either version 2 of
19565# the License, or (at your option) any later version.
19566#
19567# As a special exception to the GNU General Public License,
19568# if you distribute this file as part of a program or library that
19569# is built using GNU Libtool, you may include this file under the
19570# same distribution terms that you use for the rest of that program.
19571#
19572# GNU Libtool is distributed in the hope that it will be useful,
19573# but WITHOUT ANY WARRANTY; without even the implied warranty of
19574# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19575# GNU General Public License for more details.
19576#
19577# You should have received a copy of the GNU General Public License
19578# along with GNU Libtool; see the file COPYING.  If not, a copy
19579# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19580# obtained by writing to the Free Software Foundation, Inc.,
19581# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19582
19583
19584# The names of the tagged configurations supported by this script.
19585available_tags=""
19586
19587# ### BEGIN LIBTOOL CONFIG
19588
19589# Whether or not to build static libraries.
19590build_old_libs=$enable_static
19591
19592# Which release of libtool.m4 was used?
19593macro_version=$macro_version
19594macro_revision=$macro_revision
19595
19596# Whether or not to build shared libraries.
19597build_libtool_libs=$enable_shared
19598
19599# What type of objects to build.
19600pic_mode=$pic_mode
19601
19602# Whether or not to optimize for fast installation.
19603fast_install=$enable_fast_install
19604
19605# Shell to use when invoking shell scripts.
19606SHELL=$lt_SHELL
19607
19608# An echo program that protects backslashes.
19609ECHO=$lt_ECHO
19610
19611# The PATH separator for the build system.
19612PATH_SEPARATOR=$lt_PATH_SEPARATOR
19613
19614# The host system.
19615host_alias=$host_alias
19616host=$host
19617host_os=$host_os
19618
19619# The build system.
19620build_alias=$build_alias
19621build=$build
19622build_os=$build_os
19623
19624# A sed program that does not truncate output.
19625SED=$lt_SED
19626
19627# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19628Xsed="\$SED -e 1s/^X//"
19629
19630# A grep program that handles long lines.
19631GREP=$lt_GREP
19632
19633# An ERE matcher.
19634EGREP=$lt_EGREP
19635
19636# A literal string matcher.
19637FGREP=$lt_FGREP
19638
19639# A BSD- or MS-compatible name lister.
19640NM=$lt_NM
19641
19642# Whether we need soft or hard links.
19643LN_S=$lt_LN_S
19644
19645# What is the maximum length of a command?
19646max_cmd_len=$max_cmd_len
19647
19648# Object file suffix (normally "o").
19649objext=$ac_objext
19650
19651# Executable file suffix (normally "").
19652exeext=$exeext
19653
19654# whether the shell understands "unset".
19655lt_unset=$lt_unset
19656
19657# turn spaces into newlines.
19658SP2NL=$lt_lt_SP2NL
19659
19660# turn newlines into spaces.
19661NL2SP=$lt_lt_NL2SP
19662
19663# convert \$build file names to \$host format.
19664to_host_file_cmd=$lt_cv_to_host_file_cmd
19665
19666# convert \$build files to toolchain format.
19667to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19668
19669# An object symbol dumper.
19670OBJDUMP=$lt_OBJDUMP
19671
19672# Method to check whether dependent libraries are shared objects.
19673deplibs_check_method=$lt_deplibs_check_method
19674
19675# Command to use when deplibs_check_method = "file_magic".
19676file_magic_cmd=$lt_file_magic_cmd
19677
19678# How to find potential files when deplibs_check_method = "file_magic".
19679file_magic_glob=$lt_file_magic_glob
19680
19681# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19682want_nocaseglob=$lt_want_nocaseglob
19683
19684# DLL creation program.
19685DLLTOOL=$lt_DLLTOOL
19686
19687# Command to associate shared and link libraries.
19688sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19689
19690# The archiver.
19691AR=$lt_AR
19692
19693# Flags to create an archive.
19694AR_FLAGS=$lt_AR_FLAGS
19695
19696# How to feed a file listing to the archiver.
19697archiver_list_spec=$lt_archiver_list_spec
19698
19699# A symbol stripping program.
19700STRIP=$lt_STRIP
19701
19702# Commands used to install an old-style archive.
19703RANLIB=$lt_RANLIB
19704old_postinstall_cmds=$lt_old_postinstall_cmds
19705old_postuninstall_cmds=$lt_old_postuninstall_cmds
19706
19707# Whether to use a lock for old archive extraction.
19708lock_old_archive_extraction=$lock_old_archive_extraction
19709
19710# A C compiler.
19711LTCC=$lt_CC
19712
19713# LTCC compiler flags.
19714LTCFLAGS=$lt_CFLAGS
19715
19716# Take the output of nm and produce a listing of raw symbols and C names.
19717global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19718
19719# Transform the output of nm in a proper C declaration.
19720global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19721
19722# Transform the output of nm in a C name address pair.
19723global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19724
19725# Transform the output of nm in a C name address pair when lib prefix is needed.
19726global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19727
19728# Specify filename containing input files for \$NM.
19729nm_file_list_spec=$lt_nm_file_list_spec
19730
19731# The root where to search for dependent libraries,and in which our libraries should be installed.
19732lt_sysroot=$lt_sysroot
19733
19734# The name of the directory that contains temporary libtool files.
19735objdir=$objdir
19736
19737# Used to examine libraries when file_magic_cmd begins with "file".
19738MAGIC_CMD=$MAGIC_CMD
19739
19740# Must we lock files when doing compilation?
19741need_locks=$lt_need_locks
19742
19743# Manifest tool.
19744MANIFEST_TOOL=$lt_MANIFEST_TOOL
19745
19746# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19747DSYMUTIL=$lt_DSYMUTIL
19748
19749# Tool to change global to local symbols on Mac OS X.
19750NMEDIT=$lt_NMEDIT
19751
19752# Tool to manipulate fat objects and archives on Mac OS X.
19753LIPO=$lt_LIPO
19754
19755# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19756OTOOL=$lt_OTOOL
19757
19758# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19759OTOOL64=$lt_OTOOL64
19760
19761# Old archive suffix (normally "a").
19762libext=$libext
19763
19764# Shared library suffix (normally ".so").
19765shrext_cmds=$lt_shrext_cmds
19766
19767# The commands to extract the exported symbol list from a shared archive.
19768extract_expsyms_cmds=$lt_extract_expsyms_cmds
19769
19770# Variables whose values should be saved in libtool wrapper scripts and
19771# restored at link time.
19772variables_saved_for_relink=$lt_variables_saved_for_relink
19773
19774# Do we need the "lib" prefix for modules?
19775need_lib_prefix=$need_lib_prefix
19776
19777# Do we need a version for libraries?
19778need_version=$need_version
19779
19780# Library versioning type.
19781version_type=$version_type
19782
19783# Shared library runtime path variable.
19784runpath_var=$runpath_var
19785
19786# Shared library path variable.
19787shlibpath_var=$shlibpath_var
19788
19789# Is shlibpath searched before the hard-coded library search path?
19790shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19791
19792# Format of library name prefix.
19793libname_spec=$lt_libname_spec
19794
19795# List of archive names.  First name is the real one, the rest are links.
19796# The last name is the one that the linker finds with -lNAME
19797library_names_spec=$lt_library_names_spec
19798
19799# The coded name of the library, if different from the real name.
19800soname_spec=$lt_soname_spec
19801
19802# Permission mode override for installation of shared libraries.
19803install_override_mode=$lt_install_override_mode
19804
19805# Command to use after installation of a shared archive.
19806postinstall_cmds=$lt_postinstall_cmds
19807
19808# Command to use after uninstallation of a shared archive.
19809postuninstall_cmds=$lt_postuninstall_cmds
19810
19811# Commands used to finish a libtool library installation in a directory.
19812finish_cmds=$lt_finish_cmds
19813
19814# As "finish_cmds", except a single script fragment to be evaled but
19815# not shown.
19816finish_eval=$lt_finish_eval
19817
19818# Whether we should hardcode library paths into libraries.
19819hardcode_into_libs=$hardcode_into_libs
19820
19821# Compile-time system search path for libraries.
19822sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19823
19824# Run-time system search path for libraries.
19825sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19826
19827# Whether dlopen is supported.
19828dlopen_support=$enable_dlopen
19829
19830# Whether dlopen of programs is supported.
19831dlopen_self=$enable_dlopen_self
19832
19833# Whether dlopen of statically linked programs is supported.
19834dlopen_self_static=$enable_dlopen_self_static
19835
19836# Commands to strip libraries.
19837old_striplib=$lt_old_striplib
19838striplib=$lt_striplib
19839
19840
19841# The linker used to build libraries.
19842LD=$lt_LD
19843
19844# How to create reloadable object files.
19845reload_flag=$lt_reload_flag
19846reload_cmds=$lt_reload_cmds
19847
19848# Commands used to build an old-style archive.
19849old_archive_cmds=$lt_old_archive_cmds
19850
19851# A language specific compiler.
19852CC=$lt_compiler
19853
19854# Is the compiler the GNU compiler?
19855with_gcc=$GCC
19856
19857# Compiler flag to turn off builtin functions.
19858no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19859
19860# Additional compiler flags for building library objects.
19861pic_flag=$lt_lt_prog_compiler_pic
19862
19863# How to pass a linker flag through the compiler.
19864wl=$lt_lt_prog_compiler_wl
19865
19866# Compiler flag to prevent dynamic linking.
19867link_static_flag=$lt_lt_prog_compiler_static
19868
19869# Does compiler simultaneously support -c and -o options?
19870compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19871
19872# Whether or not to add -lc for building shared libraries.
19873build_libtool_need_lc=$archive_cmds_need_lc
19874
19875# Whether or not to disallow shared libs when runtime libs are static.
19876allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19877
19878# Compiler flag to allow reflexive dlopens.
19879export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19880
19881# Compiler flag to generate shared objects directly from archives.
19882whole_archive_flag_spec=$lt_whole_archive_flag_spec
19883
19884# Whether the compiler copes with passing no objects directly.
19885compiler_needs_object=$lt_compiler_needs_object
19886
19887# Create an old-style archive from a shared archive.
19888old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19889
19890# Create a temporary old-style archive to link instead of a shared archive.
19891old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19892
19893# Commands used to build a shared archive.
19894archive_cmds=$lt_archive_cmds
19895archive_expsym_cmds=$lt_archive_expsym_cmds
19896
19897# Commands used to build a loadable module if different from building
19898# a shared archive.
19899module_cmds=$lt_module_cmds
19900module_expsym_cmds=$lt_module_expsym_cmds
19901
19902# Whether we are building with GNU ld or not.
19903with_gnu_ld=$lt_with_gnu_ld
19904
19905# Flag that allows shared libraries with undefined symbols to be built.
19906allow_undefined_flag=$lt_allow_undefined_flag
19907
19908# Flag that enforces no undefined symbols.
19909no_undefined_flag=$lt_no_undefined_flag
19910
19911# Flag to hardcode \$libdir into a binary during linking.
19912# This must work even if \$libdir does not exist
19913hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19914
19915# Whether we need a single "-rpath" flag with a separated argument.
19916hardcode_libdir_separator=$lt_hardcode_libdir_separator
19917
19918# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19919# DIR into the resulting binary.
19920hardcode_direct=$hardcode_direct
19921
19922# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19923# DIR into the resulting binary and the resulting library dependency is
19924# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19925# library is relocated.
19926hardcode_direct_absolute=$hardcode_direct_absolute
19927
19928# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19929# into the resulting binary.
19930hardcode_minus_L=$hardcode_minus_L
19931
19932# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19933# into the resulting binary.
19934hardcode_shlibpath_var=$hardcode_shlibpath_var
19935
19936# Set to "yes" if building a shared library automatically hardcodes DIR
19937# into the library and all subsequent libraries and executables linked
19938# against it.
19939hardcode_automatic=$hardcode_automatic
19940
19941# Set to yes if linker adds runtime paths of dependent libraries
19942# to runtime path list.
19943inherit_rpath=$inherit_rpath
19944
19945# Whether libtool must link a program against all its dependency libraries.
19946link_all_deplibs=$link_all_deplibs
19947
19948# Set to "yes" if exported symbols are required.
19949always_export_symbols=$always_export_symbols
19950
19951# The commands to list exported symbols.
19952export_symbols_cmds=$lt_export_symbols_cmds
19953
19954# Symbols that should not be listed in the preloaded symbols.
19955exclude_expsyms=$lt_exclude_expsyms
19956
19957# Symbols that must always be exported.
19958include_expsyms=$lt_include_expsyms
19959
19960# Commands necessary for linking programs (against libraries) with templates.
19961prelink_cmds=$lt_prelink_cmds
19962
19963# Commands necessary for finishing linking programs.
19964postlink_cmds=$lt_postlink_cmds
19965
19966# Specify filename containing input files.
19967file_list_spec=$lt_file_list_spec
19968
19969# How to hardcode a shared library path into an executable.
19970hardcode_action=$hardcode_action
19971
19972# ### END LIBTOOL CONFIG
19973
19974_LT_EOF
19975
19976  case $host_os in
19977  aix3*)
19978    cat <<\_LT_EOF >> "$cfgfile"
19979# AIX sometimes has problems with the GCC collect2 program.  For some
19980# reason, if we set the COLLECT_NAMES environment variable, the problems
19981# vanish in a puff of smoke.
19982if test "X${COLLECT_NAMES+set}" != Xset; then
19983  COLLECT_NAMES=
19984  export COLLECT_NAMES
19985fi
19986_LT_EOF
19987    ;;
19988  esac
19989
19990
19991ltmain="$ac_aux_dir/ltmain.sh"
19992
19993
19994  # We use sed instead of cat because bash on DJGPP gets confused if
19995  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19996  # text mode, it properly converts lines to CR/LF.  This bash problem
19997  # is reportedly fixed, but why not run on old versions too?
19998  sed '$q' "$ltmain" >> "$cfgfile" \
19999     || (rm -f "$cfgfile"; exit 1)
20000
20001  if test x"$xsi_shell" = xyes; then
20002  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20003func_dirname ()\
20004{\
20005\    case ${1} in\
20006\      */*) func_dirname_result="${1%/*}${2}" ;;\
20007\      *  ) func_dirname_result="${3}" ;;\
20008\    esac\
20009} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20010  && mv -f "$cfgfile.tmp" "$cfgfile" \
20011    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20012test 0 -eq $? || _lt_function_replace_fail=:
20013
20014
20015  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20016func_basename ()\
20017{\
20018\    func_basename_result="${1##*/}"\
20019} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20020  && mv -f "$cfgfile.tmp" "$cfgfile" \
20021    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20022test 0 -eq $? || _lt_function_replace_fail=:
20023
20024
20025  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20026func_dirname_and_basename ()\
20027{\
20028\    case ${1} in\
20029\      */*) func_dirname_result="${1%/*}${2}" ;;\
20030\      *  ) func_dirname_result="${3}" ;;\
20031\    esac\
20032\    func_basename_result="${1##*/}"\
20033} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20034  && mv -f "$cfgfile.tmp" "$cfgfile" \
20035    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20036test 0 -eq $? || _lt_function_replace_fail=:
20037
20038
20039  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20040func_stripname ()\
20041{\
20042\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20043\    # positional parameters, so assign one to ordinary parameter first.\
20044\    func_stripname_result=${3}\
20045\    func_stripname_result=${func_stripname_result#"${1}"}\
20046\    func_stripname_result=${func_stripname_result%"${2}"}\
20047} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20048  && mv -f "$cfgfile.tmp" "$cfgfile" \
20049    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20050test 0 -eq $? || _lt_function_replace_fail=:
20051
20052
20053  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20054func_split_long_opt ()\
20055{\
20056\    func_split_long_opt_name=${1%%=*}\
20057\    func_split_long_opt_arg=${1#*=}\
20058} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20059  && mv -f "$cfgfile.tmp" "$cfgfile" \
20060    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20061test 0 -eq $? || _lt_function_replace_fail=:
20062
20063
20064  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20065func_split_short_opt ()\
20066{\
20067\    func_split_short_opt_arg=${1#??}\
20068\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20069} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20070  && mv -f "$cfgfile.tmp" "$cfgfile" \
20071    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20072test 0 -eq $? || _lt_function_replace_fail=:
20073
20074
20075  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20076func_lo2o ()\
20077{\
20078\    case ${1} in\
20079\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20080\      *)    func_lo2o_result=${1} ;;\
20081\    esac\
20082} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20083  && mv -f "$cfgfile.tmp" "$cfgfile" \
20084    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20085test 0 -eq $? || _lt_function_replace_fail=:
20086
20087
20088  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20089func_xform ()\
20090{\
20091    func_xform_result=${1%.*}.lo\
20092} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20093  && mv -f "$cfgfile.tmp" "$cfgfile" \
20094    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20095test 0 -eq $? || _lt_function_replace_fail=:
20096
20097
20098  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20099func_arith ()\
20100{\
20101    func_arith_result=$(( $* ))\
20102} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20103  && mv -f "$cfgfile.tmp" "$cfgfile" \
20104    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20105test 0 -eq $? || _lt_function_replace_fail=:
20106
20107
20108  sed -e '/^func_len ()$/,/^} # func_len /c\
20109func_len ()\
20110{\
20111    func_len_result=${#1}\
20112} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20113  && mv -f "$cfgfile.tmp" "$cfgfile" \
20114    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20115test 0 -eq $? || _lt_function_replace_fail=:
20116
20117fi
20118
20119if test x"$lt_shell_append" = xyes; then
20120  sed -e '/^func_append ()$/,/^} # func_append /c\
20121func_append ()\
20122{\
20123    eval "${1}+=\\${2}"\
20124} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20125  && mv -f "$cfgfile.tmp" "$cfgfile" \
20126    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20127test 0 -eq $? || _lt_function_replace_fail=:
20128
20129
20130  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20131func_append_quoted ()\
20132{\
20133\    func_quote_for_eval "${2}"\
20134\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20135} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20136  && mv -f "$cfgfile.tmp" "$cfgfile" \
20137    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20138test 0 -eq $? || _lt_function_replace_fail=:
20139
20140
20141  # Save a `func_append' function call where possible by direct use of '+='
20142  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20143    && mv -f "$cfgfile.tmp" "$cfgfile" \
20144      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20145  test 0 -eq $? || _lt_function_replace_fail=:
20146else
20147  # Save a `func_append' function call even when '+=' is not available
20148  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20149    && mv -f "$cfgfile.tmp" "$cfgfile" \
20150      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20151  test 0 -eq $? || _lt_function_replace_fail=:
20152fi
20153
20154if test x"$_lt_function_replace_fail" = x":"; then
20155  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20156$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20157fi
20158
20159
20160   mv -f "$cfgfile" "$ofile" ||
20161    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20162  chmod +x "$ofile"
20163
20164 ;;
20165
20166  esac
20167done # for ac_tag
20168
20169
20170as_fn_exit 0
20171_ACEOF
20172ac_clean_files=$ac_clean_files_save
20173
20174test $ac_write_fail = 0 ||
20175  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20176
20177
20178# configure is writing to config.log, and then calls config.status.
20179# config.status does its own redirection, appending to config.log.
20180# Unfortunately, on DOS this fails, as config.log is still kept open
20181# by configure, so config.status won't be able to write to it; its
20182# output is simply discarded.  So we exec the FD to /dev/null,
20183# effectively closing config.log, so it can be properly (re)opened and
20184# appended to by config.status.  When coming back to configure, we
20185# need to make the FD available again.
20186if test "$no_create" != yes; then
20187  ac_cs_success=:
20188  ac_config_status_args=
20189  test "$silent" = yes &&
20190    ac_config_status_args="$ac_config_status_args --quiet"
20191  exec 5>/dev/null
20192  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20193  exec 5>>config.log
20194  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20195  # would make configure fail if this is the last instruction.
20196  $ac_cs_success || as_fn_exit 1
20197fi
20198if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20199  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20200$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20201fi
20202
20203